regex: revert single-byte change
[gnulib.git] / ChangeLog
1 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2
3         regex: revert single-byte change
4         * lib/regexec.c (check_node_accept_bytes): Revert previous change
5         to this function.  This was alredy fixed in a different way, at
6         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
7         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
8         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
9
10         regex: simplify based on Gawk version
11         * lib/regex_internal.c (re_dfa_add_node): Simplify.
12         Reported by Aharon Robbins in
13         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14
15 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16
17         regex: check that pattern char is single-byte
18         Reported by Aharon Robbins in
19         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20         * lib/regexec.c (check_node_accept_bytes):
21         Return 0 if the pattern string has a multibyte character here.
22
23         regex: implement rational ranges
24         Reported by Aharon Robbins in
25         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26         * lib/regcomp.c (build_range_exp) [!_LIBC]:
27         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
28         Implement rational ranges.
29
30         regex: avoid redefining __wctype
31         Reported by Aharon Robbins in
32         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
34         #undef before defining.
35
36         regex: port to hosts where malloc (0) == NULL
37         Reported by Aharon Robbins in
38         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
39         * lib/regex_internal.c (re_node_set_alloc):
40         Don't assume that malloc (0) yields nonnull.
41         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
42         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
43         * modules/regex (Files): Add m4/eealloc.m4.
44
45         regex: port to C89
46         Reported by Aharon Robbins in
47         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
48         * lib/regcomp.c (init_word_char): Declaration before statement.
49
50         regex: merge glibc changes
51         Also, copy the license wording from glibc.  This simplifies
52         merging changes.  gnulib-tool will change the wording to GPL as
53         appropriate, when importing it to other packages.  The only
54         glibc change made since the last merge, which needs merging, is:
55         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
56         * lib/regex_internal.h (gettext): Remove use of INTUSE.
57
58         * users.txt: Add Emacs.
59
60         doc: omit mention of version when not needed
61         * doc/gnulib-intro.texi (Portability and Application Code):
62         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
63         Don't mention particular dates or versions when not necessary, so
64         that the documentation won't go out of date so quickly.
65
66         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
67
68 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
69
70         bootstrap: pass --force to autoreconf.
71         * build-aux/bootstrap (AUTORECONFFLAGS): New.
72         Add "--force" so that Automake's ylwrap and other such tools
73         be updated at each bootstrap invocation.
74         Use it.
75
76 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
77
78         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
79         The earlier patch forgot to update one of the #if conditions, causing
80         a problem on Debian testing i386 reported by Mats Erik Andersson
81         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
82         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
83         (__argp_fmtstream_puts, argp_fmtstream_puts)
84         (__argp_fmtstream_write, argp_fmtstream_write)
85         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
86
87         * doc/gnulib-readme.texi: Minor fixups.
88         (Portability guidelines): Modernize URLs.  Remove some repetition.
89         (Indent with spaces not TABs): Reword to avoid too-long lines.
90         Remove some '@ifset standalone' stuff that isn't used.
91
92         * doc/gnulib-readme.texi (Portability guidelines):
93         ctype.h, not ctime.h.
94
95         Correct name of POSIX.1-2001.
96         * doc/posix-functions/fgetc.texi (fgetc):
97         * doc/posix-functions/fgets.texi (fgets):
98         * doc/posix-functions/fread.texi (fread):
99         * doc/posix-functions/fscanf.texi (fscanf):
100         * doc/posix-functions/getc.texi (getc):
101         * doc/posix-functions/getchar.texi (getchar):
102         * doc/posix-functions/scanf.texi (scanf):
103         POSIX.1-2001, not POSIX-2001.
104
105         doc: move README into manual
106         * README: Move contents to new file doc/gnulib-readme.texi.
107         Replace with a one-line summary.
108         * doc/gnulib.texi (Brief Overview): New section,
109         with old intro preface.  Include gnulib-readme.texi for contents.
110         (Philosophy): Rename from "Introduction", since this
111         section no longer introduces the rest.  Write a new preface.
112         * doc/gnulib-readme.texi: New file, with the old contents of
113         README texinfo-ized.  This way, the README info appears
114         in the online and printed manual.
115
116 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
117
118         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
119         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
120         c_vasprintf() prototype.
121
122 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
123
124         c-vasprintf: Fix "empty declaration" warning reported by GCC.
125         * lib/c-vasprintf.h: Remove stray semicolon.
126
127 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
128
129         gettext: avoid obsolete macro AM_PROG_MKDIR_P
130         It is obsolete and is planned to be removed from Automake 1.14; see
131         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
132         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
133         (installdirs-data, installdirs-data-yes):
134         Use $(MKDIR_P), not $(mkdir_p).
135         * m4/intl.m4 (AM_INTL_SUBDIR):
136         * m4/po.m4 (AM_PO_SUBDIRS):
137         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
138
139 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
140
141         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
142         On this platform, we are not optimizing but we are using
143         the substitute for extern inlines, so compile as if
144         C99-style extern inline, or a substitute, is available.
145         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
146         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
147         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
148         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
149         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
150         Declare as ARGP_FS_EI, not as extern.
151         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
152         (__option_is_short, _option_is_end, __option_is_end)
153         [!_LIBC && __USE_EXTERN_INLINES]:
154         Declare as ARGP_EI, not as extern.
155
156 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
157
158         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
159         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
160         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
161         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
162         ...), as the latter is fatal with older Autoconfs.
163         Problem reported and fix suggested by Eric Blake in thread starting at
164         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
165
166 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
167
168         AC_PROG_MKDIR_P: don't workaround if not buggy
169         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
170         Define only for Autoconf versions before 2.62.
171         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
172         undocumented m4_PACKAGE_VERSION, for consistency with the
173         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
174         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
175         was introduced in 2.62.
176
177 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
178
179         New 'c-*printf' modules for formatted output in C locale.
180
181         New module 'c-vasnprintf'.
182         * modules/c-vasnprintf: New file.
183         * lib/c-vasnprintf.c: New file.
184         * lib/c-vasnprintf.h: New file.
185
186         New module 'c-snprintf'.
187         * modules/c-snprintf: New file.
188         * modules/c-snprintf-tests: New file.
189         * lib/c-snprintf.c: New file.
190         * lib/c-snprintf.h: New file.
191         * tests/test-c-snprintf.c: New file.
192         * tests/test-c-snprintf.sh: New file.
193
194         New module 'c-vsnprintf'.
195         * modules/c-vsnprintf: New file.
196         * modules/c-vsnprintf-tests: New file.
197         * lib/c-vsnprintf.c: New file.
198         * lib/c-vsnprintf.h: New file.
199         * tests/test-c-vsnprintf.c: New file.
200         * tests/test-c-vsnprintf.sh: New file.
201
202         New module 'c-vasprintf'.
203         * modules/c-vasprintf: New file.
204         * modules/c-vasprintf-tests: New file.
205         * lib/c-asprintf.c: New file.
206         * lib/c-vasprintf.c: New file.
207         * lib/c-vasprintf.h: New file.
208         * tests/test-c-vasprintf.c  +: New file.
209         * tests/test-c-vasprintf.sh: New file.
210
211         New module 'c-xvasprintf'.
212         * modules/c-xvasprintf: New file.
213         * modules/c-xvasprintf-tests: New file.
214         * lib/c-xasprintf.c: New file.
215         * lib/c-xvasprintf.c: New file.
216         * lib/c-xvasprintf.h: New file.
217         * tests/test-c-xvasprintf.c: New file.
218         * tests/test-c-xvasprintf.sh: New file.
219
220 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
221
222         argp: better 'inline'
223         Use extern-inline module to declare extern inline functions.
224         This avoids some bogus warning diagnostics.  Problem discovered
225         when modifying GNU tar to use the manywarnings module.
226         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
227         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
228         Define based on extern-inline.
229         * modules/argp (Depends-on): Add extern-inline.
230
231 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
232
233         filemode, sys_stat: Handle MPX files a la AIX.
234         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
235         * lib/sys_stat.in.h (S_ISMPX): New macro.
236         * tests/test-sys_stat.c: Add tests for MPX files.
237
238 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
239
240         x-to-1: honor $PERL
241         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
242         a chance to use his preferred version of Perl.  This is typically
243         required by Darwin users whose default /usr/bin/perl does not have all
244         the libraries required by help2man, and who need to use their MacPorts
245         installation of Perl instead.
246
247 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
248
249         gnu-web-doc-update: add all the new files, even in new directories
250         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
251         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
252         Use it.
253         (main): Don't use cvsutils to get the list of unknown files,
254         just add all the existing files and directories.
255
256 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
257
258         gnu-web-doc-update: improve --help
259         * build-aux/gnu-web-doc-update: Move comments into --help.
260
261 2012-12-07  Eric Wong  <normalperson@yhbt.net>
262
263         mountlist: recognize more "dummy" file systems
264         * lib/mountlist.c (ME_DUMMY_0):
265         Add these dummy FS names to the list:
266         - "debugfs" virtual filesystem for kernel debugging
267         - "devpts" PTY slave filesystem
268         - "devtmpfs" device filesystem on top of tmpfs/ramfs
269         - "fusectl" control filesystem for FUSE
270         - "mqueue" enumerates POSIX message queues
271         - "rpc_pipefs" kernel <-> userspace bridge for NFS
272         - "sysfs" is for exporting kernel objects
273         - "devfs" device filesystem for Linux 2.4 and FreeBSD
274
275 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
276
277         extern-inline: avoid incompatibility with Darwin Libc
278         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
279         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
280         Problem reported by Akim Demaille in
281         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
282
283 2012-12-11  Simon Josefsson  <simon@josefsson.org>
284
285         gnupload: Work with GnuPG using gpg-agent (for smartcards).
286         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
287         let it handle password prompting.
288
289 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
290
291         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
292         * lib/canonicalize.c (canonicalize_filename_mode):
293         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
294         fetching the current directory.  Don't overrun the beginning of
295         rpath if there's no slashes after the MS-Windows drive letter.
296
297 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
298
299         maint.mk: avoid extra forks
300         * top/maint.mk (_cfg_mk): The GNU make manual documents that
301         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
302         So use that instead of "$(shell test -f FILE && echo FILE)".
303
304 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
305
306         vasnprintf: fix ASCII_ONLY typo
307         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
308         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
309         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
310         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
311         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
312
313 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
314
315         list, oset, xlist, xoset: fix extern inline issue with C99
316         This was introduced by my recent changes for 'inline'.
317         Problem reported for gettext by Daiki Ueno in
318         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
319         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
320         (gl_list_nx_create, gl_list_size, gl_list_node_value)
321         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
322         (gl_list_previous_node, gl_list_get_at)
323         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
324         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
325         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
326         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
327         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
328         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
329         (gl_list_iterator_free, gl_sortedlist_search)
330         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
331         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
332         (gl_sortedlist_remove):
333         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
334         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
335         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
336         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
337         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
338         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
339         (gl_list_add_at, gl_sortedlist_add):
340         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
341         Wrap these extern decls inside "#if 0", because they are implemented
342         as inline functions, and extern inline is not what's wanted here.
343         It would simplify these .h files to remove the extern decls entirely,
344         although a downside would be less-clear separation between
345         specification and implementation.
346
347 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
348
349         sys_stat: no 'static inline'
350         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
352
353         extern-inline: no 'static inline'
354         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
355         Do not require AC_C_INLINE.
356         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
357         'static inline', for older compilers.
358
359         snippet/warn-on-use: no 'static inline'
360         * build-aux/snippet/warn-on-use.h:
361         Remove unnecessary 'inline' in comment.
362
363         rbtree-list, rbtreehash-list: no 'static inline'
364         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
365         * lib/gl_anytree_list2.h (node_at):
366         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
367         (gl_oset_first, add_nodes_to_buckets):
368         Now static, not static inline.
369
370         regex: no 'static inline'
371         * lib/regex_internal.c (calc_state_hash):
372         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
373         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
374         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
375         Now static, not static inline.
376         (inline) [__GNUC__ < 3 && _LIBC]:
377         Remove macro; no longer needed.
378
379         xvasprintf: no 'static inline'
380         * lib/xvasprintf.c (xstrcat):
381         Now static, not static inline.
382         * m4/xvasprintf.m4 (gl_XVASPRINTF):
383         Do not require AC_C_INLINE.
384
385         parse-datetime, parse-duration: no 'static inline'
386         * lib/parse-datetime.y (to_uchar):
387         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
388         (scale_n_add):
389         Now static, not static inline.
390         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
391         * modules/parse-duration (configure.ac):
392         Do not require AC_C_INLINE.
393
394         getaddrinfo: no 'static inline'
395         * lib/getaddrinfo.c (validate_family):
396         Now static, not static inline.
397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
398         Do not require AC_C_INLINE.
399
400         ftruncate, fts, lstat, openat, raise: no 'static inline'
401         * lib/ftruncate.c (chsize_nothrow):
402         * lib/fts.c (opendirat, diropen):
403         * lib/lstat.c (orig_lstat):
404         * lib/openat.c (orig_openat):
405         * lib/raise.c (raise_nothrow):
406         Now static, not static inline.
407         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
408         * m4/fts.m4 (gl_FUNC_FTS_CORE):
409         * m4/lstat.m4 (gl_PREREQ_LSTAT):
410         * m4/openat.m4 (gl_PREREQ_OPENAT):
411         * m4/raise.m4 (gl_PREREQ_RAISE):
412         Do not require AC_C_INLINE.
413
414         fflush, stat: no 'static inline'
415         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
416         (clear_ungetc_buffer, disable_seek_optimization)
417         (restore_seek_optimization, update_fpos_cache):
418         * lib/stat.c (orig_stat):
419         Now static, not static inline.
420         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
421         (update_fpos_cache):
422         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
423         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
424         * m4/stat.m4 (gl_PREREQ_STAT):
425         Do not require AC_C_INLINE.
426
427         error, filevercmp: no 'static inline'
428         * lib/error.c (is_open, flush_stdout):
429         * lib/filevercmp.c (order):
430         Now static, not static inline.
431         * m4/error.m4 (gl_PREREQ_ERROR):
432         * modules/filevercmp (configure.ac):
433         Do not require AC_C_INLINE.
434
435         dup, execute, fatal-signal, etc.: no 'static inline'
436         * lib/dup.c (dup_nothrow):
437         * lib/execute.c (nonintr_close, nonintr_open):
438         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
439         * lib/fopen.c (orig_fopen):
440         * lib/freadseek.c (freadptrinc):
441         * lib/freopen.c (orig_freopen):
442         * lib/fstat.c (orig_fstat, fstat_nothrow):
443         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
444         (get_rusage_as_via_iterator):
445         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
446         * lib/getdtablesize.c (_setmaxstdio_nothrow):
447         * lib/isatty.c (_isatty_nothrow):
448         * lib/open.c (orig_open):
449         * lib/read.c (read_nothrow):
450         * lib/sigprocmask.c (signal_nothrow):
451         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
452         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
453         * lib/wait-process.c (unregister_slave_subprocess):
454         * lib/write.c (write_nothrow):
455         Now static, not static inline.
456         * lib/spawn-pipe.c (nonintr_open): Define only if
457         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
458         * m4/dup.m4 (gl_PREREQ_DUP):
459         * m4/execute.m4 (gl_EXECUTE):
460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
461         * m4/fopen.m4 (gl_PREREQ_FOPEN):
462         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
463         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
464         * m4/fstat.m4 (gl_PREREQ_FSTAT):
465         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
466         * m4/isatty.m4 (gl_PREREQ_ISATTY):
467         * m4/open.m4 (gl_PREREQ_OPEN):
468         * m4/read.m4 (gl_PREREQ_READ):
469         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
470         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
472         * m4/wait-process.m4 (gl_WAIT_PROCESS):
473         * m4/write.m4 (gl_PREREQ_WRITE):
474         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
475         Do not require AC_C_INLINE.
476
477         c-strtod, memcoll, readutmp: no 'static inline'
478         * lib/c-strtod.c (c_locale):
479         * lib/memcoll.c (strcoll_loop):
480         * lib/readutmp.c (desirable_utmp_entry):
481         Now static, not static inline.
482         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
483         * m4/memcoll.m4 (gl_MEMCOLL):
484         * m4/readutmp.m4 (gl_READUTMP):
485         Do not require AC_C_INLINE.
486
487         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
488         * lib/arctwo.c (to_uchar):
489         * lib/md4.c (set_uint32):
490         * lib/md5.c (set_uint32):
491         * lib/sha1.c (set_uint32):
492         * lib/sha256.c (set_uint32):
493         * lib/sha512.c (set_uint64):
494         Now static, not static inline.  This is a bit simpler, and doesn't
495         affect performance with GCC and default optimization.
496         * m4/arctwo.m4 (gl_ARCTWO):
497         * m4/md4.m4 (gl_MD4):
498         * m4/md5.m4 (gl_MD5):
499         * m4/sha1.m4 (gl_SHA1):
500         * m4/sha256.m4 (gl_SHA256):
501         * m4/sha512.m4 (gl_SHA512):
502         Do not require AC_C_INLINE.
503
504         cond, lock, thread: better 'inline'
505         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
506         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
507         New macros.  Use them instead of static inline, for header functions.
508         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
509         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
510         * lib/glthread/lock.c (gl_waitqueue_init)
511         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
512         * lib/glthread/thread.c (get_current_thread_handle):
513         Change 'static inline' to 'inline'.
514         * lib/glthread/cond.h, lib/glthread/thread.h:
515         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
516         * m4/cond.m4 (gl_COND):
517         * m4/lock.m4 (gl_PREREQ_LOCK):
518         * m4/thread.m4 (gl_THREAD):
519         Do not require AC_C_INLINE.
520         * modules/cond, modules/thread (Depends-on): Add extern-inline.
521
522         chdir-long, cycle-check, savewd: better 'inline'
523         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
524         (find_non_slash):
525         * lib/cycle-check.c (is_zero_or_power_of_two):
526         * lib/savewd.c (savewd_delegating):
527         Change 'static inline' to 'inline'.
528         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
529         Replace all remaining uses of 'static inline' with it.
530         * lib/savewd.h:
531         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
532         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
533         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
534         * m4/savewd.m4 (gl_SAVEWD):
535         Do not require AC_C_INLINE.
536         * modules/savewd (Depends-on): Add extern-inline.
537
538         base32, base64: no need for 'inline'
539         * lib/base32.c (to_uchar, get_8, decode_8):
540         * lib/base64.c (to_uchar, get_4, decode_4):
541         Change 'static inline' to 'inline'.
542         * m4/base32.m4 (gl_PREREQ_BASE32):
543         * m4/base64.m4 (gl_PREREQ_BASE64):
544         Do not require AC_C_INLINE.
545
546         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
547         * lib/gl_array_oset.c (gl_array_nx_add_at):
548         (gl_array_remove_at):
549         * lib/gl_linkedhash_list.c (hash_resize_after_add)
550         (add_to_bucket, remove_from_bucket):
551         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
552         Change 'static inline' to 'static', as it's simpler to omit
553         'inline' unless there's a significant performance advantage.
554
555         list, oset, xlist, xoset, xsublist: simplify via extern inline
556         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
557         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
558         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
559         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
560         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
561         New macro.  Replace all uses of 'static inline' with it.
562         [HAVE_INLINE]: Implement functions as *_INLINE functions,
563         instead of as macros FOO that are defined to static inline
564         functions FOO_inline.
565         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
566         * lib/gl_xsublist.c:
567         Reimplement from scratch, by defining the corresponding *_INLINE
568         macro and including the corresponding .h file.  This is simpler.
569         * modules/list, modules/oset, modules/xlist, modules/xoset:
570         (Files): Remove m4/gl_list.m4.
571         (configure.ac): Remove gl_LIST.
572         * m4/gl_list.m4: Remove.
573         * modules/list, modules/oset, modules/xlist, modules/xoset:
574         * modules/xsublist:
575         (Depends-on): Depend on extern-inline, not inline.
576
577         xalloc: better 'inline'
578         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
579         New macro.  Replace all uses of 'static inline' with it.
580         (static_inline): Remove.
581         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
582         Let 'extern inline' do the work automatically, instead of doing
583         it by hand.
584         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
585         Remove.  All uses removed.
586         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
587
588         gethrxtime: better 'inline'
589         * lib/xtime.c: New file.
590         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
591         * lib/xtime.h (XTIME_INCLUDE):
592         New macros.  Replace all uses of 'static inline' with them.
593         * lib/gethrxtime.c (gethrxtime): Define only if
594         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
595         this source file is now always compiled, because of the extern inline.
596         * lib/gethrxtime.h, lib/xtime.h:
597         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
598         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
599         if gethrtime works, as they're not needed in that case.
600         (gl_XTIME): Do not require AC_C_INLINE.
601         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
602         compiled now.  Move the check into gl_GETHRXTIME.
603         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
604         (Depends-on): Add extern-inline.
605         (configure.ac): gethrxtime is always compiled now.
606         (lib_SOURCES): Add gethrxtime.c.
607
608         wctype-h: better 'inline'
609         * lib/wctype-h.c: New file.
610         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
611         New macro.  Replace all uses of 'static inline' with it.
612         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
613         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
614         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
615         (Depends-on): Add extern-inline.
616
617         unistd: better 'inline'
618         * lib/unistd.c: New file.
619         * lib/unistd.in.h (_GL_UNISTD_INLINE):
620         New macro.  Replace all uses of 'static inline' with it.
621         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
622         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
623         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
624         (Depends-on): Add extern-inline.
625
626         sys_socket: better 'inline'
627         * lib/sys_socket.c: New file.
628         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
629         New macro.  Replace all uses of 'static inline' with it.
630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
631         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
632         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
633         (Depends-on): Add extern-inline.
634
635         stdio: better 'inline'
636         * lib/stdio.c: New file.
637         * lib/stdio.in.h (_GL_STDIO_INLINE):
638         New macro.  Replace all uses of 'static inline' with it.
639         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
640         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
641         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
642         (Depends-on): Add extern-inline.
643
644         sigaction: better 'inline'
645         * lib/sig-handler.c: New file.
646         * lib/sig-handler.h (SIG_HANDLER_INLINE):
647         New macro.  Replace all uses of 'static inline' with it.
648         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
649         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
650         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
651         (Depends-on): Add extern-inline.
652
653         selinux-h: better 'inline'
654         * lib/se-context.c, lib/se-selinux.c: New files.
655         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
656         * lib/se-context.in.h (SE_CONTEXT_INLINE):
657         New macro.  Replace all uses of 'static inline' with it.
658         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
659         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
660         New macro.  Replace all uses of 'static inline' with it.
661         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
662         * modules/selinux-h (Files, lib_SOURCES):
663         Add lib/se-context.c, lib/se-selinux.c.
664         (Depends-on): Add extern-inline.
665         (configure.ac): Do not require AC_C_INLINE.
666
667         pthread: better 'inline'
668         * lib/pthread.c: New file.
669         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
670         New macro.  Replace all uses of 'static inline' with it.
671         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
672         * m4/pthread.m4 (gl_PTHREAD_CHECK):
673         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
674         * modules/pthread (Files): Add lib/pthread.c.
675         (Depends-on): Add extern-inline.
676
677         math: better 'inline'
678         * lib/math.c: New file.
679         * lib/math.in.h (_GL_MATH_INLINE):
680         New macro.  Replace all uses of 'static inline' with it.
681         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
682         * m4/math_h.m4 (gl_MATH_H):
683         Do not require AC_C_INLINE.
684         * modules/math (Files, lib_SOURCES):
685         Add lib/math.c.
686         (Depends-on): Add extern-inline.
687
688         count-one-bits: better 'inline'
689         * lib/count-one-bits.c: New file.
690         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
691         New macro.  Replace all uses of 'static inline' with it.
692         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
693         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
694         Do not require AC_C_INLINE.
695         * modules/count-one-bits (Files, lib_SOURCES):
696         Add lib/count-one-bits.c.
697         (Depends-on): Add extern-inline.
698
699         count-leading-zeros: better 'inline'
700         * lib/count-leading-zeros.c: New file.
701         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
702         New macro.  Replace all uses of 'static inline' with it.
703         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
704         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
705         Do not require AC_C_INLINE.
706         * modules/count-leading-zeros (Files, lib_SOURCES):
707         Add lib/count-leading-zeros.c.
708         (Depends-on): Add extern-inline.
709
710         bitrotate: better 'inline'
711         * lib/bitrotate.c: New file.
712         * lib/bitrotate.h (BITROTATE_INLINE):
713         New macros.
714         Replace all uses of 'static inline' with them.
715         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
716         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
717         (Depends-on): Add extern-inline.
718         (configure.ac): Do not require AC_C_INLINE.
719
720 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
721
722         maint.mk: avoid gratuitous failure
723         Reported by Stefano Lattarini in
724         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
725         * top/maint.mk (public-submodule-commit): Quote more safely.
726
727 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
728
729         canonicalize, canonicalize-lgpl: support MS-Windows file names
730         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
731         for test cases, which it'd be nice to add at some point.
732         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
733         * lib/canonicalize.c (canonicalize_filename_mode):
734         * lib/canonicalize-lgpl.c (__realpath):
735         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
736         slash is at the beginning of the file name.  Use ISSLASH, instead
737         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
738         the first character with '/'.  Test for
739         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
740         with a drive letter.
741         * lib/canonicalize.c (SLASHES): New macro.
742         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
743
744 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
745
746         fts: introduce FTS_VERBATIM
747         * lib/fts_.h (FTS_VERBATIM): New bit flag.
748         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
749         * lib/fts.c (fts_open): Honor it.
750
751 2012-11-09  Pádraig Brady  <P@draigBrady.com>
752
753         getlogin-tests: allow errno == ENXIO
754         * tests/test-getlogin.c (main): Skip tests if getlogin fails
755         with errno == ENXIO (No controlling tty).
756         getlogin_r-tests: Likewise. Also allow errno == ENOENT
757         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
758         with errno == ENOENT.  This was reported to happen in various
759         situations on GNU/Linux.
760
761 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
762
763         getlogin-tests: allow errno == ENOENT
764         * tests/test-getlogin.c (main): Skip tests if getlogin fails
765         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
766         when running a test in an Emacs shell buffer.
767
768 2012-11-08  Jim Meyering  <jim@meyering.net>
769
770         tests/nap.h: avoid warning about unused variable
771         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
772
773         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
774         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
775         white space before each of the special-cased file names, to avoid
776         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
777         in http://bugs.gnu.org/12830.
778
779 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
780
781         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
782         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
783         fails with errno == EBADF when fd is opened with O_PATH.
784         Reported by Jim Meyering in
785         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
786         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
787         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
788
789 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
790
791         test-utimens: speed up by taking shorter naps
792         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
793         New functions.
794         (nap): Use them, to do a better job of guessing the delay.
795         On Fedora 17 with ext4 atop md atop hard disks, this made
796         test-utimens run 10x faster, because the test napped for
797         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
798         <http://bugs.gnu.org/12820#11>.
799
800 2012-11-07  Jim Meyering  <jim@meyering.net>
801
802         mountlist.c: fix a compilation failure
803         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
804         I introduced while transforming commit v0.0-7683-g613bcb6
805
806 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
807
808         errno: port to LynxOS 178 2.2.2
809         Problem reported by Joel Brobecker in
810         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
811         * doc/posix-headers/errno.texi (errno.h): Document this.
812         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
813         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
814         Supply a string for EILSEQ.
815         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
816
817 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
818
819         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
820         Linux kernel 2.6.39 introduced O_PATH (see
821         <http://lwn.net/Articles/433854/>) and this is a better fallback
822         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
823         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
824         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
825         * lib/fcntl.in.h (O_ACCMODE):
826         * tests/test-fcntl-h.c (main):
827         Do not reject O_ACCMODE merely because it has more than the
828         minimal number of bits, as POSIX allows extensions here.
829
830 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
831
832         mountlist: do not classify a bind-mounted dir entry as "dummy"
833         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
834         the "none"-testing clause.
835         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
836         exception for bind-mounted directories.
837
838 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
839
840         quote: provide a means to escape strings with nul characters
841         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
842         (quote, quote_n): Rename formal arguments for consistency with
843         quotearg.
844
845 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
846
847         test-raise: don't assume 199 is an invalid signal
848         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
849
850         sh-quote-tests: port to Solaris 9
851         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
852         Problem reported by Dagobert Michelsen in
853         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
854
855 2012-10-28  Jim Meyering  <jim@meyering.net>
856
857         maint.mk: rename a new configurable variable
858         * top/maint.mk (_gl_translatable_string_re): Rename from
859         translation-markers: _gl_ prefix to insulate from user Makefile code,
860         and the _re suffix to inform that it's a regular expression.
861
862 2012-10-26  Eric Blake  <eblake@redhat.com>
863
864         maint.mk: let packages tweak sc_po_check pattern
865         * top/maint.mk (sc_po_check): Add translation-markers, to allow
866         finding files with other translation markers.
867
868 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
869
870         euidaccess: speed up 'configure' on GNU hosts
871         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
872         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
873         it's needed only in this case.  Use AC_CHECK_DECLS, not
874         AC_CHECK_DECLS_ONCE.
875         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
876         or AC_REQUIRE for AC_FUNC_GETGROUPS.
877
878         * lib/regexec.c (re_search_internal): Fix grammar in comment.
879
880 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
881
882         fchmodat, fchownat, fstatat: port to non-inlining compilers
883         Problem reported for FreeBSD 9 by Jim Meyering in
884         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
885         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
886         New files, which define FCHMODAT_INLINE etc.
887         * lib/fchmodat.c (FCHMODAT_INLINE):
888         * lib/fchownat.c (FCHOWNAT_INLINE):
889         * lib/fstatat.c (FSTATAT_INLINE):
890         Remove, as chmodat.c etc. now do this.
891         * modules/fchmodat (Files): Add lib/chmodat.c.
892         * modules/fchownat (Files): Add lib/chownat.c.
893         * modules/fstatat (Files): Add lib/statat.c.
894
895 2012-10-15  Jim Meyering  <jim@meyering.net>
896
897         fchmodat.c, fchownat.c: compile-impeding typos
898         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
899         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
900         Introduced in commit v0.0-7636-gd202279.
901
902 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
903
904         fcntl-h: support GNU flags like O_IGNORE_CTTY
905         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
906         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
907         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
908         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
909         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
910         Define to 0 if not already defined.
911         * tests/test-fcntl-h.c: Test these new flags.
912
913 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
914
915         faccessat, etc.: support AT_FDCWD-only use
916         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
917         this function only if its first argument is AT_FDCWD.
918         Emacs wants faccessat for AT_EACCESS but not for any first-arg
919         values other than AT_FDCWD, so it doesn't want all the openat
920         machinery with fchdir etc.
921         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
922         * modules/fstatat, modules/mkdirat, modules/openat (Files):
923         * modules/unlinkat (Files):
924         Remove lib/openat-priv.h, as at-internal supplies this file.
925         Removing this file here allows us to support programs like Emacs
926         that avoid at-internal.
927
928         faccessat: speed up 'configure' on mainstream hosts
929         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
930         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
931         since it's only on unusual platforms that we need to check for
932         'access', and it's better not to slow 'configure' down on all
933         platforms.
934
935         faccessat: port to Solaris 10
936         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
937         Needed on Solaris 10, which doesn't have AT_EACCESS,
938         so we need the Gnulib fcntl.h, which defines it.
939
940 2012-10-14  Pádraig Brady  <P@draigBrady.com>
941         canonicalize: fix C89 compilation
942         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
943         declarations so C89 is supported.  Also remove the comment
944         referencing memorty allocation as the suggested feature could
945         not be implemented as suggested.
946         Reported by Michael Goffioul.
947
948 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
949
950         group-member: omit unnecessary dependencies
951         This is for Emacs, which has its own allocator and where we
952         don't want to use xalloc.
953         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
954         since we no longer use xmalloc.  Do not include stdbool.h, since
955         the changes below happen to remove the only use of bool.
956         (GROUPBUF_SIZE): New constant.
957         (struct group_info): Remove n_groups member.  Add groupbuf member.
958         This lets us get the groups without using malloc, usually.
959         (free_group_info, get_group_info): Adjust to this.
960         (get_group_info): Return the number of groups found, or -1 on error.
961         Use plain malloc not xmalloc, and treat its failure as if there
962         are no groups, as the user already loses in case of error.
963         (group_member): Simplify, based on changes to get_group_info.
964         * modules/group-member (Depends-on): Remove dependencies on
965         xalloc and stdbool.  Add dependency on xalloc-oversized.
966
967 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
968
969         gethrxtime: port to C++
970         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
971
972 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
973
974         ptsname: fix macro-name typo
975         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
976
977 2012-10-03  Simon Josefsson  <simon@josefsson.org>
978
979         inttostr: Relax license.
980         * modules/inttostr (License): Change from LGPL to LGPLv2+.
981
982 2012-10-03  Eric Blake  <eblake@redhat.com>
983
984         ptsname_r: support ptys returned by FreeBSD posix_openpt
985         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
986         lives in /dev/pts/.
987
988 2012-10-02  Eric Blake  <eblake@redhat.com>
989
990         pselect: reject invalid file descriptors
991         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
992         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
993         * modules/pselect (Depends-on): Add dup2.
994         * doc/posix-functions/pselect.texi (pselect): Document this.
995
996         select: reject invalid file descriptors
997         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
998         * lib/select.c (rpl_select) [!win32]: Work around it.
999         * modules/select (Depends-on): Add dup2.
1000         * doc/posix-functions/select.texi (select): Document this.
1001
1002         select: enhance test
1003         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1004         New functions.
1005         (test_function): Enhance test.
1006         (do_select_bad_fd): Avoid any stale errno values.
1007
1008         ptsname: reject invalid file descriptors
1009         http://www.austingroupbugs.net/view.php?id=503
1010         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1012         * modules/stdlib (Makefile.am): Replace witness.
1013         * lib/stdlib.in.h (ptsname): Allow for replacement.
1014         * modules/ptsname (configure.ac): Trigger replacement.
1015         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1016
1017 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1018
1019         hash-pjw-bare: new module
1020         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1021         * lib/hash-pjw-bare.h: Likewise.
1022         * modules/hash-pjw-bare: New file.
1023         * MODULES.html.sh (Misc): Add it.
1024
1025 2012-10-02  Eric Blake  <eblake@redhat.com>
1026
1027         manywarnings: cater to more gcc infelicities
1028         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1029         -Wuninitialized without -O.
1030
1031 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1032
1033         select, poll tests: Make setsockopt invocation effective.
1034         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1035         the bind() call.
1036         * tests/test-select.h (open_server_socket): Likewise.
1037
1038 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1039
1040         sockets, sys_stat: restore AC_C_INLINE
1041         This undoes the 2012-09-22 patch.
1042         * m4/sockets.m4 (gl_SOCKETS):
1043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1044         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1045         and does not support plain 'inline'.  Reported by Bruno Haible in
1046         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1047
1048 2012-09-30  Bruno Haible  <bruno@clisp.org>
1049
1050         localeconv tests: Avoid test failure on OpenIndiana.
1051         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1052         skip the 'grouping' and 'mon_grouping' tests.
1053         Reported by Jim Meyering.
1054
1055 2012-09-30  Bruno Haible  <bruno@clisp.org>
1056
1057         havelib: Follow libtool developments.
1058         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1059         Suggested by Simon Josefsson.
1060
1061 2012-09-29  Jim Meyering  <meyering@redhat.com>
1062
1063         fstatat.c: fix a compile-impeding typo
1064         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1065         Introduced in commit v0.0-7636-gd202279.
1066         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1067
1068 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1069
1070         extern-inline: provide a -Wundef safe config.h
1071         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1072         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1073         to produce a -Wundef warning free config.h.
1074
1075 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1076
1077         hash-pjw: relax license to LGPLv2+
1078         * modules/hash-pjw (License): Relax, with consent of author.
1079
1080 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1081
1082         maint.mk: fix strict vs. lazy variable issues with RELEASE
1083         * top/maint.mk (_equal): New function.
1084         (member_check): Strip the result to avoid spurious spaces.
1085         (url_dir_list): Do not use ifeq, which is strict, as it will
1086         require RELEASE_TYPE to be defined.
1087         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1088         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1089         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1090         (announcement_Cc_beta,announcement_mail_headers_beta)
1091         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1092         (release): Do not depend on $(release-type), as it forces its
1093         evaluation.  Bounce to it.
1094
1095 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1096
1097         maint.mk: formatting changes
1098         * top/maint.mk: Indent bodies of if's.
1099
1100 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1101
1102         maint.mk: factor the validation of RELEASE_TYPE
1103         With help from Jim Meyering.
1104         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1105         * top/maint.mk (_empty, _sp): Move their definition earlier.
1106         (member-check, release-type): New.
1107         Use the latter instead of $(RELEASE_TYPE).
1108         Remove now useless local checks.
1109
1110 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1111
1112         maint.mk: provide "make upload" to ease uploading
1113         See
1114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1115         Do not depend simply on the current $(VERSION), as there may have been
1116         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1117         as "make release-commit" already does.
1118
1119         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1120         "make TYPE".
1121
1122         * top/maint.mk (upload_command, upload, release): New.
1123         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1124         (VERSION): first word of $(RELEASE) is always right.
1125         (emit_upload_commands): Adjust.
1126         * top/README-release: Update.
1127
1128 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1129
1130         maint.mk: silent rules
1131         With help from Stefano Lattarini.
1132         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1133         (announcement): Use $(AM_V_at).
1134
1135 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1136
1137         localename: port gl_locale_name_thread_unsafe to FreeBSD
1138         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1139         and use the simpler FreeBSD implementation on Mac OS X as well.
1140         Original idea suggested by Ed Maste in
1141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1142
1143 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1146         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1147         * lib/mbuiter.c, lib/xsize.c: New files.
1148         * lib/binary-io.h (BINARY_IO_INLINE):
1149         * lib/eealloc.h (EEALLOC_INLINE):
1150         * lib/mbfile.h (MBFILE_INLINE):
1151         * lib/mbiter.h (MBITER_INLINE):
1152         * lib/mbuiter.h (MBUITER_INLINE):
1153         * lib/xsize.h (XSIZE_INLINE):
1154         New macros.
1155         Replace all uses of 'static inline' with them.
1156         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1157         * m4/eealloc.m4 (gl_EEALLOC):
1158         * m4/mbfile.m4 (gl_MBFILE):
1159         * m4/mbiter.m4 (gl_MBITER):
1160         * m4/xsize.m4 (gl_XSIZE):
1161         Do not require AC_C_INLINE.
1162         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1163         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1164         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1165         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1166         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1167         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1168         * modules/binary-io, modules/eealloc, modules/mbfile:
1169         * modules/mbiter, modules/mbuiter:
1170         (Depends-on): Add extern-inline.
1171
1172         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1173         * lib/pipe-filter-aux.c: New file.
1174         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1175         Replace all uses of 'static inline' with it.
1176         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1177         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1178         (filter_retcode): No real need for inline here.
1179         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1180         (Files): Add lib/pipe-filter-aux.c.
1181         (Depends-on): Add extern-inline.
1182         (configure.ac): Do not require AC_C_INLINE.
1183         (lib_SOURCES): Add pipe-filter-aux.c.
1184
1185         fdutimensat: omit unnecessary AC_C_INLINE
1186         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1187
1188         fchmodat, fchownat, fstatat: use extern-inline
1189         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1190         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1191         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1192         New macros.
1193         * lib/openat.h:
1194         Replace all uses of 'static inline' with them.
1195         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1196         * modules/fchmodat, modules/fchownat, modules/fstatat:
1197         * modules/openat-h:
1198         (Depends-on):
1199         Add extern-inline.
1200         (configure.ac): Remove AC_C_INLINE.
1201
1202         acl, mbchar, priv-set: use extern-inline
1203         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1204         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1205         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1206         New macros.
1207         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1208         Replace all uses of 'static inline' with it.
1209         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1210         * m4/acl.m4 (gl_FUNC_ACL):
1211         * m4/mbchar.m4 (gl_MBCHAR):
1212         * m4/priv-set.m4 (gl_PRIV_SET):
1213         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1214         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1215         Add extern-inline.
1216
1217         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1218         * m4/sockets.m4 (gl_SOCKETS):
1219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1220         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1221         environments where it's already guaranteed to work, so we needn't
1222         check for it at 'configure'-time.
1223
1224         tls-tests: omit unnecessary 'inline'
1225         * tests/test-tls.c (perhaps_yield): No longer inline.
1226         Simplicity and portability trump efficiency in test cases.
1227
1228         utimens-tests: avoid unnecessary 'inline'
1229         * modules/fdutimensat-tests (configure.ac):
1230         * modules/futimens-tests (configure.ac):
1231         * modules/utimens-tests (configure.ac):
1232         * modules/utimensat-tests (configure.ac):
1233         Remove AC_C_INLINE.
1234         * tests/test-utimens-common.h (ctime_compare):
1235         No longer inline.  Simplicity and portability trump efficiency here.
1236
1237         misc: don't limit commentary to inline functions
1238         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1239         * lib/xalloc-oversized.h, lib/xsize.h:
1240         Contrast macros to functions in general, not just to inline functions,
1241         when the commentary does not apply only to inline functions.
1242
1243 2012-09-20  Jim Meyering  <meyering@redhat.com>
1244
1245         non-recursive-gnulib-prefix-hack: new module
1246         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1247         the file that originated in Bison.
1248         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1249         largely copied from a snippet that resided in bison's configure.ac.
1250         * modules/non-recursive-gnulib-prefix-hack: New file.
1251         * MODULES.html.sh (Support for maintaining and releasing projects):
1252         Add it.
1253
1254 2012-09-18  Jim Meyering  <meyering@redhat.com>
1255
1256         maint.mk: generalize _gl_tight_scope for non-recursive make
1257         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1258         that *.h would describe additional .h files in the directory
1259         specified by $(_gl_TS_dir).  I.e., add this...
1260         (_gl_TS_other_headers): New variable.
1261
1262         maint.mk: exempt trailing blanks found in "binary" files
1263         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1264         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1265         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1266
1267 2012-09-17  Jim Meyering  <meyering@redhat.com>
1268
1269         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1270         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1271         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1272         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1273
1274 2012-09-17  Jim Meyering  <meyering@redhat.com>
1275
1276         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1277         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1278         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1279         It is not in the same category as "exit (0)" or "exit (1)", and
1280         besides, I know of no symbolic name for that 77.  Reported by
1281         Richard W.M. Jones in
1282         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1283
1284 2012-09-17  Jim Meyering  <meyering@redhat.com>
1285
1286         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1287         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1288         all uses of #define, not just those that start in column 1.
1289         Richard W.M. Jones reported a false positive in
1290         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1291
1292 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1293
1294         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1295         * lib/localcharset.c (locale_charset) [DARWIN7]:
1296         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1297         as these two values are incompatible.  Problem reported by Max Horn.
1298         For more discussion, please see
1299         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1300
1301         doc: document sticky-EOF issue
1302         * doc/posix-functions/fgetc.texi (fgetc):
1303         * doc/posix-functions/fgets.texi (fgets):
1304         * doc/posix-functions/fread.texi (fread):
1305         * doc/posix-functions/fscanf.texi (fscanf):
1306         * doc/posix-functions/getc.texi (getc):
1307         * doc/posix-functions/getchar.texi (getchar):
1308         * doc/posix-functions/scanf.texi (scanf):
1309         Mention that glibc and default Solaris do not conform to
1310         C99 and POSIX-2001 or later, with respect to how getchar
1311         etc. behave when feof reports nonzero.
1312
1313 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1314
1315         poll: fix poll(0, NULL, msec)
1316         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1317         but nfd is 0.  In that case poll should behave like select.
1318
1319 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1320             Paolo Bonzini <bonzini@gnu.org>
1321
1322         poll: fix for systems that can't recv() on a non-socket
1323         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1324         is readable.  In this case POLLHUP will not be supported.
1325         * doc/posix-functions/poll.texi: Document this.
1326
1327 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1328
1329         poll/select: document portability problems not fixed by Gnulib.
1330         * doc/posix-functions/poll.texi: poll does not work well on
1331         pipes under Windows.  It has the same limitations as select on
1332         BeOS.
1333         * doc/posix-functions/select.texi: select does not work well
1334         on pipes under Windows.
1335
1336 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1337
1338         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1339         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1340         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1341         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1342
1343 2012-09-06  Eric Blake  <eblake@redhat.com>
1344
1345         net_if: give more details about the bug being fixed
1346         * doc/posix-headers/net_if.texi: Add clarification.
1347
1348 2012-09-05  Eric Blake  <eblake@redhat.com>
1349
1350         net_if: new module
1351         * modules/net_if: New module, borrowing ideas from netinet_in.
1352         * m4/net_if_h.m4: New file.
1353         * lib/net_if.in.h: Likewise.
1354         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1355         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1356         * tests/test-net_if.c: Make function checks conditional.
1357         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1358
1359 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1360
1361         readutmp: fix non-portable UT_PID use
1362         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1363         Use `UT_PID (u) > 0' as absolute condition.
1364
1365 2012-09-04  Jim Meyering  <meyering@redhat.com>
1366
1367         fts: reduce two or more trailing spaces to just one, usually
1368         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1369         or more slashes, trim all but the final one.  But if a name consists
1370         solely of two slashes, don't modify it.  If it consists solely of
1371         three or more slashes, strip all but one.
1372
1373         This is part of the solution to a minor problem with rm:
1374         it would print a bogus ELOOP diagnostic when failing to remove
1375         the slash-decorated name of a symlink-to-directory:
1376
1377             $ mkdir d && ln -s d s && env rm -r s/
1378             rm: cannot remove 's': Too many levels of symbolic links
1379
1380         With the change below and a trivial don't-trim-trailing-slashes
1381         adjustment to remove.c, it does this:
1382
1383             $ env rm -r s/
1384             rm: cannot remove 's/': Not a directory
1385
1386         Improved by: Eric Blake
1387
1388         fts: when there is no risk of overlap, use memcpy, not memmove
1389         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1390
1391 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         stdbool: be more compatible with mixed C/C++ compiles
1394         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1395         Define to bool, true, false, respectively, as GCC's builtin
1396         stdbool.h does.  Problem reported by Michael Goffioul in
1397         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1398
1399 2012-08-28  Jim Meyering  <meyering@redhat.com>
1400
1401         revert last change: it was not needed
1402         * tests/test-vc-list-files-git.sh: There's already a test for
1403         a working git, just below.
1404
1405 2012-08-28  Jim Meyering  <meyering@redhat.com>
1406
1407         tests: test-vc-list-files-git.sh: skip if git is not available
1408         * tests/test-vc-list-files-git.sh: Skip this test when git is
1409         not available.
1410
1411 2012-08-26  Bruno Haible  <bruno@clisp.org>
1412
1413         gnulib-tool: Remove no-op option --no-changelog.
1414         * gnulib-tool (func_usage): Don't mention --no-changelog.
1415         (do_changelog): Remove variable.
1416         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1417
1418 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         doc: remove fdl-1.2.texi
1421         It is no longer used or maintained, and its use of @acronym
1422         is problematic.  See the thread containing
1423         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1424         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1425         * doc/old-licenses/fdl-1.2.texi: Remove.
1426
1427         execinfo: port to FreeBSD
1428         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1429         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1431         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1432
1433 2012-08-23  Jim Meyering  <meyering@redhat.com>
1434
1435         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1436         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1437         to placate gcc's -Wold-style-declaration.
1438
1439 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1440
1441         doc: do not use @acronym
1442         * doc/inet_ntoa.texi (inet_ntoa):
1443         * doc/parse-datetime.texi (Seconds since the Epoch)
1444         (Specifying time zone rules):
1445         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1446         Don't use @acronym.  Problem reported by John Darlington in
1447         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1448
1449 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1450
1451         stdnoreturn: port to newer GCCs
1452         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1453         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1454         Problem reported by Jim Meyering in
1455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1456         Also, rename the 'test' function to a void a clash with the
1457         already-supplied 'main' function; this fixes a bug that incorrectly
1458         rejected GCC 4.7.1's <stdnoreturn.h>.
1459         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1460         Document GCC problem.
1461
1462 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1463
1464         pipe-filter: fix comment typo
1465         * lib/pipe-filter.h: Mention correct function.
1466
1467 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1468
1469         execinfo: new module
1470         This is for Emacs.  Currently, it provides a no-effect stub
1471         on all platforms where it does not already work.
1472         It already works on glibc-based systems, and on Solaris 11.
1473         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1474         New files.
1475         * doc/glibc-headers/execinfo.texi (execinfo.h):
1476         * MODULES.html.sh (Misc): Document it.
1477
1478 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1479
1480         extern-inline: support old GCC 'inline'
1481         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1482         if available.  This applies to GCC versions 2.7 through 4.2, or
1483         when newer GCC is using -fgnu89-inline.  The goal is to address
1484         some of the performance issues mentioned by Bruno Haible in
1485         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1486
1487 2012-08-20  Eric Blake  <eblake@redhat.com>
1488
1489         maint.mk: avoid redundant file name in message
1490         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1491         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1492         (sc_makefile_path_separator_check): Remove bogus $(ME).
1493
1494 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1495
1496         timer-time: fix link order when static linking on glibc
1497         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1498         _after_ -lrt so that it's significant.
1499
1500 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         timespec: omit unnecessary AC_C_INLINE
1503         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1504
1505         stat-time: omit unnecessary AC_C_INLINE
1506         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1507         Do not require AC_C_INLINE.
1508
1509         ignore-value: omit unnecessary AC_C_INLINE
1510         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1511
1512         sys_select: avoid 'static inline'
1513         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1514
1515         mktime: avoid 'static inline'
1516         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1517         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1518
1519 2012-08-19  Bruno Haible  <bruno@clisp.org>
1520
1521         gnulib-tool: Improve coding style.
1522         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1523         func_emit_lib_Makefile_am.
1524         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1525
1526 2012-08-19  Bruno Haible  <bruno@clisp.org>
1527
1528         gnulib-tool: Fix indentation.
1529         * gnulib-tool (func_import): Fix indentation.
1530
1531 2012-08-19  Bruno Haible  <bruno@clisp.org>
1532
1533         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1534         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1535         on the list of removed files.
1536
1537 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1538
1539         test-parse-datetime: avoid glibc leap-second glitch
1540         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1541         with the 2012 rules.  Problem reported by Bruce Dubbs in
1542         <http://bugs.gnu.org/12206>.
1543
1544 2012-08-14  Bruno Haible  <bruno@clisp.org>
1545
1546         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1547         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1548         from argument.
1549         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1550
1551 2012-08-14  Eric Blake  <eblake@redhat.com>
1552
1553         ldexp: relax license
1554         * modules/ldexp (License): Trivial relax, since the module only
1555         provides a permissively licensed m4 file.
1556
1557 2012-08-13  Bruno Haible  <bruno@clisp.org>
1558
1559         gnulib-tool: Fix persistence of --witness-c-macro option.
1560         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1561         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1562
1563 2012-08-11  Eric Blake  <eblake@redhat.com>
1564
1565         count-leading-zeros: use a lookup table on non-gcc compilers
1566         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1567         alternate implementation, suggested by Jim Meyering.
1568
1569 2012-08-10  Eric Blake  <eblake@redhat.com>
1570
1571         count-leading-zeros: new module
1572         * modules/count-leading-zeros: New module.
1573         * m4/count-leading-zeros.m4: New file.
1574         * lib/count-leading-zeros.h: Likewise.
1575         * modules/count-leading-zeros-tests: New test.
1576         * tests/test-count-leading-zeros.c: New file.
1577         * MODULES.html.sh (Integer arithmetic functions): Document it.
1578
1579 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1580             Jim Meyering  <meyering@redhat.com>
1581
1582         maintainer-makefile: Fix syntax error with dash.
1583         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1584         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1585
1586 2012-08-05  Jim Meyering  <meyering@redhat.com>
1587
1588         extern-inline: also ignore -Wmissing-declarations
1589         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1590         required with gcc-4.8.0-to-be.
1591
1592         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1593         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1594         for /error ?([^,]*)/.  This avoids false-positives for strings like
1595         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1596
1597 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1598
1599         gnumakefile: better interaction with Automake-NG
1600         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1601         Automake-NG always contain a definition of VPATH, even in non-VPATH
1602         builds (its value being simply '.' in that case).  So, in the
1603         'clean-GNUmakefile' rule, to determine whether running under a
1604         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1605         '$(VPATH)' expands to the empty string.
1606
1607 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1608
1609         base64: Use extern C scope in header file, for C++.
1610         * lib/base64.h: Add C++ namespace protection.
1611
1612 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         stat-time, timespec, u64: support naive out-of-dir builds
1615         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1616         Use '#include "foo.h"', not '#include <foo.h>', when including
1617         one's own interface.  This works better when configuring with
1618         out-of-directory builds, since packages need not add an
1619         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1620
1621 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1622
1623         utimens: use extern-inline
1624         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1625         * lib/utimens.h: Add copyright notice, since this is now large enough
1626         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1627         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1628         * modules/utimens (Depends-on): Add extern-inline.
1629
1630         u64: use extern-inline
1631         * lib/u64.c: New file.
1632         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1633         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1634         * modules/u64 (Files): Add lib/u64.c.
1635         (Depends-on): Add extern-inline.
1636         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1637         does that now.
1638         (lib_SOURCES): Add u64.c.
1639
1640         timespec: use extern-inline
1641         * lib/timespec.c: New file.
1642         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1643         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1644         * modules/timespec (Files): Add lib/timespec.c.
1645         (Depends-on): Add extern-inline.
1646         (lib_SOURCES): Add timespec.c.
1647
1648         stat-time: use extern-inline
1649         * lib/stat-time.c: New file.
1650         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1651         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1652         * modules/stat-time (Files): Add lib/stat-time.c.
1653         (Depends-on): Add extern-inline.
1654         (lib_SOURCES): Add stat-time.c.
1655
1656         extern-inline: new module
1657         * modules/extern-inline, m4/extern-inline.m4: New files.
1658         This is for better support of 'extern inline' a la ISO C99,
1659         with a portable alternative on compilers that do not support
1660         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1661         of the Emacs executable, when compiled with debugging disabled,
1662         which is a typical way that Emacs is built while developing.
1663
1664 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1665
1666         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1667         * build-aux/do-release-commit-and-tag: Move variable definitions
1668         together.
1669         ($branch): Instead of defaulting to "master", default to the current
1670         branch (as gnu-web-doc-update does).
1671         (help): Display the current values of the option arguments.
1672         * top/maint.mk (release-commit): New.
1673         * top/README-release: Simplify the corresponding step.
1674
1675 2012-07-30  Eric Blake  <eblake@redhat.com>
1676
1677         passfd: fix comment on recvfd
1678         * lib/passfd.c (recvfd): Fix comment.
1679         Reported by Jann Horn <jannhorn@googlemail.com>.
1680
1681 2012-07-30  Jim Meyering  <meyering@redhat.com>
1682
1683         maint.mk: avoid a sub-shell
1684         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1685
1686 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1687
1688         maint.mk: use silent-rules support from Automake
1689         * top/maint.mk (news-check, vc-diff-check, announcement)
1690         (no-submodule-changes, alpha beta stable, release-prep)
1691         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1692
1693 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1694
1695         maint.mk: provide a web-manual-update target
1696         * top/maint.mk: here.
1697         * top/README-release: Use it to simplify the web manual update step.
1698
1699 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1700
1701         README-release: shorten the circuit to post a news
1702         * top/README-release: Point directly to the news submission form.
1703
1704 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1705
1706         gnu-web-doc-update: fix --help
1707         * build-aux/gnu-web-doc-update: The information "top level" was written
1708         twice.
1709
1710 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1711
1712         maint.mk: absolute VPATH issue
1713         * top/maint.mk (release-prep): Help Git find .git/.
1714         From Jim Meyering.
1715
1716 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1717
1718         gitlog-to-changelog: fix previous change
1719         * build-aux/gitlog-to-changelog: Fix condition.
1720         Add missing ";".
1721
1722 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1723
1724         gitlog-to-changelog: don't expect .git to be in $srcdir
1725         Reported by Bruno Haible.
1726         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1727         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1728         Use it.
1729
1730 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1731
1732         maint.mk: absolute VPATH build fix
1733         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1734         $(srcdir) is not a parent of $(builddir).
1735
1736 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1737
1738         clean-temp: Fix memory leak.
1739         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1740         'files' members of tmpdir.
1741
1742 2012-07-27  Jim Meyering  <meyering@redhat.com>
1743
1744         maint.mk: new rule: refresh-gnulib-patches
1745         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1746         Use this rule to refresh them.
1747         * top/maint.mk (refresh-gnulib-patches): New rule.
1748
1749 2012-07-24  Bruno Haible  <bruno@clisp.org>
1750
1751         gnulib-tool: Fix handling of inctests variable.
1752         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1753         Reported by Nick Bowler <nbowler@elliptictech.com>.
1754
1755 2012-07-22  Bruno Haible  <bruno@clisp.org>
1756
1757         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1758         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1759         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1760         Remove exemption for getpass.h.
1761         Suggested by Eric Blake.
1762
1763 2012-07-20  Eric Blake  <eblake@redhat.com>
1764
1765         verify: document conflict with -Wnested-externs
1766         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1767
1768         maint.mk: forbid exit(-1)
1769         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1770
1771 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1772
1773         fsusage: port back to Solaris
1774         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1775         error (fsd not declared) on Solaris 10.  Reported privately by
1776         Andrew Borodin.
1777
1778 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1779
1780         gnu-web-doc-update: fix error messages
1781         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1782
1783         gnu-web-doc-update: check the requirements.
1784         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1785         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1786         * build-aux/bootstrap (find_tool): Comment change.
1787
1788 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1789
1790         maint.mk: minor simplication.
1791         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1792         for default values.
1793
1794 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1795
1796         gitlog-to-changelog: VPATH build issues
1797         If builddir is not a subdirectory of srcdir, running git from it will
1798         fail.
1799         * build-aux/gitlog-to-changelog (--srcdir): New option.
1800
1801 2012-07-15  Bruno Haible  <bruno@clisp.org>
1802
1803         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1804         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1805         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1806         Remove exemption for fpending.h.
1807         Suggested by Eric Blake.
1808
1809 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1810
1811         pthread_sigmask: fix bug on FreeBSD 9
1812         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1813         Include string.h.
1814         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1815         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1816         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1817         but pthread_sigmask (1729, NULL, NULL) returns zero.
1818         See <http://bugs.gnu.org/11884>.
1819         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1820         by inspecting whether the main call changed the old mask.
1821
1822 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1823
1824         README-release: make it more legible
1825         * top/README-release: Improve typography slightly.
1826
1827 2012-07-15  Jim Meyering  <meyering@redhat.com>
1828
1829         maint: require that each sc_... command start with "@"
1830         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1831         "make sc_maint" helps us avoid this nit.
1832
1833 2012-07-15  Jim Meyering  <meyering@redhat.com>
1834
1835         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1836         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1837
1838 2012-07-13  Eric Blake  <eblake@redhat.com>
1839
1840         maint.mk: new syntax check for HAVE_DECL checks
1841         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1842         * cfg.mk
1843         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1844         Exempt some false positives.
1845         Based on a report by Karel Zak.
1846
1847         argp: make HAVE_DECL usage consistent
1848         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1849         macros, not whether they are defined.
1850         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1851         convention with other declaration checks.
1852         Reported by Karel Zak, with suggestions from Paul Eggert.
1853
1854         stat-time: relax license to LGPLv2+
1855         * modules/stat-time (License): Relax, with consent of all authors.
1856
1857         strndup: fix m4 usage error
1858         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1859         defined, to either 0 or 1.
1860         Reported by Karel Zak.
1861
1862 2012-07-11  Jim Meyering  <meyering@redhat.com>
1863
1864         maint: enable the sc_avoid_if_before_free syntax-check rule
1865         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1866         (if_before_free_offenders_): Define.
1867         (if_before_free_basename_re_): Define.
1868         Exempt current files with useless if-before-free.
1869
1870 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1871
1872         gettext: do not assume '#define ... defined ...' behavior
1873         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1874         Do not use '#define FOO ... defined BAR ...', as the C standard says
1875         it's not portable to expect that this works after macro expansion.
1876         Problem reported for gzip by Steven M. Schweda in
1877         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1878
1879 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1880
1881         getloadavg: clean out old Emacs and Autoconf cruft
1882         See Glenn Morris in <http://bugs.gnu.org/11905>.
1883         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1884         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1885         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1886         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1887
1888 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1889
1890         bootstrap: let warn be like tests/init.sh's warn_
1891         Reported by Jim Meyering.
1892         * build-aux/bootstrap (warn): Remove, replaced by...
1893         (warnf_, warn_): these.
1894         Adjust callers.
1895         Shorten messages that no longer fit in 80 columns.
1896
1897 2012-07-09  Bruno Haible  <bruno@clisp.org>
1898
1899         getopt: Simplify after Emacs changed.
1900         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1901         (gl_GETOPT_IFELSE): Remove macro.
1902
1903 2012-07-09  Jim Meyering  <meyering@redhat.com>
1904
1905         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1906         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1907
1908         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1909         Bugs in both of those conspired to make the
1910         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1911         _sc_search_regexp's handling of non-empty $in_files would filter
1912         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1913         choice of in_files value meant there would be no match in most
1914         projects, due to the presence of two or more Makefile.in files.
1915         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1916         Fix a bug in how a non-empty $$in_files was processed:
1917         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1918         in spite of the name, it's a regexp, not a list of file names.
1919
1920 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         getloadavg, getopt: fix commentary re configure.in
1923         Autoconf is deprecating the name 'configure.in', so change it to
1924         to the new name 'configure.ac' in a couple of places.
1925         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1926         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1927         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1928         Emacs has renamed it to configure.ac, and it no longer refers
1929         to these macros anyway.
1930
1931         timespec: mark functions with const attributes
1932         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1933         Mark with _GL_ATTRIBUTE_CONST.
1934
1935 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1936
1937         canonicalize[-lgpl]: handle "guessing" values when cross-building
1938         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1939         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1940         matches "*yes" instead of just "yes".  Regression introduced in commit
1941         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1942
1943 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1944             Bruno Haible  <bruno@clisp.org>
1945
1946         canonicalize: make the right guess when cross-compiling to GNU
1947         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1948         determine whether cross-compiling to glibc systems, so as to
1949         include GNU/Hurd.
1950
1951 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1952
1953         timespec-sub: avoid duplicate include
1954         * lib/timespec-sub.c: Do not include <config.h> twice.
1955         Reported by Juanma Barranquero.
1956
1957 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1958
1959         bootstrap: use a more consistent error reporting scheme
1960         * build-aux/bootstrap (warn, die): New.
1961         Use them.
1962
1963 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1964
1965         sys_time: allow too-wide tv_sec
1966         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1967         timeval even if tv_sec is wider than time_t.  This allows
1968         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1969         as without this patch gnulib replaces struct timeval
1970         and OpenBSD futimes therefore has a type mismatch.
1971         * doc/posix-headers/sys_time.texi: Mention this.
1972
1973         pthread: check for both pthread_create and pthread_join
1974         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1975         alter the check so that it tests for both pthread_create and
1976         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1977         Suggested by Bruno Haible and Richard Yao in
1978         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1979
1980         parse-datetime: doc tuneup
1981         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1982         spacing issues.
1983
1984 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1985
1986         do-release-commit-and-tag: fix the previous commit
1987         * build-aux/do-release-commit-and-tag: Actually the test was right,
1988         but the comment and the error message were misleading.
1989         Fix comment, and improve error message.
1990         Perform check first, so that NEWS is not modified uselessly.
1991
1992         do-release-commit-and-tag: fix typo
1993         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1994         _not_ start with a stub.
1995
1996 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1997
1998         pthread: check for pthread_create, not pthread_join
1999         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2000         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2001         pthread_join in libc.  I hope this removes the need for all the
2002         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2003         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2004
2005 2012-07-04  Jim Meyering  <meyering@redhat.com>
2006
2007         parse-datetime: fix failure to diagnose invalid input
2008         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2009         rather than diagnosing the invalid input.  Now it reports this:
2010         date: invalid date '\260'
2011         * lib/parse-datetime.y (to_uchar): Define.
2012         (yylex): Don't sign-extend "other" bytes.
2013         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2014         Thanks to Bruno Haible for the patch to this file.
2015         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2016         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2017
2018 2012-07-03  Jim Meyering  <meyering@redhat.com>
2019
2020         bootstrap: do not require now-removed build-aux/missing
2021         Now that build-aux/missing is, er, missing, bootstrap would
2022         silently fail.
2023         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2024         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2025         no longer part of gnulib.
2026         Diagnose the failure.
2027
2028 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2029
2030         alloca: add support for HP NonStop TNS/E native
2031         * lib/alloca.in.h (alloca): Support the new host.
2032         From a suggestion by Joachim Schmitz in
2033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2034
2035 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2036
2037         fsusage: remove code not needed on non GNU/Linux systems.
2038
2039         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2040         Don't include headers no longer needed in this case.
2041         * lib/fsusage.c [STAT_STATVFS &&
2042         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2043         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2044
2045 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         fsusage: include files needed for glibc 2.6 fallback
2048         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2049         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2050         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2051         Problem reported by Ludovic Courtès in
2052         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2053
2054         fsusage: avoid needless check on GNU/Linux
2055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2056         on GNU/Linux systems, since it can't possibly work.
2057
2058 2012-07-01  Bruno Haible  <bruno@clisp.org>
2059
2060         log: Fix an autoconf >= 2.64 warning.
2061         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2062         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2063
2064 2012-06-28  Bruno Haible  <bruno@clisp.org>
2065
2066         log10f: Fix possible configuration problem.
2067         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2068         $LOGF_LIBM.
2069         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2070
2071 2012-06-28  Bruno Haible  <bruno@clisp.org>
2072
2073         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2074         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2075         not gl_cv_func_unlink_works.
2076         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2077
2078 2012-06-27  Eric Blake  <eblake@redhat.com>
2079
2080         config: drop scripts that automake says are not independent
2081         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2082         * build-aux/elisp-comp: Delete.
2083         * build-aux/missing: Likewise.
2084         * build-aux/ylwrap: Likewise.
2085         * modules/elisp-comp: Likewise.
2086         * MODULES.html.sh: Drop mention of elisp-comp.
2087         * NEWS: Mention this.
2088
2089 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         root-uid: new module
2092         This is for portability to Tandem's NonStop Kernel.
2093         * lib/root-uid.h, modules/root-uid: New files.
2094         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2095         * lib/write-any-file.c, tests/test-sethostname2.c:
2096         Include "root-uid.h".
2097         * lib/euidaccess.c (euidaccess):
2098         * lib/pt_chown.c (main):
2099         * lib/unlinkdir.c (cannot_unlink_dir):
2100         * lib/write-any-file.c (can_write_any_file):
2101         * m4/mknod.m4 (gl_FUNC_MKNOD):
2102         * tests/test-sethostname2.c (geteuid, main):
2103         Don't assume ROOT_UID == 0.
2104         * modules/euidaccess (Depends-on):
2105         * modules/pt_chown (Depends-on):
2106         * modules/sethostname-tests (Depends-on):
2107         * modules/unlinkdir (Depends-on):
2108         * modules/write-any-file (Depends-on):
2109         Add root-uid.
2110
2111         regex: use locale-independent comparison for codeset name
2112         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2113         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2114         for codeset name.
2115         * lib/regex_internal.h: Do not include <strings.h>, since we
2116         no longer use strcasecmp.
2117         * modules/regex (Depends-on): Remove strcase.
2118
2119 2012-06-23  Bruno Haible  <bruno@clisp.org>
2120
2121         getopt-posix: No longer guarantee that option processing is resettable.
2122         * doc/posix-functions/getopt.texi: Drop description of problem with
2123         internal state. Fix info about mingw and msvc9.
2124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2125         option processing by getopt(). Run three test programs instead of one.
2126         Simplify cross-compilation guess.
2127         * NEWS: Mention the change.
2128         Reported by Rich Felker <dalias@aerifal.cx>.
2129
2130 2012-06-26  Bruno Haible  <bruno@clisp.org>
2131
2132         argp, regex: Ensure strcasecmp gets declared.
2133         * lib/argp-help.c: Include <strings.h>.
2134         * lib/regex_internal.h: Likewise.
2135         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2136
2137 2012-06-24  Bruno Haible  <bruno@clisp.org>
2138
2139         ptsname_r: Make it consistent with ptsname on AIX.
2140         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2141         implementation as for OSF/1.
2142         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2143         a pty master.
2144
2145         ptsname_r: Make it consistent with ptsname on OSF/1.
2146         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2147         OSF/1.
2148
2149 2012-06-24  Bruno Haible  <bruno@clisp.org>
2150
2151         ttyname_r: Fix result on OSF/1, Solaris.
2152         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2153
2154 2012-06-24  Bruno Haible  <bruno@clisp.org>
2155
2156         ptsname_r: Add support for Solaris.
2157         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2158         Solaris.
2159
2160         ptsname_r: Fix test failure on native Windows.
2161         * modules/ptsname_r (Depends-on): Add isatty.
2162
2163         ptsname_r: Fix test failures on IRIX, Solaris.
2164         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2165         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2166         accordingly.
2167         * lib/ptsname_r.c: Include <fcntl.h>.
2168         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2169         set errno if fd is invalid.
2170         * tests/test-isatty.c (main): Update comments.
2171
2172 2012-06-24  Bruno Haible  <bruno@clisp.org>
2173
2174         ptsname test: Extend test.
2175         * tests/test-ptsname.c: Include <errno.h>.
2176         (main): Test behaviour with invalid file descriptor.
2177
2178 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2179
2180         time: fix obsolete comment
2181         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2182         reference to HAVE_STRUCT_TIMESPEC in comment.
2183
2184 2012-06-23  Bruno Haible  <bruno@clisp.org>
2185
2186         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2188         does not handle abbreviated long options with equivalent
2189         disambiguations, set gl_replace_getopt to yes.
2190         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2191
2192 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2193
2194         time_r: fix typo that always overrode localtime_r decl
2195         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2196         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2197         not in a standard include.
2198
2199 2012-06-22  Bruno Haible  <bruno@clisp.org>
2200
2201         Write "Mac OS X" instead of "MacOS X".
2202         * README: Write "Mac OS X" instead of "MacOS X".
2203         * build-aux/bootstrap: Likewise.
2204         * build-aux/install-reloc: Likewise.
2205         * lib/acl-internal.h: Likewise.
2206         * lib/acl_entries.c: Likewise.
2207         * lib/argp-ba.c: Likewise.
2208         * lib/argp-pv.c: Likewise.
2209         * lib/config.charset: Likewise.
2210         * lib/copy-acl.c: Likewise.
2211         * lib/csharpexec.c: Likewise.
2212         * lib/euidaccess.c: Likewise.
2213         * lib/fbufmode.c: Likewise.
2214         * lib/fflush.c: Likewise.
2215         * lib/file-has-acl.c: Likewise.
2216         * lib/filemode.h: Likewise.
2217         * lib/fpurge.c: Likewise.
2218         * lib/freadable.c: Likewise.
2219         * lib/freadahead.c: Likewise.
2220         * lib/freading.c: Likewise.
2221         * lib/freadptr.c: Likewise.
2222         * lib/freadseek.c: Likewise.
2223         * lib/fseeko.c: Likewise.
2224         * lib/fseterr.c: Likewise.
2225         * lib/fsusage.c: Likewise.
2226         * lib/fwritable.c: Likewise.
2227         * lib/fwriting.c: Likewise.
2228         * lib/get-rusage-as.c: Likewise.
2229         * lib/get-rusage-data.c: Likewise.
2230         * lib/getdomainname.c: Likewise.
2231         * lib/idpriv-drop.c: Likewise.
2232         * lib/idpriv-droptemp.c: Likewise.
2233         * lib/localcharset.c: Likewise.
2234         * lib/locale.in.h: Likewise.
2235         * lib/localename.c: Likewise.
2236         * lib/mbsrtowcs-state.c: Likewise.
2237         * lib/nproc.c: Likewise.
2238         * lib/passfd.c: Likewise.
2239         * lib/posix_openpt.c: Likewise.
2240         * lib/printf-parse.c: Likewise.
2241         * lib/progreloc.c: Likewise.
2242         * lib/safe-read.h: Likewise.
2243         * lib/safe-write.h: Likewise.
2244         * lib/sched.in.h: Likewise.
2245         * lib/set-mode-acl.c: Likewise.
2246         * lib/signal.in.h: Likewise.
2247         * lib/stdint.in.h: Likewise.
2248         * lib/stdio-impl.h: Likewise.
2249         * lib/stdlib.in.h: Likewise.
2250         * lib/strtod.c: Likewise.
2251         * lib/sys_select.in.h: Likewise.
2252         * lib/tcgetsid.c: Likewise.
2253         * lib/unistd.in.h: Likewise.
2254         * lib/unlockpt.c: Likewise.
2255         * lib/vasnprintf.c: Likewise.
2256         * lib/vma-iter.c: Likewise.
2257         * lib/wcsrtombs-state.c: Likewise.
2258         * m4/acl.m4: Likewise.
2259         * m4/acosl.m4: Likewise.
2260         * m4/asinl.m4: Likewise.
2261         * m4/atanl.m4: Likewise.
2262         * m4/c-stack.m4: Likewise.
2263         * m4/cosl.m4: Likewise.
2264         * m4/expl.m4: Likewise.
2265         * m4/extensions.m4: Likewise.
2266         * m4/fdatasync.m4: Likewise.
2267         * m4/fmal.m4: Likewise.
2268         * m4/frexp.m4: Likewise.
2269         * m4/frexpf.m4: Likewise.
2270         * m4/frexpl.m4: Likewise.
2271         * m4/fsusage.m4: Likewise.
2272         * m4/getdomainname.m4: Likewise.
2273         * m4/getloadavg.m4: Likewise.
2274         * m4/getopt.m4: Likewise.
2275         * m4/gettext.m4: Likewise.
2276         * m4/gnulib-common.m4: Likewise.
2277         * m4/intdiv0.m4: Likewise.
2278         * m4/intlmacosx.m4: Likewise.
2279         * m4/largefile.m4: Likewise.
2280         * m4/ldexpl.m4: Likewise.
2281         * m4/link-follow.m4: Likewise.
2282         * m4/locale-ar.m4: Likewise.
2283         * m4/locale-fr.m4: Likewise.
2284         * m4/locale-ja.m4: Likewise.
2285         * m4/locale-tr.m4: Likewise.
2286         * m4/locale-zh.m4: Likewise.
2287         * m4/locale_h.m4: Likewise.
2288         * m4/lock.m4: Likewise.
2289         * m4/logl.m4: Likewise.
2290         * m4/mathfunc.m4: Likewise.
2291         * m4/minus-zero.m4: Likewise.
2292         * m4/mktime.m4: Likewise.
2293         * m4/mmap-anon.m4: Likewise.
2294         * m4/multiarch.m4: Likewise.
2295         * m4/nanosleep.m4: Likewise.
2296         * m4/nocrash.m4: Likewise.
2297         * m4/poll.m4: Likewise.
2298         * m4/printf-frexpl.m4: Likewise.
2299         * m4/printf.m4: Likewise.
2300         * m4/signbit.m4: Likewise.
2301         * m4/sinl.m4: Likewise.
2302         * m4/sqrtl.m4: Likewise.
2303         * m4/strerror_r.m4: Likewise.
2304         * m4/tanl.m4: Likewise.
2305         * m4/threadlib.m4: Likewise.
2306         * m4/ttyname_r.m4: Likewise.
2307         * m4/unlink.m4: Likewise.
2308         * m4/visibility.m4: Likewise.
2309         * m4/wcwidth.m4: Likewise.
2310         * tests/minus-zero.h: Likewise.
2311         * tests/test-alloca-opt.c: Likewise.
2312         * tests/test-copy-acl.sh: Likewise.
2313         * tests/test-copy-file.sh: Likewise.
2314         * tests/test-fdatasync.c: Likewise.
2315         * tests/test-file-has-acl.sh: Likewise.
2316         * tests/test-flock.c: Likewise.
2317         * tests/test-fsync.c: Likewise.
2318         * tests/test-localename.c: Likewise.
2319         * tests/test-malloca.c: Likewise.
2320         * tests/test-nonblocking-pipe.h: Likewise.
2321         * tests/test-nonblocking-socket.h: Likewise.
2322         * tests/test-openpty.c: Likewise.
2323         * tests/test-posix_openpt.c: Likewise.
2324         * tests/test-ptsname.c: Likewise.
2325         * tests/test-ptsname_r.c: Likewise.
2326         * tests/test-sameacls.c: Likewise.
2327         * tests/test-select.h: Likewise.
2328         * tests/test-set-mode-acl.sh: Likewise.
2329         * tests/test-snprintf-posix.h: Likewise.
2330         * tests/test-sprintf-posix.h: Likewise.
2331         * tests/test-strtod.c: Likewise.
2332         * tests/test-time.c: Likewise.
2333         * tests/test-vasnprintf-posix.c: Likewise.
2334         * tests/test-vasprintf-posix.c: Likewise.
2335         * doc/acl-resources.txt: Likewise.
2336         * doc/**/*.texi: Likewise.
2337         Reported by Max Horn <max@quendi.de>.
2338
2339 2012-06-22  Bruno Haible  <bruno@clisp.org>
2340
2341         grantpt: Relax requirement regarding invalid file descriptors.
2342         * lib/grantpt.c: Don't include <fcntl.h>.
2343         (grantpt): Don't verify the validity of the file descriptor.
2344         * modules/grantpt (Depends-on): Remove fcntl-h.
2345         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2346         file descriptors.
2347         * doc/posix-functions/grantpt.texi: Document more platforms on which
2348         grantpt succeeds for invalid file descriptors.
2349         Reported by Rich Felker <dalias@aerifal.cx>.
2350
2351 2012-06-22  Bruno Haible  <bruno@clisp.org>
2352
2353         fbufmode test: Don't test unportable behaviour.
2354         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2355         (main): Invoke it three times.
2356         Reported by Szabolcs Nagy <nsz@port70.net>
2357         and Rich Felker <dalias@aerifal.cx>.
2358
2359 2012-06-21  Bruno Haible  <bruno@clisp.org>
2360
2361         gnulib-tool: Refactor inctests variable.
2362         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2363         (func_modules_transitive_closure,
2364         func_modules_transitive_closure_separately,
2365         func_import, func_create_testdir): Update.
2366
2367         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2368         * gnulib-tool: Accept option --without-tests.
2369         (func_usage): Document --without-tests option. Rearrange.
2370         (inctests): Normalize according to the mode.
2371         * NEWS: Mention the change.
2372         Suggested by Simon Josefsson.
2373
2374 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2375
2376         parse-duration test: Avoid spurious output.
2377         * tests/test-parse-duration.sh: Reindent with leading tabs.
2378
2379 2012-06-21  Jim Meyering  <meyering@redhat.com>
2380
2381         maint: disable the strncpy prohibition
2382         * cfg.mk: Do not prohibit strncpy here.
2383
2384 2012-06-21  Bruno Haible  <bruno@clisp.org>
2385
2386         nonblocking: Avoid compilation error on mingw64.
2387         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2388         fscanf.
2389         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2390         * modules/vfscanf (configure.ac): Likewise.
2391         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2392         definition only if stdio.h has prepared it.
2393         Reported by Daniel P. Berrange <berrange@redhat.com>.
2394
2395 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2396
2397         gnulib-tool: Use readlink if it is available.
2398         * gnulib-tool (func_readlink): Choose function more appropriately.
2399
2400 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         posixtm-tests: port to buggy compiler
2403         Problem reported by Simon Josefsson in
2404         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2405         * modules/posixtm-tests (Depends-on): Add stdint.
2406         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2407         Now of type int_least64_t, not int64_t, both because that's
2408         what INT64_C returns and because int_least64_t works even
2409         on 72-bit hosts.
2410         (T): Use INT64_C on constants outside the traditional int range,
2411         to work around compiler bug noted by Simon.
2412
2413         mktime: fix integer overflow in 'configure'-time test
2414         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2415         after integer overflow.  Problem reported by Rich Felker in
2416         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2417         Also, don't look for further instances of a bug if we've already
2418         found one instance; this helps 'configure' run faster.
2419
2420 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2421
2422         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2423         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2424         GetVersionEx correctly.
2425         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2426
2427 2012-06-20  Bruno Haible  <bruno@clisp.org>
2428
2429         fdopen: Allow implementations that don't reject invalid fd arguments.
2430         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2431         succeeds.
2432         Reported by Rich Felker <dalias@aerifal.cx>.
2433
2434 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2435
2436         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2437         bring in LIBINTL.
2438
2439 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2440
2441         init.sh: do not rely on autoupated PWD
2442         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2443         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2444         Although Nelson's bug was not necessarily fixed by this patch,
2445         it seems wise to make the change for safety.
2446         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2447         automagically after 'cd'; this is not reliable on older shells.
2448         (setup_): Fail if we cannot cd to temporary directory.
2449
2450 2012-06-19  Bruno Haible  <bruno@clisp.org>
2451
2452         stat, fstat: Avoid warnings on mingw64.
2453         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2454         redefining.
2455         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2456         Reported by Daniel P. Berrange <berrange@redhat.com>.
2457
2458 2012-06-19  Bruno Haible  <bruno@clisp.org>
2459
2460         stdioext: Add support for musl libc.
2461
2462         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2463         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2464
2465         * m4/fseterr.m4: New file.
2466         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2467         function exists.
2468         * modules/fseterr (Files): Add m4/fseterr.m4.
2469         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2470         __fseterr does not exist.
2471         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2472
2473         * lib/freadable.h: Update comment.
2474
2475         * lib/fwritable.h: Update comment.
2476
2477         * lib/freading.h: Update comment.
2478
2479         * lib/fwriting.h: Update comment.
2480
2481         * m4/freadahead.m4: New file.
2482         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2483         that function exists.
2484         * modules/freadahead (Files): Add m4/freadahead.m4.
2485         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2486         __freadahead does not exist.
2487         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2488
2489         * m4/freadptr.m4: New file.
2490         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2491         function exists.
2492         * modules/freadptr (Files): Add m4/freadptr.m4.
2493         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2494         __freadptr does not exist.
2495         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2496
2497         * m4/freadseek.m4: New file.
2498         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2499         exists.
2500         * modules/freadseek (Files): Add m4/freadseek.m4.
2501         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2502
2503         * lib/fpurge.c (fpurge): Update comment.
2504
2505         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2506
2507 2012-06-19  Bruno Haible  <bruno@clisp.org>
2508
2509         *printf-posix: Put more info into config.log.
2510         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2511         exit code into config.log.
2512
2513 2012-06-19  Bruno Haible  <bruno@clisp.org>
2514
2515         getopt-gnu: Fix exit code overflow in autoconf test.
2516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2517         to keep them below < 128.
2518
2519 2012-06-17  Jim Meyering  <meyering@redhat.com>
2520
2521         maint.mk: fix typo in code to derive GPG key at release time
2522         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2523
2524 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2525
2526         regex: avoid warning when pointers are not long
2527         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2528         and uintptr_t, not long, for portability to hosts where pointers and
2529         long have different sizes.  Issue noted by Daniel P. Berrange in
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2531         and fix suggested by Bruno Haible in
2532         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2533
2534 2012-06-17  Bruno Haible  <bruno@clisp.org>
2535
2536         dummy: Relicense into the public domain.
2537         * modules/dummy (License): Set to "public domain".
2538         Suggested by Reuben Thomas.
2539
2540 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2541
2542         announce-gen: VPATH issues
2543         * build-aux/announce-gen (--srcdir): New option, used to trim the
2544         $srcdir part of the path from $builddir to NEWS.
2545         * top/maint.mk (announcement): Adjust.
2546
2547 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2548
2549         gnu-web-doc-update: VPATH builds
2550         * build-aux/gnu-web-doc-update (--builddir): New option.
2551         Revamp the handling of options.
2552         Prefer $(...) to `...`.
2553         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2554         the template, and it is GNU mktemp specific.
2555         Prefer set -e to long series of &&.
2556         Restore the initial git branch, not "master".
2557         Properly initialize submodules (don't rely only on bootstrap).
2558         Do not reconfigure blindly, use config.status.
2559         * top/README-release: Update instructions for gnu-web-doc-update.
2560
2561 2012-06-11  Jim Meyering  <meyering@redhat.com>
2562
2563         maint.mk: revert most of the previous change re "all these"
2564         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2565         For rationale, see the discussion at
2566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2567
2568 2012-06-10  Karl Berry  <karl@gnu.org>
2569
2570         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2571
2572         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2573
2574 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2575
2576         parse-duration: Relicense under LGPLv2+.
2577         * modules/parse-duration (License): Change to LGPLv2+.
2578
2579 2012-06-10  Jim Meyering  <meyering@redhat.com>
2580
2581         maint.mk: prohibit common grammar error: "all these"
2582         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2583         the list of prohibited word sequences.  It should be "all of these".
2584         * lib/tempname.c (__gen_tempname): Fix one of them.
2585
2586 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2587
2588         do-release-commit-and-tag: support VPATH builds
2589         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2590         (noteworthy): Defined earlier to factor its value.
2591         (noteworthy_stub): New.
2592         Use it to factor.
2593         (help_version): Split into...
2594         (help, version): these.
2595         Adjust the option processing part.
2596         Support "--option=value" in addition to "--option value".
2597         (builddir): New.
2598         (--builddir): New option.
2599         * top/README-release: Document this.
2600         Reword slightly so that the reader cannot understand that he
2601         has to do these steps before calling do-release-commit-and-tag.
2602
2603 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2604
2605         readme-release: also require announce-gen and maintainer-makefile
2606         * modules/readme-release (Depends-on): here.
2607         * modules/announce-gen, modules/do-release-commit-and-tag,
2608         modules/gnu-web-doc-update, modules/maintainer-makefile
2609         (Description): Point to readme-release.
2610
2611 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2612
2613         maint.mk: fix VPATH issues.
2614         * top/maint.mk (news-check): GNU Make understand $< very well.
2615         (release-prep): NEWS is in $(srcdir).
2616
2617 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2618
2619         readme-release: require the promoted modules.
2620         * modules/readme-release (Depends-on): Add
2621         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2622         in this text.
2623
2624 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2625             Bruno Haible  <bruno@clisp.org>
2626
2627         error, strerror-override: Support mingw64 from Fedora 17.
2628         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2629         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2630         EINPROGRESS.
2631         * lib/strerror-override.h (strerror_override): Test it.
2632         * lib/strerror-override.c (strerror_override): Likewise.
2633         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2634
2635 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2636             Bruno Haible  <bruno@clisp.org>
2637
2638         error, strerror-override: Support mingw64 from Fedora 17.
2639         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2640         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2641         * lib/strerror-override.h (strerror_override): Test it.
2642         * lib/strerror-override.c (strerror_override): Likewise.
2643
2644 2012-06-03  Bruno Haible  <bruno@clisp.org>
2645
2646         error, strerror-override: Support new errno values from POSIX:2008.
2647         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2648         ENOTRECOVERABLE.
2649         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2650         platforms.
2651         * lib/strerror-override.c (strerror_override): Conditionalize the
2652         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2653         * lib/strerror-override.h (strerror_override): Declare also if
2654         GNULIB_defined_EOWNERDEAD is defined.
2655         * tests/test-errno.c (e130, e131): New variables.
2656         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2657         ENOTRECOVERABLE.
2658         Reported by Paolo Bonzini.
2659
2660 2012-05-31  Jim Meyering  <meyering@redhat.com>
2661
2662         savewd: add missing dependency on sys_wait module
2663         * modules/savewd (Depends-on): Add sys_wait, needed at least
2664         for MSVC.  Report and suggested change by Michael Goffioul.
2665
2666 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2667
2668         system-quote-tests: port to CentOS 5
2669         Problem reported by Tom G. Christensen in
2670         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2671         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2672
2673 2012-05-29  Jim Meyering  <meyering@redhat.com>
2674
2675         maint: fix typos in comments and ChangeLog
2676         Culprits identified and fixed mostly automatically using these commands:
2677         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2678         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2679         using http://github.com/lyda/misspell-check
2680         * ChangeLog: Fix typos.
2681         * doc/solaris-versions: Likewise.
2682         * lib/regexec.c (re_search_stub): Likewise.
2683         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2684
2685 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2686
2687         manywarnings: remove duplicate -Wmultichar entry
2688         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2689         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2690         so keep the entry marked as documented.
2691
2692 2012-05-27  Karl Berry  <karl@gnu.org>
2693
2694         * config/srclist.txt (mktime.c): remove last libc sync,
2695         perhaps just temporarily.
2696
2697 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2698
2699         regex: don't assume uint64_t or uint32_t
2700         * lib/regcomp.c (init_word_char): Don't assume that the types
2701         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2702         them, and on some 32-bit compilers there is no uint64_t.
2703         Problem reported by Gianluigi Tiesi in
2704         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2705
2706 2012-05-25  Jim Meyering  <meyering@redhat.com>
2707
2708         maint.mk: add strncpy-prohibiting syntax-check rule
2709         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2710
2711 2012-05-24  Jim Meyering  <meyering@redhat.com>
2712
2713         maint.mk: compute $(gpg_key_ID) more portably
2714         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2715         That use of sed is not portable to some fringe systems.
2716         Reported by Paul Eggert in
2717         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2718
2719 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2720
2721         mktime: sync from glibc
2722         * config/srclist.txt: Uncomment mktime.c.
2723         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2724         First, indent with tabs, since glibc uses tabs and doesn't want to
2725         change and we'd rather be identical to glibc.  Also, two small
2726         coding changes:
2727         (isdst_differ): Use &&, not &, as && is the usual style.
2728         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2729         for clarity.
2730
2731 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2732
2733         announce-gen: du -h is more portable than du --human
2734         * build-aux/announce-gen (sizes): Invoke du with -h instead
2735         of --human.  Accept leading white space in its output.
2736
2737 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2738
2739         announce-gen: Improve diagnostics.
2740         * build-aux/announce-gen: When parsing command line options,
2741         prefer "announce-gen: option --release-type requires an argument"
2742         to "Option release-type requires an argument".
2743
2744 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2745
2746         maint.mk: gpg_key_ID: use sed more portably
2747         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2748         the closing brace.
2749         (refresh-po): Fuse two sed invocations into one.
2750
2751 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2752
2753         gitlog-to-changelog: support the log message format used in Bison.
2754         * build-aux/gitlog-to-changelog: Support --strip-tab and
2755         --strip-cherry-picked.
2756
2757 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2758
2759         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2760         the rest of the current time slice to another thread in the current
2761         process. So if the thread that feeds the file decscriptor we're
2762         polling is not in the current process, we get busy-waiting.
2763         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2764         Patch from Theodore Leblond.
2765         * lib/select.c: Split polling out of the loop that sets the output
2766         fd_sets.  Check for zero result and loop if the wait timeout is
2767         infinite.
2768
2769 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2770
2771         select: Fix build error on IRIX 6.5.
2772         * lib/select.c: Include stddef.h for NULL.
2773
2774 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2775
2776         gc: fix libgcrypt detection on older machines.
2777         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2778         copyright years because the file has been distributed every year
2779         since it was created.
2780
2781 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2782
2783         crypto: fix bug in large buffer handling
2784         Problem reported by Serge Belyshev for glibc in
2785         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2786         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2787         * lib/md4.c (md4_process_block):
2788         * lib/md5.c (md5_process_block):
2789         * lib/sha1.c (sha1_process_block):
2790         * lib/sha256.c (sha256_process_block):
2791         Don't assume the buffer length is less than 2**32.
2792         * lib/sha512.c (sha512_process_block): Likewise.
2793         Here, the bug is present only in the rare case where the host does
2794         not support uint64_t or where size_t is wider than 64 bits.
2795         Use u64size to work around the problems.
2796         * lib/u64.h (u64size): New macro.
2797
2798 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2799
2800         fsusage: fix block size returned on older Linux 2.6
2801
2802         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2803         which is available since Linux 2.6.
2804         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2805         when the member is available so it can be used as a fallback.
2806         * doc/posix-functions/statvfs.texi: Mention the hang issue
2807         on Linux < 2.6.36.
2808
2809 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2810
2811         bootstrap: suppress stderr chatter
2812         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2813         Omit unnecessary chatter to stderr.  The main program chatter
2814         was there only inadvertantly.
2815
2816         bootstrap: .gitignore files created by autopoint, libtool
2817         I ran into this problem when bootstrapping the latest diffutils.
2818         After './bootstrap', 'git status' reported lots of untracked files
2819         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2820         autopoint and do not need to be version-controlled.
2821         * build-aux/bootstrap: Put into .gitignore the files that
2822         autopoint and libtool create, by keeping track of files that exist
2823         after but not before these programs are run.
2824         (version_controlled_file): Move up.  2nd arg is now full file
2825         name, not base name; this is more convenient.  Put CVS at the end,
2826         as it's now somewhat deprecated.
2827
2828 2012-05-14  Jim Meyering  <meyering@redhat.com>
2829
2830         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2831         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2832         definition.  Reported by Bruno Haible.
2833
2834 2012-05-13  Bruno Haible  <bruno@clisp.org>
2835             Paul Eggert  <eggert@cs.ucla.edu>
2836
2837         binary-io: Define set_binary_mode function.
2838         * lib/binary-io.h (set_binary_mode): New function.
2839         (SET_BINARY): Define in terms of set_binary_mode.
2840         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2841         * tests/test-binary-io.c (main): Accept an argument, and test either
2842         set_binary_mode or SET_BINARY depending on the argument.
2843         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2844         argument. Clean up also t-bin-out0.tmp.
2845
2846 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2847
2848         bootstrap: take advantage of POSIX shell features
2849
2850         The 'bootstrap' script offered by Gnulib script already uses POSIX
2851         shell features (like $((...)) arithmetic expansions) that are not
2852         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2853         means that bootstrap must already be run using a proper POSIX shell,
2854         which will thus provide more features, like ${var#pattern} parameter
2855         expansion or inversion of a command exit status with '!'.  We can
2856         thus use these features to improve the clarity and the performances
2857         of the bootstrap script.
2858
2859         Suggested by Eric Blake.
2860
2861         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2862         of sed/expr plus command substitutions, to save some forks.  While
2863         we are at it, prefer the POSIX $(...) form of command substitution,
2864         rather than the legacy form `...` (since the former is visually
2865         clearer and interacts better with quoting), and prefer the idiom:
2866           "if ! CMD; then ACTION ..."
2867         over the idiom:
2868           "if CMD; then :; else ACTION ..."
2869         which was required by legacy Bourne shells not supporting '!'.
2870
2871 2012-05-12  Bruno Haible  <bruno@clisp.org>
2872
2873         system-quote: Add more comments.
2874         * lib/system-quote.h: Add more comments about wilcards and limitations.
2875         Suggested by Eli Zaretskii <eliz@gnu.org>.
2876
2877         sh-quote, system-quote: Add comments about wildcards.
2878         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2879         * lib/system-quote.h: Likewise.
2880         Reported by Eli Zaretskii <eliz@gnu.org>.
2881
2882 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2883
2884         fsusage: check for GNU/Linux statvfs problem dynamically
2885         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2886         Define STAT_STATFS2_BSIZE too, since in this case the code now
2887         checks dynamically whether statvfs is reliable, falling back on
2888         Linux-style statfs otherwise.
2889         (statvfs_works): New function, for dynamically testing statvfs.
2890         (get_fs_usage) [STAT_STATVFS]: Use it.
2891         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2892         statvfs on GNU/Linux hosts, since it's now done dynamically.
2893
2894 2012-05-10  Bruno Haible  <bruno@clisp.org>
2895
2896         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2897         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2898         '?' character.
2899         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2900         * tests/test-system-quote-main.c (check_all): Check also strings like
2901         "??????????".
2902         Reported by Eli Zaretskii <eliz@gnu.org>.
2903
2904 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2905
2906         _Noreturn: port config.h to gcc -Wundef
2907         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2908         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2909         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2910
2911 2012-05-10  Bruno Haible  <bruno@clisp.org>
2912
2913         system-quote: Refactor.
2914         * lib/system-quote.h (system_quote_copy): Fix comment.
2915         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2916         New functions, extracted from system_quote_copy.
2917         (system_quote_length, system_quote_copy): Use these functions.
2918         Reported by Paul Eggert.
2919
2920 2012-05-08  Bruno Haible  <bruno@clisp.org>
2921
2922         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2923         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2924
2925 2012-05-08  Bruno Haible  <bruno@clisp.org>
2926
2927         Tests for module 'system-quote'.
2928         * modules/system-quote-tests: New file.
2929         * tests/test-system-quote.sh: New file.
2930         * tests/test-system-quote-main.c: New file.
2931         * tests/test-system-quote-child.c: New file.
2932
2933         New module 'system-quote'.
2934         * lib/system-quote.h: New file.
2935         * lib/system-quote.c: New file.
2936         * modules/system-quote: New file.
2937
2938 2012-05-08  Bruno Haible  <bruno@clisp.org>
2939
2940         sh-quote: Make C++ safe and allow multiple inclusion.
2941         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2942         declarations in extern "C".
2943
2944 2012-05-08  Bruno Haible  <bruno@clisp.org>
2945
2946         sh-quote tests: Make tests stricter.
2947         * tests/test-sh-quote.c (check_one): Check the return value of
2948         shell_quote_copy.
2949         (main): Check a string with a CR character. Check a string that
2950         contains UCHAR_MAX.
2951
2952 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2953
2954         warnings.m4: provide a means to specify the program to compile.
2955         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2956         (gl_WARN_ADD): here.
2957         Use gl_AS_VAR_APPEND.
2958         Support an argument to specify the program to compile.
2959         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2960         AC_SUBST the WARN_CFLAGS when they are used.
2961         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2962         leave this to gl_WARN_ADD.
2963
2964 2012-05-08  Eric Blake  <eblake@redhat.com>
2965
2966         doc: recommendations on gettext version
2967         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2968         choice between versions.
2969         * DEPENDENCIES (gettext): Cover both approaches.
2970
2971 2012-05-08  Jim Meyering  <meyering@redhat.com>
2972
2973         init.sh: explain why EXEEXT support uses aliases rather than functions
2974         * tests/init.sh: Add a comment.
2975
2976         init.sh: don't let bash aliases interfere with tests
2977         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2978         is bash.  This avoids problems for those who alias standard commands to
2979         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2980         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2981
2982 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2983
2984         stdint: be more consistent with glibc, SunOS libc
2985         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2986         (gl_int_fast16_t, gl_uint_fast16_t)
2987         (gl_int_fast32_t, gl_uint_fast32_t)
2988         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2989         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2990         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2991         Be consistent with glibc by default, and with SunOS 5.10 and later
2992         if __sun is defined.  This lessens the likelihood of clashes if
2993         code compiled for older hosts is combined with code compiled for
2994         newer ones.  Problem reported by Niels Möller in
2995         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2996
2997 2012-05-07  Eric Blake  <eblake@redhat.com>
2998
2999         isatty: relax license to LGPLv2+
3000         * modules/isatty (License): Relax license.
3001
3002 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3003
3004         stat-size: comment fix
3005         * lib/stat-size.h: Remove obsolete comment about indenting.
3006
3007 2012-05-06  Bruno Haible  <bruno@clisp.org>
3008
3009         Tests for module 'sh-quote'.
3010         * modules/sh-quote-tests: New file.
3011         * tests/test-sh-quote.c: New file.
3012
3013 2012-05-06  Bruno Haible  <bruno@clisp.org>
3014
3015         sh-quote: Improve shell_quote_argv's signature.
3016         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3017         * lib/sh-quote.c (shell_quote_argv): Likewise.
3018
3019 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3020
3021         stdint: document issues with int_fast8_t etc.
3022         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3023         stdint.h substitutes may define these types differently.  See
3024         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3025
3026 2012-05-05  Bruno Haible  <bruno@clisp.org>
3027
3028         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3030         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3031         or 'guessing no (mishandles large arguments)'.
3032
3033 2012-05-05  Bruno Haible  <bruno@clisp.org>
3034
3035         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3036         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3037         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3038         set gl_cv_func_link_follows_symlink to "guessing no".
3039
3040 2012-05-05  Bruno Haible  <bruno@clisp.org>
3041
3042         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3043         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3044         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3045         "guessing no".
3046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3047
3048 2012-05-05  Bruno Haible  <bruno@clisp.org>
3049
3050         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3052         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3053         set gl_cv_struct_dirent_d_ino to "guessing yes".
3054
3055 2012-05-05  Bruno Haible  <bruno@clisp.org>
3056
3057         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3058         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3059         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3060         "guessing yes".
3061
3062 2012-05-05  Bruno Haible  <bruno@clisp.org>
3063
3064         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3065         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3066         compiling to a glibc system, set gl_cv_func_signbit and
3067         gl_cv_func_signbit_gcc to "guessing yes".
3068
3069 2012-05-05  Bruno Haible  <bruno@clisp.org>
3070
3071         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3072         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3073         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3074         to "guessing yes".
3075         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3076         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3077
3078 2012-05-05  Bruno Haible  <bruno@clisp.org>
3079
3080         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3081         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3082         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3083         gl_cv_func_realpath_works to "guessing yes".
3084
3085 2012-05-05  Bruno Haible  <bruno@clisp.org>
3086
3087         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3089         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3090
3091 2012-05-04  Bruno Haible  <bruno@clisp.org>
3092
3093         Tweak last commit.
3094         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3095         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3096
3097 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3098
3099         unistd_h: make it easier to avoid sys_types_h
3100         This is useful for Emacs, which has its own method of porting to
3101         Windows, and which therefore does not need the sys_types_h module.
3102         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3103         code moved here from gl_SYS_TYPES_H.
3104         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3105         using the code directly.
3106         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3107         gl_SYS_TYPES_H.
3108         * modules/sys_types (Files):
3109         * modules/unistd (Files): Add m4/off_t.m4.
3110
3111 2012-05-03  Bruno Haible  <bruno@clisp.org>
3112
3113         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3114         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3115         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3116         "guessing yes" or "guessing no".
3117         (gl_FUNC_LSTAT): Update.
3118         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3119         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3120         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3121
3122 2012-05-03  Bruno Haible  <bruno@clisp.org>
3123
3124         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3125         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3126         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3127         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3128         cross-compiling, choose the first alternative on glibc systems.
3129         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3130
3131 2012-05-03  Bruno Haible  <bruno@clisp.org>
3132
3133         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3134         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3135         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3136
3137 2012-05-03  Bruno Haible  <bruno@clisp.org>
3138
3139         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3140         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3141
3142 2012-05-03  Bruno Haible  <bruno@clisp.org>
3143
3144         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3145         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3146         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3147         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3148         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3149         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3150         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3151         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3152         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3153         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3154         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3155         gl_cv_func_chown_ctime_works to "guessing yes".
3156         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3157         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3158         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3159         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3160         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3162         compiling to glibc systems, set gl_cv_func_open_directory_works to
3163         "guessing yes".
3164         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3165         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3166         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3167         "guessing yes".
3168         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3169         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3170         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3171         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3172         "guessing yes".
3173         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3174         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3175         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3176         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3177         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3178         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3179         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3180         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3181         "guessing yes".
3182         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3183         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3184         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3185         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3186         "guessing yes".
3187         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3188         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3189         "guessing yes".
3190         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3191         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3192         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3193         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3194         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3195         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3196         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3197         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3198         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3199         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3200         "guessing yes".
3201         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3202         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3203         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3204         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3205         "guessing yes".
3206         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3207         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3208         "guessing yes".
3209         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3210         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3211         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3212         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3213         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3214         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3215         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3216         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3217         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3218         "guessing yes".
3219         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3220         compiling to glibc systems, set gl_cv_func_mknod_works to
3221         "guessing yes".
3222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3223         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3224         "guessing yes".
3225         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3226         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3227         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3228         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3229         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3230         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3231         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3232         compiling to glibc systems, set gl_cv_func_svid_putenv to
3233         "guessing yes".
3234         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3235         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3236         "guessing yes".
3237         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3238         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3239         "guessing yes".
3240         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3241         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3242         to "guessing yes".
3243         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3244         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3245         to "guessing yes".
3246         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3247         compiling to glibc systems, set gl_cv_func_rmdir_works to
3248         "guessing yes".
3249         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3250         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3251         gl_cv_func_unlink_parent_fails to "guessing yes".
3252         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3253         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3254         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3255         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3256         gl_cv_func_rename_dest_works to "guessing yes".
3257         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3258         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3259         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3260         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3261         "guessing yes".
3262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3263         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3264         "guessing yes".
3265         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3266         compiling to glibc systems, set gl_cv_func_setenv_works to
3267         "guessing yes".
3268         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3269         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3270         "guessing yes".
3271         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3272         compiling to glibc systems, set gl_cv_func_sleep_works to
3273         "guessing yes".
3274         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3275         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3276         "guessing yes".
3277         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3278         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3279         "guessing yes".
3280         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3281         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3282         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3283         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3284         "guessing yes".
3285         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3286         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3287         "guessing yes".
3288         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3289         compiling to glibc systems, set gl_cv_func_usleep_works to
3290         "guessing yes".
3291         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3292         compiling to glibc systems, set gl_cv_func_futimesat_works to
3293         "guessing yes".
3294
3295 2012-05-03  Bruno Haible  <bruno@clisp.org>
3296
3297         Say "guessing yes" or "guessing no" when cross-compiling.
3298         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3299         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3300         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3301         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3302         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3303         am_cv_func_working_getline to "guessing yes" or "guessing no".
3304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3305         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3306         (gl_FUNC_MEMMEM): When cross-compiling, set
3307         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3309         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3311         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3312         "guessing no".
3313         (gl_FUNC_STRCASESTR): When cross-compiling, set
3314         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3315         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3316         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3317         (gl_FUNC_STRSTR): When cross-compiling, set
3318         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3319         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3320         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3321         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3322         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3323
3324 2012-05-01  Bruno Haible  <bruno@clisp.org>
3325
3326         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3327         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3328         * build-aux/reloc-ldflags: Likewise.
3329         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3330
3331 2012-05-01  Bruno Haible  <bruno@clisp.org>
3332
3333         gnulib-tool: Remove transitional code.
3334         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3335         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3336
3337 2012-05-01  Bruno Haible  <bruno@clisp.org>
3338
3339         getcwd: Fix misindentation.
3340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3341
3342 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3343
3344         exclude: process exclude and include directives in order
3345         This restores the pre-2009 behavior, and is part of a fix of a
3346         grep bug reported by Quentin Arce in
3347         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3348         * lib/exclude.c (struct exclude): Remove 'tail' member.
3349         (new_exclude_segment): Prepend the new segment instead of appending.
3350         Return void, since that's now more convenient.
3351         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3352         (file_name_matches): Renamed from excluded_file_name_p.
3353         (file_pattern_matches, file_name_matches):
3354         Return true if the pattern matches, not if it excludes.
3355         All callers changed.
3356         (excluded_file_name): Process the list in reverse order;
3357         since the list is now reversed this restores the pre-2009 behavior.
3358         (add_exclude): Adjust to new reversed-order list.  Use local var
3359         rather than macro, for clarity.
3360         * tests/test-exclude7.sh: Adjust to corrected behavior.
3361
3362         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3363         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3364         it's not possible here.  Handle the case of \ at end of pattern
3365         without dumping core.
3366         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3367
3368         _Noreturn: future-proof non-GNU and non-MSVC compilers
3369         * build-aux/snippet/_Noreturn.h (_Noreturn):
3370         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3371         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3372         C11 or later.  This is more likely to work with random future C
3373         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3375
3376         exclude: handle wildcards with FNM_EXTMATCH
3377         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3378         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3379         comment that "has wildcards" really means "has or may have
3380         wildcards".  Simplify by avoiding the need to call strcspn.
3381
3382 2012-04-29  Bruno Haible  <bruno@clisp.org>
3383
3384         gnulib-tool: Fix list of authors.
3385         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3386
3387 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3388
3389         bootstrap: support Automake-NG in $buildreq
3390         * bootstrap (check_versions): Handle automake and aclocal from
3391         Automake-NG specially.  They can be specified as respectively
3392         the "automake-ng" and "aclocal-ng" requirements.
3393
3394 2012-04-25  Eric Blake  <eblake@redhat.com>
3395
3396         bootstrap: only force latest Makefile.in.in for gettext module
3397         * build-aux/bootstrap (with_gettext): Only install latest
3398         Makefile.in.in for projects requesting bleeding edge gettext.
3399
3400 2012-04-22  Bruno Haible  <bruno@clisp.org>
3401
3402         doc: Mention reason for replacement on glibc/Linux systems.
3403         * doc/posix-functions/dprintf.texi: Mention the problem with special
3404         'long double' values.
3405         * doc/posix-functions/fprintf.texi: Likewise.
3406         * doc/posix-functions/printf.texi: Likewise.
3407         * doc/posix-functions/snprintf.texi: Likewise.
3408         * doc/posix-functions/sprintf.texi: Likewise.
3409         * doc/posix-functions/vdprintf.texi: Likewise.
3410         * doc/posix-functions/vfprintf.texi: Likewise.
3411         * doc/posix-functions/vprintf.texi: Likewise.
3412         * doc/posix-functions/vsnprintf.texi: Likewise.
3413         * doc/posix-functions/vsprintf.texi: Likewise.
3414         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3415         platforms with F_DUPFD_CLOEXEC problems.
3416         * doc/posix-functions/glob.texi: Mention which platforms are affected
3417         by the problem with symbolic links.
3418         * doc/posix-functions/linkat.texi: Mention the problem with
3419         AT_SYMLINK_FOLLOW on Linux.
3420
3421 2012-04-22  Bruno Haible  <bruno@clisp.org>
3422
3423         pwrite: Don't replace on all platforms.
3424         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3425
3426 2012-04-22  Bruno Haible  <bruno@clisp.org>
3427
3428         rint* tests: Avoid gcc warnings.
3429         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3430         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3431         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3432
3433 2012-04-21  Bruno Haible  <bruno@clisp.org>
3434
3435         users.txt: Update.
3436         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3437         switched from CVS to git, bzr, or svn.
3438
3439 2012-04-21  Bruno Haible  <bruno@clisp.org>
3440
3441         Large File Support for native Windows platforms.
3442
3443         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3444         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3445
3446         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3447         type.
3448         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3449         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3450         * doc/posix-headers/sys_types.texi: Mention the effect of the
3451         'largefile' module.
3452
3453         * lib/fcntl.in.h: Add comments about off_t.
3454         * modules/fcntl-h (Depends-on): Add sys_types.
3455
3456         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3457         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3458         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3459         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3460         * modules/unistd (Depends-on): Add sys_types.
3461         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3462
3463         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3464         instead of lseek.
3465         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3466         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3467         * modules/lseek (Depends-on): Add sys_types.
3468
3469         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3470         msvc-nothrow.h.
3471         (SetFileSize): New function.
3472         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3473         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3474         if Large File Support is requested.
3475         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3476         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3477
3478         * lib/stdio.in.h: Add comments about off_t.
3479         * modules/stdio (Depends-on): Add sys_types.
3480
3481         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3482         instead of ftello.
3483         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3484         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3485         (gl_PREREQ_FTELLO): New macro.
3486         * modules/ftello (Depends-on): Add sys_types.
3487         (configure.ac): Incoke gl_PREREQ_FTELLO.
3488
3489         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3490         instead of fseeko.
3491         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3492         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3493         (gl_PREREQ_FSEEKO): New macro.
3494         * modules/fseeko (Depends-on): Add sys_types.
3495         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3496
3497         * lib/sys_stat.in.h: Add comments about off_t.
3498         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3499         64-bit integer for st_size in 'struct stat'.
3500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3501         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3502         * modules/sys_stat (Depends-on): Add sys_types.
3503         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3504
3505         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3506         instead of stat or _stat.
3507
3508         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3509         'struct _stati64' instead of fstat and 'struct stat'.
3510         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3511         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3512
3513         Reported by Ray Satiro <raysatiro@yahoo.com>.
3514
3515 2012-04-19  Eric Blake  <eblake@redhat.com>
3516
3517         bootstrap: accommodate older libtool
3518         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3519         Reported by Daniel P. Berrange.
3520
3521 2012-04-19  Jim Meyering  <meyering@redhat.com>
3522
3523         announce-gen: avoid failure due to lack of Digest::SHA1
3524         Even with the preferred Digest::SHA available, this script
3525         would fail when the backup module, Digest::SHA1, was not installed.
3526         * build-aux/announce-gen: Quote the conditional use of "use".
3527         Reported by Reuben Thomas in:
3528         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3529
3530         bootstrap: don't let a user's CDPATH setting affect this script
3531         When CDPATH is set, cd will sometimes generate output.
3532         When "cd" is run in a subshell whose output matters, that
3533         surprising-to-some output can cause malfunction.
3534         Unsetting CDPATH turns off this shell "feature."
3535         * build-aux/bootstrap (CDPATH): Unset.
3536         Reported by Reuben Thomas in:
3537         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3538         and inspired by his patch here:
3539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3540
3541 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3542         and Jim Meyering  <meyering@redhat.com>
3543
3544         maint.mk: catch "see @xref{}" and similar
3545         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3546         prohibit "See also @xref{", "Also see @pxref{", and similar.
3547
3548 2012-04-16  Jim Meyering  <meyering@redhat.com>
3549
3550         bootstrap: really use gnulib's po/Makefile.in.in
3551         * build-aux/bootstrap: Correct the source file name in previous change.
3552         Reported by Akim Demaille.
3553
3554         configmake: correct minor inconsistency in Makefile rule
3555         * modules/configmake (Makefile.am): All other rules like this one
3556         run the final "mv -f ..." in the same backslash-continued command
3557         as the one that does everything else.  This one put the mv -f ...
3558         command on a separate, non-backslash-continued line.
3559         Make it like the others.
3560
3561         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3562         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3563         the one from gettext.  Reported by Akim Demaille.
3564
3565 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3566
3567         Fix recursion of install-* into po directories.
3568         Bison's install-pdf bug reported by Hans Aberg at
3569         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3570         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3571         (install-info, install-pdf, install-ps): New targets.
3572
3573 2012-04-16  Jim Meyering  <meyering@redhat.com>
3574
3575         maint: avoid spurious "make sc_maint" failure
3576         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3577         exempt all *.class file names, for lib/javaversion.class.
3578
3579 2012-04-15  Bruno Haible  <bruno@clisp.org>
3580
3581         lseek: Make configure test independent of environment.
3582         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3583         Windows, we know that lseek() on pipes is broken; skip the runtime
3584         test.
3585
3586 2012-04-14  Bruno Haible  <bruno@clisp.org>
3587
3588         stat: Bypass buggy override in mingw64.
3589         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3590         * lib/stat.c (stat) [mingw64]: Define to _stat.
3591         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3592
3593 2012-04-14  Bruno Haible  <bruno@clisp.org>
3594
3595         pathmax: Fix compilation error on MSVC 9.
3596         * modules/pathmax (Depends-on): Add unistd.
3597
3598 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3599
3600         README: document pointer comparison assumption
3601         * README (Portability guidelines): Document assumption about
3602         pointer comparisons, in response to a recent bug-gnulib comment by
3603         Jeffrey Kegler.
3604
3605 2012-04-12  Bruno Haible  <bruno@clisp.org>
3606
3607         Tests for module 'getrusage'.
3608         * modules/getrusage-tests: New file.
3609         * tests/test-getrusage.c: New file.
3610
3611         New module 'getrusage'.
3612         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3613         warn-on-use.h.
3614         (getrusage): New declaration.
3615         * lib/getrusage.c: New file.
3616         * m4/getrusage.m4: New file.
3617         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3618         is declared.
3619         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3620         HAVE_GETRUSAGE.
3621         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3622         snippet/c++defs, snippet/warn-on-use.
3623         (Makefile.am): Update generation of sys/resource.h. Substitute
3624         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3625         * modules/getrusage: New file.
3626         * doc/posix-functions/getrusage.texi: Mention the new module.
3627
3628 2012-04-12  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'sys_resource'.
3631         * modules/sys_resource-tests: New file.
3632         * tests/test-sys_resource.c: New file.
3633
3634         New module 'sys_resource'.
3635         * lib/sys_resource.in.h: New file.
3636         * m4/sys_resource_h.m4: New file.
3637         * modules/sys_resource: New file.
3638         * doc/posix-headers/sys_resource.texi: Mention the new module.
3639
3640 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3641
3642         ioctl: Fix compilation error on mingw.
3643         * lib/ioctl.c: Include <windows.h>.
3644         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3645
3646 2012-04-04  Jim Meyering  <meyering@redhat.com>
3647
3648         regex: correct #pragma guard expression
3649         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3650         not 4.3.  Correct its cpp guard expression.
3651
3652 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3653
3654         regex: remove unnecessary type punning
3655         Problem reported by Vladimir Serbinenko in
3656         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3657         * lib/regex.h (struct re_pattern_buffer): Change the type of
3658         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3659         Fix comment to match code.
3660         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3661         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3662         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3663         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3664         (set_regs):
3665         Omit no-longer-necessary casts.
3666
3667 2012-04-03  Bruno Haible  <bruno@clisp.org>
3668
3669         Tests for module 'ilogbl'.
3670         * modules/ilogbl-tests: New file.
3671         * tests/test-ilogbl.c: New file.
3672
3673         New module 'ilogbl'.
3674         * lib/math.in.h (ilogbl): New declaration.
3675         * lib/ilogbl.c: New file.
3676         * m4/ilogbl.m4: New file.
3677         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3679         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3680         Split sed invocation, to avoid the limit of 100 substitutions of
3681         HP-UX 'sed'.
3682         * modules/ilogbl: New file.
3683         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3684         * doc/posix-functions/ilogbl.texi: Mention the new module.
3685
3686 2012-04-03  Bruno Haible  <bruno@clisp.org>
3687
3688         Tests for module 'ilogbf'.
3689         * modules/ilogbf-tests: New file.
3690         * tests/test-ilogbf.c: New file.
3691
3692         New module 'ilogbf'.
3693         * lib/math.in.h (ilogbf): New declaration.
3694         * lib/ilogbf.c: New file.
3695         * m4/ilogbf.m4: New file.
3696         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3698         REPLACE_ILOGBF.
3699         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3700         REPLACE_ILOGBF.
3701         * modules/ilogbf: New file.
3702         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3703         * doc/posix-functions/ilogbf.texi: Mention the new module.
3704
3705 2012-04-03  Bruno Haible  <bruno@clisp.org>
3706
3707         Tests for module 'ilogb'.
3708         * modules/ilogb-tests: New file.
3709         * tests/test-ilogb.c: New file.
3710         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3711         tests/test-logb-ieee.h.
3712
3713         New module 'ilogb'.
3714         * lib/math.in.h (ilogb): New declaration.
3715         * lib/ilogb.c: New file.
3716         * m4/ilogb.m4: New file.
3717         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3719         REPLACE_ILOGB.
3720         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3721         REPLACE_ILOGB.
3722         * modules/ilogb: New file.
3723         * tests/test-math-c++.cc: Check the declaration of ilogb.
3724         * doc/posix-functions/ilogb.texi: Mention the new module.
3725
3726 2012-04-03  Bruno Haible  <bruno@clisp.org>
3727
3728         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3729         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3730         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3731         (main): Check their values.
3732         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3733         problem.
3734
3735 2012-04-03  Bruno Haible  <bruno@clisp.org>
3736
3737         Tests for module 'logbl-ieee'.
3738         * modules/logbl-ieee-tests: New file.
3739         * tests/test-logbl-ieee.c: New file.
3740
3741         New module 'logbl-ieee'.
3742         * modules/logbl-ieee: New file.
3743
3744         Tests for module 'logb-ieee'.
3745         * modules/logb-ieee-tests: New file.
3746         * tests/test-logb-ieee.c: New file.
3747
3748         New module 'logb-ieee'.
3749         * modules/logb-ieee: New file.
3750
3751         Tests for module 'logbf-ieee'.
3752         * modules/logbf-ieee-tests: New file.
3753         * tests/test-logbf-ieee.c: New file.
3754         * tests/test-logb-ieee.h: New file.
3755
3756         New module 'logbf-ieee'.
3757         * modules/logbf-ieee: New file.
3758
3759 2012-04-03  Bruno Haible  <bruno@clisp.org>
3760
3761         Tests for module 'logbl'.
3762         * modules/logbl-tests: New file.
3763         * tests/test-logbl.c: New file.
3764
3765         New module 'logbl'.
3766         * lib/math.in.h (logbl): New declaration.
3767         * lib/logbl.c: New file.
3768         * m4/logbl.m4: New file.
3769         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3771         REPLACE_LOGBL.
3772         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3773         REPLACE_LOGBL.
3774         * modules/logbl: New file.
3775         * tests/test-math-c++.cc: Check the declaration of logbl.
3776         * doc/posix-functions/logbl.texi: Mention the new module.
3777
3778 2012-04-02  Bruno Haible  <bruno@clisp.org>
3779
3780         Tests for module 'logbf'.
3781         * modules/logbf-tests: New file.
3782         * tests/test-logbf.c: New file.
3783
3784         New module 'logbf'.
3785         * lib/math.in.h (logbf): New declaration.
3786         * lib/logbf.c: New file.
3787         * m4/logbf.m4: New file.
3788         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3790         REPLACE_LOGBF.
3791         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3792         REPLACE_LOGBF.
3793         * modules/logbf: New file.
3794         * tests/test-math-c++.cc: Check the declaration of logbf.
3795         * doc/posix-functions/logbf.texi: Mention the new module.
3796
3797 2012-04-02  Bruno Haible  <bruno@clisp.org>
3798
3799         logb tests: More tests.
3800         * tests/test-logb.h: New file, based on tests/test-logb.c and
3801         tests/test-frexp.h.
3802         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3803         (main): Just invoke test_function.
3804         * modules/logb-tests (Files): Add tests/test-logb.h,
3805         tests/minus-zero.h, tests/randomd.c.
3806         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3807
3808         logb: Provide replacement and workarounds.
3809         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3810         is 1.
3811         * lib/logb.c: New file.
3812         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3813         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3815         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3816         * modules/logb (Files): Add lib/logb.c.
3817         (Depends-on): Add isfinite, frexp, isnand.
3818         (configure.ac): Compile the replacement code logb.c if needed.
3819         * tests/test-math-c++.cc: Check the declaration of logb.
3820         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3821         with subnormal numbers.
3822
3823 2012-04-02  Bruno Haible  <bruno@clisp.org>
3824
3825         log10* tests: Speed up.
3826         * tests/test-log10.h (test_function): Reduce amount of random numbers
3827         to test.
3828
3829 2012-04-01  Bruno Haible  <bruno@clisp.org>
3830
3831         logf-ieee: Fix test whether logf works.
3832         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3833
3834 2012-04-01  Bruno Haible  <bruno@clisp.org>
3835
3836         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3837         * lib/log10l.c: Include <float.h>
3838         (log10l): On IRIX, normalize the +Infinity value.
3839         * modules/log10l (Depends-on): Add 'float'.
3840         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3841         +Infinity.
3842
3843         log10f-ieee: Work around test failure on NetBSD 5.1.
3844         * m4/log10f-ieee.m4: New file.
3845         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3846         test whether log10f works with a negative argument. Replace it if not.
3847         * lib/log10f.c (log10f): For negative arguments, return NaN.
3848         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3849         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3850         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3851
3852         log10f-ieee: Work around test failure on Solaris 9.
3853         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3854         (configure.ac): Require gl_FUNC_LOG10F.
3855
3856         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3857         * m4/log10-ieee.m4: New file.
3858         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3859         whether log10 works with a negative argument. Replace it if not.
3860         * lib/log10.c (log10): For negative arguments, return NaN.
3861         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3862         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3863         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3864
3865         Tests for module 'log10l-ieee'.
3866         * modules/log10l-ieee-tests: New file.
3867         * tests/test-log10l-ieee.c: New file.
3868
3869         New module 'log10l-ieee'.
3870         * modules/log10l-ieee: New file.
3871
3872         Tests for module 'log10-ieee'.
3873         * modules/log10-ieee-tests: New file.
3874         * tests/test-log10-ieee.c: New file.
3875
3876         New module 'log10-ieee'.
3877         * modules/log10-ieee: New file.
3878
3879         Tests for module 'log10f-ieee'.
3880         * modules/log10f-ieee-tests: New file.
3881         * tests/test-log10f-ieee.c: New file.
3882         * tests/test-log10-ieee.h: New file.
3883
3884         New module 'log10f-ieee'.
3885         * modules/log10f-ieee: New file.
3886
3887 2012-04-01  Bruno Haible  <bruno@clisp.org>
3888
3889         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3890         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3891         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3892         workaround.
3893         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3894         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3896         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3897         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3898         (Depends-on): Update conditions.
3899         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3900         IRIX 6.5, OSF/1 5.1 problems.
3901
3902 2012-04-01  Bruno Haible  <bruno@clisp.org>
3903
3904         log10f: Work around OSF/1 5.1 bug.
3905         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3906         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3907         workaround.
3908         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3909         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3911         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3912         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3913         (Depends-on): Update conditions.
3914         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3915
3916 2012-04-01  Bruno Haible  <bruno@clisp.org>
3917
3918         log10: Work around OSF/1 5.1 bug.
3919         * lib/math.in.h (log10): New declaration.
3920         * lib/log10.c: New file.
3921         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3922         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3923         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3925         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3926         * modules/log10 (Files): Add lib/log10.c.
3927         (Depends-on): Add math.
3928         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3929         * tests/test-math-c++.cc: Check the declaration of log10.
3930         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3931
3932 2012-03-31  Bruno Haible  <bruno@clisp.org>
3933
3934         log10l tests: More tests.
3935         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3936         tests/minus-zero.h, tests/randoml.c.
3937         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3938         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3939         (main): Invoke test_function.
3940
3941         log10f tests: More tests.
3942         * modules/log10f-tests (Files): Add tests/test-log10.h,
3943         tests/minus-zero.h, tests/randomf.c.
3944         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3945         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3946         (main): Invoke test_function.
3947
3948         log10 tests: More tests.
3949         * tests/test-log10.h: New file.
3950         * modules/log10-tests (Files): Add tests/test-log10.h,
3951         tests/minus-zero.h, tests/randomd.c.
3952         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3953         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3954         (main): Invoke test_function.
3955
3956 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3957
3958         fflush: Fix syntax error.
3959         * lib/fflush.c: Include unused-parameter.h, needed for
3960         _GL_UNUSED_PARAMETER.
3961         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3962
3963 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3964
3965         regex: pacify GCC when compiling GRUB
3966         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3967         a diagnostic.  Reported by Vladimir Serbinenko in
3968         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3969
3970 2012-03-29  Eric Blake  <eblake@redhat.com>
3971
3972         stdio: don't assume gets any more
3973         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3974         support.
3975         * modules/stdio (Makefile.am): Likewise.
3976         * lib/stdio-read.c (gets): Likewise.
3977         * tests/test-stdio-c++.cc: Likewise.
3978         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3979         * lib/stdio.in.h (gets): Make warning occur in more places.
3980         * doc/posix-functions/gets.texi (gets): Update documentation.
3981         Reported by Christer Solskogen.
3982
3983         maint.mk: fix syntax checks without exclusions
3984         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3985         Reported by Daniel P. Berrange.
3986
3987         strerror_r: avoid compiler warning
3988         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3989         level.
3990
3991         fflush: avoid compiler warning
3992         * lib/fflush.c (update_fpos_cache): Mark variables that are
3993         potentially unused.
3994
3995 2012-03-25  Bruno Haible  <bruno@clisp.org>
3996
3997         Tests for module 'localeconv'.
3998         * modules/localeconv-tests: New file.
3999         * tests/test-localeconv.c: New file.
4000
4001         New module 'localeconv'.
4002         * lib/locale.in.h (localeconv): New declaration.
4003         * lib/localeconv.c: New file.
4004         * m4/localeconv.m4: New file.
4005         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4006         REPLACE_LOCALECONV.
4007         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4008         REPLACE_LOCALECONV.
4009         * modules/localeconv: New file.
4010         * modules/nl_langinfo (Depends-on): Add localeconv.
4011         * modules/human (Depends-on): Likewise.
4012         * doc/posix-functions/localeconv.texi: Mention the new module.
4013
4014 2012-03-25  Bruno Haible  <bruno@clisp.org>
4015
4016         locale: Provide a complete 'struct lconv'.
4017         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4018         'struct lconv' does not contain int_p_cs_precedes.
4019         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4020         * doc/posix-headers/locale.texi: Update.
4021
4022         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4023         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4024         * doc/posix-headers/locale.texi: Update.
4025
4026         locale: Provide a working 'struct lconv'.
4027         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4028         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4029         'struct lconv' does not even contain decimal_point.
4030         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4031         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4032         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4033         * doc/posix-headers/locale.texi: Mention the problems with
4034         'struct lconv'.
4035         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4036
4037 2012-03-24  Bruno Haible  <bruno@clisp.org>
4038
4039         Enable common subexpression optimization in GCC.
4040         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4041         macros.
4042         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4043         GCC attribute 'const'.
4044         (uc_locale_language): Declare with GCC attribute 'pure'.
4045         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4046         with GCC attribute 'const'.
4047         * lib/unictype.in.h (uc_is_general_category_withtable,
4048         uc_combining_class, uc_combining_class_name,
4049         uc_combining_class_long_name, uc_bidi_class_name,
4050         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4051         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4052         uc_decimal_value, uc_digit_value, uc_numeric_value,
4053         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4054         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4055         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4056         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4057         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4058         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4059         Declare with GCC attribute 'const'.
4060         (uc_general_category_name, uc_general_category_long_name,
4061         uc_general_category_byname, uc_general_category,
4062         uc_is_general_category, uc_combining_class_byname,
4063         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4064         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4065         Declare with GCC attribute 'pure'.
4066         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4067         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4068         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4069         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4070         with GCC attribute 'pure'.
4071         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4072         'const'.
4073         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4074         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4075         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4076         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4077         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4078         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4079         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4080         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4081         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4082         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4083         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4084         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4085         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4086         GCC attribute 'pure'.
4087         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4088         'const'.
4089         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4090         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4091         u32_strwidth): Declare with GCC attribute 'pure'.
4092
4093         Enable common subexpression optimization in GCC.
4094         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4095         (alphasort): Declare with GCC attribute 'pure'.
4096         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4097         (atoll): Declare with GCC attribute 'pure'.
4098         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4099         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4100         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4101         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4102         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4103         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4104         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4105
4106 2012-03-24  Bruno Haible  <bruno@clisp.org>
4107
4108         gnulib-tool: Avoid unintended error output from 'cmp'.
4109         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4110         "cmp -s", not "cmp > /dev/null".
4111
4112 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4113
4114         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4115
4116         It's not just Automake versions < 1.9b that creates an empty
4117         pkgdatadir at installation time if pkgdata_DATA is specified
4118         to empty; modern automake versions do this as well, at least
4119         until automake 1.11.4 (not yet released at the moment of writing,
4120         but soon to appear).  That behaviour was generally considered a
4121         feature rather than a bug, at least until this discussion:
4122         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4123
4124         See also automake bugs #10997 and #11030.
4125
4126         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4127         reference to relevant automake bug numbers.
4128         (func_emit_tests_Makefile_am): Likewise.
4129
4130 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4131
4132         announce-gen: use Digest::SHA when possible
4133         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4134         back to Digest::SHA1 if necessary.
4135
4136 2012-03-20  Jim Meyering  <meyering@redhat.com>
4137
4138         tests: avoid gcc warnings about argv vs. const initializers
4139         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4140         warnings about discarding 'const' qualifier from pointer target type.
4141         * tests/test-posix_spawn2.c (main): Likewise.
4142
4143 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4144
4145         README-release: simplify slightly
4146         * top/README-release: Run "git checkout master" only once.
4147
4148 2012-03-15  Mark Wielaard  <mark@klomp.org>
4149
4150         git-merge-changelog: add specific example on how to use with hg.
4151         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4152
4153 2012-03-18  Mark Wielaard  <mark@klomp.org>
4154
4155         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4156
4157 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4158
4159         git-version-gen: don't let "prefix" envvar cause trouble
4160         * build-aux/git-version-gen (prefix): Initialize properly,
4161         so as not to use a value specified via the environment.
4162         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4163
4164 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         regex: diagnose too-large repeat counts in EREs
4167         Previously, the code did not diagnose the too-large repeat count
4168         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4169         as if it were 'b\{1000000000}', which is unexpected.
4170         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4171         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4172         is a reasonable one for this problem.  Another option would be to
4173         create a new REG_OVERFLOW error for repeat counts that are too large.
4174         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4175         count is too large, so that the caller can distinguish the two cases.
4176         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4177         "Too large" return code, and that repeat counts are one example of this.
4178
4179 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4180
4181         doc: some glibc x32 integer width issues
4182         * doc/posix-headers/sys_types.texi (sys/types.h):
4183         * doc/posix-headers/time.texi (time.h):
4184         Mention that glibc x32 does not conform to POSIX in a couple of
4185         areas related to integer widths.
4186
4187 2012-03-15  Bruno Haible  <bruno@clisp.org>
4188
4189         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4190         * lib/fma.c (VOLATILE): New macro.
4191         (FUNC): Use it to work around a GCC compiler bug.
4192
4193 2012-03-13  Bruno Haible  <bruno@clisp.org>
4194
4195         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4196         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4197         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4198         REPLACE_HYPOTL to 1.
4199         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4200
4201 2012-03-13  Bruno Haible  <bruno@clisp.org>
4202
4203         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4204         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4205         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4206         REPLACE_REMAINDERL to 1.
4207         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4208         bug.
4209
4210 2012-03-13  Bruno Haible  <bruno@clisp.org>
4211
4212         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4213         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4214         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4215         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4216         too big rounding errors.
4217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4218         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4219         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4220         (Depends-on): Update conditions.
4221         * tests/test-sqrtl.c (my_ldexpl): New function.
4222         (main): Add test of a particular value.
4223         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4224
4225 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4226
4227         doc: Update timer_* platform portability notes.
4228         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4229         that always return ENOSYS.
4230         * doc/posix-functions/timer_delete.texi: Likewise.
4231         * doc/posix-functions/timer_gettime.texi: Likewise.
4232         * doc/posix-functions/timer_settime.texi: Likewise.
4233
4234 2012-03-13  Bruno Haible  <bruno@clisp.org>
4235
4236         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4237         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4238         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4239         REPLACE_CBRTL to 1.
4240         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4241
4242 2012-03-13  Bruno Haible  <bruno@clisp.org>
4243
4244         remainderl: Avoid compilation error on AIX >= 5.2.
4245         * lib/math.in.h (remainderl): Undefine macro from the system header.
4246
4247 2012-03-13  Bruno Haible  <bruno@clisp.org>
4248
4249         Avoid compilation errors with MSVC option -fp:strict.
4250         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4251         * lib/cbrtf.c: Likewise.
4252         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4253
4254 2012-03-12  Bruno Haible  <bruno@clisp.org>
4255
4256         uninorm: Don't crash in out-of-memory conditions.
4257         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4258         gracefully.
4259         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4260         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4261
4262 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4263
4264         quote: fix syntax-check
4265         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4266         also exports quote_quoting_options.
4267
4268 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4269
4270         Collapse list of copyright years to ranges.  See
4271         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4272         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4273         build-aux/csharpexec.sh.in, build-aux/gnupload,
4274         build-aux/install-reloc, build-aux/javacomp.sh.in,
4275         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4276         build-aux/move-if-change, build-aux/reloc-ldflags,
4277         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4278
4279 2012-03-11  Bruno Haible  <bruno@clisp.org>
4280
4281         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4282         * m4/log2f-ieee.m4: New file.
4283         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4284         whether log2f works with a minus zero argument. Replace it if not.
4285         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4286         (Depends-on): Add log2-ieee.
4287         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4288         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4289
4290         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4291         * m4/log2-ieee.m4: New file.
4292         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4293         whether log2 works with a minus zero argument. Replace it if not.
4294         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4295         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4296         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4297
4298         Tests for module 'log2l-ieee'.
4299         * modules/log2l-ieee-tests: New file.
4300         * tests/test-log2l-ieee.c: New file.
4301
4302         New module 'log2l-ieee'.
4303         * modules/log2l-ieee: New file.
4304
4305         Tests for module 'log2-ieee'.
4306         * modules/log2-ieee-tests: New file.
4307         * tests/test-log2-ieee.c: New file.
4308
4309         New module 'log2-ieee'.
4310         * modules/log2-ieee: New file.
4311
4312         Tests for module 'log2f-ieee'.
4313         * modules/log2f-ieee-tests: New file.
4314         * tests/test-log2f-ieee.c: New file.
4315         * tests/test-log2-ieee.h: New file.
4316
4317         New module 'log2f-ieee'.
4318         * modules/log2f-ieee: New file.
4319
4320 2012-03-11  Bruno Haible  <bruno@clisp.org>
4321
4322         Tests for module 'log2l'.
4323         * modules/log2l-tests: New file.
4324         * tests/test-log2l.c: New file.
4325
4326         New module 'log2l'.
4327         * lib/math.in.h (log2l): New declaration.
4328         * lib/log2l.c: New file.
4329         * m4/log2l.m4: New file.
4330         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4332         REPLACE_LOG2L.
4333         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4334         REPLACE_LOG2L.
4335         * modules/log2l: New file.
4336         * tests/test-math-c++.cc: Check the declaration of log2l.
4337         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4338         and OSF/1 problems.
4339
4340 2012-03-11  Bruno Haible  <bruno@clisp.org>
4341
4342         Tests for module 'log2f'.
4343         * modules/log2f-tests: New file.
4344         * tests/test-log2f.c: New file.
4345
4346         New module 'log2f'.
4347         * lib/math.in.h (log2f): New declaration.
4348         * lib/log2f.c: New file.
4349         * m4/log2f.m4: New file.
4350         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4352         REPLACE_LOG2F.
4353         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4354         REPLACE_LOG2F.
4355         * modules/log2f: New file.
4356         * tests/test-math-c++.cc: Check the declaration of log2f.
4357         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4358         and OSF/1 and Cygwin problems.
4359
4360 2012-03-11  Bruno Haible  <bruno@clisp.org>
4361
4362         Tests for module 'log2'.
4363         * modules/log2-tests: New file.
4364         * tests/test-log2.c: New file.
4365         * tests/test-log2.h: New file.
4366
4367         New module 'log2'.
4368         * lib/math.in.h (log2): New declaration.
4369         * lib/log2.c: New file.
4370         * m4/log2.m4: New file.
4371         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4373         REPLACE_LOG2.
4374         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4375         REPLACE_LOG2.
4376         * modules/log2: New file.
4377         * tests/test-math-c++.cc: Check the declaration of log2.
4378         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4379         and OSF/1 and Cygwin problems.
4380
4381 2012-03-11  Bruno Haible  <bruno@clisp.org>
4382
4383         exp2* tests: More tests.
4384         * tests/test-exp2.h (test_function): Test all integral arguments that
4385         don't need to overflow or denormalized numbers.
4386         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4387         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4388         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4389
4390 2012-03-10  Bruno Haible  <bruno@clisp.org>
4391
4392         log1pl-ieee: Work around test failure on AIX 7.1.
4393         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4394
4395         log1pl-ieee: Work around test failure on IRIX 6.5.
4396         * m4/log1pl-ieee.m4: New file.
4397         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4398         test whether log1pl works with a minus zero argument. Replace it if
4399         not.
4400         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4402         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4403         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4404         (Depends-on): Update conditions.
4405         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4406         m4/signbit.m4.
4407         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4408         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4409
4410         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4411         * m4/log1pf-ieee.m4: New file.
4412         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4413         test whether log1pf works with a minus zero argument. Replace it if
4414         not.
4415         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4416         m4/signbit.m4.
4417         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4418         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4419
4420         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4421         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4422         (configure.ac): Require gl_FUNC_LOG1PF.
4423
4424         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4425         * m4/log1p-ieee.m4: New file.
4426         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4427         whether log1p works with a minus zero argument. Replace it if not.
4428         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4430         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4431         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4432         (Depends-on): Update conditions.
4433         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4434         m4/signbit.m4.
4435         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4436         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4437
4438         Tests for module 'log1pl-ieee'.
4439         * modules/log1pl-ieee-tests: New file.
4440         * tests/test-log1pl-ieee.c: New file.
4441
4442         New module 'log1pl-ieee'.
4443         * modules/log1pl-ieee: New file.
4444
4445         Tests for module 'log1p-ieee'.
4446         * modules/log1p-ieee-tests: New file.
4447         * tests/test-log1p-ieee.c: New file.
4448
4449         New module 'log1p-ieee'.
4450         * modules/log1p-ieee: New file.
4451
4452         Tests for module 'log1pf-ieee'.
4453         * modules/log1pf-ieee-tests: New file.
4454         * tests/test-log1pf-ieee.c: New file.
4455         * tests/test-log1p-ieee.h: New file.
4456
4457         New module 'log1pf-ieee'.
4458         * modules/log1pf-ieee: New file.
4459
4460 2012-03-10  Bruno Haible  <bruno@clisp.org>
4461
4462         Tests for module 'log1pl'.
4463         * modules/log1pl-tests: New file.
4464         * tests/test-log1pl.c: New file.
4465
4466         New module 'log1pl'.
4467         * lib/math.in.h (log1pl): New declaration.
4468         * lib/log1pl.c: New file.
4469         * m4/log1pl.m4: New file.
4470         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4472         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4473         * modules/log1pl: New file.
4474         * tests/test-math-c++.cc: Check the declaration of log1pl.
4475         * doc/posix-functions/log1pl.texi: Mention the new module.
4476
4477 2012-03-10  Bruno Haible  <bruno@clisp.org>
4478
4479         Tests for module 'log1pf'.
4480         * modules/log1pf-tests: New file.
4481         * tests/test-log1pf.c: New file.
4482
4483         New module 'log1pf'.
4484         * lib/math.in.h (log1pf): New declaration.
4485         * lib/log1pf.c: New file.
4486         * m4/log1pf.m4: New file.
4487         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4489         REPLACE_LOG1PF.
4490         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4491         REPLACE_LOG1PF.
4492         * modules/log1pf: New file.
4493         * tests/test-math-c++.cc: Check the declaration of log1pf.
4494         * doc/posix-functions/log1pf.texi: Mention the new module.
4495
4496 2012-03-10  Bruno Haible  <bruno@clisp.org>
4497
4498         log1p tests: More tests.
4499         * tests/test-log1p.h: New file.
4500         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4501         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4502         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4503         (main): Invoke test_function.
4504
4505         log1p: Provide replacement for Minix and MSVC.
4506         * lib/math.in.h (log1p): New declaration.
4507         * lib/log1p.c: New file.
4508         * m4/log1p.m4: New file.
4509         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4511         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4512         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4513         (Depends-on): Add math, isnand, log, round.
4514         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4515         HAVE_LOG1P is 0.
4516         * tests/test-math-c++.cc: Check the declaration of log1p.
4517         * doc/posix-functions/log1p.texi: Mention the replacement.
4518
4519 2012-03-10  Bruno Haible  <bruno@clisp.org>
4520
4521         math tests: Small simplification.
4522         * tests/test-exp.h (test_function): Use the same err_bound for
4523         'double' on platforms with sizeof (long double) == sizeof (double)
4524         than on platforms with sizeof (long double) > sizeof (double).
4525         * tests/test-exp2.h (test_function): Likewise.
4526         * tests/test-expm1.h (test_function): Likewise.
4527         * tests/test-log.h (test_function): Likewise.
4528
4529 2012-03-10  Bruno Haible  <bruno@clisp.org>
4530
4531         Fix some comments.
4532         * lib/expl.c: Fix an ambiguous comment.
4533         * lib/expm1.c: Likewise.
4534         * lib/expm1l.c: Likewise.
4535         * lib/exp2.c: Likewise.
4536         * lib/exp2l.c: Likewise.
4537
4538 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         regex: allow inclusion of <regex.h> before <limits.h>
4541         Without this patch, portable programs had to include <limits.h> before
4542         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4543         I ran into this problem with a test version of GNU grep on Solaris 8.
4544         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4545         This is done conditionally so that this change can be merged
4546         back to glibc.
4547         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4548         using the included regex.
4549
4550         fts: depend on fdopendir
4551         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4552         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4553         problem was introduced when fdopendir was split out.
4554
4555 2012-03-10  Bruno Haible  <bruno@clisp.org>
4556
4557         Remove unused variables.
4558         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4559         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4560
4561 2012-03-10  Bruno Haible  <bruno@clisp.org>
4562
4563         isnanf-nolibm: Fix last commit.
4564         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4565
4566         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4567         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4568
4569 2012-03-10  Bruno Haible  <bruno@clisp.org>
4570
4571         logf-ieee: Work around test failure on NetBSD 5.1.
4572         * m4/logf-ieee.m4: New file.
4573         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4574         whether logf works with a negative argument. Replace it if not.
4575         * lib/logf.c (logf): For negative arguments, return NaN.
4576         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4577         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4578         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4579
4580         logf-ieee: Work around test failure on Solaris 9.
4581         * modules/logf-ieee (Depends-on): Add log-ieee.
4582         (configure.ac): Require gl_FUNC_LOGF.
4583
4584         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4585         * m4/log-ieee.m4: New file.
4586         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4587         log works with a negative argument. Replace it if not.
4588         * lib/log.c (log): For negative arguments, return NaN.
4589         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4590         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4591         * doc/posix-functions/log.texi: Mention the log-ieee module.
4592
4593         Tests for module 'logl-ieee'.
4594         * modules/logl-ieee-tests: New file.
4595         * tests/test-logl-ieee.c: New file.
4596
4597         New module 'logl-ieee'.
4598         * modules/logl-ieee: New file.
4599
4600         Tests for module 'log-ieee'.
4601         * modules/log-ieee-tests: New file.
4602         * tests/test-log-ieee.c: New file.
4603
4604         New module 'log-ieee'.
4605         * modules/log-ieee: New file.
4606
4607         Tests for module 'logf-ieee'.
4608         * modules/logf-ieee-tests: New file.
4609         * tests/test-logf-ieee.c: New file.
4610         * tests/test-log-ieee.h: New file.
4611
4612         New module 'logf-ieee'.
4613         * modules/logf-ieee: New file.
4614
4615 2012-03-10  Bruno Haible  <bruno@clisp.org>
4616
4617         log: Fix bug introduced on 2012-03-09.
4618         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4619
4620 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4621
4622         timer-time: link explicitly with pthreads on glibc
4623         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4624         to support static linking, when newer glibc is
4625         detected, as that contains pthread emulation of
4626         POSIX timer functions where required.
4627         * modules/timer-time: Depend on threadlib to
4628         pull in the appropriate library to link.
4629
4630 2012-03-10  Bruno Haible  <bruno@clisp.org>
4631
4632         log* tests: More tests.
4633         * tests/test-log.h: New file.
4634         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4635         (main): Invoke test_function.
4636         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4637         (main): Invoke test_function.
4638         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4639         (main): Invoke test_function.
4640         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4641         tests/randomd.c.
4642         (Makefile.am): Add randomd.c to test_log_SOURCES.
4643         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4644         tests/randomf.c.
4645         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4646         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4647         tests/randoml.c.
4648         (Depends-on): Add 'float'.
4649         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4650
4651 2012-03-09  Bruno Haible  <bruno@clisp.org>
4652
4653         logl: Work around OSF/1 5.1 bug.
4654         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4655         * lib/logl.c (logl): If logl exists, use it and provide just the
4656         workaround.
4657         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4658         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4660         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4661         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4662         (Depends-on): Update conditions.
4663         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4664
4665 2012-03-09  Bruno Haible  <bruno@clisp.org>
4666
4667         logf: Work around OSF/1 5.1 bug.
4668         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4669         * lib/logf.c (logf): If logf exists, use it and provide just the
4670         workaround.
4671         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4672         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4674         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4675         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4676         (Depends-on): Update conditions.
4677         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4678
4679 2012-03-09  Bruno Haible  <bruno@clisp.org>
4680
4681         log: Work around OSF/1 5.1 bug.
4682         * lib/math.in.h (log): New declaration.
4683         * lib/log.c: New file.
4684         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4685         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4686         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4688         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4689         * modules/log (Files): Add lib/log.c.
4690         (Depends-on): Add math.
4691         (configure.ac): If REPLACE_LOG is 1, compile an override.
4692         * tests/test-math-c++.cc: Check the declaration of log.
4693         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4694
4695 2012-03-09  Jim Meyering  <meyering@redhat.com>
4696
4697         readtokens.c: adjust wording in a comment
4698         * lib/readtokens.c: Insert omitted "that" in a comment.
4699
4700 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4701
4702         modechange: add notations +40, 00440, etc.
4703         * lib/modechange.c (mode_compile): Support new notations
4704         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4705
4706 2012-03-08  Bruno Haible  <bruno@clisp.org>
4707
4708         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4709         * m4/exp2l-ieee.m4: New file.
4710         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4711         test whether exp2l works with a NaN argument and with a negative
4712         infinity argument. Replace it if not.
4713         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4715         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4716         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4717         (Depends-on): Update conditions.
4718         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4719         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4720         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4721
4722         Tests for module 'exp2l-ieee'.
4723         * modules/exp2l-ieee-tests: New file.
4724         * tests/test-exp2l-ieee.c: New file.
4725
4726         New module 'exp2l-ieee'.
4727         * modules/exp2l-ieee: New file.
4728
4729         Tests for module 'exp2-ieee'.
4730         * modules/exp2-ieee-tests: New file.
4731         * tests/test-exp2-ieee.c: New file.
4732
4733         New module 'exp2-ieee'.
4734         * modules/exp2-ieee: New file.
4735
4736         Tests for module 'exp2f-ieee'.
4737         * modules/exp2f-ieee-tests: New file.
4738         * tests/test-exp2f-ieee.c: New file.
4739         * tests/test-exp2-ieee.h: New file.
4740
4741         New module 'exp2f-ieee'.
4742         * modules/exp2f-ieee: New file.
4743
4744 2012-03-08  Bruno Haible  <bruno@clisp.org>
4745
4746         Tests for module 'exp2l'.
4747         * modules/exp2l-tests: New file.
4748         * tests/test-exp2l.c: New file.
4749
4750         New module 'exp2l'.
4751         * lib/math.in.h (exp2l): New declaration.
4752         * lib/exp2l.c: New file.
4753         * lib/expl-table.c: New file, extracted from lib/expl.c.
4754         * lib/expl.c (gl_expl_table): New declaration.
4755         (expl): Remove expl_table. Update reference.
4756         * m4/exp2l.m4: New file.
4757         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4759         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4760         * modules/exp2l: New file.
4761         * modules/expl (Files): Add lib/expl-table.c.
4762         (configure.ac): Compile also expl-table.c.
4763         * tests/test-math-c++.cc: Check the declaration of exp2l.
4764         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4765         problem.
4766
4767 2012-03-08  Bruno Haible  <bruno@clisp.org>
4768
4769         Tests for module 'exp2f'.
4770         * modules/exp2f-tests: New file.
4771         * tests/test-exp2f.c: New file.
4772
4773         New module 'exp2f'.
4774         * lib/math.in.h (exp2f): New declaration.
4775         * lib/exp2f.c: New file.
4776         * m4/exp2f.m4: New file.
4777         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4779         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4780         * modules/exp2f: New file.
4781         * tests/test-math-c++.cc: Check the declaration of exp2f.
4782         * doc/posix-functions/exp2f.texi: Mention the new module and the
4783         IRIX problem.
4784
4785 2012-03-08  Bruno Haible  <bruno@clisp.org>
4786
4787         Tests for module 'exp2'.
4788         * modules/exp2-tests: New file.
4789         * tests/test-exp2.c: New file.
4790         * tests/test-exp2.h: New file.
4791
4792         New module 'exp2'.
4793         * lib/math.in.h (exp2): New declaration.
4794         * lib/exp2.c: New file.
4795         * m4/exp2.m4: New file.
4796         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4798         REPLACE_EXP2.
4799         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4800         REPLACE_EXP2.
4801         * modules/exp2: New file.
4802         * tests/test-math-c++.cc: Check the declaration of exp2.
4803         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4804         and OpenBSD problems.
4805
4806 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4807
4808         savedir: fix comment typo
4809         * lib/savedir.c (savedirstream): Fix typo in comment.
4810
4811 2012-03-08  Bruno Haible  <bruno@clisp.org>
4812
4813         test-readtokens.c: use const; remove unwarranted cast
4814         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4815
4816 2012-03-08  Bruno Haible  <bruno@clisp.org>
4817
4818         fmal: Avoid compilation error on AIX.
4819         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4820         AIX 5.2..7.1.
4821
4822 2012-03-08  Bruno Haible  <bruno@clisp.org>
4823
4824         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4825         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4826         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4827         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4828         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4829         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4830         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4831
4832 2012-03-08  Bruno Haible  <bruno@clisp.org>
4833
4834         remainderf: Override buggy system function on IRIX 6.5.
4835         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4836         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4837         when it exists.
4838         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4839
4840 2012-03-08  Jim Meyering  <meyering@redhat.com>
4841
4842         test-readtokens.c: avoid const-related compilation warnings
4843         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4844
4845 2012-03-07  Jim Meyering  <meyering@redhat.com>
4846             Bruno Haible  <bruno@clisp.org>
4847
4848         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4849         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4850         tests/randomd.c.
4851         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4852         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4853         tests/randoml.c.
4854         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4855
4856 2012-03-07  Bruno Haible  <bruno@clisp.org>
4857
4858         expm1l: Avoid compilation error on AIX.
4859         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4860         AIX 5.2..7.1.
4861
4862 2012-03-07  Bruno Haible  <bruno@clisp.org>
4863
4864         expm1l: Don't override undeclared system function on IRIX 6.5.
4865         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4866         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4867         it exists. Set HAVE_DECL_EXPM1L.
4868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4869         HAVE_EXPM1L.
4870         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4871         HAVE_EXPM1L.
4872         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4873
4874 2012-03-07  Bruno Haible  <bruno@clisp.org>
4875
4876         remainderl: Don't override undeclared system function on IRIX 6.5.
4877         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4878         HAVE_REMAINDERL.
4879         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4880         declared when it exists. Set HAVE_DECL_REMAINDERL.
4881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4882         not HAVE_REMAINDERL.
4883         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4884         HAVE_REMAINDERL.
4885         * doc/posix-functions/remainderl.texi: Mention missing declaration
4886         problem.
4887
4888 2012-03-07  Bruno Haible  <bruno@clisp.org>
4889
4890         rintf: Don't override undeclared system function on IRIX 6.5.
4891         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4892         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4893         exists. Set HAVE_DECL_RINTF.
4894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4895         HAVE_RINTF.
4896         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4897         HAVE_RINTF.
4898         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4899
4900 2012-03-07  Bruno Haible  <bruno@clisp.org>
4901
4902         roundl: Avoid compilation error on AIX.
4903         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4904         AIX 5.2..7.1.
4905
4906 2012-03-07  Bruno Haible  <bruno@clisp.org>
4907
4908         roundl: Don't override undeclared system function on IRIX 6.5.
4909         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4910         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4911         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4912         * modules/roundl (configure.ac): For replacement code, test
4913         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4914         (Depends-on): Update conditions.
4915         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4916
4917 2012-03-07  Bruno Haible  <bruno@clisp.org>
4918
4919         roundf: Don't override undeclared system function on IRIX 6.5.
4920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4921         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4922         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4923         * modules/roundf (configure.ac): For replacement code, test
4924         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4925         (Depends-on): Update conditions.
4926         * modules/roundf-ieee (Depends-on): Update conditions.
4927         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4928
4929 2012-03-07  Bruno Haible  <bruno@clisp.org>
4930
4931         round: Don't override undeclared system function on IRIX 6.5.
4932         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4933         argument.
4934         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4935         also when it is not declared. Set HAVE_ROUND. For replacement code,
4936         test HAVE_ROUND, not HAVE_DECL_ROUND.
4937         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4938         not HAVE_DECL_ROUND.
4939         (Depends-on): Update conditions.
4940         * modules/round-ieee (Depends-on): Update conditions.
4941         * doc/posix-functions/round.texi: Mention the IRIX problem.
4942
4943 2012-03-07  Bruno Haible  <bruno@clisp.org>
4944
4945         copysignf: Don't override undeclared system function on IRIX 6.5.
4946         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4947         HAVE_COPYSIGNF.
4948         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4949         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4951         not HAVE_COPYSIGNF.
4952         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4953         HAVE_COPYSIGNF.
4954         * doc/posix-functions/copysignf.texi: Mention missing declaration
4955         problem.
4956
4957 2012-03-07  Jim Meyering  <meyering@redhat.com>
4958
4959         readtokens: add tests
4960         * modules/readtokens-tests: New file.
4961         * tests/test-readtokens.c: New file.
4962
4963 2012-03-07  Jim Meyering  <meyering@redhat.com>
4964
4965         quotearg: the module must now include quote.h
4966         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4967         So must the module.
4968         * modules/quotearg (Files): Add quote.h.
4969
4970 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4971
4972         readtokens: avoid core dumps with unusual calling patterns
4973         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4974         * lib/readtokens.c: Include limits.h.
4975         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4976         (readtoken): Don't cache the delimiters; the cache code was buggy
4977         if !delim && saved_delim, or if the new n_delim differs from the old.
4978         Also, it wasn't thread-safe.
4979
4980 2012-03-07  Bruno Haible  <bruno@clisp.org>
4981
4982         quote: Adhere to common module description layout.
4983         * modules/quote (Makefile.am): Add back empty section.
4984
4985 2012-03-06  Akim Demaille  <demaille@gostai.com>
4986
4987         quote: fuse into quotearg
4988         This patch is made for the benefit of Bison.
4989         quote does not leave the choice of the quoting style to the user.
4990         quoting_style provides poor customizability, yet quoting_options,
4991         which is very rich, is hidden inside quotearg.c.  So in order to
4992         allow quote customization, move its implementation to quotearg.c.
4993         * lib/quote.c: Remove.
4994         * modules/quote: Adjust.
4995         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4996         warning: provide all the members of literal structs.
4997         (quote_quoting_options): New.
4998         (quote, quote_n): Import implementation from quote.c.
4999         * lib/quote.h: Import the comments from quote.c.
5000         (quote_quoting_options): New.
5001
5002 2012-03-06  Bruno Haible  <bruno@clisp.org>
5003
5004         Tests for module 'expm1l-ieee'.
5005         * modules/expm1l-ieee-tests: New file.
5006         * tests/test-expm1l-ieee.c: New file.
5007
5008         New module 'expm1l-ieee'.
5009         * modules/expm1l-ieee: New file.
5010
5011         Tests for module 'expm1f-ieee'.
5012         * modules/expm1f-ieee-tests: New file.
5013         * tests/test-expm1f-ieee.c: New file.
5014
5015         New module 'expm1f-ieee'.
5016         * modules/expm1f-ieee: New file.
5017
5018         Tests for module 'expm1-ieee'.
5019         * modules/expm1-ieee-tests: New file.
5020         * tests/test-expm1-ieee.c: New file.
5021         * tests/test-expm1-ieee.h: New file.
5022
5023         New module 'expm1-ieee'.
5024         * modules/expm1-ieee: New file.
5025         * m4/expm1-ieee.m4: New file.
5026         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5027         whether expm1 works with a minus zero argument. Replace it if not.
5028         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5030         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5031         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5032         (Depends-on): Update conditions.
5033         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5034         AIX problem.
5035
5036 2012-03-06  Bruno Haible  <bruno@clisp.org>
5037
5038         Work around expm1f bug on IRIX 6.5.
5039         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5040         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5041         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5042         not work.
5043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5044         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5045         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5046         (Depends-on): Update conditions.
5047         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5048
5049 2012-03-06  Bruno Haible  <bruno@clisp.org>
5050
5051         Tests for module 'expm1l'.
5052         * modules/expm1l-tests: New file.
5053         * tests/test-expm1l.c: New file.
5054
5055         New module 'expm1l'.
5056         * lib/math.in.h (expm1l): New declaration.
5057         * lib/expm1l.c: New file.
5058         * m4/expm1l.m4: New file.
5059         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5061         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5062         * modules/expm1l: New file.
5063         * tests/test-math-c++.cc: Check the declaration of expm1l.
5064         * doc/posix-functions/expm1l.texi: Mention the new module.
5065
5066 2012-03-06  Bruno Haible  <bruno@clisp.org>
5067
5068         Tests for module 'expm1f'.
5069         * modules/expm1f-tests: New file.
5070         * tests/test-expm1f.c: New file.
5071
5072         New module 'expm1f'.
5073         * lib/math.in.h (expm1f): New declaration.
5074         * lib/expm1f.c: New file.
5075         * m4/expm1f.m4: New file.
5076         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5078         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5079         * modules/expm1f: New file.
5080         * tests/test-math-c++.cc: Check the declaration of expm1f.
5081         * doc/posix-functions/expm1f.texi: Mention the new module.
5082
5083 2012-03-06  Bruno Haible  <bruno@clisp.org>
5084
5085         Tests for module 'expm1'.
5086         * modules/expm1-tests: New file.
5087         * tests/test-expm1.c: New file.
5088         * tests/test-expm1.h: New file.
5089
5090         New module 'expm1'.
5091         * lib/math.in.h (expm1): New declaration.
5092         * lib/expm1.c: New file.
5093         * m4/expm1.m4: New file.
5094         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5096         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5097         * modules/expm1: New file.
5098         * tests/test-math-c++.cc: Check the declaration of expm1.
5099         * doc/posix-functions/expm1.texi: Mention the new module.
5100
5101 2012-03-06  Bruno Haible  <bruno@clisp.org>
5102
5103         math: Ensure declarations of math functions.
5104         * modules/acosf (Depends-on): Add 'extensions'.
5105         * modules/asinf (Depends-on): Likewise.
5106         * modules/atan2f (Depends-on): Likewise.
5107         * modules/atanf (Depends-on): Likewise.
5108         * modules/cbrt (Depends-on): Likewise.
5109         * modules/cbrtf (Depends-on): Likewise.
5110         * modules/cbrtl (Depends-on): Likewise.
5111         * modules/copysignf (Depends-on): Likewise.
5112         * modules/copysignl (Depends-on): Likewise.
5113         * modules/cosf (Depends-on): Likewise.
5114         * modules/coshf (Depends-on): Likewise.
5115         * modules/expf (Depends-on): Likewise.
5116         * modules/fabsf (Depends-on): Likewise.
5117         * modules/fabsl (Depends-on): Likewise.
5118         * modules/fmaf (Depends-on): Likewise.
5119         * modules/fmal (Depends-on): Likewise.
5120         * modules/fmodf (Depends-on): Likewise.
5121         * modules/fmodl (Depends-on): Likewise.
5122         * modules/frexpf (Depends-on): Likewise.
5123         * modules/frexpl (Depends-on): Likewise.
5124         * modules/hypot (Depends-on): Likewise.
5125         * modules/hypotf (Depends-on): Likewise.
5126         * modules/hypotl (Depends-on): Likewise.
5127         * modules/ldexpf (Depends-on): Likewise.
5128         * modules/ldexpl (Depends-on): Likewise.
5129         * modules/log10f (Depends-on): Likewise.
5130         * modules/log10l (Depends-on): Likewise.
5131         * modules/log1p (Depends-on): Likewise.
5132         * modules/logb (Depends-on): Likewise.
5133         * modules/logf (Depends-on): Likewise.
5134         * modules/modff (Depends-on): Likewise.
5135         * modules/modfl (Depends-on): Likewise.
5136         * modules/powf (Depends-on): Likewise.
5137         * modules/remainderf (Depends-on): Likewise.
5138         * modules/remainderl (Depends-on): Likewise.
5139         * modules/rintf (Depends-on): Likewise.
5140         * modules/rintl (Depends-on): Likewise.
5141         * modules/sinf (Depends-on): Likewise.
5142         * modules/sinhf (Depends-on): Likewise.
5143         * modules/sqrtf (Depends-on): Likewise.
5144         * modules/tanf (Depends-on): Likewise.
5145         * modules/tanhf (Depends-on): Likewise.
5146         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5147         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5148         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5149         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5150         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5151         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5152         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5153         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5154         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5155         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5156         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5157         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5158         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5159         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5160         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5161         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5162         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5163         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5164         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5165         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5166         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5167         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5168         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5169         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5171         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5172         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5173         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5174         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5175         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5176         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5177         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5178         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5179         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5180         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5181         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5182         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5183         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5184         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5185         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5186         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5187
5188 2012-03-06  Bruno Haible  <bruno@clisp.org>
5189
5190         math: Update module names in warnings.
5191         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5192         tanl): Use specific module name in warn-on-use warning.
5193
5194 2012-03-06  Bruno Haible  <bruno@clisp.org>
5195
5196         expl: Simplify computation.
5197         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5198
5199 2012-03-05  Bruno Haible  <bruno@clisp.org>
5200
5201         exp* tests: More tests.
5202         * tests/test-exp.h: New file.
5203         * tests/test-exp.c: Include <float.h> and test-exp.h.
5204         (main): Invoke test_function.
5205         * tests/test-expf.c: Include <float.h> and test-exp.h.
5206         (main): Invoke test_function.
5207         * tests/test-expl.c: Include <float.h> and test-exp.h.
5208         (main): Invoke test_function.
5209         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5210         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5211         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5212         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5213         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5214         (Depends-on): Add 'float'.
5215         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5216
5217         expl: Fix precision of computed result.
5218         * lib/expl.c: Completely rewritten.
5219         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5220         (Maintainer): Add me.
5221         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5222
5223 2012-03-05  Bruno Haible  <bruno@clisp.org>
5224
5225         cbrt* tests: More tests.
5226         * tests/test-cbrt.h: New file.
5227         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5228         (main): Invoke test_function.
5229         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5230         (main): Invoke test_function.
5231         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5232         (main): Invoke test_function.
5233         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5234         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5235         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5236         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5237         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5238         (Depends-on): Add 'float'.
5239         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5240
5241 2012-03-05  Bruno Haible  <bruno@clisp.org>
5242
5243         hypot* tests: More tests.
5244         * tests/test-hypot.h: New file, partially extracted from
5245         tests/test-hypotl.c.
5246         * tests/test-hypot.c: Include test-hypot.h.
5247         (main): Invoke test_function.
5248         * tests/test-hypotf.c: Include test-hypot.h.
5249         (main): Invoke test_function.
5250         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5251         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5252         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5253         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5254         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5255         tests/randomf.c.
5256         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5257         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5258         tests/randoml.c.
5259         (Depends-on): Add 'fpucw', 'float'.
5260         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5261
5262 2012-03-05  Bruno Haible  <bruno@clisp.org>
5263
5264         fpucw: Doc about FreeBSD.
5265         * lib/fpucw.h: Mention FreeBSD in comments.
5266
5267 2012-03-04  Bruno Haible  <bruno@clisp.org>
5268
5269         sqrt* tests: More tests.
5270         * tests/test-sqrt.h: New file.
5271         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5272         (main): Invoke test_function.
5273         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5274         (main): Invoke test_function.
5275         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5276         (main): Invoke test_function.
5277         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5278         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5279         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5280         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5281         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5282         (Depends-on): Add 'float'.
5283         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5284
5285 2012-03-04  Bruno Haible  <bruno@clisp.org>
5286
5287         remainder* tests: More tests.
5288         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5289         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5290         (main): Invoke test_function.
5291         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5292         (main): Invoke test_function.
5293         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5294         (main): Invoke test_function.
5295         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5296         tests/randomd.c.
5297         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5298         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5299         tests/randomf.c.
5300         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5301         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5302         tests/randoml.c.
5303         (Depends-on): Add 'float'.
5304         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5305
5306 2012-03-04  Bruno Haible  <bruno@clisp.org>
5307
5308         remainder, remainderf, remainderl: Fix computation for large quotients.
5309         * lib/remainder.c: Completely rewritten.
5310         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5311         USE_FLOAT.
5312         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5313         USE_LONG_DOUBLE.
5314         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5315         isnand, isinf. Remove round, fma.
5316         * modules/remainderf (Files): Add lib/remainder.c.
5317         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5318         Remove roundf, fmaf.
5319         * modules/remainderl (Files): Add lib/remainder.c.
5320         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5321         isinf. Remove roundl, fmal.
5322         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5323         REMAINDER_LIBM.
5324         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5325         REMAINDERF_LIBM.
5326         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5327         REMAINDERL_LIBM.
5328
5329 2012-03-04  Bruno Haible  <bruno@clisp.org>
5330
5331         fmod* tests: More tests.
5332         * tests/test-fmod.h (my_ldexp): New function.
5333         (test_function): Reduce amount of random numbers to test. Add tests
5334         of very large quotients x / y.
5335         * tests/test-fmod.c (MAX_EXP): New macro.
5336         * tests/test-fmodf.c (MAX_EXP): Likewise.
5337         * tests/test-fmodl.c (MAX_EXP): Likewise.
5338
5339 2012-03-04  Bruno Haible  <bruno@clisp.org>
5340
5341         fmod, fmodl: Fix computation for large quotients x / y.
5342         * lib/fmod.c: Completely rewritten.
5343         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5344         USE_LONG_DOUBLE.
5345         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5346         isnand. Remove fma.
5347         * modules/fmodl (Files): Add lib/fmod.c.
5348         (Depends-on): Add float, isfinite, signbit, fabsl,
5349         frexpl, ldexpl, isnanl. Remove fma.
5350         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5351         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5352
5353 2012-03-03  Bruno Haible  <bruno@clisp.org>
5354
5355         fmod* tests: More tests.
5356         * tests/test-fmod.h: New file.
5357         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5358         (main): Invoke test_function.
5359         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5360         (main): Invoke test_function.
5361         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5362         (main): Invoke test_function.
5363         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5364         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5365         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5366         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5367         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5368         (Depends-on): Add 'float'.
5369         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5370
5371 2012-03-03  Bruno Haible  <bruno@clisp.org>
5372
5373         rint* tests: More tests.
5374         * tests/test-rint.h: New file, partially extracted from
5375         tests/test-rintl.c.
5376         * tests/test-rint.c: Include test-rint.h.
5377         (main): Invoke test_function.
5378         * tests/test-rintf.c: Include test-rint.h.
5379         (main): Invoke test_function.
5380         * tests/test-rintl.c: Include test-rint.h.
5381         (main): Invoke test_function.
5382         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5383         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5384         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5385         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5386         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5387         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5388
5389 2012-03-03  Bruno Haible  <bruno@clisp.org>
5390
5391         modf* tests: More tests.
5392         * tests/test-modf.h: New file.
5393         * tests/test-modf.c: Include <float.h> and test-modf.h.
5394         (main): Invoke test_function.
5395         * tests/test-modff.c: Include <float.h> and test-modf.h.
5396         (main): Invoke test_function.
5397         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5398         (main): Invoke test_function.
5399         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5400         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5401         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5402         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5403         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5404         (Depends-on): Add 'float'.
5405         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5406
5407 2012-03-03  Bruno Haible  <bruno@clisp.org>
5408
5409         fabs* tests: More tests.
5410         * tests/test-fabs.h: New file, partially extracted from
5411         tests/test-fabsl.c.
5412         * tests/test-fabs.c (RANDOM): New macro.
5413         * tests/test-fabsf.c (RANDOM): New macro.
5414         * tests/test-fabsl.c (RANDOM): New macro.
5415         * modules/fabs-tests (Files): Add tests/randomd.c.
5416         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5417         * modules/fabsf-tests (Files): Add tests/randomf.c.
5418         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5419         * modules/fabsl-tests (Files): Add tests/randoml.c.
5420         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5421
5422 2012-03-03  Bruno Haible  <bruno@clisp.org>
5423
5424         ldexp* tests: More tests.
5425         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5426         * tests/test-ldexp.c (RANDOM): New macro.
5427         * tests/test-ldexpf.c (RANDOM): New macro.
5428         * tests/test-ldexpl.c (RANDOM): New macro.
5429         * modules/ldexp-tests (Files): Add tests/randomd.c.
5430         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5431         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5432         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5433         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5434         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5435
5436 2012-03-03  Bruno Haible  <bruno@clisp.org>
5437
5438         frexp* tests: More tests.
5439         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5440         * tests/test-frexp.c (RANDOM): New macro.
5441         * tests/test-frexpf.c (RANDOM): New macro.
5442         * tests/test-frexpl.c (RANDOM): New macro.
5443         * modules/frexp-tests (Files): Add tests/randomd.c.
5444         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5445         * modules/frexpf-tests (Files): Add tests/randomf.c.
5446         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5447         * modules/frexpl-tests (Files): Add tests/randoml.c.
5448         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5449
5450 2012-03-03  Bruno Haible  <bruno@clisp.org>
5451
5452         Support for pseudo-random numbers in tests.
5453         * tests/randomf.c: New file.
5454         * tests/randomd.c: New file.
5455         * tests/randoml.c: New file.
5456         * tests/macros.h (randomf, randomd, randoml): New declarations.
5457
5458 2012-03-03  Bruno Haible  <bruno@clisp.org>
5459
5460         frexp* tests: Refactor.
5461         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5462         * tests/test-frexp.c: Include and use it.
5463         * tests/test-frexpf.c: Likewise.
5464         * tests/test-frexpl.c: Likewise.
5465         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5466         * modules/frexpf-tests (Files): Likewise.
5467         * modules/frexpl-tests (Files): Likewise.
5468
5469 2012-03-02  Jim Meyering  <meyering@redhat.com>
5470
5471         maint: don't specify XZ_OPT=-9ev in dist-related rule
5472         Using xz's -9 option is warranted only if you have a very large
5473         tarball (see xz's documentation for the sizes vs. presets), and
5474         requires 64MiB of memory at decompression time.
5475         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5476         Automake's default of just "-e" is fine.  Override on a
5477         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5478
5479 2012-03-01  Eric Blake  <eblake@redhat.com>
5480
5481         maint.mk: allow announcement for non-gnulib project
5482         * maint.mk (announcement): Skip gnulib version if not used.
5483
5484 2012-03-01  Jim Meyering  <meyering@redhat.com>
5485
5486         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5487         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5488         envvar settings cannot interfere.  Otherwise, setting envvars like
5489         prohibit=foo require=bar, etc. would cause spurious test failures.
5490
5491 2012-03-01  Eric Blake  <eblake@redhat.com>
5492
5493         maint.mk: add per-line exclusions to prohibitions
5494         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5495         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5496         (sc_const_long_option): Use it.
5497
5498 2012-03-01  Bruno Haible  <bruno@clisp.org>
5499
5500         Tests for module 'expl-ieee'.
5501         * modules/expl-ieee-tests: New file.
5502         * tests/test-expl-ieee.c: New file.
5503
5504         New module 'expl-ieee'.
5505         * modules/expl-ieee: New file.
5506
5507         Tests for module 'exp-ieee'.
5508         * modules/exp-ieee-tests: New file.
5509         * tests/test-exp-ieee.c: New file.
5510
5511         New module 'exp-ieee'.
5512         * modules/exp-ieee: New file.
5513
5514         Tests for module 'expf-ieee'.
5515         * modules/expf-ieee-tests: New file.
5516         * tests/test-expf-ieee.c: New file.
5517         * tests/test-exp-ieee.h: New file.
5518
5519         New module 'expf-ieee'.
5520         * modules/expf-ieee: New file.
5521
5522 2012-02-29  Bruno Haible  <bruno@clisp.org>
5523
5524         cbrtl-ieee: Work around test failure on IRIX 6.5.
5525         * m4/cbrtl-ieee.m4: New file.
5526         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5527         test whether cbrtl works with a minus zero argument. Replace it if not.
5528         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5530         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5531         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5532         (Depends-on): Update conditions.
5533         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5534         m4/signbit.m4.
5535         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5536         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5537         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5538
5539         Tests for module 'cbrtl-ieee'.
5540         * modules/cbrtl-ieee-tests: New file.
5541         * tests/test-cbrtl-ieee.c: New file.
5542
5543         New module 'cbrtl-ieee'.
5544         * modules/cbrtl-ieee: New file.
5545
5546         Tests for module 'cbrt-ieee'.
5547         * modules/cbrt-ieee-tests: New file.
5548         * tests/test-cbrt-ieee.c: New file.
5549
5550         New module 'cbrt-ieee'.
5551         * modules/cbrt-ieee: New file.
5552
5553         Tests for module 'cbrtf-ieee'.
5554         * modules/cbrtf-ieee-tests: New file.
5555         * tests/test-cbrtf-ieee.c: New file.
5556         * tests/test-cbrt-ieee.h: New file.
5557
5558         New module 'cbrtf-ieee'.
5559         * modules/cbrtf-ieee: New file.
5560
5561 2012-02-29  Bruno Haible  <bruno@clisp.org>
5562
5563         cbrtf: Work around bug in IRIX 6.5 system function.
5564         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5565         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5566         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5567         work.
5568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5569         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5570         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5571         (Depends-on): Update conditions.
5572         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5573
5574 2012-02-29  Bruno Haible  <bruno@clisp.org>
5575
5576         Tests for module 'cbrtl'.
5577         * modules/cbrtl-tests: New file.
5578         * tests/test-cbrtl.c: New file.
5579
5580         New module 'cbrtl'.
5581         * lib/math.in.h (cbrtl): New declaration.
5582         * lib/cbrtl.c: New file.
5583         * m4/cbrtl.m4: New file.
5584         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5586         HAVE_DECL_CBRTL.
5587         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5588         HAVE_DECL_CBRTL.
5589         * modules/cbrtl: New file.
5590         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5591         * doc/posix-functions/cbrtl.texi: Mention the new module.
5592
5593 2012-02-29  Bruno Haible  <bruno@clisp.org>
5594
5595         Tests for module 'cbrtf'.
5596         * modules/cbrtf-tests: New file.
5597         * tests/test-cbrtf.c: New file.
5598
5599         New module 'cbrtf'.
5600         * lib/math.in.h (cbrtf): New declaration.
5601         * lib/cbrtf.c: New file.
5602         * m4/cbrtf.m4: New file.
5603         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5605         HAVE_DECL_CBRTF.
5606         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5607         HAVE_DECL_CBRTF.
5608         * modules/cbrtf: New file.
5609         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5610         * doc/posix-functions/cbrtf.texi: Mention the new module.
5611
5612 2012-02-29  Bruno Haible  <bruno@clisp.org>
5613
5614         cbrt: Provide replacement on MSVC and Minix.
5615         * lib/math.in.h (cbrt): New declaration.
5616         * lib/cbrt.c: New file.
5617         * m4/cbrt.m4: New file.
5618         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5620         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5621         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5622         (Depends-on): Add dependencies.
5623         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5624         * tests/test-math-c++.cc: Check the declaration of cbrt.
5625         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5626         replacement.
5627
5628 2012-02-29  Bruno Haible  <bruno@clisp.org>
5629
5630         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5631         * m4/hypotl-ieee.m4: New file.
5632         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5633         test whether hypotl works with mixed NaN and Infinity arguments.
5634         Replace it if not.
5635         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5637         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5638         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5639         (Depends-on): Update conditions.
5640         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5641         (Depends-on): Add hypot-ieee.
5642         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5643         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5644
5645         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5646         * m4/hypotf-ieee.m4: New file.
5647         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5648         test whether hypotf works with mixed NaN and Infinity arguments.
5649         Replace it if not.
5650         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5651         (Depends-on): Add hypot-ieee.
5652         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5653         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5654
5655         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5656         * lib/math.in.h (hypot): New declaration.
5657         * lib/hypot.c: New file.
5658         * m4/hypot-ieee.m4: New file.
5659         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5660         whether hypot works with mixed NaN and Infinity arguments. Replace it
5661         if not.
5662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5663         REPLACE_HYPOT.
5664         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5665         * modules/hypot (Files): Add lib/hypot.c.
5666         (Depends-on): Add dependencies.
5667         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5668         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5669         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5670         * tests/test-math-c++.cc: Check the declaration of hypot.
5671         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5672
5673         Tests for module 'hypotl-ieee'.
5674         * modules/hypotl-ieee-tests: New file.
5675         * tests/test-hypotl-ieee.c: New file.
5676
5677         New module 'hypotl-ieee'.
5678         * modules/hypotl-ieee: New file.
5679
5680         Tests for module 'hypot-ieee'.
5681         * modules/hypot-ieee-tests: New file.
5682         * tests/test-hypot-ieee.c: New file.
5683
5684         New module 'hypot-ieee'.
5685         * modules/hypot-ieee: New file.
5686
5687         Tests for module 'hypotf-ieee'.
5688         * modules/hypotf-ieee-tests: New file.
5689         * tests/test-hypotf-ieee.c: New file.
5690         * tests/test-hypot-ieee.h: New file.
5691
5692         New module 'hypotf-ieee'.
5693         * modules/hypotf-ieee: New file.
5694
5695 2012-02-29  Bruno Haible  <bruno@clisp.org>
5696
5697         Remove unused variables.
5698         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5699         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5700         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5701         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5702
5703 2012-02-29  Eric Blake  <eblake@redhat.com>
5704
5705         termios: fix pid_t always, not just for tcgetsid
5706         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5707         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5708         just when building tcgetsid.
5709
5710 2012-02-29  Bruno Haible  <bruno@clisp.org>
5711
5712         Tests for module 'hypotl'.
5713         * modules/hypotl-tests: New file.
5714         * tests/test-hypotl.c: New file.
5715
5716         New module 'hypotl'.
5717         * lib/math.in.h (hypotl): New declaration.
5718         * lib/hypotl.c: New file.
5719         * m4/hypotl.m4: New file.
5720         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5722         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5723         * modules/hypotl: New file.
5724         * tests/test-math-c++.cc: Check the hypotl declaration.
5725         * doc/posix-functions/hypotl.texi: Mention the new module.
5726
5727 2012-02-29  Eric Blake  <eblake@redhat.com>
5728
5729         tcgetsid: fix cygwin header bug
5730         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5731
5732         docs: update cygwin progress
5733         * doc/posix-functions/llround.texi (llround): Added in cygwin
5734         1.7.8.
5735         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5736         * doc/glibc-functions/program_invocation_name.texi
5737         (program_invocation_name): Likewise.
5738         * doc/glibc-functions/program_invocation_short_name.texi
5739         (program_invocation_short_name): Likewise.
5740         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5741         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5742         Likewise.
5743         * doc/posix-functions/pthread_spin_destroy.texi
5744         (pthread_spin_destroy): Added in cygwin 1.7.10.
5745         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5746         Likewise.
5747         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5748         Likewise.
5749         * doc/posix-functions/pthread_spin_trylock.texi
5750         (pthread_spin_trylock): Likewise.
5751         * doc/posix-functions/pthread_spin_unlock.texi
5752         (pthread_spin_unlock): Likewise.
5753         * doc/posix-functions/pthread_setschedprio.texi
5754         (pthread_setschedprio): Likewise.
5755         * doc/posix-functions/pthread_attr_getstack.texi
5756         (pthread_attr_getstack): Likewise.
5757         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5758         (pthread_attr_getstackaddr): Likewise.
5759         * doc/glibc-functions/pthread_getattr_np.texi
5760         (pthread_getattr_np): Likewise.
5761         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5762         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5763         * doc/posix-functions/clock_settime.texi (clock_settime):
5764         Likewise.
5765         * doc/posix-functions/pthread_attr_getguardsize.texi
5766         (pthread_attr_getguardsize): Likewise.
5767         * doc/posix-functions/pthread_attr_setguardsize.texi
5768         (pthread_attr_setguardsize): Likewise.
5769         * doc/posix-functions/pthread_attr_setstack.texi
5770         (pthread_attr_setstack): Likewise.
5771         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5772         (pthread_attr_setstackaddr): Likewise.
5773         * doc/posix-functions/clock_getcpuclockid.texi
5774         (clock_getcpuclockid): Likewise.
5775         * doc/posix-functions/pthread_getcpuclockid.texi
5776         (pthread_getcpuclockid): Likewise.
5777         * doc/glibc-functions/error.texi (error): Likewise.
5778         * doc/glibc-functions/error_at_line.texi (error_at_line):
5779         Likewise.
5780         * doc/glibc-functions/error_message_count.texi
5781         (error_message_count): Likewise.
5782         * doc/glibc-functions/error_one_per_line.texi
5783         (error_one_per_line): Likewise.
5784         * doc/glibc-functions/error_print_progname.texi
5785         (error_print_progname): Likewise.
5786         * doc/posix-functions/pthread_condattr_getclock.texi
5787         (pthread_condattr_getclock): Likewise.
5788         * doc/posix-functions/pthread_condattr_setclock.texi
5789         (pthread_condattr_setclock): Likewise.
5790         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5791         Likewise.
5792         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5793         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5794         * doc/glibc-functions/get_current_dir_name.texi
5795         (get_current_dir_name): Likewise.
5796         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5797         Likewise.
5798         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5799         wrong return type.
5800         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5801         1.7.11.
5802
5803 2012-02-29  Bruno Haible  <bruno@clisp.org>
5804
5805         Tests for module 'hypotf'.
5806         * modules/hypotf-tests: New file.
5807         * tests/test-hypotf.c: New file.
5808
5809         New module 'hypotf'.
5810         * lib/math.in.h (hypotf): New declaration.
5811         * lib/hypotf.c: New file.
5812         * m4/hypotf.m4: New file.
5813         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5815         REPLACE_HYPOTF.
5816         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5817         REPLACE_HYPOTF.
5818         * modules/hypotf: New file.
5819         * tests/test-math-c++.cc: Check the hypotf declaration.
5820         * doc/posix-functions/hypotf.texi: Mention the new module.
5821
5822         hypot: Prepare for hypotf module.
5823         * m4/hypot.m4: New file.
5824         * modules/hypot (Files): Add m4/hypot.m4.
5825         (configure.ac): Invoke gl_FUNC_HYPOT.
5826
5827 2012-02-29  Bruno Haible  <bruno@clisp.org>
5828
5829         hypot tests: More tests.
5830         * tests/test-hypot.c: Include <float.h>.
5831         (main): Add tests about overflow and underflow.
5832
5833 2012-02-29  Bruno Haible  <bruno@clisp.org>
5834
5835         math code: Add comments.
5836         * lib/acosl.c: Add comment about related glibc source files.
5837         * lib/asinl.c: Likewise.
5838         * lib/atanl.c: Likewise.
5839         * lib/expl.c: Likewise.
5840         * lib/logl.c: Likewise.
5841         * lib/sincosl.c: Likewise.
5842         * lib/sinl.c: Likewise.
5843         * lib/tanl.c: Likewise.
5844         * lib/trigl.c: Likewise.
5845         * lib/cosl.c: Likewise. Fix comments.
5846
5847 2012-02-28  Bruno Haible  <bruno@clisp.org>
5848
5849         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5850         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5851         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5852         HUGE_VALL are defined.
5853         (numeric_equald): Renamed from numeric_equal.
5854         (numeric_equalf, numeric_equall): New functions.
5855         (main): Check also HUGE_VALF, HUGE_VALL.
5856         * modules/math-tests (Files): Add tests/macros.h.
5857         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5858         HUGE_VALL.
5859
5860 2012-02-28  Bruno Haible  <bruno@clisp.org>
5861
5862         doc: Move ISO C11 feature notes into POSIX chapters.
5863         * doc/posix-functions/aligned_alloc.texi: Renamed from
5864         doc/glibc-functions/aligned_alloc.texi.
5865         * doc/posix-functions/quick_exit.texi: Renamed from
5866         doc/glibc-functions/quick_exit.texi.
5867         * doc/posix-headers/uchar.texi: Renamed from
5868         doc/glibc-headers/uchar.texi.
5869         * doc/posix-functions/c16rtomb.texi: Renamed from
5870         doc/glibc-functions/c16rtomb.texi.
5871         * doc/posix-functions/c32rtomb.texi: Renamed from
5872         doc/glibc-functions/c32rtomb.texi.
5873         * doc/posix-functions/mbrtoc16.texi: Renamed from
5874         doc/glibc-functions/mbrtoc16.texi.
5875         * doc/posix-functions/mbrtoc32.texi: Renamed from
5876         doc/glibc-functions/mbrtoc32.texi.
5877         * doc/gnulib.texi: Update.
5878         (Glibc uchar.h): Remove section.
5879         Suggested by Eric Blake.
5880
5881 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5882
5883         stdnoreturn: port to MSVC better
5884         MSVC standard headers use __declspec(noreturn), so #define noreturn
5885         to empty on that platform.  Reported by Bruno Haible in
5886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5887         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5888         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5889
5890 2012-02-28  Bruno Haible  <bruno@clisp.org>
5891
5892         doc: Mention new glibc headers and functions.
5893         * doc/glibc-headers/uchar.texi: New file.
5894         * doc/glibc-functions/aligned_alloc.texi: New file.
5895         * doc/glibc-functions/c16rtomb.texi: New file.
5896         * doc/glibc-functions/c32rtomb.texi: New file.
5897         * doc/glibc-functions/clock_adjtime.texi: New file.
5898         * doc/glibc-functions/fanotify_init.texi: New file.
5899         * doc/glibc-functions/fanotify_mark.texi: New file.
5900         * doc/glibc-functions/inet6_opt_append.texi: New file.
5901         * doc/glibc-functions/inet6_opt_find.texi: New file.
5902         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5903         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5904         * doc/glibc-functions/inet6_opt_init.texi: New file.
5905         * doc/glibc-functions/inet6_opt_next.texi: New file.
5906         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5907         * doc/glibc-functions/inet6_rth_add.texi: New file.
5908         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5909         * doc/glibc-functions/inet6_rth_init.texi: New file.
5910         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5911         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5912         * doc/glibc-functions/inet6_rth_space.texi: New file.
5913         * doc/glibc-functions/login.texi: New file.
5914         * doc/glibc-functions/mbrtoc16.texi: New file.
5915         * doc/glibc-functions/mbrtoc32.texi: New file.
5916         * doc/glibc-functions/name_to_handle_at.texi: New file.
5917         * doc/glibc-functions/ntp_gettimex.texi: New file.
5918         * doc/glibc-functions/open_by_handle_at.texi: New file.
5919         * doc/glibc-functions/prlimit.texi: New file.
5920         * doc/glibc-functions/process_vm_readv.texi: New file.
5921         * doc/glibc-functions/process_vm_writev.texi: New file.
5922         * doc/glibc-functions/recvmmsg.texi: New file.
5923         * doc/glibc-functions/scandirat.texi: New file.
5924         * doc/glibc-functions/sendmmsg.texi: New file.
5925         * doc/glibc-functions/setns.texi: New file.
5926         * doc/glibc-functions/timespec_get.texi: New file.
5927         * doc/gnulib.texi: Include them.
5928         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5929         sections.
5930         Reported by Eric Blake.
5931
5932 2012-02-28  Bruno Haible  <bruno@clisp.org>
5933
5934         Avoid compilation errors with MSVC option -fp:strict.
5935         * lib/floor.c: Use MSVC specific pragma fenv_access.
5936         * lib/ceil.c: Likewise.
5937         * lib/trunc.c: Likewise.
5938         * lib/round.c: Likewise.
5939         * lib/rint.c: Likewise.
5940         * lib/fma.c: Likewise.
5941         * lib/integer_length.c: Likewise.
5942         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5943         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5944         * tests/test-floor2.c: Likewise.
5945         * tests/test-floorf2.c: Likewise.
5946         * tests/test-ceil2.c: Likewise.
5947         * tests/test-ceilf2.c: Likewise.
5948         * tests/test-trunc2.c: Likewise.
5949         * tests/test-truncf2.c: Likewise.
5950         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5951
5952 2012-02-27  Bruno Haible  <bruno@clisp.org>
5953
5954         Tests for module 'sqrtl-ieee'.
5955         * modules/sqrtl-ieee-tests: New file.
5956         * tests/test-sqrtl-ieee.c: New file.
5957
5958         New module 'sqrtl-ieee'.
5959         * modules/sqrtl-ieee: New file.
5960
5961         Tests for module 'sqrt-ieee'.
5962         * modules/sqrt-ieee-tests: New file.
5963         * tests/test-sqrt-ieee.c: New file.
5964
5965         New module 'sqrt-ieee'.
5966         * modules/sqrt-ieee: New file.
5967
5968         Tests for module 'sqrtf-ieee'.
5969         * modules/sqrtf-ieee-tests: New file.
5970         * tests/test-sqrtf-ieee.c: New file.
5971         * tests/test-sqrt-ieee.h: New file.
5972
5973         New module 'sqrtf-ieee'.
5974         * modules/sqrtf-ieee: New file.
5975
5976 2012-02-27  Bruno Haible  <bruno@clisp.org>
5977
5978         remainderl-ieee: Work around test failure on OSF/1.
5979         * m4/remainderl-ieee.m4: New file.
5980         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5981         present, test whether remainderl works with a zero second argument.
5982         Replace it if not.
5983         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5985         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5986         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5987         (Depends-on): Update conditions.
5988         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5989         (Depends-on): Add remainder-ieee.
5990         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5991         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5992         module.
5993
5994         remainderf-ieee: Work around test failure on OSF/1.
5995         * m4/remainderf-ieee.m4: New file.
5996         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5997         present, test whether remainderf works with a zero second argument.
5998         Replace it if not.
5999         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6001         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6002         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6003         (Depends-on): Update conditions.
6004         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6005         (Depends-on): Add remainder-ieee.
6006         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6007         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6008         module.
6009
6010         remainder-ieee: Work around test failure on OSF/1.
6011         * m4/remainder-ieee.m4: New file.
6012         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6013         present, test whether remainder works with a zero second argument.
6014         Replace it if not.
6015         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6017         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6018         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6019         (Depends-on): Update dependencies.
6020         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6021         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6022         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6023
6024         Tests for module 'remainderl-ieee'.
6025         * modules/remainderl-ieee-tests: New file.
6026         * tests/test-remainderl-ieee.c: New file.
6027
6028         New module 'remainderl-ieee'.
6029         * modules/remainderl-ieee: New file.
6030
6031         Tests for module 'remainder-ieee'.
6032         * modules/remainder-ieee-tests: New file.
6033         * tests/test-remainder-ieee.c: New file.
6034
6035         New module 'remainder-ieee'.
6036         * modules/remainder-ieee: New file.
6037
6038         Tests for module 'remainderf-ieee'.
6039         * modules/remainderf-ieee-tests: New file.
6040         * tests/test-remainderf-ieee.c: New file.
6041         * tests/test-remainder-ieee.h: New file.
6042
6043         New module 'remainderf-ieee'.
6044         * modules/remainderf-ieee: New file.
6045
6046 2012-02-27  Bruno Haible  <bruno@clisp.org>
6047
6048         modff, modfl: Fix configure syntax error.
6049         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6050         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6051
6052 2012-02-27  Bruno Haible  <bruno@clisp.org>
6053
6054         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6055         * m4/fmodl-ieee.m4: New file.
6056         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6057         whether fmodl works with zero arguments. Replace it if not.
6058         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6059         (Depends-on): Add fmod-ieee.
6060         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6061         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6062
6063         fmodf-ieee: Work around test failure on OSF/1.
6064         * m4/fmodf-ieee.m4: New file.
6065         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6066         whether fmodf works with zero arguments. Replace it if not.
6067         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6069         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6070         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6071         (Depends-on): Update dependencies.
6072         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6073         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6074         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6075
6076         fmodf-ieee: Work around test failure on MSVC 9.
6077         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6078         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6079
6080         fmod-ieee: Work around test failures on OSF/1, mingw.
6081         * m4/fmod-ieee.m4: New file.
6082         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6083         whether fmod works with zero arguments. Replace it if not.
6084         * lib/math.in.h (fmod): New declaration.
6085         * lib/fmod.c: New file.
6086         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6088         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6089         * modules/fmod (Files): Add lib/fmod.c.
6090         (Depends-on): Add math, isinf, trunc, fma.
6091         (configure.ac): Arrange to compile lib/fmod.c if needed.
6092         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6093         m4/signbit.m4.
6094         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6095         * tests/test-math-c++.cc: Check the declaration of fmod.
6096         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6097
6098         fmodl-ieee: Fix test failures.
6099         * lib/fmodl.c (fmodl): Treat Inf specially.
6100         * modules/fmodl (Depends-on): Add isinf.
6101
6102         Tests for module 'fmodl-ieee'.
6103         * modules/fmodl-ieee-tests: New file.
6104         * tests/test-fmodl-ieee.c: New file.
6105
6106         New module 'fmodl-ieee'.
6107         * modules/fmodl-ieee: New file.
6108
6109         Tests for module 'fmod-ieee'.
6110         * modules/fmod-ieee-tests: New file.
6111         * tests/test-fmod-ieee.c: New file.
6112
6113         New module 'fmod-ieee'.
6114         * modules/fmod-ieee: New file.
6115
6116         Tests for module 'fmodf-ieee'.
6117         * modules/fmodf-ieee-tests: New file.
6118         * tests/test-fmodf-ieee.c: New file.
6119         * tests/test-fmod-ieee.h: New file.
6120
6121         New module 'fmodf-ieee'.
6122         * modules/fmodf-ieee: New file.
6123
6124 2012-02-27  Bruno Haible  <bruno@clisp.org>
6125
6126         Tests for module 'rintl-ieee'.
6127         * modules/rintl-ieee-tests: New file.
6128         * tests/test-rintl-ieee.c: New file.
6129
6130         New module 'rintl-ieee'.
6131         * modules/rintl-ieee: New file.
6132
6133         Tests for module 'rint-ieee'.
6134         * modules/rint-ieee-tests: New file.
6135         * tests/test-rint-ieee.c: New file.
6136
6137         New module 'rint-ieee'.
6138         * modules/rint-ieee: New file.
6139
6140         Tests for module 'rintf-ieee'.
6141         * modules/rintf-ieee-tests: New file.
6142         * tests/test-rintf-ieee.c: New file.
6143         * tests/test-rint-ieee.h: New file.
6144
6145         New module 'rintf-ieee'.
6146         * modules/rintf-ieee: New file.
6147
6148 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6149
6150         regex: re_search etc. should return -2 when memory exhausted
6151         This bug was uncovered when testing 'grep'.  Without the fix,
6152         re_search and friends return -1 when memory is exhausted, but -1
6153         means no match, and this causes grep to falsely report no-match
6154         instead of memory-exhaustion.  See
6155         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6156         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6157         trouble; this can occur if re_search_internal ran out of memory.
6158
6159 2012-02-26  Bruno Haible  <bruno@clisp.org>
6160
6161         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6162         * m4/modfl-ieee.m4: New file.
6163         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6164         whether modfl works with Inf. Replace it if not.
6165         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6167         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6168         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6169         (Depends-on): Update dependencies.
6170         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6171         m4/signbit.m4.
6172         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6173         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6174
6175         modfl-ieee: Fix dependencies.
6176         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6177
6178         modfl-ieee: Fix test failures.
6179         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6180         * modules/modfl (Depends-on): Add isfinite, isinf.
6181
6182         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6183         * m4/modff-ieee.m4: New file.
6184         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6185         whether modff works with NaN and Inf. Replace it if not.
6186         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6188         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6189         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6190         (Depends-on): Update dependencies.
6191         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6192         m4/signbit.m4.
6193         (Depends-on): Add modf-ieee.
6194         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6195         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6196
6197         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6198         * m4/modf-ieee.m4: New file.
6199         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6200         whether modf works with NaN and Inf. Replace it if not.
6201         * lib/math.in.h (modf): New declaration.
6202         * lib/modf.c: New file.
6203         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6205         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6206         * modules/modf (Files): Add lib/modf.c.
6207         (Depends-on): Add math, isfinite, trunc, isinf.
6208         (configure.ac): Addrange to compile lib/modf.c if needed.
6209         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6210         m4/signbit.m4.
6211         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6212         * tests/test-math-c++.cc: Check the declaration of modf.
6213         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6214
6215         Tests for module 'modfl-ieee'.
6216         * modules/modfl-ieee-tests: New file.
6217         * tests/test-modfl-ieee.c: New file.
6218
6219         New module 'modfl-ieee'.
6220         * modules/modfl-ieee: New file.
6221
6222         Tests for module 'modf-ieee'.
6223         * modules/modf-ieee-tests: New file.
6224         * tests/test-modf-ieee.c: New file.
6225
6226         New module 'modf-ieee'.
6227         * modules/modf-ieee: New file.
6228
6229         Tests for module 'modff-ieee'.
6230         * modules/modff-ieee-tests: New file.
6231         * tests/test-modff-ieee.c: New file.
6232         * tests/test-modf-ieee.h: New file.
6233
6234         New module 'modff-ieee'.
6235         * modules/modff-ieee: New file.
6236
6237 2012-02-26  Bruno Haible  <bruno@clisp.org>
6238
6239         Tests for module 'fabsl-ieee'.
6240         * modules/fabsl-ieee-tests: New file.
6241         * tests/test-fabsl-ieee.c: New file.
6242
6243         New module 'fabsl-ieee'.
6244         * modules/fabsl-ieee: New file.
6245
6246         Tests for module 'fabs-ieee'.
6247         * modules/fabs-ieee-tests: New file.
6248         * tests/test-fabs-ieee.c: New file.
6249
6250         New module 'fabs-ieee'.
6251         * modules/fabs-ieee: New file.
6252
6253         Tests for module 'fabsf-ieee'.
6254         * modules/fabsf-ieee-tests: New file.
6255         * tests/test-fabsf-ieee.c: New file.
6256         * tests/test-fabs-ieee.h: New file.
6257
6258         New module 'fabsf-ieee'.
6259         * modules/fabsf-ieee: New file.
6260
6261 2012-02-26  Bruno Haible  <bruno@clisp.org>
6262
6263         Tests for module 'fmal-ieee'.
6264         * modules/fmal-ieee-tests: New file.
6265         * tests/test-fmal-ieee.c: New file.
6266
6267         New module 'fmal-ieee'.
6268         * modules/fmal-ieee: New file.
6269
6270         Tests for module 'fma-ieee'.
6271         * modules/fma-ieee-tests: New file.
6272         * tests/test-fma-ieee.c: New file.
6273
6274         New module 'fma-ieee'.
6275         * modules/fma-ieee: New file.
6276
6277         Tests for module 'fmaf-ieee'.
6278         * modules/fmaf-ieee-tests: New file.
6279         * tests/test-fmaf-ieee.c: New file.
6280         * tests/test-fma-ieee.h: New file.
6281
6282         New module 'fmaf-ieee'.
6283         * modules/fmaf-ieee: New file.
6284
6285 2012-02-26  Bruno Haible  <bruno@clisp.org>
6286
6287         Tests for module 'ldexpl-ieee'.
6288         * modules/ldexpl-ieee-tests: New file.
6289         * tests/test-ldexpl-ieee.c: New file.
6290
6291         New module 'ldexpl-ieee'.
6292         * modules/ldexpl-ieee: New file.
6293
6294         Tests for module 'ldexp-ieee'.
6295         * modules/ldexp-ieee-tests: New file.
6296         * tests/test-ldexp-ieee.c: New file.
6297
6298         New module 'ldexp-ieee'.
6299         * modules/ldexp-ieee: New file.
6300
6301         Tests for module 'ldexpf-ieee'.
6302         * modules/ldexpf-ieee-tests: New file.
6303         * tests/test-ldexpf-ieee.c: New file.
6304         * tests/test-ldexp-ieee.h: New file.
6305
6306         New module 'ldexpf-ieee'.
6307         * modules/ldexpf-ieee: New file.
6308
6309 2012-02-26  Bruno Haible  <bruno@clisp.org>
6310
6311         Refactor frexp*-ieee tests.
6312         * tests/test-frexp-ieee.h: New file.
6313         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6314         (main): Just call test_function.
6315         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6316         (main): Just call test_function.
6317         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6318         (main): Just call test_function.
6319         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6320         * modules/frexp-ieee-tests (Files): Likewise.
6321         * modules/frexpl-ieee-tests (Files): Likewise.
6322
6323         Tests for module 'frexpl-ieee'.
6324         * modules/frexpl-ieee-tests: New file.
6325         * tests/test-frexpl-ieee.c: New file.
6326
6327         New module 'frexpl-ieee'.
6328         * modules/frexpl-ieee: New file.
6329
6330         Tests for module 'frexp-ieee'.
6331         * modules/frexp-ieee-tests: New file.
6332         * tests/test-frexp-ieee.c: New file.
6333
6334         New module 'frexp-ieee'.
6335         * modules/frexp-ieee: New file.
6336
6337         Tests for module 'frexpf-ieee'.
6338         * modules/frexpf-ieee-tests: New file.
6339         * tests/test-frexpf-ieee.c: New file.
6340
6341         New module 'frexpf-ieee'.
6342         * modules/frexpf-ieee: New file.
6343
6344 2012-02-26  Bruno Haible  <bruno@clisp.org>
6345
6346         roundl-ieee tests: More tests.
6347         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6348         (main): Add tests for [MX] shaded specification in POSIX.
6349         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6350         (Depends-on): Add isnanl-nolibm.
6351
6352         round-ieee tests: More tests.
6353         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6354         (main): Add tests for [MX] shaded specification in POSIX.
6355         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6356         (Depends-on): Add isnand-nolibm.
6357
6358         roundf-ieee tests: More tests.
6359         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6360         (main): Add tests for [MX] shaded specification in POSIX.
6361         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6362         (Depends-on): Add isnanf-nolibm.
6363
6364         truncl-ieee tests: More tests.
6365         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6366         (main): Add tests for [MX] shaded specification in POSIX.
6367         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6368         (Depends-on): Add isnanl-nolibm.
6369
6370         trunc-ieee tests: More tests.
6371         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6372         (main): Add tests for [MX] shaded specification in POSIX.
6373         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6374         (Depends-on): Add isnand-nolibm.
6375
6376         truncf-ieee tests: More tests.
6377         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6378         (main): Add tests for [MX] shaded specification in POSIX.
6379         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6380         (Depends-on): Add isnanf-nolibm.
6381
6382         ceill-ieee tests: More tests.
6383         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6384         (main): Add tests for [MX] shaded specification in POSIX.
6385         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6386         (Depends-on): Add isnanl-nolibm.
6387
6388         ceil-ieee tests: More tests.
6389         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6390         (main): Add tests for [MX] shaded specification in POSIX.
6391         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6392         (Depends-on): Add isnand-nolibm.
6393
6394         ceilf-ieee tests: More tests.
6395         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6396         (main): Add tests for [MX] shaded specification in POSIX.
6397         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6398         (Depends-on): Add isnanf-nolibm.
6399
6400         floorl-ieee tests: More tests.
6401         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6402         (main): Add tests for [MX] shaded specification in POSIX.
6403         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6404         (Depends-on): Add isnanl-nolibm.
6405
6406         floor-ieee tests: More tests.
6407         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6408         (main): Add tests for [MX] shaded specification in POSIX.
6409         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6410         (Depends-on): Add isnand-nolibm.
6411
6412         floorf-ieee tests: More tests.
6413         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6414         (main): Add tests for [MX] shaded specification in POSIX.
6415         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6416         (Depends-on): Add isnanf-nolibm.
6417
6418 2012-02-26  Bruno Haible  <bruno@clisp.org>
6419
6420         fpieee: More comments.
6421         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6422
6423 2012-02-25  Bruno Haible  <bruno@clisp.org>
6424
6425         Tests for module 'log10l'.
6426         * modules/log10l-tests: New file.
6427         * tests/test-log10l.c: New file.
6428         * tests/test-math-c++.cc: Check the declaration of log10l.
6429
6430         New module 'log10l'.
6431         * lib/math.in.h (log10l): New declaration.
6432         * lib/log10l.c: New file.
6433         * m4/log10l.m4: New file.
6434         * modules/log10l: New file.
6435         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6437         HAVE_DECL_LOG10L.
6438         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6439         HAVE_DECL_LOG10L.
6440         * doc/posix-functions/log10l.texi: Mention the new module.
6441
6442 2012-02-25  Bruno Haible  <bruno@clisp.org>
6443
6444         fmodl, remainder*: Avoid wrong results due to rounding errors.
6445         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6446         expected bounds.
6447         * lib/remainderf.c (remainderf): Likewise.
6448         * lib/remainder.c (remainder): Likewise.
6449         * lib/remainderl.c (remainderl): Likewise.
6450
6451 2012-02-25  Bruno Haible  <bruno@clisp.org>
6452
6453         Tests for module 'remainderl'.
6454         * modules/remainderl-tests: New file.
6455         * tests/test-remainderl.c: New file.
6456         * tests/test-math-c++.cc: Check the declaration of remainderl.
6457
6458         New module 'remainderl'.
6459         * lib/math.in.h (remainderl): New declaration.
6460         * lib/remainderl.c: New file.
6461         * m4/remainderl.m4: New file.
6462         * modules/remainderl: New file.
6463         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6465         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6466         HAVE_REMAINDERL.
6467         * doc/posix-functions/remainderl.texi: Mention the new module.
6468
6469 2012-02-25  Bruno Haible  <bruno@clisp.org>
6470
6471         Tests for module 'remainderf'.
6472         * modules/remainderf-tests: New file.
6473         * tests/test-remainderf.c: New file.
6474         * tests/test-math-c++.cc: Check the declaration of remainderf.
6475
6476         New module 'remainderf'.
6477         * lib/math.in.h (remainderf): New declaration.
6478         * lib/remainderf.c: New file.
6479         * m4/remainderf.m4: New file.
6480         * modules/remainderf: New file.
6481         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6483         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6484         HAVE_REMAINDERF.
6485         * doc/posix-functions/remainderf.texi: Mention the new module.
6486
6487 2012-02-25  Bruno Haible  <bruno@clisp.org>
6488
6489         remainder: Support for MSVC.
6490         * lib/math.in.h (remainder): New declaration.
6491         * lib/remainder.c: New file.
6492         * m4/remainder.m4: New file.
6493         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6494         (Depends-on): Add math, round, fma.
6495         (configure.ac): Use results of gl_FUNC_REMAINDER.
6496         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6498         HAVE_DECL_REMAINDER.
6499         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6500         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6501         * tests/test-math-c++.cc: Check the declaration of remainder.
6502         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6503         problems are fixed.
6504
6505 2012-02-25  Bruno Haible  <bruno@clisp.org>
6506
6507         Tests for module 'fmodl'.
6508         * modules/fmodl-tests: New file.
6509         * tests/test-fmodl.c: New file.
6510         * tests/test-math-c++.cc: Check the declaration of fmodl.
6511
6512         New module 'fmodl'.
6513         * lib/math.in.h (fmodl): New declaration.
6514         * lib/fmodl.c: New file.
6515         * m4/fmodl.m4: New file.
6516         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6518         REPLACE_FMODL.
6519         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6520         REPLACE_FMODL.
6521         * modules/fmodl: New file.
6522         * doc/posix-functions/fmodl.texi: Mention the new module.
6523
6524 2012-02-25  Bruno Haible  <bruno@clisp.org>
6525
6526         Tests for module 'modfl'.
6527         * modules/modfl-tests: New file.
6528         * tests/test-modfl.c: New file.
6529         * tests/test-math-c++.cc: Check the declaration of modfl.
6530
6531         New module 'modfl'.
6532         * lib/math.in.h (modfl): New declaration.
6533         * lib/modfl.c: New file.
6534         * m4/modfl.m4: New file.
6535         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6537         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6538         * modules/modfl: New file.
6539         * doc/posix-functions/modfl.texi: Mention the new module.
6540
6541 2012-02-25  Bruno Haible  <bruno@clisp.org>
6542
6543         Tests for module 'fabsl'.
6544         * modules/fabsl-tests: New file.
6545         * tests/test-fabsl.c: New file.
6546         * tests/test-math-c++.cc: Check the declaration of fabsl.
6547
6548         New module 'fabsl'.
6549         * lib/math.in.h (fabsl): New declaration.
6550         * lib/fabsl.c: New file.
6551         * m4/fabsl.m4: New file.
6552         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6554         REPLACE_FABSL.
6555         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6556         REPLACE_FABSL.
6557         * modules/fabsl: New file.
6558         * doc/posix-functions/fabsl.texi: Mention the new module.
6559
6560 2012-02-25  Bruno Haible  <bruno@clisp.org>
6561
6562         fabs tests: More tests.
6563         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6564         (zero): New variable.
6565         (main): Add tests for signed zero.
6566         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6567
6568         fabsf tests: More tests.
6569         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6570         (zero): New variable.
6571         (main): Add tests for signed zero.
6572         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6573
6574 2012-02-24  Bruno Haible  <bruno@clisp.org>
6575
6576         atanl: Provide function definition on MSVC.
6577         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6578         function pointer.
6579         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6580
6581 2012-02-24  Bruno Haible  <bruno@clisp.org>
6582
6583         acosl: Provide function definition on MSVC.
6584         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6585         function pointer.
6586         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6587
6588 2012-02-24  Bruno Haible  <bruno@clisp.org>
6589
6590         asinl: Provide function definition on MSVC.
6591         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6592         function pointer.
6593         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6594
6595 2012-02-24  Bruno Haible  <bruno@clisp.org>
6596
6597         tanl: Provide function definition on MSVC.
6598         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6599         function pointer.
6600         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6601
6602 2012-02-24  Bruno Haible  <bruno@clisp.org>
6603
6604         cosl: Provide function definition on MSVC.
6605         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6606         function pointer.
6607         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6608
6609 2012-02-24  Bruno Haible  <bruno@clisp.org>
6610
6611         sinl: Provide function definition on MSVC.
6612         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6613         function pointer.
6614         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6615
6616 2012-02-24  Bruno Haible  <bruno@clisp.org>
6617
6618         logl: Provide function definition on MSVC.
6619         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6620         function pointer.
6621         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6622
6623 2012-02-24  Bruno Haible  <bruno@clisp.org>
6624
6625         expl: Provide function definition on MSVC.
6626         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6627         function pointer.
6628         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6629
6630 2012-02-24  Bruno Haible  <bruno@clisp.org>
6631
6632         sqrtl: Provide function definition on MSVC.
6633         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6634         a function pointer.
6635         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6636
6637 2012-02-24  Bruno Haible  <bruno@clisp.org>
6638
6639         ceill: Provide function definition on MSVC.
6640         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6641         used as a function pointer.
6642         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6643
6644 2012-02-24  Bruno Haible  <bruno@clisp.org>
6645
6646         floorl: Provide function definition on MSVC.
6647         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6648         used as a function pointer.
6649         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6650
6651 2012-02-24  Bruno Haible  <bruno@clisp.org>
6652
6653         ceilf: Provide function definition on MSVC.
6654         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6655         used as a function pointer.
6656         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6657
6658 2012-02-24  Bruno Haible  <bruno@clisp.org>
6659
6660         floorf: Provide function definition on MSVC.
6661         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6662         used as a function pointer.
6663         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6664
6665 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         stdnoreturn: new module
6668         This implements a replacement for C11's <stdnoreturn.h>.
6669         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6670         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6671         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6672         * tests/test-stdnoreturn.c: New files.
6673
6674 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6675
6676         regex: fix false multibyte matches in some regular expressions
6677         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6678         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6679         * lib/regex_internal.c (re_string_skip_chars):
6680         Fix miscomputation of remain_len that may cause incomplete
6681         multi-byte character and false match.
6682
6683 2012-02-24  Jim Meyering  <meyering@redhat.com>
6684
6685         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6686         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6687         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6688         Remove now-unnecessary str''cmp obfuscation.
6689         Suggested by Akim Demaille.
6690
6691 2012-02-24  Bruno Haible  <bruno@clisp.org>
6692
6693         streq: Rename macro.
6694         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6695         * NEWS: Mention the change.
6696         * lib/mbrtowc.c (mbrtowc): Update.
6697         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6698         * lib/wcwidth.c (wcwidth): Update.
6699         Suggested by Akim Demaille and Jim Meyering.
6700
6701 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6702
6703         regex: fix typo in definition of MIN
6704         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6705         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6706
6707 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6708             Bruno Haible  <bruno@clisp.org>
6709
6710         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6711         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6712         entries into a stack-allocated buffer directly.
6713         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6714
6715 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6716             Bruno Haible  <bruno@clisp.org>
6717
6718         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6719
6720          - There were several instances of this pattern:
6721
6722              for (;;) {
6723                n = acl (f, GETACLCNT, 0, NULL);
6724                [ allocate an array A of size N ]
6725                if (acl (f, GETACL, n, a) == n)
6726                  break;
6727              }
6728
6729            This loop might never terminate if some other process is constantly
6730            manipulating the file's ACL.  The loop should be rewritten to
6731            terminate.
6732
6733          - The acl (... GETACLNT ...) call is merely an optimization; its value
6734            is merely a hint as to how big to make the array.  A better
6735            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6736            and just guess a reasonably-big size, growing the size and trying
6737            again if it's not large enough.  This guarantees termination, and
6738            saves a system call.
6739
6740         * lib/acl-internal.h: Include <limits.h>.
6741         (MIN, SIZE_MAX): New macros.
6742         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6743         a stack-allocated buffer, and use malloc if it does not fit. Don't
6744         use GETACLCNT.
6745         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6746
6747 2012-02-19  Bruno Haible  <bruno@clisp.org>
6748
6749         acl: Fix endless loop on Solaris with vxfs.
6750         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6751         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6752         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6753         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6754         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6755         Reported by Bill Jones in
6756         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6757
6758 2012-02-19  Bruno Haible  <bruno@clisp.org>
6759
6760         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6761         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6762         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6763         that this function returns 0 in some more cases.
6764
6765 2012-02-19  Bruno Haible  <bruno@clisp.org>
6766
6767         acl: Update doc references.
6768         * doc/acl-resources.txt: Update links to Solaris documentation.
6769
6770 2012-02-19  Bruno Haible  <bruno@clisp.org>
6771
6772         Fix test failure in many locales on Solaris 11.
6773         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6774         'tr' arguments.
6775         * tests/test-pipe-filter-ii1.c (main): Likewise.
6776         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6777         expressions in the C locale.
6778         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6779         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6780
6781 2012-02-19  Bruno Haible  <bruno@clisp.org>
6782
6783         gnulib-tool: Improve usage message.
6784         * gnulib-tool (func_usage): Move doc of --help and --version to the
6785         section "Operation modes".
6786
6787 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6788
6789         README-release: make it easier to execute commands
6790         * top/README-release: break commands out on to separate lines.
6791
6792 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6793
6794         GNUmakefile: simplify detection of unconfigured trees
6795         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6796         whether the tree make is being run from is already configured or
6797         not.  Related simplifications.
6798
6799 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6800
6801         * gnulib-tool (func_usage): Document --help and --version.
6802
6803 2012-02-11  Jim Meyering  <meyering@redhat.com>
6804
6805         bootstrap: don't exit 0 upon gnulib-tool failure
6806         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6807         its exit status, not 0.
6808
6809 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6810
6811         README-release: various improvements
6812         * top/README-release: Give a command to push changes for the
6813         release.  Add "distcheck" to list of other pre-release checks.
6814         Fix instance of "make stable" which should be "make TYPE".
6815
6816 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6817
6818         maint: replace FSF snail-mail addresses with URLs
6819         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6820         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6821         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6822         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6823         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6824         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6825         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6826         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6827         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6828         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6829         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6830         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6831         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6832         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6833         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6834         * lib/glthread/thread.c, lib/glthread/thread.h:
6835         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6836         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6837         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6838         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6839         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6840         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6841         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6842         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6843         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6844         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6845         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6846         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6847         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6848         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6849         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6850         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6851         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6852         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6853         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6854         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6855         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6856         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6857         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6858         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6859         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6860         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6861         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6862         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6863         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6864         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6865         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6866         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6867         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6868         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6869         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6870         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6871         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6872         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6873         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6874         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6875         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6876         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6877         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6878         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6879         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6880         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6881         * tests/test-poll.c, tests/test-quotearg-simple.c:
6882         * tests/test-quotearg.c, tests/test-quotearg.h:
6883         * tests/test-round-ieee.c, tests/test-round1.c:
6884         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6885         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6886         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6887         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6888         * tests/test-strerror.c, tests/test-strerror_r.c:
6889         * tests/test-strsignal.c, tests/test-strverscmp.c:
6890         * tests/test-xmemdup0.c:
6891         Replace FSF snail mail addresses with URLs, as per GNU coding
6892         standards.  See glibc bug
6893         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6894
6895 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6896
6897         README-release: capitalize a word and split a line
6898         * top/README-release: Fix punctuation and spacing.
6899
6900 2012-02-08  Akim Demaille  <demaille@gostai.com>
6901
6902         fatal-signal: use C prototypes (with explicit void).
6903         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6904         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6905
6906 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6907
6908         regex: spelling fix
6909         * lib/regexec.c: spelling fix
6910
6911         regex: rely on stdint.h for SIZE_MAX
6912         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6913
6914 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6915
6916         regex: merge glibc changes
6917
6918         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6919         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6920         (init_word_char): Work even if bitset words are not exactly 32 or
6921         64 bits wide.  Don't assume there are no padding bits.
6922         * lib/regex.c [_LIBC]: Do not include <config.h>.
6923         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6924         and -Wtype-limits.
6925         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6926         needless disagreement with glibc.  All uses changed.  Define it to
6927         1 only if _GNU_SOURCE, to match glibc.
6928         (_REG_RM_NAME): Remove; no longer needed, since the names in
6929         question are now all protected by __USE_GNU.
6930         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6931         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6932         * lib/regex_internal.h (MIN): New macro.
6933
6934         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6935         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6936
6937         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6938         * lib/regex_internal.c (re_string_fetch_byte_case):
6939         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6940         is miscompiled, and it turns out it is because of an incorrect
6941         attribute on re_string_fetch_byte_case.  Unlike
6942         re_string_peek_byte_case, this one is really not pure, it modifies
6943         memory (increments pstr->cur_idx), and with the pure attribute GCC
6944         assumed it doesn't and it cached the presumed value of
6945         regexp->cur_idx in a variable across the
6946          for (;; ++i)
6947            {
6948              if (i >= BRACKET_NAME_BUF_SIZE)
6949                return REG_EBRACK;
6950              if (token->type == OP_OPEN_CHAR_CLASS)
6951                ch = re_string_fetch_byte_case (regexp);
6952              else
6953                ch = re_string_fetch_byte (regexp);
6954              if (re_string_eoi(regexp))
6955                return REG_EBRACK;
6956              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6957                break;
6958              elem->opr.name[i] = ch;
6959            }
6960
6961         2011-11-29 Andreas Schwab <schwab@redhat.com>
6962         * lib/regcomp.c (build_equiv_class):
6963         Fix access after end of search string in regex matcher.
6964
6965         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6966         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6967
6968         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6969         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6970
6971         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6972         * lib/regcomp.c (parse_branch, parse_sub_exp):
6973         More regex memory leak fixes and tests.
6974         (parse_sub_exp, parse_bracket_exp):
6975         Fix memory leak for some invalid regular expressions.
6976
6977         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6978         * lib/regex_internal.c, lib/regexec.c:
6979         Fix unnecessary overallocation due to incomplete character.  When
6980         incomplete characters are found at the end of a string the code
6981         ran amok and allocated lots of memory.  Stricter limits are now in
6982         place.
6983
6984         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6985         * lib/regex.h: Update documentation.
6986
6987         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6988         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6989
6990         2010-05-05 Andreas Schwab <schwab@redhat.com>
6991         * lib/regexec.c (find_collation_sequence_value):
6992         Fix lookup of collation sequence value during regexp matching.
6993
6994         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6995         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6996
6997         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6998         * lib/regex.h: Cleanup namespace.
6999
7000         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7001         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7002
7003         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7004         * lib/regex_internal.h: Prevent some declarations and definitions
7005         to be seen when used in tests.
7006
7007         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7008         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7009         __libc_lock_* macros if not _LIBC.
7010         (struct re_dfa_t): Add lock.
7011
7012 2012-02-07  Eric Blake  <eblake@redhat.com>
7013
7014         maint.mk: also prohibit lower-case @var@
7015         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7016         lower case, like @top_srcdir@.
7017
7018 2012-02-04  Eric Blake  <eblake@redhat.com>
7019
7020         canonicalize: avoid uninitialized memory use
7021         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7022         random '/' left in dest.
7023         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7024
7025 2012-02-04  Bruno Haible  <bruno@clisp.org>
7026
7027         isatty: Fix test failure of ptsname_r on native Windows.
7028         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7029         and don't set errno.
7030         (isatty): Test first whether fd is valid. Set errno when returning 0.
7031
7032 2012-02-04  Bruno Haible  <bruno@clisp.org>
7033
7034         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7035         * tests/test-spawn-pipe-main.c: Include progname.h.
7036         (main): Invoke set_program_name.
7037         * modules/spawn-pipe-tests (Depends-on): Add progname.
7038
7039         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7040         * tests/test-nonblocking-socket-main.c: Include progname.h.
7041         (main): Invoke set_program_name.
7042         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7043
7044         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7045         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7046         (main): Invoke set_program_name.
7047         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7048
7049 2012-02-04  Eric Blake  <eblake@redhat.com>
7050
7051         canonicalize-lgpl: fix // handling
7052         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7053
7054         canonicalize: fix // handling
7055         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7056         /// to //, since only // is special.
7057
7058 2012-02-04  Bruno Haible  <bruno@clisp.org>
7059
7060         ioctl: Fix test failure on native Windows.
7061         * lib/ioctl.c: Include msvc-nothrow.h.
7062         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7063
7064 2012-02-04  Bruno Haible  <bruno@clisp.org>
7065
7066         fsync: Avoid test failure on native Windows.
7067         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7068         read-only.
7069
7070 2012-02-04  Bruno Haible  <bruno@clisp.org>
7071
7072         sys_select: Avoid syntax error on OpenBSD 5.0.
7073         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7074         currently being included, just include the system's <sys/select.h>.
7075
7076 2012-02-04  Bruno Haible  <bruno@clisp.org>
7077
7078         sys_select: Avoid syntax error on OpenBSD 5.0.
7079         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7080         <sys/select.h>, not before.
7081         Reported by Jiri B <jirib@devio.us>.
7082
7083 2012-02-04  Bruno Haible  <bruno@clisp.org>
7084
7085         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7086         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7087         global variables.
7088         * tests/test-get-rusage-data.c (main): Likewise.
7089         Reported by Jim Meyering.
7090
7091 2012-02-04  Bruno Haible  <bruno@clisp.org>
7092
7093         stdioext: Fix last commit.
7094         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7095
7096 2012-02-03  Bruno Haible  <bruno@clisp.org>
7097
7098         stdioext: Add tentative support for Plan9.
7099         * lib/stdio-impl.h: Include <errno.h>.
7100         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7101         * lib/freadable.c (freadable): Likewise.
7102         * lib/fwritable.c (fwritable): Likewise.
7103         * lib/fbufmode.c (fbufmode): Likewise.
7104         * lib/freading.c (freading): Likewise.
7105         * lib/fwriting.c (fwriting): Likewise.
7106         * lib/freadptr.c (freadptr): Likewise.
7107         * lib/freadseek.c (freadptrinc): Likewise.
7108         * lib/freadahead.c (freadahead): Likewise.
7109         * lib/fpurge.c (fpurge): Likewise.
7110         * lib/fseeko.c (rpl_fseeko): Likewise.
7111         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7112         Reported by Jens Staal <staal1978@gmail.com>.
7113
7114 2012-02-02  Jim Meyering  <meyering@redhat.com>
7115
7116         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7117         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7118         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7119         not even to try to add the attribute.  Instead, add a pragma to suppress
7120         the suggestion/warning.
7121
7122 2012-01-31  Karl Berry  <karl@gnu.org>
7123
7124         setstate doc: typo.
7125         * doc/posix-functions/setstate.texi (setstate): { not (.
7126
7127 2012-01-31  Bruno Haible  <bruno@clisp.org>
7128
7129         popen: Make more robust on Windows.
7130         * lib/popen.c: On native Windows, use the _popen based code even if
7131         HAVE_POPEN is set.
7132         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7133         environment variable on native Windows.
7134
7135 2012-01-30  Bruno Haible  <bruno@clisp.org>
7136
7137         pclose: Fix typo.
7138         * lib/stdio.in.h (pclose): Fix typo in warning message.
7139
7140 2012-01-30  Bruno Haible  <bruno@clisp.org>
7141
7142         doc about getlogin_r, setstate.
7143         * doc/posix-functions/getlogin_r.texi: List the incompatible
7144         declaration problem under "not fixed by gnulib".
7145         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7146         problem on Solaris 11 and other platforms.
7147
7148 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7149             Bruno Haible  <bruno@clisp.org>
7150
7151         poll tests: Make test more robust.
7152         * tests/test-poll.c: Include macros.h.
7153         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7154         return value of various I/O operations.
7155         * modules/poll-tests (Files): Add tests/macros.h.
7156
7157 2012-01-30  Bruno Haible  <bruno@clisp.org>
7158
7159         sys_stat: Fix support for mingw64 and MSVC.
7160         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7161         header files already do it.
7162         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7163         stat itself.
7164         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7165
7166 2012-01-30  Bruno Haible  <bruno@clisp.org>
7167
7168         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7170         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7171
7172 2012-01-29  Bruno Haible  <bruno@clisp.org>
7173
7174         quotearg: Fix test failure on MacOS X 10.5.
7175         * tests/test-quotearg-simple.c: Include localcharset.h.
7176         (main): If the locale encoding is not ASCII, bypass the tests of
7177         locale_quoting_style and clocale_quoting_style.
7178         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7179
7180 2012-01-29  Jim Meyering  <meyering@redhat.com>
7181
7182         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7183         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7184         detect uses of canonicalize_file_name.
7185
7186 2012-01-28  Bruno Haible  <bruno@clisp.org>
7187
7188         test-framework-sh: Fix test failure with AIX 7.1 diff.
7189         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7190         in column 1, like 'diff -c' does.
7191         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7192         whether 'diff -u' is used. Instead, test whether the output contains
7193         some '@' character.
7194
7195 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7196
7197         strtoimax: eliminate need for stdint.h, inttypes.h checks
7198         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7199         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7200         the prerequisites for a recently-introduced strtoimax test.
7201         I guess this might cause strtoimax to be replaced when not
7202         strictly necessary on older hosts, but this shouldn't introduce
7203         any bugs and it should make Emacs 'configure' faster on typical
7204         modern hosts.  Problem discovered when importing the latest gnulib
7205         to an Emacs test version.
7206         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7207
7208 2012-01-28  Bruno Haible  <bruno@clisp.org>
7209
7210         sys_time: Override 'struct timeval' on some native Windows platforms.
7211         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7212         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7213         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7214         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7215         needs to be overridden.
7216         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7217         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7218         * tests/test-sys_select.c: Check that the tv_sec member has the same
7219         size as a 'time_t'.
7220         * tests/test-sys_time.c: Likewise.
7221         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7222         is set, set also REPLACE_GETTIMEOFDAY.
7223         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7224         convert the resulting 'struct timeval' before returning.
7225         * lib/select.c: Include <sys/time.h>.
7226         (select, timeval): Undefine at the right place.
7227         * modules/select (Depends-on): Add sys_time.
7228         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7229         some Windows platforms.
7230         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7231
7232 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7233
7234         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7235         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7236         an integer.
7237         * lib/fcntl.c (dupfd): Likewise.
7238         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7239
7240 2012-01-28  Bruno Haible  <bruno@clisp.org>
7241
7242         fcntl: Avoid compilation error on native Windows.
7243         * modules/fcntl (Depends-on): Add 'close'.
7244
7245 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7246
7247         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7248         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7249         pointer to an integer.
7250         * lib/poll.c (IsConsoleHandle): Likewise.
7251         * lib/isatty.c (IsConsoleHandle): Likewise.
7252
7253 2012-01-28  Jim Meyering  <meyering@redhat.com>
7254
7255         doc: clarify README-release
7256         * top/README-release: Clarify: you should make a point to have
7257         the latest stable versions of build tools in your PATH, and the
7258         reference to buildreq is solely for its list of tool names, not
7259         for its minimal-functional version numbers.
7260         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7261
7262         maint.mk: use more readable (yet functionally equivalent) quoting
7263         It is common to quote a single quote in a single quoted string like
7264         this:  '...'\''...'.  Unless you know the idiom, that looks like
7265         gibberish, so prefer to double-quote the string when possible.
7266         Then you can use a more readable, lone single quote: "...'..."
7267         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7268         "don't" is more readable than the equivalent 'don'\''t'.
7269         (sc_cast_of_x_alloc_return_value): Likewise.
7270         (sc_cast_of_alloca_return_value): Likewise.
7271         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7272         rather than '\'':'\''.
7273
7274 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7275
7276         stdalign: relax _Alignof and tighten _Alignas test
7277         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7278         as it was too strict: alignof must divide offsetof, but it need
7279         not equal offsetof.  Inspired by Joseph S. Myers's comment
7280         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7281         Conversely, tighten the _Alignas test a bit, as the resulting
7282         alignment must be exactly 8.
7283
7284 2012-01-27  Bruno Haible  <bruno@clisp.org>
7285
7286         stdalign: Document the last change.
7287         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7288
7289 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7290
7291         stdalign: check that alignof and offsetof are consistent
7292         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7293         Problem reported for gnulib by Richard W.M. Jones in
7294         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7295
7296 2012-01-27  Jim Meyering  <meyering@redhat.com>
7297
7298         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7299         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7300         convert a sequence with gaps to the minimal containing range.
7301         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7302         * tests/test-update-copyright.sh: Test for this.
7303         The FSF confirmed it is ok to do this, assuming there is at
7304         least one significant change per year in the affected range:
7305         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7306
7307 2012-01-26  Bruno Haible  <bruno@clisp.org>
7308
7309         pipe2: refine doc about thread-safety
7310         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7311         multithread-safety problem.
7312         * doc/glibc-functions/accept4.texi: Likewise.
7313
7314 2012-01-26  Bruno Haible  <bruno@clisp.org>
7315
7316         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7317         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7318         In the test program, include <fcntl.h>, for O_RDONLY.
7319
7320 2012-01-26  Eric Blake  <eblake@redhat.com>
7321
7322         pipe2: document lack of thread-safety in replacement
7323         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7324         issue in replacement.
7325         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7326         Based on a report by Eric Wong.
7327
7328 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7329             Bruno Haible  <bruno@clisp.org>
7330
7331         malloca: Avoid warnings on x86_64 mingw64.
7332         * lib/malloca.c: Include <stdint.h>.
7333         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7334         * modules/malloca (Depends-on): Add stdint.
7335         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7336
7337 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7338
7339         obstack: remove __STDC__ conditionals
7340         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7341         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7342         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7343         m4/include_next.m4 as the only gnulib-maintained places that still
7344         refer to __STDC__.
7345
7346 2012-01-24  Bruno Haible  <bruno@clisp.org>
7347
7348         havelib: Modern quoting.
7349         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7350         the recent change to the GNU coding standards.
7351
7352 2012-01-24  Bruno Haible  <bruno@clisp.org>
7353
7354         stdint: Improve support for Android.
7355         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7356         Reported by Simon Josefsson <simon@josefsson.org>.
7357
7358 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7359
7360         doc: omit trailing empty lines from INSTALL etc.
7361         * doc/Makefile (INSTALL): Omit trailing empty lines.
7362         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7363         omit trailing empty lines.  This simplifies the build procedure.
7364
7365 2012-01-23  Jim Meyering  <meyering@redhat.com>
7366
7367         tests: avoid spurious warnings about gl_sockets_startup
7368         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7369         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7370         reporting a "statement with no effect".
7371         * tests/test-accept.c (main): Mark as "(void)".
7372         * tests/test-accept4.c (main): Likewise.
7373         * tests/test-bind.c (main): Likewise.
7374         * tests/test-connect.c (main): Likewise.
7375         * tests/test-getpeername.c (main): Likewise.
7376         * tests/test-getsockname.c (main): Likewise.
7377         * tests/test-getsockopt.c (main): Likewise.
7378         * tests/test-listen.c (main): Likewise.
7379         * tests/test-recv.c (main): Likewise.
7380         * tests/test-recvfrom.c (main): Likewise.
7381         * tests/test-send.c (main): Likewise.
7382         * tests/test-sendto.c (main): Likewise.
7383         * tests/test-setsockopt.c (main): Likewise.
7384         * tests/test-shutdown.c (main): Likewise.
7385
7386 2012-01-21  Bruno Haible  <bruno@clisp.org>
7387
7388         locale-fr.m4: Fix for Android.
7389         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7390         failure of the test program on Bionic libc.
7391
7392 2012-01-21  Jim Meyering  <meyering@redhat.com>
7393
7394         bootstrap: fail when bootstrap_post_import_hook fails
7395         Otherwise, it's far too easy to miss diagnostics emitted
7396         between gnulib-tool's output and that of running configure.
7397         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7398
7399 2012-01-17  Jim Meyering  <meyering@redhat.com>
7400
7401         maint: enable sc_trailing_blank
7402         * build-aux/pmccabe.css: Remove trailing blanks.
7403         * doc/acl-cygwin.txt: Likewise.
7404         * doc/gnu-oids.texi: Likewise
7405         * cfg.mk: Enable sc_trailing_blank.
7406         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7407
7408 2012-01-17  Jim Meyering  <meyering@redhat.com>
7409
7410         maint: enable sc_prohibit_openat_without_use
7411         * cfg.mk: Enable sc_prohibit_openat_without_use.
7412         Exempt lib/selinux-at.c.
7413
7414 2012-01-17  Jim Meyering  <meyering@redhat.com>
7415
7416         maint: enable sc_prohibit_cloexec_without_use
7417         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7418         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7419
7420 2012-01-17  Jim Meyering  <meyering@redhat.com>
7421
7422         maint: enable sc_prohibit_intprops_without_use
7423         * cfg.mk: Enable sc_prohibit_intprops_without_use
7424         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7425
7426 2012-01-17  Jim Meyering  <meyering@redhat.com>
7427
7428         maint: enable sc_prohibit_hash_pjw_without_use
7429         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7430         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7431         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7432         following " (".
7433
7434 2012-01-17  Jim Meyering  <meyering@redhat.com>
7435
7436         maint: enable double-word-prohibiting rule
7437         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7438         Exempt three files.
7439
7440 2012-01-17  Jim Meyering  <meyering@redhat.com>
7441
7442         maint: remove empty lines at EOF, but excluding modules/*
7443         Apply syntax rules at home as well as abroad.  Most changes
7444         were induced by running this:
7445           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7446             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7447             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7448         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7449         Exempt modules/* and two binary files.
7450         Also exempt doc/INSTALL*, per request from Bruno Haible.
7451         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7452         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7453         * doc/Copyright/request-assign.future: Likewise.
7454         * doc/Copyright/request-disclaim.changes: Likewise.
7455         * doc/INSTALL: Likewise.
7456         * doc/INSTALL.ISO: Likewise.
7457         * doc/INSTALL.UTF-8: Likewise.
7458         * doc/acl-cygwin.txt: Likewise.
7459         * doc/acl-resources.txt: Likewise.
7460         * doc/fdl-1.2.texi: Likewise.
7461         * doc/fdl-1.3.texi: Likewise.
7462         * doc/fdl.texi: Likewise.
7463         * lib/argp-pin.c: Likewise.
7464         * lib/round.c: Likewise.
7465         * lib/unicase/u16-totitle.c: Likewise.
7466         * lib/unictype/block_test.c: Likewise.
7467         * lib/uninorm/canonical-decomposition.c: Likewise.
7468         * m4/README: Likewise.
7469         * m4/relocatable-lib.m4: Likewise.
7470         * tests/test-isnand-nolibm.c: Likewise.
7471         * tests/test-isnand.c: Likewise.
7472         * tests/uninorm/NormalizationTest.txt: Likewise.
7473
7474 2012-01-17  Jim Meyering  <meyering@redhat.com>
7475
7476         maint: add framework to run syntax-check rules against gnulib sources
7477         * cfg.mk: New file, to disable all currently-failing tests.
7478         We'll enable them one by one, as they are made to pass.
7479         * Makefile (sc_maint): New rule.
7480
7481 2012-01-21  Bruno Haible  <bruno@clisp.org>
7482
7483         stdint: Add support for Android.
7484         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7485         include the system's <stdint.h>.
7486         Reported by Simon Josefsson <simon@josefsson.org>.
7487
7488 2012-01-19  Jim Meyering  <meyering@redhat.com>
7489
7490         bootstrap: add bootstrap_post_import_hook
7491         Bison does still need something like the gnulib_mk_hook whose
7492         invocation I had to remove along with slurp in commit 767ccd40.
7493         Technically, we could get along without it, but doing so would
7494         have required living with a warning and a mandatory post-bootstrap
7495         automake rerun.
7496         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7497         (bootstrap_post_import_hook): New function.
7498         Invoke it after gnulib-tool --import and before autoreconf.
7499
7500 2012-01-18  Jim Meyering  <meyering@redhat.com>
7501
7502         gitlog-to-changelog: don't use "no_"-prefixed variable name
7503         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7504         to enable both --cluster and --no-cluster.  Change variable name,
7505         s/\$no_cluster/$cluster/, and reverse usage to match.
7506
7507         gitlog-to-changelog: use "||", not "or" in expressions
7508         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7509         expressions.
7510
7511 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7512
7513         gitlog-to-changelog: new option --no-cluster
7514         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7515         clustering of adjacent commit messages.
7516
7517 2012-01-17  Jim Meyering  <meyering@redhat.com>
7518
7519         maint: spell file systems with two words, not one
7520         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7521         two words, not one.
7522
7523 2012-01-16  Jim Meyering  <meyering@redhat.com>
7524
7525         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7526         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7527
7528 2012-01-16  Eric Blake  <eblake@redhat.com>
7529
7530         bootstrap: cater to autoconf 2.59
7531         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7532         is not available.
7533
7534         bootstrap: properly check for libtool
7535         * build-aux/bootstrap (libtoolize): Also run libtool when older
7536         usage is detected.
7537
7538 2012-01-15  Bruno Haible  <bruno@clisp.org>
7539
7540         Improve support for MSVC 9.
7541         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7542         clashes on MSVC.
7543         * lib/fcntl.in.h: Likewise.
7544         * lib/stdlib.in.h: Likewise.
7545         * lib/sys_stat.in.h: Likewise.
7546
7547 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7548
7549         gnupload: we hold the master copy of this script now
7550         For motivation and more information, see:
7551         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7552         * build-aux/gnupload: Make it clear in the heading comments that the
7553         master copy of this file is maintained by gnulib.  Since we are at
7554         it, bump its copyright year and ...
7555         ($scriptversion): ... the date in its version.
7556         ($usage): Patches and bug reports should be sent to the gnulib list,
7557         not the automake one.
7558         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7559         anymore.
7560
7561 2012-01-15  Bruno Haible  <bruno@clisp.org>
7562
7563         Fix module 'random'.
7564         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7565         initstate, setstate are declared.
7566
7567 2012-01-14  Bruno Haible  <bruno@clisp.org>
7568
7569         Tests for module 'random'.
7570         * modules/random-tests: New file.
7571         * tests/test-random.c: New file, based on tests/test-random_r.c.
7572
7573         New module 'random'.
7574         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7575         declarations.
7576         * lib/random.c: New file, based on glibc/stdlib/random.c.
7577         * m4/random.m4: New file.
7578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7579         HAVE_RANDOM.
7580         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7581         * modules/random: New file.
7582         * config/srclist.txt: Add an entry for random.c.
7583         * doc/posix-functions/random.texi: Mention the 'random' module.
7584         * doc/posix-functions/initstate.texi: Likewise.
7585         * doc/posix-functions/setstate.texi: Likewise.
7586         * doc/posix-functions/srandom.texi: Likewise.
7587
7588 2012-01-12  Bruno Haible  <bruno@clisp.org>
7589
7590         random_r: Use common idioms.
7591         * lib/random_r.c: Include <stdlib.h> first.
7592
7593         random_r: Override incompatible API on AIX, OSF/1.
7594         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7595         Override the system function if REPLACE_RANDOM_R is 1.
7596         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7597         and OSF/1, set REPLACE_RANDOM_R.
7598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7599         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7600         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7601         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7602         * doc/glibc-functions/random_r.texi: Likewise.
7603         * doc/glibc-functions/setstate_r.texi: Likewise.
7604
7605         random_r: Support for MSVC 9.
7606         * lib/random_r.c: Include stdint.h, not inttypes.h.
7607
7608 2012-01-12  Eric Blake  <eblake@redhat.com>
7609
7610         inet_ntop: guard extra work by IF_LINT
7611         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7612         better code generation when not checking for warnings.
7613         Suggested by Paul Eggert and Jim Meyering.
7614
7615         strptime: fix regression on mingw
7616         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7617         Fix regression.  Reported by Bruno Haible.
7618
7619 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7620             Bruno Haible  <bruno@clisp.org>
7621
7622         copy-file: add error-code-returning variant.
7623         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7624         (qcopy_file_preserving): New declaration.
7625         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7626         copy_file_preserving. Change return type to 'int'. Don't emit an error
7627         message here.
7628         (copy_file_preserving): New function.
7629         * tests/test-copy-file.c: Include <stdlib.h>.
7630         (main): Test qcopy_file_preserving if the environment variable
7631         NO_STDERR_OUTPUT is set.
7632         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7633         with NO_STDERR_OUTPUT
7634         * tests/test-copy-file-2.sh: Likewise.
7635
7636 2012-01-10  Bruno Haible  <bruno@clisp.org>
7637
7638         copy-file: Use 'quote' module consistently.
7639         * lib/copy-file.c (copy_file_preserving): Use quote().
7640
7641         copy-file: Refactor.
7642         * lib/copy-file.c: Include quote.h.
7643         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7644         message here.
7645         * modules/copy-file (Depends-on): Add quote.
7646
7647         acl: Export qcopy_acl.
7648         * lib/acl.h (qcopy_acl): New declaration.
7649         * lib/copy-acl.c (qcopy_acl): Make non-static.
7650
7651         acl: Rename a local variable.
7652         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7653
7654         acl: Align return values of copy_acl and qcopy_acl.
7655         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7656         maybe < -1.
7657
7658 2012-01-11  Eric Blake  <eblake@redhat.com>
7659
7660         strptime: silence gcc warnings
7661         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7662         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7663         Reported by Daniel P. Berrange.
7664
7665         inet_ntop: silence gcc warning
7666         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7667         Reported by Daniel P. Berrange.
7668
7669 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7670
7671         getloadavg test: skip the test on GNU/Linux without /proc mounted
7672         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7673         file.  When /proc is not mounted, it always fails with ENOENT.
7674         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7675         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7676
7677 2012-01-10  Bruno Haible  <bruno@clisp.org>
7678
7679         regex: Avoid link error on MSVC 9.
7680         * modules/regex (Depends-on): Add wctype.
7681
7682 2012-01-10  Bruno Haible  <bruno@clisp.org>
7683
7684         doc: Mention --with-tests option.
7685         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7686         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7687         --with-tests.
7688         Reported by Reuben Thomas.
7689
7690 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7691
7692         users.txt: order package names lexicographically.
7693         * users.txt: Order package names lexicographically.
7694
7695 2012-01-10  Jim Meyering  <meyering@redhat.com>
7696
7697         maint.mk: fix description in comment
7698         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7699
7700         ignore-value: remove deprecated ignore_ptr function
7701         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7702         * NEWS: Note this.
7703
7704 2012-01-09  Jim Meyering  <meyering@redhat.com>
7705
7706         test-init.sh: avoid a subshell
7707         * tests/test-init.sh: Remove protective subshell.
7708         Suggested by Bernhard Voelker.  While a subshell is normally
7709         required to protect against older shells (Solaris, FreeBSD) that
7710         warn about a missing program before performing redirection, the
7711         shell-selection tests performed by init.sh probably exclude any
7712         offending shell.
7713
7714 2012-01-08  Bruno Haible  <bruno@clisp.org>
7715
7716         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7717         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7718         variable.
7719
7720 2012-01-08  Bruno Haible  <bruno@clisp.org>
7721
7722         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7723         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7724         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7725         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7726         macro.
7727         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7728         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7729         * lib/spawn_faction_addopen.c: Add workaround implementation if
7730         HAVE_WORKING_POSIX_SPAWN.
7731         * modules/spawn (Makefile): Substitute
7732         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7733         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7734         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7735         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7736         (Depends-on): Update conditions.
7737         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7738         the Solaris 11 bug.
7739
7740 2012-01-08  Bruno Haible  <bruno@clisp.org>
7741
7742         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7743         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7744         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7745         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7746         macro.
7747         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7748         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7749         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7750         HAVE_WORKING_POSIX_SPAWN.
7751         * modules/spawn (Makefile): Substitute
7752         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7753         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7754         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7755         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7756         (Depends-on): Update conditions.
7757         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7758         the Solaris 11 bug.
7759
7760 2012-01-08  Bruno Haible  <bruno@clisp.org>
7761
7762         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7763         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7764         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7765         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7766         HAVE_WORKING_POSIX_SPAWN.
7767         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7768         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7769         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7770         * lib/spawn_faction_addclose.c: Add workaround implementation if
7771         HAVE_WORKING_POSIX_SPAWN.
7772         * modules/spawn (Makefile): Substitute
7773         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7774         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7775         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7776         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7777         (Depends-on): Update conditions.
7778         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7779         the Solaris 11 bug.
7780
7781 2012-01-08  Bruno Haible  <bruno@clisp.org>
7782
7783         doc: Update for Solaris 11 2011-11.
7784         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7785         * m4/printf.m4: Update comments.
7786
7787 2012-01-08  Bruno Haible  <bruno@clisp.org>
7788
7789         mktime: Avoid compilation error on Solaris 11.
7790         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7791
7792 2012-01-08  Bruno Haible  <bruno@clisp.org>
7793
7794         doc: Small fix.
7795         * doc/posix-headers/nl_types.texi: Correct platforms list.
7796
7797 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7798
7799         Add lgpl-3.0 module.
7800         * MODULES.html.sh (Support for building documentation): Add
7801         lgpl-3.0.
7802         * modules/lgpl-3.0: New file.
7803
7804 2012-01-08  Jim Meyering  <meyering@redhat.com>
7805
7806         select.c: indent with spaces, not TABs
7807         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7808
7809 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7810
7811         quotearg: do not use grave accent for left quote
7812         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7813         locale_quoting_style.
7814         (quotearg_buffer_restyled): Fix example.
7815         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7816
7817 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7818
7819         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7820         Most programs do not have translation catalogs for English and much
7821         less separate catalogs for British and American English.  Drop the
7822         suggestion to translators about these two, and provide it
7823         automatically for Unicode locales.  Like most programs, even those
7824         using American English, we use single quotation marks.  This conflicts
7825         with the American typographic convention, but works better when you
7826         cite the entire error message within double quotes.  It also tries not
7827         to clash with established practice and with what non-gnulib programs
7828         will usually do.
7829         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7830         using an UTF-8 or GB-18030 locale.  The list of other locales with
7831         quotes was provided by Bruno Haible.
7832         (quotearg_buffer_restyled): Adjust instructions to translators.
7833         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7834         text, since this would be wrong when using Unicode.
7835         * modules/quotearg: Depend on c-strcaseeq.
7836
7837 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7838
7839         quotearg: fix Wikipedia link
7840         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7841
7842 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7843
7844         Fix for mingw with MSVC9.
7845         * m4/ld-version-script.m4: Check that compiler rejects version
7846         scripts with syntax errors.  Reported by Bruno Haible
7847         <bruno@clisp.org>.
7848
7849 2012-01-06  Bruno Haible  <bruno@clisp.org>
7850
7851         Talk about "native Windows API", not "Woe32".
7852         * lib/accept4.c: Update comments to mention native Windows.
7853         * lib/execute.c: Likewise.
7854         * lib/fatal-signal.c: Likewise.
7855         * lib/localcharset.c: Likewise.
7856         * lib/nanosleep.c: Likewise.
7857         * lib/nl_langinfo.c: Likewise.
7858         * lib/pclose.c: Likewise.
7859         * lib/pipe-filter-gi.c: Likewise.
7860         * lib/pipe-filter-ii.c: Likewise.
7861         * lib/pipe.c: Likewise.
7862         * lib/pipe2.c: Likewise.
7863         * lib/popen.c: Likewise.
7864         * lib/progreloc.c: Likewise.
7865         * lib/relocatable.c: Likewise.
7866         * lib/sigaction.c: Likewise.
7867         * lib/sigprocmask.c: Likewise.
7868         * lib/spawn-pipe.h: Likewise.
7869         * lib/spawn-pipe.c: Likewise.
7870         * lib/spawni.c: Likewise.
7871         * lib/stat-time.h: Likewise.
7872         * lib/w32spawn.h: Likewise.
7873         * tests/test-isatty.c: Likewise.
7874         * lib/config.charset: More comments.
7875         * doc/gnulib-intro.texi: Mention native Windows.
7876         * doc/posix-functions/_Exit_C99.texi: Likewise.
7877         * doc/posix-headers/fcntl.texi: Likewise.
7878
7879 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7880
7881         argp: Avoid crash if translator uses % characters in a translation.
7882         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7883         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7884
7885 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7886
7887         doc: C11 and C++11 are now official
7888         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7889         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7890         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7891         * modules/stdalign:
7892         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7893
7894 2012-01-06  Bruno Haible  <bruno@clisp.org>
7895
7896         uc-is-grapheme-break tests: Tweak.
7897         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7898         message.
7899
7900 2012-01-06  Bruno Haible  <bruno@clisp.org>
7901
7902         test-init.sh: correct the test for diff -u
7903         * tests/test-init.sh: Also redirect stdout to /dev/null.
7904
7905 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7906
7907         Use ', not `, for quoting output.
7908         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7909         (print_changelog_deltas, get_tool_versions, main program):
7910         * build-aux/git-version-gen:
7911         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7912         * build-aux/move-if-change (help):
7913         * build-aux/useless-if-before-free (usage, main program):
7914         * check-module (parse_module_file, usage)
7915         (find_included_lib_files, check_module):
7916         * lib/argmatch.c (main) [TEST]:
7917         * lib/argp-help.c (_help):
7918         * lib/getopt1.c (main) [TEST]:
7919         * lib/git-merge-changelog.c (usage):
7920         * lib/xstrtol-error.c (xstrtol_error):
7921         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7922         * m4/argz.m4 (gl_FUNC_ARGZ):
7923         * m4/bison.m4 (gl_BISON):
7924         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7925         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7926         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7927         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7928         * m4/gc-random.m4 (gl_GC_RANDOM):
7929         * m4/intl.m4 (gt_CHECK_DECL):
7930         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7931         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7932         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7934         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7935         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7936         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7937         * tests/test-dirname.c (main):
7938         * tests/test-getpass.c (main):
7939         * tests/test-iconvme.c (main):
7940         * tests/test-parse-datetime.c (LOG):
7941         * tests/test-xstrtoimax.sh:
7942         * tests/test-xstrtol.sh:
7943         * tests/test-xstrtoll.sh:
7944         * tests/test-xstrtoumax.sh:
7945         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7946         * top/GNUmakefile (abort-due-to-no-makefile):
7947         Quote 'like this', not `like this', as per the recent change to
7948         the GNU coding standards.
7949
7950 2012-01-05  Bruno Haible  <bruno@clisp.org>
7951
7952         strtoimax: Don't force a replacement on systems where intmax_t is int.
7953         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7954         'intmax_t' is not larger than 'int'.
7955         Reported by Pádraig Brady <P@draigBrady.com>.
7956
7957 2012-01-05  Bruno Haible  <bruno@clisp.org>
7958
7959         doc: Mention NetBSD bugs.
7960         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7961         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7962
7963 2012-01-05  Bruno Haible  <bruno@clisp.org>
7964
7965         strtoumax tests: Enhance tests.
7966         * tests/test-strtoumax.c (main): Add tests for large values.
7967
7968 2012-01-05  Bruno Haible  <bruno@clisp.org>
7969
7970         strtoimax: Work around AIX 5.1 bug.
7971         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7972         definition.
7973         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7974         Set HAVE_STRTOIMAX.
7975         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7976         REPLACE_STRTOIMAX.
7977         * modules/inttypes-incomplete (Makefile.am): Substitute
7978         REPLACE_STRTOIMAX.
7979         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7980         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7981         (Depends-on): Update conditions.
7982         * tests/test-strtoimax.c (main): Add tests for large values.
7983         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7984
7985 2012-01-05  Bruno Haible  <bruno@clisp.org>
7986
7987         inttypes: Modernize.
7988         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7989         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7990         (Makefile.am): Update inttypes.h rule.
7991
7992 2012-01-05  Jim Meyering  <meyering@redhat.com>
7993
7994         init.sh: don't waste a subshell just to redirect stderr
7995         * tests/init.sh: In testing for diff -u and diff -c, use a
7996         stderr-redirecting exec inside `...` rather than a subshell.
7997
7998         test-init.sh: avoid failure on HP-UX 11.00
7999         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8000         resolves to diff -c or cmp.  Reported by Bruno Haible.
8001
8002 2012-01-05  Bruno Haible  <bruno@clisp.org>
8003
8004         Tests for module 'strtoull'.
8005         * modules/strtoull-tests: New file.
8006         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8007
8008 2012-01-05  Bruno Haible  <bruno@clisp.org>
8009
8010         Tests for module 'strtoll'.
8011         * modules/strtoll-tests: New file.
8012         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8013
8014 2012-01-05  Bruno Haible  <bruno@clisp.org>
8015
8016         Tests for module 'strtoul'.
8017         * modules/strtoul-tests: New file.
8018         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8019
8020 2012-01-05  Bruno Haible  <bruno@clisp.org>
8021
8022         Tests for module 'strtol'.
8023         * modules/strtol-tests: New file.
8024         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8025
8026 2012-01-04  Jim Meyering  <meyering@redhat.com>
8027
8028         test-init.sh: accommodate Solaris 5.10's different diff -u output
8029         * tests/test-init.sh: Also exempt @@ lines from the comparison
8030         of diff output, since Solaris 5.10 and GNU diff formats differ.
8031         Reported by Stefano Lattarini.
8032
8033 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8034
8035         test-posixtm: don't assume signed integer wraparound
8036         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8037         after signed integer overflow.  Inspired by (though it may not
8038         fix) Bruno Haible's bug report in
8039         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8040
8041         Spell out "Windows 9x" and "Windows XP".
8042         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8043         "Windows 9x" and "WinXP" with "Windows XP".
8044
8045 2012-01-04  Jim Meyering  <meyering@redhat.com>
8046
8047         test-vc-list-files-cvs.sh: remove obsolete comment
8048         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8049         double exit.  Now that's all encapsulated via skip_ and Exit.
8050
8051 2012-01-04  Bruno Haible  <bruno@clisp.org>
8052
8053         Talk about "native Windows API", not "Win32".
8054         * lib/classpath.c: Update comments to mention native Windows.
8055         * lib/csharpexec.c: Likewise.
8056         * lib/dup2.c: Likewise.
8057         * lib/error.c: Likewise.
8058         * lib/fcntl.c: Likewise.
8059         * lib/filename.h: Likewise.
8060         * lib/findprog.c: Likewise.
8061         * lib/get-rusage-as.c: Likewise.
8062         * lib/get-rusage-data.c: Likewise.
8063         * lib/getpagesize.c: Likewise.
8064         * lib/javaexec.c: Likewise.
8065         * lib/msvc-inval.c: Likewise.
8066         * lib/msvc-nothrow.c: Likewise.
8067         * lib/nanosleep.c: Likewise.
8068         * lib/nonblocking.c: Likewise.
8069         * lib/printf-parse.c: Likewise.
8070         * lib/setlocale.c: Likewise.
8071         * lib/sigaction.c: Likewise.
8072         * lib/strerror_r.c: Likewise.
8073         * lib/tmpdir.c: Likewise.
8074         * lib/vasnprintf.c: Likewise.
8075         * lib/w32spawn.h: Likewise.
8076         * lib/waitpid.c: Likewise.
8077         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8078         * m4/locale-ar.m4: Likewise.
8079         * m4/locale-fr.m4: Likewise.
8080         * m4/locale-ja.m4: Likewise.
8081         * m4/locale-tr.m4: Likewise.
8082         * m4/locale-zh.m4: Likewise.
8083         * m4/printf.m4: Likewise.
8084         * tests/test-cloexec.c: Likewise.
8085         * tests/test-copy-acl.sh: Likewise.
8086         * tests/test-copy-file.sh: Likewise.
8087         * tests/test-file-has-acl.sh: Likewise.
8088         * tests/test-set-mode-acl.sh: Likewise.
8089         * tests/test-dup-safer.c: Likewise.
8090         * tests/test-dup2.c: Likewise.
8091         * tests/test-dup3.c: Likewise.
8092         * tests/test-fcntl.c: Likewise.
8093         * tests/test-nonblocking-pipe.h: Likewise.
8094         * tests/test-nonblocking-socket.h: Likewise.
8095         * tests/test-pipe.c: Likewise.
8096         * tests/test-pipe2.c: Likewise.
8097         * tests/test-spawn-pipe-child.c: Likewise.
8098         * doc/acl-resources.txt: Likewise.
8099         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8100         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8101         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8102         * lib/localcharset.c: Update comments to mention native Windows.
8103         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8104         * lib/localename.c: Likewise.
8105         * lib/progreloc.c: Likewise.
8106         * lib/relocatable.c: Likewise.
8107         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8108         (windows_compute_revents): Renamed from win32_compute_revents.
8109         (windows_compute_revents_socket): Renamed from
8110         win32_compute_revents_socket.
8111         * lib/select.c: Update comments to mention native Windows.
8112         (windows_poll_handle): Renamed from win32_poll_handle.
8113         * m4/threadlib.m4: Update comments to mention native Windows.
8114         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8115         --enable-threads=windows instead of --enable-threads=win32. Set
8116         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8117         * lib/glthread/lock.h: Update comments to mention native Windows.
8118         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8119         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8120         USE_WIN32_THREADS.
8121         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8122         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8123         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8124         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8125         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8126         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8127         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8128         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8129         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8130         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8131         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8132         * tests/test-tls.c: Likewise.
8133         Rationale:
8134         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8135         on both 32-bit and 64-bit Windows systems.
8136         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8137         line of distinction is between "native Windows" on one side and Unix/
8138         POSIX systems on the other side. More details in
8139         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8140         Suggested by Paul Eggert.
8141
8142 2012-01-03  Bruno Haible  <bruno@clisp.org>
8143
8144         isatty: Support for MSVC 9.
8145         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8146         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8147         (_isatty_nothrow): New function.
8148         (isatty): Use it instead of _isatty.
8149         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8150         * lib/poll.c (IsConsoleHandle): Likewise.
8151         * lib/select.c (IsConsoleHandle): Likewise.
8152         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8153         (gl_PREREQ_ISATTY): New macro.
8154         * modules/isatty (Depends-on): Add msvc-inval.
8155         (configure.ac): Invoke gl_PREREQ_ISATTY.
8156
8157 2012-01-03  Jim Meyering  <meyering@redhat.com>
8158
8159         maint.mk: remove temporary transition aid from over 1.5 years ago
8160         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8161         purpose was to aid in the transition (avoiding silent malfunction)
8162         from that old name to the new _sc_search_regexp.  This shim was
8163         added by commit 219c504b.
8164
8165         init.sh: do not try to accommodate compare arguments starting with "-"
8166         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8167         compare arguments that start with "-".  Besides, we do not worry
8168         about this when invoking diff or cmp; why start now with sed?
8169         Using "--" to separate options from argument would trigger sed
8170         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8171         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8172
8173 2012-01-02  Bruno Haible  <bruno@clisp.org>
8174
8175         Enhance tests for module 'isatty'.
8176         * modules/isatty-tests (Depends-on): Add pipe-posix.
8177         * tests/test-isatty.c: Include <fcntl.h>.
8178         (DEV_NULL): New macro.
8179         (main): Test the resut of isatty() also on regular files, pipes, and
8180         /dev/null.
8181
8182         New module 'isatty'.
8183         * lib/unistd.in.h (isatty): New declaration.
8184         * lib/isatty.c: New file, based on an idea of
8185         Bastien Roucariès <roucaries.bastien@gmail.com>.
8186         * m4/isatty.m4: New file.
8187         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8188         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8189         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8190         REPLACE_ISATTY.
8191         * modules/isatty: New file.
8192         * doc/posix-functions/isatty.texi: Mention the new module.
8193         Suggested by Paolo Bonzini.
8194
8195 2012-01-02  Bruno Haible  <bruno@clisp.org>
8196
8197         canonicalize: Tweak 2011-12-29 commit.
8198         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8199         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8200
8201 2012-01-02  Jim Meyering  <meyering@redhat.com>
8202
8203         gitlog-to-changelog: describe input syntax in --help output
8204         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8205
8206         gitlog-to-changelog: fix typo in --help: show backslash before email @
8207         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8208         in sources, but not in actual output.
8209
8210 2011-12-30  Jim Meyering  <meyering@redhat.com>
8211
8212         gitlog-to-changelog: don't malfunction when name contains %-directive
8213         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8214         in a name string cause trouble.  E.g., with a user name of "%s",
8215         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8216
8217 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8218
8219         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8220         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8221         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8222         the "  (tiny change)" notation that is appended to the standard
8223         ChangeLog "date  name  email" header line.
8224
8225 2012-01-01  Jim Meyering  <meyering@redhat.com>
8226
8227         test-framework-sh: init.sh: fix "make dist" failure
8228         When using gnulib-tool's --with-tests option and any module that
8229         depends on test-framework-sh, "make dist" would fail due to the
8230         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8231         in the gltests directory, and not in the gllib/ directory.
8232         One way to work around that is to move the EXTRA_DIST += init.sh
8233         from the primary module to the -tests one:
8234         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8235         * modules/test-framework-sh (Makefile.am): ...not here.
8236         Reported by Tom G. Christensen in
8237         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8238
8239         version-etc: update copyright year reported by --version
8240         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8241
8242 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8243
8244         canonicalize: only stat() if required
8245         * lib/canonicalize.c (canonicalize_filename_mode):
8246         Avoid calling l?stat() when both CAN_MISSING,
8247         and CAN_NOLINKS are set, as we neither need
8248         to resolve symlinks or test component existence.
8249
8250 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8251
8252         doc: cover st_ino issues once; add OpenVMS etc.
8253         * doc/posix-functions/stat.texi (stat):
8254         * doc/posix-functions/lstat.texi (lstat):
8255         * doc/posix-functions/fstatat.texi (fstatat):
8256         * doc/posix-functions/fstat.texi (fstat):
8257         Move general 'struct stat' stuff to sys_stat.texi,
8258         leaving behind a pointer.
8259         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8260         Merge duplicate info about 'struct stat' problems into here.
8261         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8262         and suggest partial workarounds.
8263
8264         same-inode: port to OpenVMS
8265         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8266         three st_ino values.
8267
8268 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8269
8270         canonicalize: fix references to stat() and lstat()
8271         * lib/canonicalize.c (canonicalize_filename_mode):
8272         Ensure references always resolve to a replacement
8273         function if required (even via a macro).
8274
8275 2011-12-30  Jim Meyering  <meyering@redhat.com>
8276
8277         gitlog-to-changelog: remove a little duplication
8278         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8279         rather than twice.
8280
8281 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8282
8283         canonicalize: add support for not resolving symlinks
8284         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8285         indicate we don't want to follow symlinks.  Also
8286         provide CAN_MODE_MASK to aid setting these existing
8287         mutually exclusive values.
8288         * lib/canonicalize.c (canonicalize_filename_mode):
8289         Extract the flags from can_mode parameter, which
8290         are currently just used to select between stat()
8291         and lstat().  Also ensure that mutually exclusive
8292         values are flagged immediately as invalid.
8293         * tests/test-canonicalize.c: Verify symlinks are
8294         not followed, and that invalid flag combinations
8295         are diagnosed.
8296
8297 2011-12-25  Jim Meyering  <meyering@redhat.com>
8298
8299         gitlog-to-changelog: do not clump multi-paragraph entries
8300         Identical header lines (date,name,email+coauthors) are suppressed,
8301         thus putting all entries with those same characteristics under
8302         a single header.  However, when a log entry consists of two or
8303         more paragraphs, it may not be clear where it starts and ends.
8304         This change makes it so that such an entry is always separated
8305         from others by a header line, even when that header would
8306         otherwise be suppressed.
8307         * build-aux/gitlog-to-changelog: Implement the above.
8308         Inspired by a related request from Stefano Lattarini in
8309         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8310
8311 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8312
8313         announce-gen: fix `cmd' typo in diagnostic
8314         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8315         diagnostic: a missing '$' meant that the command was not output.
8316
8317 2011-12-23  Jim Meyering  <meyering@redhat.com>
8318
8319         test-framework-sh: distribute init.sh
8320         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8321         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8322         fail due to the lack of init.sh.
8323
8324         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8325         * modules/atexit-tests: Rather than listing tests/init.sh,
8326         now that there's a module for it, simply depend on that new module.
8327         * modules/closein-tests: Likewise.
8328         * modules/exclude-tests: Likewise.
8329         * modules/getcwd-tests: Likewise.
8330         * modules/perror-tests: Likewise.
8331         * modules/pread-tests: Likewise.
8332         * modules/pwrite-tests: Likewise.
8333         * modules/vc-list-files-tests: Likewise.
8334         * modules/verify-tests: Likewise.
8335         * modules/xalloc-die-tests: Likewise.
8336         * modules/xstrtoimax-tests: Likewise.
8337         * modules/xstrtol-tests: Likewise.
8338         * modules/xstrtoll-tests: Likewise.
8339         * modules/xstrtoumax-tests: Likewise.
8340         * modules/yesno-tests: Likewise.
8341
8342 2011-12-22  Jim Meyering  <meyering@redhat.com>
8343
8344         test-framework-sh: add minimal tests of init.sh's compare function
8345         * modules/test-framework-sh-tests: New file.
8346         * tests/test-init.sh: New file.
8347
8348         test-framework-sh: new module
8349         * modules/test-framework-sh: New file.
8350         * MODULES.html.sh (Support for maintaining and releasing projects):
8351         List it.
8352
8353         init.sh: do not emit simulated diff output to stderr
8354         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8355
8356 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8357
8358         .gitignore: ignore gnulib.dvi and regex.info
8359         * doc/.gitignore:add gnulib.dvi and regex.info
8360
8361 2011-12-22  Jim Meyering  <meyering@redhat.com>
8362
8363         init.sh: correct previous change
8364         * tests/init.sh (compare): My previous change was wrong.
8365         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8366
8367         init.sh: avoid unwarranted test failure when using "set -e"
8368         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8369         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8370         a use like "compare exp out" would get evoke an unconditional failure.
8371
8372 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8373
8374         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8375         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8376         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8377         autoreconf that did not.
8378         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8379         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8380
8381 2011-12-17  Jim Meyering  <meyering@redhat.com>
8382
8383         bootstrap: remove some now-unneeded code
8384         This script arose back when gnulib-tool was young.
8385         Since then, it has seen improvements that render much of this
8386         script unnecessary.  In particular, it can now make symlinks
8387         to the files it uses.  Also, I no longer see as much value in
8388         marking files as read-only via comments.
8389         If you relied on the symlink-creation feature of the preceding
8390         version of this script, you can get most of that functionality
8391         by adding the --symlink option to the definition of
8392         gnulib_tool_option_extras in your bootstrap.conf file.
8393         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8394         Run autopoint and libtoolize *before* gnulib-tool.
8395         After it, run an abbreviated autoreconf, rather than a loop around
8396         all tools.
8397         (slirp, bt_mark_as_generated): Remove functions.
8398
8399 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8400
8401         ftoastr: fix typo
8402         * lib/ftoastr.h: Fix misspelling in comment.
8403
8404 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8405
8406         * top/README-release: fix punctuation.
8407
8408 2011-12-17  Jim Meyering  <meyering@redhat.com>
8409
8410         bootstrap: correct the recent buildreq change
8411         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8412         had no effect.
8413         * build-aux/bootstrap (buildreq): Bracket each search term with
8414         "*...*", so that the shell "case" statement works as intended.
8415         Add comments.
8416
8417 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8418
8419         build: let bootstrap resort to wget when downloading .po files
8420         * build-aux/bootstrap (download_po_files): Fallback to wget when
8421         downloading the .po files via rsync fails.  This is necessary to
8422         bootstrap from behind a strict firewall.
8423
8424 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8425
8426         stdint: don't assume C++11 when compiling with g++
8427         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8429         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8430         work also in C++ before C++11, as that improperly inhibits
8431         generating a substitute stdint.h for that case.
8432
8433 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8434
8435         alloca: protect comment from gnulib-tool
8436         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8437         that gnulib-tool doesn't think it's a license, and munge it to
8438         say "GCC version 3".
8439
8440 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8441
8442         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8443         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8444         $(abs_top_builddir) instead of $(top_builddir).
8445
8446 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8447
8448         strftime-tests: also test nanoseconds
8449         * tests/test-strftime.c (T): Add a test of %N.
8450
8451 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8452
8453         inttypes, stdint: add C++11 support
8454         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8455         when including inttypes.h and stdint.h.  Support this change to
8456         the standard.
8457         * doc/posix-headers/inttypes.texi (inttypes.h):
8458         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8459         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8460         Define if not defined already, for the benefit of pre-C++11 hosts.
8461         Define the standard format macros (e.g., PRId8) always.
8462         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8463         Likewise, if __cpluspus.  Define the standard constant and limit
8464         macros (e.g., INT8_C, INT8_MAX) always.
8465         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8466         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8467         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8468         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8469         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8470         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8471         Likewise.
8472
8473 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8474
8475         nonblocking tests: Fix test failure on Linux/PPC.
8476         Suggested by Prerna Saxena in
8477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8478         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8479         Set to 1100000.
8480
8481 2011-12-12  Jim Meyering  <meyering@redhat.com>
8482
8483         argmatch: don't hard-code `' when listing valid option arguments
8484         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8485         use the quote function to add quotes.  Use fputs rather than
8486         fprintf for the format string with no format directive.
8487
8488 2011-12-07  Eric Blake  <eblake@redhat.com>
8489
8490         bootstrap: detect tools required by gnulib-tool
8491         * build-aux/bootstrap (buildreq): Provide minimum implicit
8492         dependencies.
8493         * DEPENDENCIES: Mention patch as a prereq.
8494
8495 2011-12-04  Bruno Haible  <bruno@clisp.org>
8496
8497         sethostname: Port to Windows platforms.
8498         * lib/sethostname.c: Provide an alternate implementation for Windows
8499         platforms.
8500         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8501         (main): Skip the test if sethostname() fails with EPERM. On Windows
8502         platforms, don't check the result of gethostname().
8503
8504 2011-12-04  Bruno Haible  <bruno@clisp.org>
8505             Jim Meyering  <meyering@redhat.com>
8506
8507         tests: Avoid spurious error message on platforms without mktemp program.
8508         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8509
8510 2011-12-04  Bruno Haible  <bruno@clisp.org>
8511
8512         sethostname: Fix documentation.
8513         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8514         "not fixed" section.
8515
8516 2011-12-03  Bruno Haible  <bruno@clisp.org>
8517
8518         gnulib-tool: Verify that the License field is present and non-empty.
8519         * gnulib-tool (func_get_license_raw): New function, extracted from
8520         func_get_license.
8521         (func_get_license): Use it. Warn if the module is not a test module and
8522         has no license.
8523         Suggested by Jim Meyering.
8524
8525 2011-12-03  Bruno Haible  <bruno@clisp.org>
8526
8527         sethostname tests: Fix link error on mingw.
8528         * tests/test-sethostname1.c: New file, extracted from
8529         tests/test-sethostname.c.
8530         * tests/test-sethostname2.c: New file, extracted from
8531         tests/test-sethostname.c.
8532         * tests/test-sethostname.c: Remove file.
8533         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8534         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8535         (Depends-on): Add gethostname.
8536         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8537         Link the latter with $(GETHOSTNAME_LIB).
8538
8539         sethostname tests: Fix compilation error on mingw.
8540         * tests/test-sethostname.c: Don't include <sys/types.h>.
8541         (geteuid): Use a dummy value without uid_t.
8542         * modules/sethostname-tests (Depends-on): Remove sys_types.
8543
8544         sethostname tests: Avoid a gcc warning.
8545         * tests/test-sethostname.c (main): Remove an unused variable.
8546
8547         Tweak last commit.
8548         * modules/sethostname-tests (Files): Sort by decreasing importance.
8549         (configure.ac): Check for geteuid.
8550         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8551         the test when there's nothing to test. Drop an unnecessary cast.
8552         Improve an error message. Verify that the final sethostname() call
8553         succeeds.
8554
8555 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8556
8557         Add a test suite for the sethostname module.
8558         * modules/sethostname-tests: New file.  A test program
8559         for the sethostname module.
8560         * tests/test-sethostname.c: Likewise.
8561
8562 2011-12-03  Bruno Haible  <bruno@clisp.org>
8563
8564         Tweak last commit.
8565         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8566         Fix preprocessor directives indentation. Fix typos.
8567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8568         * modules/unistd (Makefile): Likewise.
8569
8570 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8571
8572         Integrate the sethostname module into unistd.
8573         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8574         into the unistd.h header.
8575         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8576         preprocessor directives.
8577         * modules/unistd: Setup the Makefile substitutions of the
8578         SETHOSTNAME preprocessor directives.
8579
8580 2011-12-03  Bruno Haible  <bruno@clisp.org>
8581
8582         Tweak last commit.
8583         * lib/sethostname.c: Don't include <string.h>.
8584         (sethostname): No need to copy the argument string to the stack. Don't
8585         call clearerr. Preserve errno when fprintf failed.
8586         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8587         Don't invoke AC_REPLACE_FUNCS.
8588         * modules/sethostname (Link): Remove empty section.
8589         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8590         failure problem.
8591
8592 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8593
8594         New module 'sethostname'.
8595         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8596         for systems that lack it.
8597         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8598         sethostname declaration and function.
8599         * modules/sethostname: New file.  Define the sethostname module.
8600
8601 2011-12-03  Bruno Haible  <bruno@clisp.org>
8602
8603         Tweak last commit.
8604         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8605
8606 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8607
8608         Split the HOST_NAME_MAX detection into a separate m4 macro.
8609         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8610         macro so it can be used by the pending sethostname module.
8611
8612 2011-12-03  Bruno Haible  <bruno@clisp.org>
8613
8614         Fix module descriptions syntax.
8615         * modules/argv-iter (License): Fix syntax.
8616         * modules/di-set (License): Likewise.
8617         * modules/ino-map (License): Likewise.
8618         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8619
8620 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8621
8622         stdalign: port to Clang 3.0
8623         Problem reported by Simon Josefsson in
8624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8625         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8626         which has <stdalign.h> but which does not define alignof.
8627         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8628
8629 2011-12-01  Eric Blake  <eblake@redhat.com>
8630
8631         mktempd: silence dd usage
8632         * build-aux/mktempd (rand_bytes): Silence dd.
8633
8634 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8635
8636         manywarnings: Don't mention gcc version in docstring.
8637         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8638         Jim Meyering <meyering@redhat.com>.
8639
8640 2011-11-30  Jim Meyering  <meyering@redhat.com>
8641
8642         hash: mark a few floating point constants with "f" suffix
8643         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8644         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8645         floating point constants with "f", since they're destined to be
8646         saved/used as "float"s.
8647
8648 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8649
8650         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8651         * tests/test-float.c (test_long_double): Correct and re-enable the
8652         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8653
8654 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8655
8656         Avoid subtracting two pointers that don't point into the same block.
8657         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8658         only pointers into the same memory block are subtracted. We cannot
8659         assume that sizeof (ptrdiff_t) == sizeof (void *).
8660
8661 2011-11-29  Eric Blake  <eblake@redhat.com>
8662
8663         maint.mk: add syntax check for use of compare from init.sh
8664         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8665         moved here from coreutils.
8666
8667         manywarnings: drop -Wunsuffixed-float-constants
8668         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8669         '1.0D', which is the only way to silence this warning for 'double'.
8670
8671 2011-11-29  Jim Meyering  <meyering@redhat.com>
8672
8673         hash: mark compute_bucket_size with the pure attribute
8674         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8675
8676         quotearg, propername: correct pragma guard expression
8677         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8678         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8679
8680 2011-11-28  Jim Meyering  <meyering@redhat.com>
8681
8682         propername: do not mark proper_name with the const attribute
8683         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8684         since it examines data pointed to by its parameter.
8685         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8686         the suggestion from -Wsuggest-attribute=const.
8687
8688         propername: mark one more function as const
8689         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8690
8691 2011-11-27  Jim Meyering  <meyering@redhat.com>
8692
8693         mark functions with const and pure attributes
8694
8695         Mark functions per suggestions from gcc-4.6 when using these options:
8696         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8697         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8698         Follow these guidelines: when possible, apply the attribute to
8699         an extern declaration, not to its definition.  Apply it to the
8700         definition only when the definition is static.
8701         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8702         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8703         * lib/base64.h (isbase64): Likewise.
8704         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8705         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8706         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8707         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8708         (c_tolower, c_toupper): Likewise.
8709         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8710         * lib/chdir-long.c (find_non_slash): Likewise.
8711         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8712         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8713         * lib/file-type.h (file_type): Likewise.
8714         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8715         * lib/filevercmp.c (verrevcmp): Likewise.
8716         * lib/freadahead.h (freadahead): Likewise.
8717         * lib/fts.c (fts_maxarglen): Likewise.
8718         * lib/hash-pjw.h (hash_pjw): Likewise.
8719         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8720         * lib/hash.c (is_prime, next_prime): Likewise.
8721         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8722         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8723         (hash_table_ok, hash_get_first, hash_string): Likewise.
8724         (compute_bucket_size): Likewise.
8725         * lib/i-ring.h (i_ring_empty): Likewise.
8726         * lib/isnan.c (isnanl): Likewise.
8727         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8728         * lib/memcasecmp.h (memcasecmp): Likewise.
8729         * lib/memchr2.h (memchr2): Likewise.
8730         * lib/memcmp2.h (memcmp2): Likewise.
8731         * lib/parse-datetime.y (lookup_zone): Likewise.
8732         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8733         [!WINDOWS_SOCKETS]: Likewise.
8734         * lib/strnlen1.h (strnlen1): Likewise.
8735         * lib/uniwidth.in.h (uc_width): Likewise.
8736         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8737         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8738         (quoting_options_from_style): Add a comment.
8739         * lib/propername.h (proper_name): Add a comment.
8740
8741 2011-11-27  Bruno Haible  <bruno@clisp.org>
8742
8743         Remove unused macros from !_LIBC code in glibc-borrowed files.
8744         * lib/fnmatch.c (STRCOLL): Remove macro.
8745         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8746         * lib/glob.c (__stat, __readdir64): Remove macros.
8747         * lib/tempname.c (__open64, __xstat64): Remove macros.
8748         Suggested by Paul Eggert.
8749
8750 2011-11-27  Bruno Haible  <bruno@clisp.org>
8751
8752         getcwd: Fix link error on MSVC 9.
8753         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8754
8755 2011-11-27  Bruno Haible  <bruno@clisp.org>
8756
8757         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8758         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8759         HAVE_OPENDIR is 0.
8760         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8761         HAVE_CLOSEDIR is 0.
8762         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8763         is 0.
8764         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8765
8766 2011-11-27  Bruno Haible  <bruno@clisp.org>
8767
8768         getcwd: Fix bug from 2011-08-17.
8769         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8770         platforms that need it.
8771         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8772         code of 4 to be a failure, not a success. This ensures that
8773         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8774
8775 2011-11-27  Bruno Haible  <bruno@clisp.org>
8776
8777         binary-io tests: Avoid test failure on mingw when libtool is used.
8778         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8779         Don't verify the size of t-bin-out1.tmp here.
8780         * tests/test-binary-io.sh: Verify it here.
8781         Reported by Simon Josefsson.
8782
8783 2011-11-26  Bruno Haible  <bruno@clisp.org>
8784
8785         Fix conflict between two instantiations of module 'unistd'.
8786         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8787         ${include_guard_prefix} also in the autoconf snippet.
8788         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8790         GNULIB_UNISTD_H_GETOPT.
8791         * modules/getopt-posix (configure.ac): Set the
8792         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8793         * modules/getopt-gnu (configure.ac): Likewise.
8794         * modules/unistd (Makefile.am): Change the substitution value of
8795         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8796         Reported by Simon Josefsson.
8797
8798 2011-11-25  Bruno Haible  <bruno@clisp.org>
8799
8800         pagealign_alloc: Doc and comments.
8801         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8802         module.
8803         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8804
8805 2011-11-25  Jim Meyering  <meyering@redhat.com>
8806
8807         test-update-copyright.sh: avoid false-positive failure
8808         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8809         around false positive failure on Cygwin/Windows.  The latter was
8810         matching erroneously-created files with names like
8811         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8812
8813 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8814
8815         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8816         * m4/valgrind-tests.m4: Check that the parameters that will be
8817         used works, not just a subset of them.  Reported by Bruno Haible
8818         <bruno@clisp.org>.
8819
8820 2011-11-24  Jim Meyering  <meyering@redhat.com>
8821
8822         test-stdalign.c: comment out long double tests
8823         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8824         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8825         error: '_Alignas' specifiers cannot reduce alignment of \
8826         'static_longdouble_alignas'.
8827
8828 2011-11-22  Jim Meyering  <meyering@redhat.com>
8829
8830         init.sh: make "compare /dev/null FILE" output more readable
8831         * tests/init.sh (compare_): Document the preferred order of arguments.
8832         (emit_diff_u_header_): New function.
8833         (compare_dev_null_): Emit a simulated diff, rather than just the
8834         contents of the unexpected file.  Suggestion from Bruno Haible.
8835
8836 2011-11-21  Jim Meyering  <meyering@redhat.com>
8837             Eric Blake  <eblake@redhat.com>
8838
8839         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8840         * tests/init.sh: Make our compare function slightly more portable.
8841         Reported by Bruno Haible in
8842         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8843
8844 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8845
8846         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8847         before using it, in code that ends up in config.h.
8848
8849 2011-11-20  Bruno Haible  <bruno@clisp.org>
8850
8851         getcwd: Work around getcwd bug on AIX 5..7.
8852         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8853         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8854         Use a different value for gl_cv_func_getcwd_path_max. Move the
8855         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8856         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8857         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8858         Define HAVE_MINIMALLY_WORKING_GETCWD.
8859         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8860         where it is not even minimally working, that is, on AIX.
8861         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8862         m4/getcwd-path-max.m4.
8863         (main): Update exit code computation.
8864         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8865         getcwd does not handle long file names.
8866
8867 2011-11-20  Bruno Haible  <bruno@clisp.org>
8868
8869         getcwd: Fix bug from 2009-09-10.
8870         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8871         like "no".
8872
8873 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8874
8875         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8876
8877 2011-11-20  Bruno Haible  <bruno@clisp.org>
8878
8879         fma tests: Avoid shadowing local variables.
8880         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8881         expected.
8882
8883 2011-11-20  Bruno Haible  <bruno@clisp.org>
8884
8885         copysignf tests: Fix.
8886         * tests/test-copysignf.c: Fix signature check.
8887
8888 2011-11-20  Bruno Haible  <bruno@clisp.org>
8889
8890         fma: Remove unused code.
8891         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8892         unused macros.
8893
8894 2011-11-20  Bruno Haible  <bruno@clisp.org>
8895
8896         sethostname: Fix doc about AIX.
8897         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8898         sethostname; it has it.
8899
8900         sethostname: Mention more portability problems.
8901         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8902         problem.
8903         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8904
8905 2011-11-19  Bruno Haible  <bruno@clisp.org>
8906
8907         Depend on module fcntl-h when AT_FDCWD is used.
8908         * modules/utimens (Depends-on): Add fcntl-h.
8909         * modules/areadlinkat (Depends-on): Likewise.
8910         * modules/areadlinkat-with-size (Depends-on): Likewise.
8911         * modules/faccessat (Depends-on): Likewise.
8912         * modules/fchmodat (Depends-on): Likewise.
8913         * modules/fchownat (Depends-on): Likewise.
8914         * modules/getcwd (Depends-on): Likewise.
8915         * modules/mkdirat (Depends-on): Likewise.
8916         * modules/mkfifoat (Depends-on): Likewise.
8917         * modules/readlinkat (Depends-on): Likewise.
8918         * modules/symlinkat (Depends-on): Likewise.
8919         * modules/dup2-tests (Depends-on): Likewise.
8920         * modules/fdutimensat-tests (Depends-on): Likewise.
8921         * modules/futimens-tests (Depends-on): Likewise.
8922
8923 2011-11-19  Bruno Haible  <bruno@clisp.org>
8924
8925         euidaccess: Update a comment.
8926         * lib/euidaccess.c: Update comment about platforms with faccessat.
8927
8928 2011-11-19  Bruno Haible  <bruno@clisp.org>
8929
8930         openat: Fix file list.
8931         * modules/openat (Files): Remove lib/at-func.c.
8932
8933 2011-11-19  Bruno Haible  <bruno@clisp.org>
8934
8935         fstatat: Simplify.
8936         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8937         gnulib should define rpl_fstatat, there is a
8938         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8939
8940 2011-11-19  Bruno Haible  <bruno@clisp.org>
8941
8942         Ensure 'inline' can be used in tests/test-utimens-common.h.
8943         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8944         * modules/futimens-tests (configure.ac): Likewise.
8945         * modules/utimens-tests (configure.ac): Likewise.
8946         * modules/utimensat-tests (configure.ac): Likewise.
8947
8948 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8949
8950         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8951         not hash_insert0.
8952         (hash_insert_if_absent): Doc fix.
8953
8954 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8955
8956         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8957
8958 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8959
8960         test-getcwd: disambiguate exit status
8961         * tests/test-getcwd.c (test_long_name): Return 0..7.
8962         (main): Exit with an unambiguous exit status.  The old
8963         code yielded a mysterious mixture of two failure codes.
8964
8965         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8966         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8967         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8968         rpl_fstatat or fstatat.  This should fix the other problem
8969         reported by Kai Habel in
8970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8971         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8973         and I reproduced it on a Solaris 8 host we still have in production.
8974
8975 2011-11-18  Jim Meyering  <meyering@redhat.com>
8976
8977         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8978         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8979         Add a sentence to the comment.
8980         (hash_insert0): New function that simply calls hash_insert_if_absent.
8981         * lib/hash.h (hash_insert_if_absent): Declare it.
8982         (hash_insert0): Add deprecation attribute.
8983         (_GL_ATTRIBUTE_DEPRECATED): Define.
8984         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8985         not hash_insert0.
8986         * NEWS: Mention it, even though it's not really an incompatible change.
8987
8988 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8989
8990         openat: avoid compilation failure due to lack of <errno.h> inclusion
8991         * lib/openat.c: Include <errno.h>.
8992
8993 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         * modules/getcwd (Depends-on): Add fdopendir.
8996         This fixes one of the two problems reported by Kai Habel in
8997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8998
8999         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9000         stdalign problem reported by Ian Beckwith in
9001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9002         * modules/crypto/gc-arcfour (Depends-on):
9003         Depend conditionally on crypto/arcfour.
9004         * modules/crypto/gc-arctwo (Depends-on):
9005         Depend conditionally on crypto/arctwo.
9006         * modules/crypto/gc-des (Depends-on):
9007         Depend conditionally on crypto/des.
9008         * modules/crypto/gc-hmac-md5 (Depends-on):
9009         Depend conditionally on crypto/hmac-md5.
9010         * modules/crypto/gc-hmac-sha1 (Depends-on):
9011         Depend conditionally on crypto/hmac-sha1.
9012         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9013         * modules/crypto/gc-md4 (Depends-on):
9014         Depend conditionally on crypto/md4.
9015         * modules/crypto/gc-md5 (Depends-on):
9016         Depend conditionally on crypto/md5.
9017         * modules/crypto/gc-rijndael (Depends-on):
9018         Depend conditionally on crypto/rijndael.
9019         * modules/crypto/gc-sha1 (Depends-on):
9020         Depend conditionally on crypto/sha1.
9021         * modules/crypto/gc-arcfour:
9022         * modules/crypto/gc-arctwo:
9023         * modules/crypto/gc-des:
9024         * modules/crypto/gc-hmac-md5:
9025         * modules/crypto/gc-hmac-sha1:
9026         * modules/crypto/gc-md2:
9027         * modules/crypto/gc-md4:
9028         * modules/crypto/gc-md5:
9029         * modules/crypto/gc-rijndael:
9030         * modules/crypto/gc-sha1:
9031         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9032         now that the conditional dependencies do the work for us.
9033
9034 2011-11-17  Jim Meyering  <meyering@redhat.com>
9035
9036         tests: factor st_ctime-comparison out of two headers
9037         * tests/test-utimens-common.h (ctime_compare): Define.
9038         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9039         * tests/test-lutimens.h (test_lutimens): Likewise.
9040         * tests/test-utimens.h (test_utimens): Likewise.
9041
9042         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9043         Invoke the test program via an init.sh-using wrapper.
9044         * tests/test-getcwd.sh: New file.
9045         * modules/getcwd-tests (Files): Add it.
9046         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9047
9048 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9049
9050         gitlog-to-changelog: support multi-author commits.
9051         The FSF cares about keeping track of all authors of patches to its
9052         projects, but Git doesn't provide obvious support for multi-author
9053         changesets. Consensus seems to be forming around the use of extra
9054         Signed-off-by inspired lines in the log message formatted as
9055         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9056         multi-author commits between version control systems.
9057         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9058         log message and output in standard ChangeLog multi-author format.
9059         Reported by Peter Rosin <peda@lysator.liu.se>
9060
9061 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9062             Bruno Haible  <bruno@clisp.org>
9063
9064         Fix some modules' file list.
9065         * modules/fstatat (Files): Add m4/lstat.m4.
9066         * modules/openat (Files): Likewise.
9067         * modules/unlinkat (Files): Likewise.
9068
9069 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9070
9071         maint.mk: fix tight-scope.mk generation in VPATH builds.
9072         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9073         reference with $(srcdir) so that the file is found correctly even
9074         when running `make syntax-check' in a VPATH build.
9075
9076 2011-11-13  Bruno Haible  <bruno@clisp.org>
9077             Jim Meyering  <meyering@redhat.com>
9078
9079         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9080         * tests/init.sh (compare): Remove "No differences encountered" or
9081         synonymous output from the 'diff' program.
9082
9083 2011-11-13  Bruno Haible  <bruno@clisp.org>
9084
9085         Makefile: Tweak indentation.
9086         * Makefile: Use tab as first character in every line that contains rule
9087         commands.
9088
9089 2011-11-13  Bruno Haible  <bruno@clisp.org>
9090
9091         Syntax check for copyright statements.
9092         * check-copyright: New file.
9093         * Makefile (sc_check_copyright): New rule.
9094
9095 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9096
9097         * build-aux/git-version-gen: Add --prefix to configure the tag
9098         match string.
9099
9100 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9101
9102         * build-aux/git-version-gen: Add --help and --version.
9103
9104 2011-11-12  Jim Meyering  <meyering@redhat.com>
9105
9106         revamp the other test-exclude?.sh scripts to use init.sh, too
9107         * tests/test-exclude1.sh: Use init.sh.
9108         * tests/test-exclude2.sh: Likewise.
9109         * tests/test-exclude3.sh: Likewise.
9110         * tests/test-exclude4.sh: Likewise.
9111         * tests/test-exclude5.sh: Likewise.
9112         * tests/test-exclude6.sh: Likewise.
9113         * tests/test-exclude7.sh: Likewise.
9114         * tests/test-exclude8.sh: Likewise.
9115         * modules/exclude-tests (Files): List init.sh.
9116
9117         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9118         These shell scripts ignored failure of the binary test-exclude,
9119         so making the latter return 77 didn't cause them to be skipped.
9120         * tests/test-exclude5.sh: Exit with test-exclude's error status
9121         when that program fails.  Revamp to use init.sh.
9122         * tests/test-exclude2.sh: Likewise.
9123
9124         test-exclude: fix a typo
9125         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9126
9127 2011-11-11  Bruno Haible  <bruno@clisp.org>
9128
9129         obstack: Fix compilation error on MSVC 9.
9130         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9131
9132 2011-11-11  Jim Meyering  <meyering@redhat.com>
9133
9134         test-exclude: skip tests rather than failing on deficient systems
9135         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9136         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9137         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9138         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9139
9140 2011-11-10  Bruno Haible  <bruno@clisp.org>
9141
9142         ptsname_r test: Avoid gcc warning on glibc systems.
9143         * tests/test-ptsname_r.c (null_ptr): New function.
9144         (test_errors): Use it.
9145
9146 2011-11-10  Bruno Haible  <bruno@clisp.org>
9147
9148         ptsname_r: Avoid compilation error on OSF/1 5.1.
9149         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9151         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9152         function is not declared or incompatibly declared.
9153         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9154         * modules/ptsname_r (Depends-on, configure.ac): Update.
9155         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9156
9157 2011-11-10  Bruno Haible  <bruno@clisp.org>
9158
9159         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9160         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9161         When cross-compiling, guess yes on all platforms except AIX.
9162         Reported by Ludovic Courtès <ludo@gnu.org>.
9163
9164 2011-11-09  Bruno Haible  <bruno@clisp.org>
9165
9166         ptsname_r tests: Fix bugs.
9167         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9168         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9169
9170 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9171
9172         fstatat: work with cross-compilation
9173         Problem reported by Ludovic Courtès in
9174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9175         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9176         "cross-compiling" and assume the bug is present.  Replace
9177         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9178         an inverted sense, to be more conservative about our assumptions.
9179         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9180
9181 2011-11-09  Bruno Haible  <bruno@clisp.org>
9182
9183         Improve MODULES.html output.
9184         * modules/mkfifoat (Description): Use the word "function".
9185         * modules/readlinkat (Description): Likewise.
9186         * modules/symlinkat (Description): Likewise.
9187
9188 2011-11-09  Eric Blake  <eblake@redhat.com>
9189
9190         ptsname_r-tests: new test module
9191         * modules/ptsname_r-tests: New module.
9192         * tests/test-ptsname_r.c: New file.
9193
9194         ptsname_r: new module
9195         * modules/ptsname_r: New module.
9196         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9197         * lib/ptsname.c (__ptsname_r): Split...
9198         * lib/ptsname_r.c: ...into new file.
9199         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9200         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9201         * modules/stdlib (Makefile.am): Substitute witnesses.
9202         * lib/stdlib.in.h (ptsname_r): Declare it.
9203         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9204         * MODULES.html.sh (Misc): Likewise.
9205         * modules/ptsname (Depends-on): Alter dependency.
9206         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9207
9208 2011-11-09  Jim Meyering  <meyering@redhat.com>
9209
9210         announce-gen: be more concise when there's only one URL+tarball
9211         * build-aux/announce-gen (get_tool_versions): When you distribute
9212         only one type of tarball, combine the first two "Here are..."
9213         sections and make the key-checking grammar independent of
9214         how many tarballs there are.
9215
9216 2011-11-09  Eric Blake  <eblake@redhat.com>
9217
9218         openpty: provide a stub on mingw
9219         * lib/pty.in.h (includes): Provide forward declarations.
9220         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9221
9222         raise: fix mingw handling of SIGPIPE
9223         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9224
9225 2011-11-08  Bruno Haible  <bruno@clisp.org>
9226
9227         More conditional dependencies.
9228         * modules/faccessat (Depends-on): Add conditions.
9229         * modules/fchmodat (Depends-on): Likewise.
9230         * modules/fchownat (Depends-on): Likewise.
9231         * modules/fstatat (Depends-on): Likewise.
9232         * modules/mkfifoat (Depends-on): Likewise.
9233         * modules/readlinkat (Depends-on): Likewise.
9234         * modules/symlinkat (Depends-on): Likewise.
9235         * modules/unlinkat (Depends-on): Likewise.
9236         * modules/utimensat (Depends-on): Likewise.
9237         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9238         * modules/linkat (Depends-on): Refine the conditions.
9239         * modules/renameat (Depends-on): Likewise.
9240
9241 2011-11-08  Bruno Haible  <bruno@clisp.org>
9242
9243         faccessat: Move AC_LIBOBJ invocation to module description.
9244         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9245         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9246         invocation from here...
9247         * modules/faccessat (configure.ac): ... to here. Invoke
9248         gl_PREREQ_FACCESSAT.
9249
9250 2011-11-08  Bruno Haible  <bruno@clisp.org>
9251
9252         faccessat: Simplify autoconf macro.
9253         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9254         gl_FUNC_EUIDACCESS.
9255
9256 2011-11-08  Bruno Haible  <bruno@clisp.org>
9257
9258         renameat: Fix dependencies.
9259         * modules/renameat (Depends-on): Add stdbool.
9260
9261 2011-11-08  Bruno Haible  <bruno@clisp.org>
9262
9263         mkfifoat: Fix module description.
9264         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9265         not gl_UNISTD_MODULE_INDICATOR.
9266
9267 2011-11-08  Bruno Haible  <bruno@clisp.org>
9268
9269         fstatat: Remove unused dependency.
9270         * modules/fstatat (Depends-on): Remove fstat.
9271
9272 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9273
9274         GNUmakefile: behave when Makefile is missing.
9275         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9276
9277 2011-11-08  Bruno Haible  <bruno@clisp.org>
9278
9279         openat: Conditionalize dependencies.
9280         * lib/openat.c: Reduce the scope of some #includes.
9281         * modules/openat (Depends-on): Add conditions.
9282
9283 2011-11-07  Jim Meyering  <meyering@redhat.com>
9284
9285         maint.mk: extract GPG key ID without using a temporary file
9286         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9287         without using a temporary file.  Based on a suggestion from Werner Koch
9288         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9289
9290 2011-11-07  Eric Blake  <eblake@redhat.com>
9291
9292         grantpt: fix typo
9293         * lib/stdlib.in.h (grantpt): Check correct function.
9294
9295         maint.mk: silence new syntax check
9296         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9297
9298 2011-11-06  Bruno Haible  <bruno@clisp.org>
9299
9300         Doc about floating-point and math API.
9301         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9302         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9303
9304 2011-11-06  Bruno Haible  <bruno@clisp.org>
9305
9306         stdalign tests: Skip the test when compiled by Sun C.
9307         * tests/test-stdalign.c (main): Skip the test on Sun C.
9308
9309 2011-11-06  Bruno Haible  <bruno@clisp.org>
9310
9311         ansi-c++-opt: Complete the 2011-06-05 change.
9312         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9313         does not support namespaces, set the variable to "no", not to ":".
9314
9315 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9316
9317         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9318
9319 2011-11-06  Bruno Haible  <bruno@clisp.org>
9320
9321         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9322         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9323         (minus_zerol) [HP-UX]: New macro.
9324         (unary_minus) [HP-UX]: New function.
9325         (copysignl) [HP-UX]: Use unary_minus function.
9326
9327 2011-11-06  Bruno Haible  <bruno@clisp.org>
9328
9329         ldexp, ldexpf, ldexpl: Enhance tests.
9330         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9331         and tests/test-ldexpl.c.
9332         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9333         LDEXP, MIN_EXP, MAX_EXP): New macros.
9334         Include test-ldexp.h.
9335         (main): Just call test_function.
9336         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9337         infinity.h, nan.h.
9338         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9339         MAX_EXP): New macros.
9340         Include test-ldexp.h.
9341         (x, y): Remove variables.
9342         (main): Just call test_function.
9343         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9344         infinity.h, nan.h.
9345         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9346         MAX_EXP): New macros.
9347         Include test-ldexp.h.
9348         (x, y): Remove variables.
9349         (main): Just call test_function.
9350         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9351         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9352         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9353         (Depends-on): Add isnand-nolibm, signbit, float.
9354         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9355         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9356         (Depends-on): Add isnanf-nolibm, signbit, float.
9357
9358 2011-11-06  Bruno Haible  <bruno@clisp.org>
9359
9360         math tests: Cosmetics.
9361         * tests/test-math-c++.cc: Reorder declarations.
9362
9363 2011-11-05  Bruno Haible  <bruno@clisp.org>
9364
9365         fma*: Simplify test.
9366         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9367         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9368
9369         Tests for module 'fmal'.
9370         * modules/fmal-tests: New file.
9371         * tests/test-fmal1.c: New file.
9372         * tests/test-fmal2.c: New file.
9373
9374         New module 'fmal'.
9375         * lib/math.in.h (fmal): New declaration.
9376         * lib/fmal.c: New file.
9377         * m4/fmal.m4: New file.
9378         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9380         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9381         REPLACE_FMAL.
9382         * modules/fmal: New file.
9383         * doc/posix-functions/fmal.texi: Mention the new module and the various
9384         bugs.
9385
9386         Tests for module 'fmaf'.
9387         * modules/fmaf-tests: New file.
9388         * tests/test-fmaf1.c: New file.
9389         * tests/test-fmaf2.c: New file.
9390
9391         New module 'fmaf'.
9392         * lib/math.in.h (fmaf): New declaration.
9393         * lib/fmaf.c: New file.
9394         * m4/fmaf.m4: New file.
9395         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9397         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9398         REPLACE_FMAF.
9399         * modules/fmaf: New file.
9400         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9401         bugs.
9402
9403         Tests for module 'fma'.
9404         * modules/fma-tests: New file.
9405         * tests/test-fma1.c: New file.
9406         * tests/test-fma1.h: New file.
9407         * tests/test-fma2.c: New file.
9408         * tests/test-fma2.h: New file.
9409
9410         New module 'fma'.
9411         * lib/math.in.h (fma): New declaration.
9412         * lib/fma.c: New file.
9413         * m4/fma.m4: New file.
9414         * m4/fegetround.m4: New file.
9415         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9417         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9418         REPLACE_FMA.
9419         * modules/fma: New file.
9420         * doc/posix-functions/fma.texi: Mention the new module and the various
9421         bugs.
9422
9423         Extend gl_MATHFUNC.
9424         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9425         Support 'void' as argument type.
9426         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9427
9428 2011-11-05  Jim Meyering  <meyering@redhat.com>
9429
9430         maint.mk: also prohibit inclusion of dirent.h without use
9431         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9432
9433 2011-11-05  Bruno Haible  <bruno@clisp.org>
9434
9435         ldexpl tests: Avoid test failure on MSVC 9.
9436         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9437         value. Needed in order to enforce the conversion from a value greater
9438         than LDBL_MAX to Infinity.
9439
9440 2011-11-05  Bruno Haible  <bruno@clisp.org>
9441
9442         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9443         * modules/at-internal: New file, extracted from modules/openat.
9444         * modules/openat-h: New file.
9445         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9446         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9447         * modules/openat (Description): Add reference to POSIX function.
9448         (Files): Remove lib/openat.h, lib/openat-proc.c.
9449         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9450         intprops, unistd.
9451         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9452         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9453         gl_FCNTL_MODULE_INDICATOR.
9454         (Include): Remove unistd.h, openat.h.
9455         * modules/areadlinkat (Files): Add lib/at-func.c.
9456         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9457         openat-die, openat-h, save-cwd.
9458         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9459         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9460         openat-die, openat-h, save-cwd, unistd.
9461         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9462         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9463         openat-h, save-cwd. Remove fcntl-h, openat.
9464         * modules/fchmodat (Files): Remove lib/openat.h.
9465         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9466         openat, stdbool, unistd.
9467         * modules/fchownat (Files): Remove lib/openat.h.
9468         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9469         openat, stdbool, sys_stat.
9470         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9471         lib/openat-proc.c.
9472         (Depends-on): Add at-internal.
9473         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9474         * modules/fstatat (Files): Remove lib/openat.h.
9475         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9476         stdbool, unistd.
9477         * modules/fts (Depends-on): Add openat-h.
9478         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9479         openat.
9480         * modules/mkdirat (Files): Remove lib/openat.h.
9481         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9482         openat, stdbool, sys_stat.
9483         * modules/mkfifoat (Files): Add lib/at-func.c.
9484         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9485         openat-h, save-cwd. Remove fcntl-h, openat.
9486         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9487         * modules/readlinkat (Files): Add lib/at-func.c.
9488         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9489         openat-h, save-cwd. Remove fcntl-h, openat.
9490         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9491         openat.
9492         * modules/selinux-at (Files): Add lib/at-func.c.
9493         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9494         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9495         * modules/symlinkat (Files): Add lib/at-func.c.
9496         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9497         openat-h, save-cwd. Remove fcntl-h, openat.
9498         * modules/unlinkat (Files): Remove lib/openat.h.
9499         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9500         stdbool.
9501         * modules/utimensat (Files): Add lib/at-func.c.
9502         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9503         openat-die, openat-h, save-cwd.
9504         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9505         * modules/fdutimensat-tests (Depends-on): Add openat.
9506         * modules/fstatat-tests (Depends-on): Add openat-h.
9507         * modules/readlinkat-tests (Depends-on): Add openat.
9508         * modules/symlinkat-tests (Depends-on): Add openat.
9509
9510 2011-11-05  Bruno Haible  <bruno@clisp.org>
9511
9512         openat: Include <stdbool.h>.
9513         * lib/openat.c: Include <stdbool.h>.
9514
9515 2011-11-04  Bruno Haible  <bruno@clisp.org>
9516
9517         fchownat, renameat, unlinkat: Fix dependencies.
9518         * modules/fchownat (Depends-on): Add fstatat.
9519         * modules/renameat (Depends-on): Likewise.
9520         * modules/unlinkat (Depends-on): Likewise.
9521
9522 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9523
9524         openat: remove direct dependency on dirent
9525         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9526         and hasn't been needed ever since fdopendir was split into its own
9527         module on 2009-08-31.
9528         * modules/openat (Depends-on): Remove dirent.
9529
9530 2011-11-04  Bruno Haible  <bruno@clisp.org>
9531
9532         renameat: Optimize code size.
9533         * modules/renameat (configure.ac): Don't compile at-func2.c if
9534         REPLACE_RENAMEAT is 1.
9535
9536 2011-11-04  Bruno Haible  <bruno@clisp.org>
9537
9538         openat tests: Fix file list.
9539         * modules/openat-tests (Files): Add tests/test-open.h.
9540
9541 2011-11-04  Bruno Haible  <bruno@clisp.org>
9542
9543         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9544         * modules/fchmodat (Depends-on): Add openat-die.
9545         * modules/fchownat (Depends-on): Likewise.
9546         * modules/linkat (Depends-on): Likewise.
9547         * modules/renameat (Depends-on): Likewise.
9548         * modules/openat (Depends-on): Add dirent.
9549
9550 2011-11-04  Jim Meyering  <meyering@redhat.com>
9551
9552         at-func*.c: fix comments
9553         * lib/at-func2.c: Correct/improve first-line comment.
9554         * lib/at-func.c: Correct grammar in first-line comment.
9555
9556 2011-11-04  Bruno Haible  <bruno@clisp.org>
9557
9558         New module 'mkdirat', split off from module 'openat'.
9559         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9560         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9561         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9562         * modules/mkdirat: New file, extracted from modules/openat.
9563         * modules/openat (Files): Remove lib/mkdirat.c.
9564         (Depends-on): Remove mkdir.
9565         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9566         (Include): Remove <sys/stat.h>.
9567         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9568         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9569         tests/test-mkdir.h.
9570         (Depends-on): Remove ignore-value.
9571         (Makefile.am): Remove rules for test-mkdirat.
9572         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9573         of module 'openat'.
9574         * NEWS: Mention the change.
9575
9576 2011-11-04  Bruno Haible  <bruno@clisp.org>
9577
9578         closedir: Avoid warning on mingw.
9579         * lib/closedir.c: Include <unistd.h>.
9580
9581 2011-11-04  Bruno Haible  <bruno@clisp.org>
9582
9583         New module 'fstatat', split off from module 'openat'.
9584         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9585         defined.
9586         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9587         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9588         gl_FUNC_FSTATAT.
9589         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9590         * modules/fstatat: New file, extracted from modules/openat.
9591         * modules/openat (Files): Remove lib/fstatat.c.
9592         (Depends-on): Remove lstat.
9593         (configure.ac): Remove AC_LIBOBJ of fstatat.
9594         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9595         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9596         tests/test-lstat.h, tests/test-stat.h.
9597         (Depends-on): Remove getcwd-lgpl.
9598         (Makefile.am): Remove rules for test-fstatat.
9599         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9600         of module 'openat'.
9601         * NEWS: Mention the change.
9602         * modules/getcwd (Depends-on): Add fstatat.
9603         * modules/linkat (Depends-on): Likewise.
9604         * modules/mkfifoat-tests (Depends-on): Likewise.
9605         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9606
9607 2011-11-03  Bruno Haible  <bruno@clisp.org>
9608
9609         New module 'unlinkat', split off from module 'openat'.
9610         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9611         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9612         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9613         * modules/unlinkat: New file, extracted from modules/openat. Correct
9614         the dependency conditions.
9615         * modules/openat (Files): Remove lib/unlinkat.c.
9616         (Depends-on): Remove rmdir, unlink.
9617         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9618         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9619         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9620         tests/test-rmdir.h, tests/test-unlink.h.
9621         (Depends-on): Remove unlinkdir.
9622         (Makefile.am): Remove rules for test-unlinkat.
9623         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9624         of module 'openat'.
9625         * NEWS: Mention the change.
9626         * modules/linkat-tests (Depends-on): Add unlinkat.
9627         * modules/mkfifoat-tests (Depends-on): Likewise.
9628         * modules/readlinkat-tests (Depends-on): Likewise.
9629
9630 2011-11-02  Bruno Haible  <bruno@clisp.org>
9631
9632         New module 'fchmodat', split off from module 'openat'.
9633         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9634         defined.
9635         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9636         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9637         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9638         * modules/fchmodat: New file, extracted from modules/openat.
9639         * modules/openat (Files): Remove lib/fchmodat.c.
9640         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9641         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9642         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9643         (Makefile.am): Remove rules for test-fchmodat.
9644         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9645         of module 'openat'.
9646         * NEWS: Mention the change.
9647
9648 2011-11-02  Jim Meyering  <meyering@redhat.com>
9649
9650         putenv: indent #definition of "environ" to placate cppi
9651         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9652
9653         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9654         Git logs are often treated as immutable, because editing them
9655         changes the SHA1 checksums of all descendants.  Thus, errors in
9656         git logs tend to stay there forever.  However, when we generate
9657         a ChangeLog file -- typically for distribution -- from that git log,
9658         we can actually make corrections in the generated file.  The key
9659         lies in recording in machine-readable/applicable form the desired
9660         corrections.  See --help for description and an example.
9661         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9662         (usage): Describe it; alphabetize option descriptions.
9663         (main): Honor the new option, carefully.
9664
9665 2011-11-01  Jim Meyering  <meyering@redhat.com>
9666
9667         gitlog-to-changelog: avoid an infloop
9668         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9669         that ends up being empty.
9670
9671 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9674         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9675         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9676         contains (possibly-quoted) backslashes.  This should avoid
9677         all-too-common shell bugs if COMPLICATED contains backslashes in
9678         the "wrong" places.  Reported by David Evans in
9679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9680         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9681         because we want ASCII ranges.  Is there some reason we don't use
9682         the C locale everywhere in this script?
9683         (func_module, top level): Avoid unwanted pathname expansion when
9684         $repo_url_prefix or $repo_url_suffix_repl contain shell
9685         metacharacters like '?' and '*'.
9686
9687 2011-11-01  Bruno Haible  <bruno@clisp.org>
9688
9689         fchownat: Improve description.
9690         * modules/fchownat (Description): Add link to function.
9691
9692 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9693
9694         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9695         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9697         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9698
9699 2011-11-01  Bruno Haible  <bruno@clisp.org>
9700
9701         alignof: Avoid collision with stdalign module.
9702         * lib/alignof.h (alignof): Remove macro.
9703         * NEWS: Mention the change.
9704         Reported by Paul Eggert.
9705
9706 2011-11-01  Bruno Haible  <bruno@clisp.org>
9707
9708         New module 'fchownat', split off from module 'openat'.
9709         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9710         defined.
9711         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9712         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9713         invoke gl_FUNC_FCHOWNAT.
9714         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9715         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9716         * modules/fchownat: New file, extracted from modules/openat.
9717         * modules/openat (Files): Remove lib/fchownat.c.
9718         (Depends-on): Remove lchown.
9719         (configure.ac): Remove AC_LIBOBJ of fchownat.
9720         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9721         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9722         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9723         (Depends-on): Remove mgetgroups, usleep, stat-time.
9724         (configure.ac): Remove test for getegid.
9725         (Makefile.am): Remove rules for test-fchownat.
9726         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9727         of module 'openat'.
9728         * NEWS: Mention the change.
9729
9730 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9731
9732         stdalign: port better to MSVC and to Sun C 5.11
9733         This fixes some of the problems reported by Bruno Haible in
9734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9735         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9736         shortcomings of MSVC and of Sun C 5.11.
9737         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9738         around __declspec arg.
9739         * modules/stdalign-tests (Files): Add tests/macros.h.
9740         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9741         Include macros.h, for ASSERT.
9742         (DECLARE_ALIGNED): Remove.
9743         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9744         to catch bug), and to 1 if not (simplifies the rest of the code).
9745         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9746         (CHECK_AUTO): Remove.
9747         (CHECK_ALIGNED): Check only the alignment of the static vars,
9748         since auto var alignment isn't supported by Sun C 5.11.
9749         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9750         ASSERT failures are easier to diagnose.
9751
9752 2011-10-31  Bruno Haible  <bruno@clisp.org>
9753
9754         doc about some IRIX 5.3 problems.
9755         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9756         on IRIX 5.3.
9757         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9758         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9759         5.3.
9760         * doc/posix-functions/grantpt.texi: Likewise.
9761         * doc/posix-functions/unlockpt.texi: Likewise.
9762         * doc/posix-functions/lgamma.texi: Likewise.
9763         * doc/posix-functions/nextafter.texi: Likewise.
9764         * doc/posix-functions/remainder.texi: Likewise.
9765         * doc/posix-functions/select.texi: Mention misplaced declaration on
9766         IRIX 5.3.
9767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9768
9769 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9770
9771         gitlog-to-changelog: fix git-log invocation.
9772         git-log mishandles date strings before 1970-01-01 UTC, and there is
9773         no use to specify --since=1970-01-01 by default anyway.
9774         * build-aux/gitlog-to-changelog: By default, when no --since option
9775         was given, do not specify explicit --since option to git-log.
9776
9777 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9778
9779         gitlog-to-changelog: new option --append-dot.
9780         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9781         first non-blank line of each commit message terminated with a dot.
9782
9783 2011-10-30  Bruno Haible  <bruno@clisp.org>
9784
9785         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9786         * lib/ffsl.h: Include <config.h>.
9787         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9788
9789 2011-10-30  Jim Meyering  <meyering@redhat.com>
9790
9791         GNUmakefile: reenable "make syntax-check" for most projects
9792         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9793         build-aux variable", "syntax-check" would do nothing but succeed with
9794         the "No version control files detected..." diagnostic (unless you
9795         happened to override _build-aux via cfg.mk).
9796         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9797         to precede inclusion of maint.mk.  Otherwise, these variables would
9798         be used undefined in any project that does not override the default.
9799
9800 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9801
9802         gitlog-to-changelog: treat a message with only blank lines as empty.
9803         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9804         trailing blank lines before the code that issues a warning about an
9805         empty commit message.
9806
9807 2011-10-30  Jim Meyering  <meyering@redhat.com>
9808
9809         test-parse-datetime.c: avoid new DST-related false positive test failure
9810         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9811         based on the time/date we'll convert, not the current time.
9812         Otherwise, the moment we cross a DST boundary like today's in
9813         Europe, (CEST to CET), that offset ends up being one hour off.
9814
9815 2011-10-27  Bruno Haible  <bruno@clisp.org>
9816
9817         fstat: Tweak documentation.
9818         * modules/fstat (Description): More precise description.
9819
9820 2011-10-27  Bruno Haible  <bruno@clisp.org>
9821
9822         Update documentation regarding 'largefile' module.
9823         * doc/posix-functions/fstat.texi: Tweak wording.
9824         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9825         problems with huge directories and/or small ino_t types.
9826         * doc/posix-functions/readdir.texi: Likewise.
9827         * doc/posix-functions/rewinddir.texi: Likewise.
9828
9829 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9830
9831         maint.mk: don't maintain a second build-aux variable.
9832         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9833         depends on GNUmakefile, which already maintains a cfg.mk
9834         overridable $(_build-aux) for projects with a non-standard
9835         build-aux directory location, although without the $(srcdir)
9836         prefix.  Use that variable consistently instead of introducing a
9837         second one.  Adjust all call sites.
9838
9839 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9840
9841         Add stdalign module and use it in other modules.
9842         This is based on a previous proposal by Bruno Haible
9843         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9844
9845         stdalign: new module
9846         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9847         * modules/stdalign: New files.
9848         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9849         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9850
9851         stdalign-tests: new module
9852         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9853
9854         argp: use stdalign
9855         * lib/argp-parse.c: Include <stdalign.h>.
9856         (alignof): Remove.
9857         * modules/argp (Depends-on): Add stdalign.
9858
9859         crypto libraries: use stdalign
9860         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9861         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9862         Do not include <stdlib.h> twice, in md4.c.
9863         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9864         because we are accessing a pointer's bit-pattern, not a size.
9865         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9866         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9867         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9868         * modules/crypto/sha512: Likewise.
9869
9870         sys_socket: use stdalign, not alignof
9871         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9872         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9873
9874 2011-10-27  Bruno Haible  <bruno@clisp.org>
9875
9876         raise test: Avoid a test failure on Linux/MIPS.
9877         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9878         because 99 is a valid signal on Linux/MIPS.
9879
9880 2011-10-27  Bruno Haible  <bruno@clisp.org>
9881
9882         nonblocking tests: Fix test failure on Linux/MIPS.
9883         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9884         Set to 270000.
9885
9886 2011-10-27  Bruno Haible  <bruno@clisp.org>
9887
9888         utimensat: Work around problem on Linux/hppa.
9889         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9890         values.
9891         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9892
9893 2011-10-25  Jim Meyering  <meyering@redhat.com>
9894
9895         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9896         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9897         after symbols like NULL, size_t, etc.
9898         Reported by Alfred M. Szmidt.
9899
9900         maint.mk: exempt ENODATA from a syntax-check rule
9901         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9902         from the sc_prohibit_always-defined_macros syntax-check rule.
9903         Add a comment.  See this for more details:
9904         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9905
9906 2011-10-23  Jim Meyering  <meyering@redhat.com>
9907
9908         fts: close parent dir FD before returning from post-traversal fts_read
9909         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9910         unlink A, even though an FD open on A remained.  This is suboptimal
9911         (holding a file descriptor open longer than needed), but otherwise not
9912         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9913         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9914         that represents a real problem: it causes the removal of A to fail
9915         with e.g., "rm: cannot remove `A': Device or resource busy"
9916
9917         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9918         directory file descriptors.  After completing the final, FTS_DP,
9919         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9920         cache, but then proceeded to add a new FD to it via the subsequent
9921         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9922         final file descriptor would be closed only via fts_close's call to
9923         fd_ring_clear.  Now, it is usually closed earlier, via the final
9924         FTS_DP-returning fts_read call.
9925         * lib/fts.c (restore_initial_cwd): New function, converted from
9926         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9927         Update callers.
9928         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9929         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9930
9931 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9932             Bruno Haible  <bruno@clisp.org>
9933             Jim Meyering  <jim@meyering.net>
9934
9935         readme-release: improve safety of release prep instructions.
9936         * README-release: Don't git pull all branches when only master
9937         is needed for the release process.
9938         Run make maintainer-clean before changing trees and merging.
9939         Don't try to run ./configure right after git pull in case files
9940         that influence the bootstrap process have changed, move the
9941         ./configure step to after running ./bootstrap.
9942         Don't bootstrap "one last time"... it's the first time!
9943
9944 2011-10-22  Bruno Haible  <bruno@clisp.org>
9945
9946         errno, strerror-override: Support for MSVC 10.
9947         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9948         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9949         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9950         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9951         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9952         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9953         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9954         Assign values compatible with MSVC 10.
9955         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9956         New macros.
9957         (GNULIB_defined_EWINSOCK): New macro.
9958         * lib/strerror-override.c (strerror_override): Update accordingly.
9959         * lib/strerror-override.h: Likewise.
9960         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9961         longer equal to the corresponding errno value.
9962         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9963
9964 2011-10-22  Bruno Haible  <bruno@clisp.org>
9965
9966         perror: Recognize when test program crashes.
9967         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9968         strerror, set gl_cv_func_perror_works to no.
9969         Reported by Daniel Richard G. <skunk@iskunk.org>.
9970
9971         perror: Fix indentation.
9972         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9973
9974 2011-10-22  Bruno Haible  <bruno@clisp.org>
9975
9976         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9977         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9978         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9979         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9980         functions, not as a macro.
9981         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9982         macros.
9983         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9984         absence of macro.
9985         Suggested by Eric Blake.
9986         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9987
9988 2011-10-21  Bruno Haible  <bruno@clisp.org>
9989
9990         relocatable-prog-wrapper: Don't leave object files behind.
9991         * build-aux/install-reloc: Re-synchronize list of .o files to be
9992         removed with list of compilation units.
9993
9994 2011-10-20  Bruno Haible  <bruno@clisp.org>
9995
9996         openpty, posix_openpt: Remove code duplication.
9997         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9998         * lib/openpty.c: Include <stdlib.h>.
9999         (openpty): Use posix_openpt on all platforms except IRIX.
10000         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10001
10002 2011-10-20  Bruno Haible  <bruno@clisp.org>
10003
10004         unlockpt: Detect invalid argument.
10005         * lib/unlockpt.c: Include <fcntl.h>.
10006         (unlockpt): Check whether fd is valid, using fcntl().
10007         * modules/unlockpt (Depends-on): Add fcntl-h.
10008
10009 2011-10-20  Bruno Haible  <bruno@clisp.org>
10010
10011         openpty: Avoid compilation error on AIX 6.1.
10012         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10013
10014 2011-10-20  Bruno Haible  <bruno@clisp.org>
10015
10016         posix_openpt: Support for OpenBSD.
10017         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10018         (posix_openpt) [OpenBSD]: New code.
10019         * lib/grantpt.c: Include <fcntl.h>.
10020         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10021         * modules/grantpt (Depends-on): Add fcntl-h.
10022
10023 2011-10-20  Bruno Haible  <bruno@clisp.org>
10024
10025         posix_openpt test: Coding style.
10026         * tests/test-posix_openpt.c: Use GNU coding style.
10027
10028 2011-10-20  Bruno Haible  <bruno@clisp.org>
10029
10030         grantpt: Support --avoid=pt_chown.
10031         * modules/grantpt (Files): Add lib/pty-private.h.
10032
10033 2011-10-20  Bruno Haible  <bruno@clisp.org>
10034
10035         posix_openpt: Fix autoconf macro.
10036         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10037         unneeded check for _getpty.
10038
10039 2011-10-20  Bruno Haible  <bruno@clisp.org>
10040
10041         openpty: Update comments.
10042         * lib/openpty.c: Add comments about Minix.
10043
10044 2011-10-19  Eric Blake  <eblake@redhat.com>
10045
10046         openpty: relax license
10047         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10048
10049         pt_chown: use configmake to simplify build
10050         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10051
10052         ptsname and others: relax license
10053         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10054         * modules/unlockpt (License): Likewise.
10055         * modules/pt_chown (License): Likewise.
10056         * modules/ptsname (License): Likewise.
10057         * modules/ttyname_r (License): Likewise.
10058
10059 2011-10-19  Jim Meyering  <meyering@redhat.com>
10060
10061         posix_openpt: remove spurious #endif
10062         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10063
10064 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10065
10066         maint.mk: Respect $(build_aux) in web-manual rule.
10067         * top/maint.mk (web-manual): Find gen-announce script in user's
10068         $(build_aux) directory instead of hard-coding 'build-aux'.
10069
10070 2011-10-19  Bruno Haible  <bruno@clisp.org>
10071
10072         posix_openpt: Fix compilation error.
10073         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10074         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10075         Mention the openpty module as an alternative.
10076
10077 2011-10-19  Bruno Haible  <bruno@clisp.org>
10078
10079         Support for old NeXTstep 3.3 frexp().
10080         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10081         execution time of the test to 5 seconds.
10082         Reported by Daniel Richard G. <skunk@iskunk.org>.
10083
10084 2011-10-19  Bruno Haible  <bruno@clisp.org>
10085
10086         Support for old NeXTstep 3.3 sed.
10087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10088         part, use /.../, not \|...|. Escape periods in the header file name.
10089         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10090         Reported by Daniel Richard G. <skunk@iskunk.org>.
10091
10092 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10093
10094         Support for old NeXTstep 3.3 gcc.
10095         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10096         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10097         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10098         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10099         * lib/regex.h (_Restrict_arr_): Likewise.
10100         * lib/regex_internal.h (re_token_t): Likewise.
10101         * lib/regexec.c (check_node_accept_bytes): Likewise.
10102         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10103
10104 2011-10-18  Eric Blake  <eblake@redhat.com>
10105
10106         posix_openpt: new module
10107         * modules/posix_openpt: New module.
10108         * m4/posix_openpt.m4: New file.
10109         * lib/posix_openpt.c: Likewise.
10110         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10111         (gl_STDLIB_H_DEFAULTS): Set defaults.
10112         * modules/stdlib (Makefile.am): Substitute macros.
10113         * lib/stdlib.in.h (posix_openpt): Declare.
10114         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10115         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10116         * modules/posix_openpt-tests: New test module.
10117         * tests/test-posix_openpt.c: New test.
10118
10119 2011-10-15  Bruno Haible  <bruno@clisp.org>
10120
10121         xstrtoll: Fix compilation failure.
10122         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10123         from lib/strtol.c.
10124         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10125         some platforms.
10126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10127
10128 2011-10-15  Bruno Haible  <bruno@clisp.org>
10129
10130         vasnprintf: Optimize bit search operation.
10131         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10133         gl_DOUBLE_EXPONENT_LOCATION.
10134         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10135         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10136         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10137         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10138         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10139         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10140         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10141         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10142         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10143
10144 2011-10-15  Bruno Haible  <bruno@clisp.org>
10145
10146         vasnprintf: Fix comments.
10147         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10148
10149 2011-10-14  Bruno Haible  <bruno@clisp.org>
10150
10151         Tests for module 'integer_length_ll'.
10152         * modules/integer_length_ll-tests: New file.
10153         * tests/test-integer_length_ll.c: New file.
10154
10155         New module 'integer_length_ll'.
10156         * lib/integer_length_ll.c: New file.
10157         * modules/integer_length_ll: New file.
10158
10159 2011-10-14  Bruno Haible  <bruno@clisp.org>
10160
10161         Tests for module 'integer_length_l'.
10162         * modules/integer_length_l-tests: New file.
10163         * tests/test-integer_length_l.c: New file.
10164
10165         New module 'integer_length_l'.
10166         * lib/integer_length_l.c: New file.
10167         * modules/integer_length_l: New file.
10168
10169 2011-10-14  Bruno Haible  <bruno@clisp.org>
10170
10171         Tests for module 'integer_length'.
10172         * modules/integer_length-tests: New file.
10173         * tests/test-integer_length.c: New file.
10174
10175         New module 'integer_length'.
10176         * lib/integer_length.h: New file.
10177         * lib/integer_length.c: New file.
10178         * modules/integer_length: New file.
10179
10180 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10181
10182         popen: Fix dependency conditions.
10183         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10184
10185 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10186
10187         perror: Fix autoconf test.
10188         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10189         <stdlib.h> and <string.h>.
10190
10191 2011-10-14  Bruno Haible  <bruno@clisp.org>
10192
10193         ffsl: Optimize on 64-bit platforms.
10194         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10195         unrolling.
10196
10197 2011-10-13  Bruno Haible  <bruno@clisp.org>
10198
10199         ffsl: Optimize on 32-bit platforms.
10200         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10201         use ffs() without a loop.
10202
10203         ffsl, ffsll: Optimize for GCC.
10204         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10205         * lib/ffsl.c (GCC_BUILTIN): New macro.
10206         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10207
10208 2011-10-13  Bruno Haible  <bruno@clisp.org>
10209
10210         ffs, bcopy, memset: Support symbol renaming via config.h.
10211         * lib/ffs.c: Include <config.h>.
10212         * lib/bcopy.c: Likewise.
10213         * lib/memset.c: Likewise.
10214
10215 2011-10-10  Bruno Haible  <bruno@clisp.org>
10216
10217         atanl: Simplify for platforms where 'long double' == 'double'.
10218         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10219         alternative implementation.
10220         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10221         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10222         * modules/atanl (Depends-on): Add atan. Update conditions.
10223
10224 2011-10-10  Bruno Haible  <bruno@clisp.org>
10225
10226         acosl: Simplify for platforms where 'long double' == 'double'.
10227         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10228         alternative implementation.
10229         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10230         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10231         * modules/acosl (Depends-on): Add acos. Update conditions.
10232
10233 2011-10-10  Bruno Haible  <bruno@clisp.org>
10234
10235         asinl: Simplify for platforms where 'long double' == 'double'.
10236         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10237         alternative implementation.
10238         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10239         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10240         * modules/asinl (Depends-on): Add asin. Update conditions.
10241
10242 2011-10-10  Bruno Haible  <bruno@clisp.org>
10243
10244         tanl: Simplify for platforms where 'long double' == 'double'.
10245         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10246         implementation.
10247         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10248         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10249         * modules/tanl (Depends-on): Add tan. Update conditions.
10250         (configure.ac): Don't compile trigl.c if
10251         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10252
10253 2011-10-10  Bruno Haible  <bruno@clisp.org>
10254
10255         cosl: Simplify for platforms where 'long double' == 'double'.
10256         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10257         implementation.
10258         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10259         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10260         * modules/cosl (Depends-on): Add cos. Update conditions.
10261         (configure.ac): Don't compile sincosl.c and trigl.c if
10262         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10263
10264 2011-10-10  Bruno Haible  <bruno@clisp.org>
10265
10266         sinl: Simplify for platforms where 'long double' == 'double'.
10267         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10268         implementation.
10269         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10270         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10271         * modules/sinl (Depends-on): Add sin. Update conditions.
10272         (configure.ac): Don't compile sincosl.c and trigl.c if
10273         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10274
10275 2011-10-10  Bruno Haible  <bruno@clisp.org>
10276
10277         logl: Simplify for platforms where 'long double' == 'double'.
10278         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10279         implementation.
10280         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10281         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10282         * modules/logl (Depends-on): Add log. Update conditions.
10283
10284 2011-10-10  Bruno Haible  <bruno@clisp.org>
10285
10286         expl: Simplify for platforms where 'long double' == 'double'.
10287         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10288         implementation.
10289         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10290         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10291         * modules/expl (Depends-on): Add exp. Update conditions.
10292
10293 2011-10-10  Bruno Haible  <bruno@clisp.org>
10294
10295         sqrtl: Simplify for platforms where 'long double' == 'double'.
10296         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10297         alternative implementation.
10298         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10299         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10300         * modules/sqrtl (Depends-on): Update conditions.
10301
10302 2011-10-10  Bruno Haible  <bruno@clisp.org>
10303
10304         ldexpl: Simplify for platforms where 'long double' == 'double'.
10305         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10306         alternative implementation.
10307         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10308         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10309         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10310
10311 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10312
10313         ffsll: set correct witness
10314         * modules/ffsll (configure.ac): Fix typo.
10315
10316 2011-10-10  Bruno Haible  <bruno@clisp.org>
10317
10318         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10319         * lib/printf-frexpl.c: Include <config.h>.
10320         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10321         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10322         second time.
10323         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10324         gl_LONG_DOUBLE_VS_DOUBLE.
10325         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10326         conditions.
10327
10328 2011-10-10  Bruno Haible  <bruno@clisp.org>
10329
10330         frexpl: Simplify for platforms where 'long double' == 'double'.
10331         * lib/frexpl.c: Include <config.h>.
10332         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10333         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10334         time.
10335         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10336         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10337         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10338         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10339         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10340         conditions.
10341
10342 2011-10-10  Jim Meyering  <meyering@redhat.com>
10343
10344         test-renameat: don't leave behind a temporary file
10345         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10346           ERROR: files left in build directory after distclean:
10347           ./gltests/test-renameat.too
10348           make[1]: *** [distcleancheck] Error 1
10349         Reported by Tom G. Christensen.
10350
10351 2011-10-09  Bruno Haible  <bruno@clisp.org>
10352
10353         rint: Determine RINT_LIBM correctly on AIX 7.
10354         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10355         directly, not only through a function pointer. Also accept an optional
10356         4th argument with extra code.
10357         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10358         rintf() call by gcc when optimizing.
10359
10360         mathfunc.m4: Refactor.
10361         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10362         m4 variable.
10363
10364 2011-10-09  Bruno Haible  <bruno@clisp.org>
10365
10366         rintl: Simplify for platforms where 'long double' == 'double'.
10367         * lib/rintl.c: Include <config.h>.
10368         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10369         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10370         time.
10371         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10372         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10373         * modules/rintl (Depends-on): Add rint. Update conditions.
10374
10375 2011-10-09  Bruno Haible  <bruno@clisp.org>
10376
10377         roundl: Simplify for platforms where 'long double' == 'double'.
10378         * lib/roundl.c: Include <config.h>.
10379         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10380         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10381         time.
10382         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10383         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10384         * modules/roundl (Depends-on): Add round. Update conditions.
10385
10386 2011-10-09  Bruno Haible  <bruno@clisp.org>
10387
10388         truncl: Simplify for platforms where 'long double' == 'double'.
10389         * lib/truncl.c: Include <config.h>.
10390         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10391         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10392         time.
10393         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10394         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10395         * modules/truncl (Depends-on): Add trunc. Update conditions.
10396
10397 2011-10-09  Bruno Haible  <bruno@clisp.org>
10398
10399         ceill: Simplify for platforms where 'long double' == 'double'.
10400         * lib/ceill.c: Include <config.h>.
10401         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10402         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10403         time.
10404         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10405         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10406         * modules/ceill (Depends-on): Add ceil. Update conditions.
10407
10408 2011-10-09  Bruno Haible  <bruno@clisp.org>
10409
10410         floorl: Simplify for platforms where 'long double' == 'double'.
10411         * lib/floorl.c: Include <config.h>.
10412         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10413         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10414         time.
10415         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10416         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10417         * modules/floorl (Depends-on): Add floor. Update conditions.
10418
10419 2011-10-09  Bruno Haible  <bruno@clisp.org>
10420
10421         rint: Fix ordering constraints.
10422         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10423         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10424         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10425
10426 2011-10-09  Bruno Haible  <bruno@clisp.org>
10427
10428         copysignl: Simplify for platforms where 'long double' == 'double'.
10429         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10430         alternative.
10431         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10432         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10433         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10434
10435 2011-10-09  Bruno Haible  <bruno@clisp.org>
10436
10437         Tests for module 'rintl'.
10438         * modules/rintl-tests: New file.
10439         * tests/test-rintl.c: New file.
10440
10441         New module 'rintl'.
10442         * lib/math.in.h (rintl): New declaration.
10443         * lib/rintl.c: New file.
10444         * m4/rintl.m4: New file.
10445         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10447         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10448         * modules/rintl: New file.
10449         * tests/test-math-c++.cc: Check the declaration of rintl.
10450         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10451         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10452         * doc/posix-functions/rintl.texi: Mention the new module.
10453
10454 2011-10-09  Bruno Haible  <bruno@clisp.org>
10455
10456         Tests for module 'rintf'.
10457         * modules/rintf-tests: New file.
10458         * tests/test-rintf.c: New file.
10459
10460         New module 'rintf'.
10461         * lib/math.in.h (rintf): New declaration.
10462         * lib/rintf.c: New file.
10463         * m4/rintf.m4: New file.
10464         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10466         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10467         * modules/rintf: New file.
10468         * tests/test-math-c++.cc: Check the declaration of rintf.
10469         * doc/posix-functions/rintf.texi: Mention the new module.
10470
10471 2011-10-09  Bruno Haible  <bruno@clisp.org>
10472
10473         rint: Support for MSVC.
10474         * lib/math.in.h (rint): New declaration.
10475         * lib/rint.c: New file.
10476         * m4/rint.m4: New file.
10477         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10479         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10480         * modules/rint (Description): Fix.
10481         (Files): Add lib/rint.c, m4/rint.m4.
10482         (Depends-on): Add math.
10483         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10484         gl_MATH_MODULE_INDICATOR.
10485         * tests/test-math-c++.cc: Check the declaration of rint.
10486         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10487         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10488         * doc/posix-functions/rint.texi: Mention the replacement provided by
10489         the module.
10490
10491         rint tests: More tests.
10492         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10493         minus-zero.h, infinity.h, nan.h.
10494         (main): Skip the test if the current rounding mode is not standard. Add
10495         tests for negative numbers, minus zero, infinity, NaN.
10496         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10497         tests/nan.h.
10498         (Depends-on): Add isnand-nolibm.
10499
10500 2011-10-09  Bruno Haible  <bruno@clisp.org>
10501
10502         Tests for module 'copysignl'.
10503         * modules/copysignl-tests: New file.
10504         * tests/test-copysignl.c: New file.
10505
10506         New module 'copysignl'.
10507         * lib/math.in.h (copysignl): New declaration.
10508         * lib/copysignl.c: New file.
10509         * m4/copysignl.m4: New file.
10510         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10512         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10513         HAVE_COPYSIGNL.
10514         * modules/copysignl: New file.
10515         * tests/test-math-c++.cc: Check the declaration of copysignl.
10516         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10517         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10518         * doc/posix-functions/copysignl.texi: Mention the new module.
10519
10520 2011-10-09  Bruno Haible  <bruno@clisp.org>
10521
10522         Tests for module 'copysignf'.
10523         * modules/copysignf-tests: New file.
10524         * tests/test-copysignf.c: New file.
10525
10526         New module 'copysignf'.
10527         * lib/math.in.h (copysignf): New declaration.
10528         * lib/copysignf.c: New file.
10529         * m4/copysignf.m4: New file.
10530         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10532         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10533         HAVE_COPYSIGNF.
10534         * modules/copysignf: New file.
10535         * tests/test-math-c++.cc: Check the declaration of copysignf.
10536         * doc/posix-functions/copysignf.texi: Mention the new module.
10537
10538 2011-10-09  Bruno Haible  <bruno@clisp.org>
10539
10540         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10541         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10542         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10543         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10544         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10545         gl_SIGNAL_H_DEFAULTS.
10546
10547 2011-10-09  Bruno Haible  <bruno@clisp.org>
10548
10549         poll: Make macro safer.
10550         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10551         ac_cv_header_poll_h is not set.
10552
10553 2011-10-09  Bruno Haible  <bruno@clisp.org>
10554
10555         copysign: Provide replacement.
10556         * lib/math.in.h (copysign): New declaration.
10557         * lib/copysign.c: New file.
10558         * m4/copysign.m4: New file.
10559         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10561         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10562         HAVE_COPYSIGN.
10563         * modules/copysign (Description): Clarify.
10564         (Files): Add lib/copysign.c, m4/copysign.m4.
10565         (Depends-on): Add math, signbit.
10566         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10567         gl_MATH_MODULE_INDICATOR.
10568         * tests/test-math-c++.cc: Check the declaration of copysign.
10569         * doc/posix-functions/copysign.texi: Mention the effects of the module
10570         on Minix and MSVC.
10571
10572 2011-10-09  Bruno Haible  <bruno@clisp.org>
10573
10574         isinf: Ensure macro on AIX 5.1.
10575         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10576         macro.
10577         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10578
10579 2011-10-09  Bruno Haible  <bruno@clisp.org>
10580
10581         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10582         * modules/snprintf-posix-tests (configure.ac): Require
10583         gl_LONG_DOUBLE_VS_DOUBLE.
10584         * modules/sprintf-posix-tests (configure.ac): Likewise.
10585         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10586         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10587         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10588         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10589         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10590         tests on platforms where 'long double' is the same as 'double'.
10591         * tests/test-sprintf-posix.h (test_function): Likewise.
10592         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10593         * tests/test-vasprintf-posix.c (test_function): Likewise.
10594
10595         *printf: Fix for platforms where 'long double' == 'double'.
10596         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10597         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10598         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10599         * modules/fprintf-posix (Files): Likewise.
10600         * modules/obstack-printf-posix (Files): Likewise.
10601         * modules/snprintf-posix (Files): Likewise.
10602         * modules/sprintf-posix (Files): Likewise.
10603         * modules/vasnprintf (Files): Likewise.
10604         * modules/vasnprintf-posix (Files): Likewise.
10605         * modules/vasprintf-posix (Files): Likewise.
10606         * modules/vdprintf-posix (Files): Likewise.
10607         * modules/vfprintf-posix (Files): Likewise.
10608         * modules/vsnprintf-posix (Files): Likewise.
10609         * modules/vsprintf-posix (Files): Likewise.
10610         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10611         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10612         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10613         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10614         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10615         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10616         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10617
10618         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10619         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10620         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10621         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10622         'long double'.
10623         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10624
10625         isinf: Fix for platforms where 'long double' == 'double'.
10626         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10627         Don't blindly assume 80-bit 'long double'.
10628
10629         isfinite: Fix for platforms where 'long double' == 'double'.
10630         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10631         Don't blindly assume 80-bit 'long double'.
10632
10633         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10634         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10635         * modules/isfinite-tests (configure.ac): Require
10636         gl_LONG_DOUBLE_VS_DOUBLE.
10637         * modules/isinf-tests (configure.ac): Likewise.
10638         * modules/isnan-tests (configure.ac): Likewise.
10639         * modules/isnanl-tests (configure.ac): Likewise.
10640         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10641         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10642         tests on platforms where 'long double' is the same as 'double'.
10643         * tests/test-isinf.c (test_isinfl): Likewise.
10644         * tests/test-isnan.c (test_long_double): Likewise.
10645         * tests/test-isnanl.h (main): Likewise.
10646
10647 2011-10-08  Bruno Haible  <bruno@clisp.org>
10648
10649         Tests for module 'tanhf'.
10650         * modules/tanhf-tests: New file.
10651         * tests/test-tanhf.c: New file.
10652
10653         New module 'tanhf'.
10654         * lib/math.in.h (tanhf): New declaration.
10655         * lib/tanhf.c: New file.
10656         * m4/tanhf.m4: New file.
10657         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10659         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10660         * modules/tanhf: New file.
10661         * tests/test-math-c++.cc: Check the declaration of tanhf.
10662         * doc/posix-functions/tanhf.texi: Mention the new module.
10663
10664         tanh: Use a .m4 file.
10665         * m4/tanh.m4: New file.
10666         * modules/tanh (Files): Add it.
10667         (configure.ac): Just invoke gl_FUNC_TANH.
10668
10669 2011-10-08  Bruno Haible  <bruno@clisp.org>
10670
10671         Tests for module 'coshf'.
10672         * modules/coshf-tests: New file.
10673         * tests/test-coshf.c: New file.
10674
10675         New module 'coshf'.
10676         * lib/math.in.h (coshf): New declaration.
10677         * lib/coshf.c: New file.
10678         * m4/coshf.m4: New file.
10679         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10681         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10682         * modules/coshf: New file.
10683         * tests/test-math-c++.cc: Check the declaration of coshf.
10684         * doc/posix-functions/coshf.texi: Mention the new module.
10685
10686         cosh: Use a .m4 file.
10687         * m4/cosh.m4: New file.
10688         * modules/cosh (Files): Add it.
10689         (configure.ac): Just invoke gl_FUNC_COSH.
10690
10691 2011-10-08  Bruno Haible  <bruno@clisp.org>
10692
10693         Tests for module 'sinhf'.
10694         * modules/sinhf-tests: New file.
10695         * tests/test-sinhf.c: New file.
10696
10697         New module 'sinhf'.
10698         * lib/math.in.h (sinhf): New declaration.
10699         * lib/sinhf.c: New file.
10700         * m4/sinhf.m4: New file.
10701         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10703         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10704         * modules/sinhf: New file.
10705         * tests/test-math-c++.cc: Check the declaration of sinhf.
10706         * doc/posix-functions/sinhf.texi: Mention the new module.
10707
10708         sinh: Use a .m4 file.
10709         * m4/sinh.m4: New file.
10710         * modules/sinh (Files): Add it.
10711         (configure.ac): Just invoke gl_FUNC_SINH.
10712
10713 2011-10-08  Bruno Haible  <bruno@clisp.org>
10714
10715         Tests for module 'atan2f'.
10716         * modules/atan2f-tests: New file.
10717         * tests/test-atan2f.c: New file.
10718
10719         New module 'atan2f'.
10720         * lib/math.in.h (atan2f): New declaration.
10721         * lib/atan2f.c: New file.
10722         * m4/atan2f.m4: New file.
10723         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10725         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10726         * modules/atan2f: New file.
10727         * tests/test-math-c++.cc: Check the declaration of atan2f.
10728         * doc/posix-functions/atan2f.texi: Mention the new module.
10729
10730         atan2: Use a .m4 file.
10731         * m4/atan2.m4: New file.
10732         * modules/atan2 (Files): Add it.
10733         (configure.ac): Just invoke gl_FUNC_ATAN2.
10734
10735 2011-10-08  Bruno Haible  <bruno@clisp.org>
10736
10737         Tests for module 'atanf'.
10738         * modules/atanf-tests: New file.
10739         * tests/test-atanf.c: New file.
10740
10741         New module 'atanf'.
10742         * lib/math.in.h (atanf): New declaration.
10743         * lib/atanf.c: New file.
10744         * m4/atanf.m4: New file.
10745         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10747         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10748         * modules/atanf: New file.
10749         * tests/test-math-c++.cc: Check the declaration of atanf.
10750         * doc/posix-functions/atanf.texi: Mention the new module.
10751
10752         atan: Use a .m4 file.
10753         * m4/atan.m4: New file.
10754         * modules/atan (Files): Add it.
10755         (configure.ac): Just invoke gl_FUNC_ATAN.
10756
10757 2011-10-08  Bruno Haible  <bruno@clisp.org>
10758
10759         Tests for module 'acosf'.
10760         * modules/acosf-tests: New file.
10761         * tests/test-acosf.c: New file.
10762
10763         New module 'acosf'.
10764         * lib/math.in.h (acosf): New declaration.
10765         * lib/acosf.c: New file.
10766         * m4/acosf.m4: New file.
10767         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10769         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10770         * modules/acosf: New file.
10771         * tests/test-math-c++.cc: Check the declaration of acosf.
10772         * doc/posix-functions/acosf.texi: Mention the new module.
10773
10774         acos: Use a .m4 file.
10775         * m4/acos.m4: New file.
10776         * modules/acos (Files): Add it.
10777         (configure.ac): Just invoke gl_FUNC_ACOS.
10778
10779 2011-10-08  Bruno Haible  <bruno@clisp.org>
10780
10781         Tests for module 'asinf'.
10782         * modules/asinf-tests: New file.
10783         * tests/test-asinf.c: New file.
10784
10785         New module 'asinf'.
10786         * lib/math.in.h (asinf): New declaration.
10787         * lib/asinf.c: New file.
10788         * m4/asinf.m4: New file.
10789         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10791         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10792         * modules/asinf: New file.
10793         * tests/test-math-c++.cc: Check the declaration of asinf.
10794         * doc/posix-functions/asinf.texi: Mention the new module.
10795
10796         asin: Use a .m4 file.
10797         * m4/asin.m4: New file.
10798         * modules/asin (Files): Add it.
10799         (configure.ac): Just invoke gl_FUNC_ASIN.
10800
10801 2011-10-08  Bruno Haible  <bruno@clisp.org>
10802
10803         Tests for module 'tanf'.
10804         * modules/tanf-tests: New file.
10805         * tests/test-tanf.c: New file.
10806
10807         New module 'tanf'.
10808         * lib/math.in.h (tanf): New declaration.
10809         * lib/tanf.c: New file.
10810         * m4/tanf.m4: New file.
10811         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10813         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10814         * modules/tanf: New file.
10815         * tests/test-math-c++.cc: Check the declaration of tanf.
10816         * doc/posix-functions/tanf.texi: Mention the new module.
10817
10818         tan: Use a .m4 file.
10819         * m4/tan.m4: New file.
10820         * modules/tan (Files): Add it.
10821         (configure.ac): Just invoke gl_FUNC_TAN.
10822
10823 2011-10-08  Bruno Haible  <bruno@clisp.org>
10824
10825         Tests for module 'cosf'.
10826         * modules/cosf-tests: New file.
10827         * tests/test-cosf.c: New file.
10828
10829         New module 'cosf'.
10830         * lib/math.in.h (cosf): New declaration.
10831         * lib/cosf.c: New file.
10832         * m4/cosf.m4: New file.
10833         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10835         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10836         * modules/cosf: New file.
10837         * tests/test-math-c++.cc: Check the declaration of cosf.
10838         * doc/posix-functions/cosf.texi: Mention the new module.
10839
10840         cos: Use a .m4 file.
10841         * m4/cos.m4: New file.
10842         * modules/cos (Files): Add it.
10843         (configure.ac): Just invoke gl_FUNC_COS.
10844
10845 2011-10-08  Bruno Haible  <bruno@clisp.org>
10846
10847         Tests for module 'sinf'.
10848         * modules/sinf-tests: New file.
10849         * tests/test-sinf.c: New file.
10850
10851         New module 'sinf'.
10852         * lib/math.in.h (sinf): New declaration.
10853         * lib/sinf.c: New file.
10854         * m4/sinf.m4: New file.
10855         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10857         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10858         * modules/sinf: New file.
10859         * tests/test-math-c++.cc: Check the declaration of sinf.
10860         * doc/posix-functions/sinf.texi: Mention the new module.
10861
10862         sin: Use a .m4 file.
10863         * m4/sin.m4: New file.
10864         * modules/sin (Files): Add it.
10865         (configure.ac): Just invoke gl_FUNC_SIN.
10866
10867 2011-10-08  Bruno Haible  <bruno@clisp.org>
10868
10869         Tests for module 'powf'.
10870         * modules/powf-tests: New file.
10871         * tests/test-powf.c: New file.
10872
10873         New module 'powf'.
10874         * lib/math.in.h (powf): New declaration.
10875         * lib/powf.c: New file.
10876         * m4/powf.m4: New file.
10877         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10879         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10880         * modules/powf: New file.
10881         * tests/test-math-c++.cc: Check the declaration of powf.
10882         * doc/posix-functions/powf.texi: Mention the new module.
10883
10884         pow: Use a .m4 file.
10885         * m4/pow.m4: New file.
10886         * modules/pow (Files): Add it.
10887         (configure.ac): Just invoke gl_FUNC_POW.
10888
10889 2011-10-08  Bruno Haible  <bruno@clisp.org>
10890
10891         Tests for module 'log10f'.
10892         * modules/log10f-tests: New file.
10893         * tests/test-log10f.c: New file.
10894
10895         New module 'log10f'.
10896         * lib/math.in.h (log10f): New declaration.
10897         * lib/log10f.c: New file.
10898         * m4/log10f.m4: New file.
10899         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10901         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10902         * modules/log10f: New file.
10903         * tests/test-math-c++.cc: Check the declaration of log10f.
10904         * doc/posix-functions/log10f.texi: Mention the new module.
10905
10906         log10: Use a .m4 file.
10907         * m4/log10.m4: New file.
10908         * modules/log10 (Files): Add it.
10909         (configure.ac): Just invoke gl_FUNC_LOG10.
10910
10911 2011-10-08  Bruno Haible  <bruno@clisp.org>
10912
10913         Tests for module 'logf'.
10914         * modules/logf-tests: New file.
10915         * tests/test-logf.c: New file.
10916
10917         New module 'logf'.
10918         * lib/math.in.h (logf): New declaration.
10919         * lib/logf.c: New file.
10920         * m4/logf.m4: New file.
10921         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10923         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10924         * modules/logf: New file.
10925         * tests/test-math-c++.cc: Check the declaration of logf.
10926         * doc/posix-functions/logf.texi: Mention the new module.
10927
10928         log: Use a .m4 file.
10929         * m4/log.m4: New file.
10930         * modules/log (Files): Add it.
10931         (configure.ac): Just invoke gl_FUNC_LOG.
10932
10933 2011-10-08  Bruno Haible  <bruno@clisp.org>
10934
10935         Tests for module 'expf'.
10936         * modules/expf-tests: New file.
10937         * tests/test-expf.c: New file.
10938
10939         New module 'expf'.
10940         * lib/math.in.h (expf): New declaration.
10941         * lib/expf.c: New file.
10942         * m4/expf.m4: New file.
10943         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10945         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10946         * modules/expf: New file.
10947         * tests/test-math-c++.cc: Check the declaration of expf.
10948         * doc/posix-functions/expf.texi: Mention the new module.
10949
10950         exp: Use a .m4 file.
10951         * m4/exp.m4: New file.
10952         * modules/exp (Files): Add it.
10953         (configure.ac): Just invoke gl_FUNC_EXP.
10954
10955 2011-10-08  Bruno Haible  <bruno@clisp.org>
10956
10957         Tests for module 'sqrtf'.
10958         * modules/sqrtf-tests: New file.
10959         * tests/test-sqrtf.c: New file.
10960
10961         New module 'sqrtf'.
10962         * lib/math.in.h (sqrtf): New declaration.
10963         * lib/sqrtf.c: New file.
10964         * m4/sqrtf.m4: New file.
10965         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10967         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10968         * modules/sqrtf: New file.
10969         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10970         * doc/posix-functions/sqrtf.texi: Mention the new module.
10971
10972 2011-10-08  Bruno Haible  <bruno@clisp.org>
10973
10974         Tests: Avoid link failures w.r.t. libintl.
10975         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10976         $(LIBINTL).
10977         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10978         $(LIBINTL).
10979         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10980         against $(LIBINTL).
10981         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10982         $(LIBINTL).
10983         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10984         $(LIBINTL).
10985         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10986
10987 2011-10-08  Bruno Haible  <bruno@clisp.org>
10988
10989         pow tests: Defeat compiler optimizations.
10990         * tests/test-pow.c (main): Assign arguments to x and y before use.
10991
10992 2011-10-08  Bruno Haible  <bruno@clisp.org>
10993
10994         gnulib-tool: Improve last commit.
10995         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10996         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10997         ignore dependencies that are not among the modules list.
10998
10999 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11000
11001         gnulib-tool: don't follow dependencies to avoided modules
11002         This fixes a bug that is related to the previous one.
11003         * gnulib-tool (func_modules_transitive_closure)
11004         (func_emit_autoconf_snippets):
11005         Check whether a dependency is acceptable before using it.
11006         (--extract-dependencies): Report an error if --avoid is also used,
11007         since this combination of options is not yet supported.
11008
11009         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11010         Problem reported by Peter Dyballa in
11011         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11012         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11013         when echoing "$condition".
11014
11015 2011-10-07  Bruno Haible  <bruno@clisp.org>
11016
11017         Fix documentation about math functions on MacOS X.
11018         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11019         MacOS X 10.5.
11020         * doc/posix-functions/fdim.texi: Likewise.
11021         * doc/posix-functions/feclearexcept.texi: Likewise.
11022         * doc/posix-functions/fegetenv.texi: Likewise.
11023         * doc/posix-functions/fegetround.texi: Likewise.
11024         * doc/posix-functions/feholdexcept.texi: Likewise.
11025         * doc/posix-functions/feraiseexcept.texi: Likewise.
11026         * doc/posix-functions/fesetenv.texi: Likewise.
11027         * doc/posix-functions/fesetround.texi: Likewise.
11028         * doc/posix-functions/fetestexcept.texi: Likewise.
11029         * doc/posix-functions/feupdateenv.texi: Likewise.
11030         * doc/posix-functions/fmax.texi: Likewise.
11031         * doc/posix-functions/fmin.texi: Likewise.
11032         * doc/posix-functions/log2.texi: Likewise.
11033         * doc/posix-functions/modff.texi: Likewise.
11034         * doc/posix-functions/nan.texi: Likewise.
11035         * doc/posix-functions/nanf.texi: Likewise.
11036         * doc/posix-functions/nextafterf.texi: Likewise.
11037         * doc/posix-functions/remquo.texi: Likewise.
11038
11039 2011-10-07  Bruno Haible  <bruno@clisp.org>
11040
11041         modff: Drop assumption about library that defines modff.
11042         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11043         AC_CHECK_FUNCS.
11044         * modules/modff (Files): Add m4/mathfunc.m4.
11045
11046 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11047
11048         raise tests: Avoid a GCC warning.
11049         * tests/test-raise.c (handler): Use _Noreturn.
11050
11051 2011-10-07  Bruno Haible  <bruno@clisp.org>
11052
11053         Tests for module 'ldexpf'.
11054         * modules/ldexpf-tests: New file.
11055         * tests/test-ldexpf.c: New file.
11056
11057         New module 'ldexpf'.
11058         * lib/math.in.h (ldexpf): New declaration.
11059         * lib/ldexpf.c: New file.
11060         * m4/ldexpf.m4: New file.
11061         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11063         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11064         * modules/ldexpf: New file.
11065         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11066         * doc/posix-functions/ldexpf.texi: Mention the new module.
11067
11068 2011-10-06  Bruno Haible  <bruno@clisp.org>
11069
11070         frexpf: Work around problems on IRIX and mingw.
11071         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11073         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11074         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11075         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11076         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11077         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11078
11079 2011-10-06  Bruno Haible  <bruno@clisp.org>
11080
11081         fabsf: Drop assumption about library that defines fabsf.
11082         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11083         AC_CHECK_FUNCS.
11084         * modules/fabsf (Files): Add m4/mathfunc.m4.
11085
11086 2011-10-06  Bruno Haible  <bruno@clisp.org>
11087
11088         frexpf: Drop assumption about library that defines frexpf.
11089         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11090         'int *', 'float *', 'long double *', 'float', 'long double'.
11091         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11092         AC_CHECK_FUNCS.
11093         * modules/frexpf (Files): Add m4/mathfunc.m4.
11094
11095         Tests for module 'frexpf'.
11096         * modules/frexpf-tests: New file.
11097         * tests/test-frexpf.c: New file.
11098
11099         New module 'frexpf'.
11100         * lib/math.in.h (frexpf): New declaration.
11101         * lib/frexpf.c: New file.
11102         * m4/frexpf.m4: New file.
11103         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11105         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11106         * modules/frexpf: New file.
11107         * tests/test-math-c++.cc: Check the declaration of frexpf.
11108         * doc/posix-functions/frexpf.texi: Mention the new module.
11109
11110 2011-10-06  Bruno Haible  <bruno@clisp.org>
11111
11112         math: Sort function declarations of math.in.h.
11113         * lib/math.in.h (frexp, logb): Move declarations.
11114
11115 2011-10-05  Bruno Haible  <bruno@clisp.org>
11116
11117         Tests for module 'modff'.
11118         * modules/modff-tests: New file.
11119         * tests/test-modff.c: New file.
11120
11121         New module 'modff'.
11122         * lib/math.in.h (modff): New declaration.
11123         * lib/modff.c: New file.
11124         * m4/modff.m4: New file.
11125         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11127         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11128         * modules/modff: New file.
11129         * tests/test-math-c++.cc: Check the declaration of modff.
11130         * doc/posix-functions/modff.texi: Mention the new module.
11131
11132         modf tests: Make test sharper.
11133         * tests/test-modf.c (main): Strengthen upper bound.
11134
11135         modf: Use a .m4 file.
11136         * m4/modf.m4: New file.
11137         * modules/modf (Files): Add it.
11138         (configure.ac): Just invoke gl_FUNC_MODF.
11139
11140 2011-10-05  Bruno Haible  <bruno@clisp.org>
11141
11142         Tests for module 'fmodf'.
11143         * modules/fmodf-tests: New file.
11144         * tests/test-fmodf.c: New file.
11145
11146         New module 'fmodf'.
11147         * lib/math.in.h (fmodf): New declaration.
11148         * lib/fmodf.c: New file.
11149         * m4/fmodf.m4: New file.
11150         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11152         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11153         * modules/fmodf: New file.
11154         * tests/test-math-c++.cc: Check the declaration of fmodf.
11155         * doc/posix-functions/fmodf.texi: Mention the new module.
11156
11157         fmod: Use a .m4 file.
11158         * m4/fmod.m4: New file.
11159         * modules/fmod (Files): Add it.
11160         (configure.ac): Just invoke gl_FUNC_FMOD.
11161
11162 2011-10-05  Bruno Haible  <bruno@clisp.org>
11163
11164         Tests for module 'fabsf'.
11165         * modules/fabsf-tests: New file.
11166         * tests/test-fabsf.c: New file.
11167
11168         New module 'fabsf'.
11169         * lib/math.in.h (fabsf): New declaration.
11170         * lib/fabsf.c: New file.
11171         * m4/fabsf.m4: New file.
11172         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11174         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11175         * modules/fabsf: New file.
11176         * tests/test-math-c++.cc: Check the declaration of fabsf.
11177         * doc/posix-functions/fabsf.texi: Mention the new module.
11178
11179         fabs: Use a .m4 file.
11180         * m4/fabs.m4: New file.
11181         * modules/fabs (Files): Add it.
11182         (configure.ac): Just invoke gl_FUNC_FABS.
11183
11184 2011-10-05  Jim Meyering  <meyering@redhat.com>
11185
11186         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11187         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11188         ls -lL regression introduced in coreutils-8.12, it does so at the
11189         cost of an additional stat call in the common case.  Besides, now
11190         that the kernel change that prompted commit 95f7c57f has been reverted
11191         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11192         we have no use for commit 95f7c57f, "file-has-acl: use
11193         acl_extended_file_nofollow if available".
11194
11195 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11196
11197         file-has-acl: revert unintended change in behavior of ls -L
11198         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11199         derived from...
11200         (file_has_acl): ...code here.  Call it.
11201         This problem was introduced with 2011-07-22 commit 95f7c57f,
11202         "file-has-acl: use acl_extended_file_nofollow if available".
11203         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11204
11205 2011-10-03  Bruno Haible  <bruno@clisp.org>
11206
11207         poll: Avoid link errors on MSVC.
11208         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11209         * modules/poll (Depends-on): Add sockets.
11210         (Link): New section.
11211         * NEWS: Mention the change.
11212         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11213         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11214         $(LIB_POLL) instead of $(LIBSOCKET).
11215
11216 2011-10-03  Bruno Haible  <bruno@clisp.org>
11217
11218         sys_select tests: Fix link error on MSVC 9.
11219         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11220         with $(LIB_SELECT) instead of $(LIBSOCKET).
11221
11222 2011-10-03  Bruno Haible  <bruno@clisp.org>
11223
11224         sys_select: Fix compilation error on mingw.
11225         * lib/sys_select.in.h: On native Windows, include <io.h>.
11226
11227 2011-10-03  Bruno Haible  <bruno@clisp.org>
11228
11229         wmemset: Support for MSVC.
11230         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11231         whether wmemset() exists.
11232
11233 2011-10-03  Bruno Haible  <bruno@clisp.org>
11234
11235         wmemmove: Support for MSVC.
11236         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11237         whether wmemmove() exists.
11238
11239 2011-10-03  Bruno Haible  <bruno@clisp.org>
11240
11241         wmemcpy: Support for MSVC.
11242         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11243         whether wmemcpy() exists.
11244
11245 2011-10-03  Bruno Haible  <bruno@clisp.org>
11246
11247         wmemcmp: Support for MSVC.
11248         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11249         whether wmemcmp() exists.
11250
11251 2011-10-03  Bruno Haible  <bruno@clisp.org>
11252
11253         wmemchr: Support for MSVC.
11254         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11255         whether wmemchr() exists.
11256
11257 2011-10-03  Bruno Haible  <bruno@clisp.org>
11258
11259         glthread/*, strsignal: Support for MSVC.
11260         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11261         including <winsock.h> on MSVC 9.
11262         * lib/glthread/lock.h: Likewise.
11263         * lib/glthread/thread.h: Likewise.
11264         * lib/glthread/tls.h: Likewise.
11265         * lib/glthread/yield.h: Likewise.
11266         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11267         if HAVE_UNISTD_H is false.
11268         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11269
11270 2011-10-03  Bruno Haible  <bruno@clisp.org>
11271
11272         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11273         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11274         Set to 100000.
11275
11276 2011-10-03  Bruno Haible  <bruno@clisp.org>
11277
11278         acl: Fix specification.
11279         * lib/file-has-acl.c (file_has_acl): Fix specification.
11280
11281 2011-10-03  Bruno Haible  <bruno@clisp.org>
11282
11283         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11284         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11285         (compute_curr_prefix, shared_library_fullname,
11286         find_shared_library_fullname, get_shared_library_fullname, relocate):
11287         Use it together with PIC && INSTALLDIR.
11288         Reported by <jojelino@gmail.com>
11289         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11290
11291 2011-10-01  Jim Meyering  <meyering@redhat.com>
11292
11293         maint.mk: adjust a release-related rule not to require use of gzip
11294         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11295         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11296         projects that build only .tar.xz files.  Also fix an erroneous test.
11297
11298         test-linkat: don't leave behind a temporary file
11299         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11300         Otherwise, coreutils' "make distcheck" would fail with this:
11301           Only in /c/cu/tests/torture/coreutils/test/\
11302             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11303           make[2]: *** [my-distcheck] Error 1
11304
11305         float, math: add omitted file
11306         * lib/itold.c: Add file, required for yesterday's float change.
11307
11308 2011-10-01  Bruno Haible  <bruno@clisp.org>
11309
11310         isinf: Fix for OpenBSD/x86.
11311         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11312         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11313         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11314
11315 2011-10-01  Bruno Haible  <bruno@clisp.org>
11316
11317         isfinite: Fix syntax error in configure test.
11318         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11319
11320         isfinite: Fix typo.
11321         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11322         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11323
11324 2011-10-01  Bruno Haible  <bruno@clisp.org>
11325
11326         nonblocking tests: Fix test failure on Linux/IA-64.
11327         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11328         Set to 270000.
11329
11330 2011-10-01  Bruno Haible  <bruno@clisp.org>
11331
11332         mkfifoat tests: Fix a test failure on mingw.
11333         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11334         with error ENOSYS.
11335
11336 2011-09-30  Bruno Haible  <bruno@clisp.org>
11337
11338         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11339         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11340         'long double'. Set REPLACE_ITOLD.
11341         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11342         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11343         * lib/itold.c: New file.
11344         * modules/float (Files): Add lib/itold.c.
11345         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11346         (Makefile.am): Substitute REPLACE_ITOLD.
11347         * modules/math (Depends-on): Add float.
11348         (Makefile.am): Substitute REPLACE_ITOLD.
11349         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11350         * doc/posix-headers/math.texi: Likewise.
11351         * doc/posix-functions/logl.texi: Likewise.
11352
11353 2011-09-30  Bruno Haible  <bruno@clisp.org>
11354
11355         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11356         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11357         Set to 140000.
11358
11359 2011-09-30  Bruno Haible  <bruno@clisp.org>
11360
11361         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11362         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11363         invocation, say "right after AC_PROG_CC_STDC", not "right after
11364         AC_PROG_CC".
11365         Reported by Gary V. Vaughan <gary@gnu.org>.
11366
11367 2011-09-30  Bruno Haible  <bruno@clisp.org>
11368
11369         Centralize C99 requirement.
11370         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11371         * modules/stdarg (configure.ac-early): Invoke it instead of
11372         AC_PROG_CC_STDC.
11373         Reported by Gary V. Vaughan and Paul Eggert.
11374
11375 2011-09-29  Bruno Haible  <bruno@clisp.org>
11376
11377         float: Fix LDBL_MAX value on Linux/PowerPC.
11378         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11379         on Linux/PowerPC.
11380         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11381         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11382         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11383         platform.
11384         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11385
11386 2011-09-29  Bruno Haible  <bruno@clisp.org>
11387
11388         doc: Improve doc about gl_EARLY.
11389         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11390         AC_PROG_CC_STDC invocation.
11391         Reported by Gary V. Vaughan <gary@gnu.org>.
11392
11393 2011-09-28  Bruno Haible  <bruno@clisp.org>
11394
11395         fgetc, fputc, fread, fwrite tests: Fix link error.
11396         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11397         on non-MSVC platforms.
11398         * tests/test-fputc.c (main): Likewise.
11399         * tests/test-fread.c (main): Likewise.
11400         * tests/test-fwrite.c (main): Likewise.
11401         Reported by Jim Meyering.
11402
11403 2011-09-27  Bruno Haible  <bruno@clisp.org>
11404
11405         fputc, fwrite tests: Avoid test failure on MSVC.
11406         * tests/test-fgetc.c: Include msvc-inval.h.
11407         (main): Invoke gl_msvc_inval_ensure_handler.
11408         * tests/test-fputc.c: Include msvc-inval.h.
11409         (main): Invoke gl_msvc_inval_ensure_handler.
11410         * tests/test-fread.c: Include msvc-inval.h.
11411         (main): Invoke gl_msvc_inval_ensure_handler.
11412         * tests/test-fwrite.c: Include msvc-inval.h.
11413         (main): Invoke gl_msvc_inval_ensure_handler.
11414         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11415         * modules/fputc-tests (Depends-on): Likewise.
11416         * modules/fread-tests (Depends-on): Likewise.
11417         * modules/fwrite-tests (Depends-on): Likewise.
11418
11419 2011-09-27  Bruno Haible  <bruno@clisp.org>
11420
11421         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11422         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11423         (raise): Remove older, duplicated declaration.
11424         (_gl_raise_SIGPIPE): New declaration.
11425         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11426         (rpl_raise): Remove function.
11427         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11428         a gnulib-defined SIGPIPE here.
11429         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11430         'sigprocmask' has detected missing signal-blocking and the module
11431         'sigpipe' is enabled.
11432         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11433
11434 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11435
11436         base64-tests: avoid memory leak
11437         * tests/test-base64.c (main): Plug memory leak.
11438
11439         base32: new module
11440         * modules/base32: New module.
11441         * lib/base32.c: New file.
11442         * lib/base32.h: Likewise.
11443         * m4/base32.m4: Likewise.
11444         * modules/base32-tests: New test.
11445         * tests/test-base32.c: Likewise.
11446         * MODULES.html.sh (Misc): Mention it.
11447
11448 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11449
11450         gnulib: use more-standard license notice wording
11451         * gnulib-tool (func_emit_copyright_notice): When emitting a
11452         license notice into a file, use the standard wording as suggested
11453         by the current information for GNU maintainers, except say "file"
11454         rather than "program".  The new wording gives a license version
11455         number, which addresses an issue raised by Glenn Morris in
11456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11457         * m4/onceonly.m4: Use that same wording here, too.
11458
11459         dup2: minor simplification
11460         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11461         as lib/dup2.c no longer uses 'inline'.
11462
11463 2011-09-25  Bruno Haible  <bruno@clisp.org>
11464
11465         strings: Fix compilation error on MSVC.
11466         * lib/strings.in.h: Include <stddef.h> for size_t.
11467
11468 2011-09-25  Bruno Haible  <bruno@clisp.org>
11469
11470         fflush et al.: Document limitation on MSVC.
11471         * doc/posix-functions/fflush.texi: Document possible crash in handling
11472         mode other than DEFAULT_HANDLING.
11473         * doc/posix-functions/fgetc.texi: Likewise.
11474         * doc/posix-functions/fputc.texi: Likewise.
11475         * doc/posix-functions/fread.texi: Likewise.
11476         * doc/posix-functions/fwrite.texi: Likewise.
11477
11478 2011-09-25  Bruno Haible  <bruno@clisp.org>
11479
11480         msvc-inval: Allow three invalid parameter handling modes.
11481         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11482         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11483         macros.
11484         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11485         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11486         SANE_LIBRARY_HANDLING as a no-op.
11487         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11488         <stdlib.h>.
11489         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11490
11491 2011-09-25  Bruno Haible  <bruno@clisp.org>
11492
11493         msvc-inval: Make handler multithread-safe.
11494         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11495         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11496         declarations.
11497         (gl_msvc_inval_current): New declaration.
11498         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11499         Operate on the structure returned by gl_msvc_inval_current().
11500         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11501         Remove varaiables.
11502         (tls_index, tls_initialized): New variables.
11503         (not_per_thread): New variable.
11504         (gl_msvc_inval_current): New function.
11505         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11506         returned by gl_msvc_inval_current().
11507
11508 2011-09-25  Bruno Haible  <bruno@clisp.org>
11509
11510         msvc-inval: Install handler globally.
11511         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11512         !_MSC_VER.
11513         (gl_msvc_invalid_parameter_handler): Remove declaration.
11514         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11515         declarations.
11516         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11517         Install the handler globally, don't uninstall it.
11518         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11519         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11520         currently valid, call RaiseException instead.
11521         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11522         for !_MSC_VER.
11523
11524 2011-09-25  Bruno Haible  <bruno@clisp.org>
11525
11526         strerror_r-posix: Fix for MSVC 9.
11527         * lib/strerror_r.c (local_snprintf): New function.
11528         (snprintf): Define to local_snprintf, not to _snprintf.
11529
11530 2011-09-25  Bruno Haible  <bruno@clisp.org>
11531
11532         ftruncate: Support for MSVC 9.
11533         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11534         (chsize_nothrow): New function.
11535         (chsize): Redefine as a macro.
11536         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11537         * modules/ftruncate (Depends-on): Add msvc-inval.
11538
11539 2011-09-25  Bruno Haible  <bruno@clisp.org>
11540
11541         New module 'fstat'.
11542         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11543         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11544         * lib/fchdir.c (rpl_fstat): Remove function.
11545         * m4/fstat.m4: New file.
11546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11548         declared.
11549         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11550         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11551         * modules/fstat: New file.
11552         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11553         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11554         is set.
11555         * doc/posix-functions/fstat.texi: Mention the new module and the
11556         problem on MSVC.
11557         * NEWS: Mention the change.
11558         * modules/acl (Depends-on): Add fstat.
11559         * modules/chdir-safer (Depends-on): Likewise.
11560         * modules/chown (Depends-on): Likewise.
11561         * modules/copy-file (Depends-on): Likewise.
11562         * modules/fchdir (Depends-on): Likewise.
11563         * modules/fdopendir (Depends-on): Likewise.
11564         * modules/fopen (Depends-on): Likewise.
11565         * modules/fts (Depends-on): Likewise.
11566         * modules/getcwd (Depends-on): Likewise.
11567         * modules/isapipe (Depends-on): Likewise.
11568         * modules/linkat (Depends-on): Likewise.
11569         * modules/lseek (Depends-on): Likewise.
11570         * modules/mkdir-p (Depends-on): Likewise.
11571         * modules/open (Depends-on): Likewise.
11572         * modules/openat (Depends-on): Likewise.
11573         * modules/read-file (Depends-on): Likewise.
11574         * modules/renameat (Depends-on): Likewise.
11575         * modules/utimens (Depends-on): Likewise.
11576
11577 2011-09-25  Bruno Haible  <bruno@clisp.org>
11578
11579         linkat: Fix compilation on MSVC 9.
11580         * lib/linkat.c: Don't include <stdint.h>.
11581
11582 2011-09-25  Bruno Haible  <bruno@clisp.org>
11583
11584         fclose: Support for MSVC 9.
11585         * lib/fclose.c: Include msvc-inval.h.
11586         (fclose_nothrow): New function.
11587         (rpl_fclose): Use it.
11588         * modules/fclose (Depends-on): Add msvc-inval.
11589         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11590
11591 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11592
11593         dup2: minor simplifications
11594         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11595         that it's a performance win.
11596         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11597         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11598
11599 2011-09-24  Jim Meyering  <meyering@redhat.com>
11600
11601         test-futimens: avoid a warning from gcc -Wshadow
11602         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11603         to avoid a shadowing warning.
11604
11605 2011-09-24  Bruno Haible  <bruno@clisp.org>
11606
11607         fdopen: Support for MSVC 9.
11608         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11609         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11610         * lib/fdopen.c: Include msvc-inval.h.
11611         (fdopen_nothrow): New function.
11612         (rpl_fdopen): Use it.
11613         * modules/fdopen (Depends-on): Add msvc-inval.
11614         * modules/fclose-tests (Depends-on): Add fdopen.
11615         * modules/fflush-tests (Depends-on): Likewise.
11616         * modules/fgetc-tests (Depends-on): Likewise.
11617         * modules/fputc-tests (Depends-on): Likewise.
11618         * modules/fread-tests (Depends-on): Likewise.
11619         * modules/freopen-tests (Depends-on): Likewise.
11620         * modules/fseeko-tests (Depends-on): Likewise.
11621         * modules/ftello-tests (Depends-on): Likewise.
11622         * modules/fwrite-tests  (Depends-on): Likewise.
11623         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11624
11625 2011-09-24  Bruno Haible  <bruno@clisp.org>
11626
11627         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11628         * modules/fgetc-tests (Depends-on): Add unistd.
11629         * modules/fputc-tests (Depends-on): Likewise.
11630         * modules/fread-tests (Depends-on): Likewise.
11631         * modules/fwrite-tests (Depends-on): Likewise.
11632
11633 2011-09-24  Bruno Haible  <bruno@clisp.org>
11634
11635         dup: Simplify autoconf test.
11636         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11637         on gl_MSVC_INVAL's result.
11638
11639 2011-09-24  Bruno Haible  <bruno@clisp.org>
11640
11641         Tests for function fwrite().
11642         * modules/fwrite-tests: New file.
11643         * tests/test-fwrite.c: New file.
11644         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11645
11646         Tests for function fread().
11647         * modules/fread-tests: New file.
11648         * tests/test-fread.c: New file.
11649         * modules/stdio-tests (Depends-on): Add fread-tests.
11650
11651         Activate fputc tests.
11652         * modules/stdio-tests (Depends-on): Add fputc-tests.
11653
11654         Enhance fgetc, fputc tests.
11655         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11656         * tests/test-fputc.c (main): Likewise.
11657
11658 2011-09-24  Bruno Haible  <bruno@clisp.org>
11659
11660         write: Support for MSVC 9.
11661         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11662         is not 1.
11663         * lib/write.c (write_nothrow): New function.
11664         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11665         not 1. Use write_nothrow.
11666         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11667         invalid parameter handler.
11668         (gl_PREREQ_WRITE): New macro.
11669         * modules/write (Depends-on): Add msvc-inval.
11670         (configure.ac): Invoke gl_PREREQ_WRITE.
11671         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11672
11673 2011-09-24  Bruno Haible  <bruno@clisp.org>
11674
11675         read: Fix last commit.
11676         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11677
11678 2011-09-24  Bruno Haible  <bruno@clisp.org>
11679
11680         dup2: Fix last commit.
11681         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11682         (rpl_dup2): Disable fcntl workaround on native Windows.
11683
11684         sigprocmask: Make code safer.
11685         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11686         section that changes macro definitions for this compilation unit.
11687
11688 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         dup2: clarify by coalescing Windows-specific material
11691         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11692         "msvc-nothrow.h"' to the Windows-specific section, so that the
11693         Emacs source need not contain these include files.
11694         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11695         Windows-specific fixes into this function rather than just the
11696         nothrow fix, as this shortens and clarifies the code.  Always
11697         define as a function, as that's a bit cleaner than having it be
11698         sometimes a function and sometimes a macro.
11699         (rpl_dup2): Move the Windows-specific stuff out of here and into
11700         ms_windows_dup2.  Don't protect the Haiku-related fix with
11701         "#if !defined __linux__", as the same code also works around
11702         a Linux kernel bug, and it doesn't add any system calls on any
11703         platform.  Add comment about FreeBSD 6.1.
11704
11705         sigprocmask: move #include directive
11706         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11707         Windows-specific section, so that the Emacs source need not
11708         contain msvc-inval.h.
11709
11710 2011-09-23  Bruno Haible  <bruno@clisp.org>
11711
11712         read: Support for MSVC 9.
11713         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11714         is not 1.
11715         * lib/read.c (read_nothrow): New function.
11716         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11717         read_nothrow.
11718         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11719         invalid parameter handler.
11720         (gl_PREREQ_READ): New macro.
11721         * modules/read (Depends-on): Add msvc-inval.
11722         (configure.ac): Invoke gl_PREREQ_READ.
11723         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11724
11725 2011-09-23  Bruno Haible  <bruno@clisp.org>
11726
11727         close: Support for MSVC 9.
11728         * lib/close.c: Include <errno.h>, msvc-inval.h.
11729         (close_nothrow): New function.
11730         (rpl_close): Use it.
11731         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11732         invalid parameter handler.
11733         * modules/close (Depends-on): Add msvc-inval.
11734         * modules/dup2-tests (Depends-on): Add close.
11735         * modules/dup3-tests (Depends-on): Likewise.
11736         * modules/fcntl-tests (Depends-on): Likewise.
11737         * modules/spawn-pipe-tests (Depends-on): Likewise.
11738         * modules/unistd-safer-tests (Depends-on): Likewise.
11739         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11740
11741 2011-09-23  Bruno Haible  <bruno@clisp.org>
11742
11743         New module 'dup'.
11744         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11745         Allow replacement.
11746         * lib/dup.c: New file.
11747         * lib/fchdir.c (rpl_dup): Remove function.
11748         * m4/dup.m4: New file.
11749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11750         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11751         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11752         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11753         * modules/dup: New file.
11754         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11755         'dup' module is in use.
11756         * modules/fdopendir (Depends-on): Add dup.
11757         * modules/fdutimensat-tests (Depends-on): Likewise.
11758         * modules/fts (Depends-on): Likewise.
11759         * modules/futimens-tests (Depends-on): Likewise.
11760         * modules/posix_spawnp-tests (Depends-on): Likewise.
11761         * modules/unistd-safer-tests (Depends-on): Likewise.
11762         * modules/utimens-tests (Depends-on): Likewise.
11763         * doc/posix-functions/dup.texi: Mention the new module and the problem
11764         on MSVC.
11765
11766 2011-09-23  Bruno Haible  <bruno@clisp.org>
11767
11768         getdtablesize: Support for MSVC 9.
11769         * lib/getdtablesize.c: Include msvc-inval.h.
11770         (_setmaxstdio_nothrow): New function.
11771         (_setmaxstdio): Redefine it.
11772         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11773         * modules/getdtablesize (Depends-on): Add msvc-inval.
11774         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11775
11776 2011-09-23  Bruno Haible  <bruno@clisp.org>
11777
11778         signal-h: Rename from signal.
11779         * modules/signal-h: Renamed from modules/signal.
11780         * modules/pthread_sigmask (Depends-on): Update.
11781         * modules/raise (Depends-on): Likewise.
11782         * modules/sigaction (Depends-on): Likewise.
11783         * modules/sigpipe (Depends-on): Likewise.
11784         * modules/sigprocmask (Depends-on): Likewise.
11785         * modules/sys_select (Depends-on): Likewise.
11786         * modules/signal-h-tests: Renamed from modules/signal-tests.
11787         (Files, Depends-on, Makefile.am): Update.
11788         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11789         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11790         (Files, Makefile.am): Update.
11791         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11792         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11793         * modules/signal: New placeholder file.
11794         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11795         * doc/posix-headers/signal.texi: Update.
11796         * NEWS: Mention the change.
11797
11798 2011-09-23  Bruno Haible  <bruno@clisp.org>
11799
11800         sigprocmask: Avoid crashes through signal() on MSVC 9.
11801         * lib/sigprocmask.c: Include msvc-inval.h.
11802         (signal_nothrow): New function.
11803         (signal): Redefine it.
11804         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11805         * modules/sigprocmask (Depends-on): Add msvc-inval.
11806         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11807
11808 2011-09-23  Bruno Haible  <bruno@clisp.org>
11809
11810         Tests for module 'raise'.
11811         * modules/raise-tests: New file.
11812         * tests/test-raise.c: New file.
11813
11814         raise: Support for MSVC.
11815         * lib/signal.in.h (raise): New declaration.
11816         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11817         for native Windows platforms.
11818         * m4/raise.m4: New file.
11819         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11820         HAVE_RAISE, REPLACE_RAISE.
11821         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11822         REPLACE_RAISE.
11823         * modules/raise (Status, Notice): Remove fields.
11824         (Files): Add m4/raise.m4.
11825         (Depends-on): Add signal, msvc-inval.
11826         (configure.ac): Use the common idioms.
11827         (Maintainer): Add me.
11828         * tests/test-signal-c++.cc: Check the signature of raise.
11829         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11830
11831 2011-09-23  Bruno Haible  <bruno@clisp.org>
11832
11833         pipe2: Fix compilation on pre-C99 compilers.
11834         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11835
11836 2011-09-23  Bruno Haible  <bruno@clisp.org>
11837
11838         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11839         * lib/msvc-nothrow.h: New file.
11840         * lib/msvc-nothrow.c: New file.
11841         * m4/msvc-nothrow.m4: New file.
11842         * modules/msvc-nothrow: New file.
11843         * lib/dup2.c: Include msvc-nothrow.h.
11844         (rpl_dup2): No need to protect _get_osfhandle call here.
11845         * lib/accept4.c: Include msvc-nothrow.h.
11846         * lib/error.c: Likewise.
11847         * lib/fcntl.c: Likewise.
11848         * lib/lseek.c: Likewise.
11849         * lib/nonblocking.c: Likewise.
11850         * lib/poll.c: Likewise.
11851         * lib/read.c: Likewise.
11852         * lib/select.c: Likewise.
11853         * lib/sockets.h: Likewise.
11854         * lib/sockets.c: Likewise.
11855         * lib/stdio-read.c: Likewise.
11856         * lib/stdio-write.c: Likewise.
11857         * lib/write.c: Likewise.
11858         * lib/w32sock.h: Likewise.
11859         * lib/w32spawn.h: Likewise.
11860         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11861         * lib/fsync.c: Likewise.
11862         * lib/isapipe.c: Likewise.
11863         * modules/dup2 (Depends-on): Add msvc-nothrow.
11864         * modules/accept4 (Depends-on): Likewise.
11865         * modules/error (Depends-on): Likewise.
11866         * modules/fcntl (Depends-on): Likewise.
11867         * modules/lseek (Depends-on): Likewise.
11868         * modules/nonblocking (Depends-on): Likewise.
11869         * modules/poll (Depends-on): Likewise.
11870         * modules/read (Depends-on): Likewise.
11871         * modules/select (Depends-on): Likewise.
11872         * modules/sockets (Depends-on): Likewise.
11873         * modules/sigpipe (Depends-on): Likewise.
11874         * modules/write (Depends-on): Likewise.
11875         * modules/accept (Depends-on): Likewise.
11876         * modules/bind (Depends-on): Likewise.
11877         * modules/connect (Depends-on): Likewise.
11878         * modules/gethostname (Depends-on): Likewise.
11879         * modules/getpeername (Depends-on): Likewise.
11880         * modules/getsockname (Depends-on): Likewise.
11881         * modules/getsockopt (Depends-on): Likewise.
11882         * modules/ioctl (Depends-on): Likewise.
11883         * modules/listen (Depends-on): Likewise.
11884         * modules/recv (Depends-on): Likewise.
11885         * modules/recvfrom (Depends-on): Likewise.
11886         * modules/send (Depends-on): Likewise.
11887         * modules/sendto (Depends-on): Likewise.
11888         * modules/setsockopt (Depends-on): Likewise.
11889         * modules/shutdown (Depends-on): Likewise.
11890         * modules/socket (Depends-on): Likewise.
11891         * modules/execute (Depends-on): Likewise.
11892         * modules/spawn-pipe (Depends-on): Likewise.
11893         * modules/flock (Depends-on): Likewise.
11894         * modules/fsync (Depends-on): Likewise.
11895         * modules/isapipe (Depends-on): Likewise.
11896         * tests/test-cloexec.c: Include msvc-nothrow.h.
11897         * tests/test-dup-safer.c: Likewise.
11898         * tests/test-dup2.c: Likewise.
11899         * tests/test-dup3.c: Likewise.
11900         * tests/test-fcntl.c: Likewise.
11901         * tests/test-pipe.c: Likewise.
11902         * tests/test-pipe2.c: Likewise.
11903         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11904         * modules/unistd-safer-tests (Depends-on): Likewise.
11905         * modules/dup2-tests (Depends-on): Likewise.
11906         * modules/dup3-tests (Depends-on): Likewise.
11907         * modules/fcntl-tests (Depends-on): Likewise.
11908         * modules/pipe-posix-tests (Depends-on): Likewise.
11909         * modules/pipe2-tests (Depends-on): Likewise.
11910
11911 2011-09-23  Bruno Haible  <bruno@clisp.org>
11912
11913         dup2: Make code more maintainable.
11914         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11915         (rpl_dup2): Use it.
11916         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11917         * modules/dup2 (configure.ac): Invoke it.
11918         Reported by Paul Eggert.
11919
11920 2011-09-23  Bruno Haible  <bruno@clisp.org>
11921
11922         msvc-inval: Fix compilation error.
11923         * lib/msvc-inval.h: Include <excpt.h>.
11924
11925 2011-09-23  Bruno Haible  <bruno@clisp.org>
11926
11927         mkdir: Tweak for MSVC 9.
11928         * lib/sys_stat.in.h: Update comments.
11929         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11930
11931         Tests for module 'chdir'.
11932         * modules/chdir-tests: New file.
11933         * tests/test-chdir.c: New file.
11934
11935         New module 'chdir'.
11936         * modules/chdir: New file.
11937         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11938         (chdir): New declaration.
11939         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11940         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11941         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11942         * tests/test-unistd-c++.cc: Check signature of chdir.
11943         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11944         * modules/chdir-long (Depends-on): Add chdir.
11945         * modules/fchdir (Depends-on): Likewise.
11946         * modules/rename (Depends-on): Likewise.
11947         * modules/savewd (Depends-on): Likewise.
11948
11949         rmdir: Support for mingw, MSVC 9.
11950         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11951         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11952
11953         getcwd: Tweak for MSVC 9.
11954         * lib/unistd.in.h: Update comments.
11955         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11956
11957 2011-09-22  Bruno Haible  <bruno@clisp.org>
11958
11959         strerror_r-posix: Avoid a link error on MSVC.
11960         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11961         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11962
11963 2011-09-22  Bruno Haible  <bruno@clisp.org>
11964
11965         select: Avoid link errors on MSVC.
11966         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11967         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11968         * modules/pselect (Link): Likewise.
11969         * NEWS: Mention the change.
11970         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11971         test-select-stdin against $(LIB_SELECT).
11972         * modules/pselect-tests (Makefile.am): Link test-pselect against
11973         $(LIB_SELECT).
11974
11975 2011-09-22  Bruno Haible  <bruno@clisp.org>
11976
11977         select: Avoid compilation error on MSVC.
11978         * lib/select.c: Don't include <stdbool.h>.
11979
11980 2011-09-21  Bruno Haible  <bruno@clisp.org>
11981
11982         Consolidate all uses of PATH_MAX in *.m4 files.
11983         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11984         macros.
11985         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11986         and gl_PATHMAX_SNIPPET.
11987         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11988         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11989         * modules/chdir-long (Files): Add m4/pathmax.m4.
11990         * modules/getcwd (Files): Likewise.
11991
11992 2011-09-21  Bruno Haible  <bruno@clisp.org>
11993
11994         ftruncate: Un-deprecate, concentrate on Win32 support.
11995         * modules/ftruncate (Status, Notice): Remove sections.
11996         (Depends-on): Add largefile.
11997         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11998         non-mingw platforms.
11999         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12000         include <io.h>.
12001         * modules/perror-tests (Depends-on): Add ftruncate.
12002         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12003         'ftruncate' module.
12004
12005 2011-09-21  Bruno Haible  <bruno@clisp.org>
12006
12007         Add dependencies to new dirent related modules.
12008         * modules/opendir (Depends-on): Add closedir.
12009         * modules/getcwd (Depends-on): Add opendir, closedir.
12010         * modules/dirent-safer-tests (Depends-on): Likewise.
12011         * modules/fdopendir-tests (Depends-on): Likewise.
12012         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12013         * modules/renameat-tests (Depends-on): Likewise.
12014
12015 2011-09-21  Bruno Haible  <bruno@clisp.org>
12016
12017         opendir: Avoid compilation error on mingw.
12018         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12019         * modules/opendir (Depends-on): Add unistd.
12020
12021 2011-09-21  Bruno Haible  <bruno@clisp.org>
12022
12023         ftruncate tests: Avoid a test failure on mingw.
12024         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12025
12026 2011-09-21  Bruno Haible  <bruno@clisp.org>
12027
12028         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12029         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12030         native Windows.
12031
12032 2011-09-21  Bruno Haible  <bruno@clisp.org>
12033
12034         New module 'fdopen'.
12035         * lib/stdio.in.h (fdopen): New declaration.
12036         * lib/fdopen.c: New file.
12037         * m4/fdopen.m4: New file.
12038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12039         REPLACE_FDOPEN.
12040         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12041         REPLACE_FDOPEN.
12042         * modules/fdopen: New file.
12043         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12044         * tests/test-stdio-c++.cc: Check signature of fdopen.
12045         * doc/posix-functions/fdopen.texi: Mention the new module.
12046
12047 2011-09-21  Bruno Haible  <bruno@clisp.org>
12048
12049         unlockpt tests: Avoid test failure on NetBSD 5.1.
12050         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12051         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12052
12053 2011-09-21  Bruno Haible  <bruno@clisp.org>
12054
12055         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12056         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12057         * tests/test-getlogin_r.c (main): Likewise.
12058
12059 2011-09-20  Bruno Haible  <bruno@clisp.org>
12060
12061         time tests: Don't require pid_t.
12062         * doc/posix-headers/time.texi: Revert last change.
12063         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12064         * tests/test-time.c: Comment out the check for pid_t.
12065
12066 2011-09-20  Bruno Haible  <bruno@clisp.org>
12067
12068         fsync tests: Avoid a test failure on mingw.
12069         * tests/test-fsync.c (main): Allow a failure with EIO.
12070
12071 2011-09-20  Bruno Haible  <bruno@clisp.org>
12072
12073         euidaccess: Update comments.
12074         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12075
12076 2011-09-20  Bruno Haible  <bruno@clisp.org>
12077
12078         Ensure EBADF returns for socket functions on mingw.
12079         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12080         descriptor is invalid.
12081         * lib/bind.c (rpl_bind): Likewise.
12082         * lib/connect.c (rpl_connect): Likewise.
12083         * lib/getpeername.c (rpl_getpeername): Likewise.
12084         * lib/getsockname.c (rpl_getsockname): Likewise.
12085         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12086         * lib/listen.c (rpl_listen): Likewise.
12087         * lib/recv.c (rpl_recv): Likewise.
12088         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12089         * lib/send.c (rpl_send): Likewise.
12090         * lib/sendto.c (rpl_sendto): Likewise.
12091         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12092         * lib/shutdown.c (rpl_shutdown): Likewise.
12093
12094 2011-09-20  Bruno Haible  <bruno@clisp.org>
12095
12096         select tests: EBADF tests.
12097         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12098         test_bad_fd): New functions.
12099         (test_function): Invoke also test_bad_fd.
12100
12101 2011-09-20  Bruno Haible  <bruno@clisp.org>
12102
12103         Tests for module 'posix_spawn_file_actions_addopen.
12104         * modules/posix_spawn_file_actions_addopen-tests: New file.
12105         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12106
12107         Tests for module 'posix_spawn_file_actions_adddup2'.
12108         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12109         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12110
12111         Tests for module 'posix_spawn_file_actions_addclose'.
12112         * modules/posix_spawn_file_actions_addclose-tests: New file.
12113         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12114
12115 2011-09-20  Bruno Haible  <bruno@clisp.org>
12116
12117         Tests for module 'unlockpt'.
12118         * modules/unlockpt-tests: New file.
12119         * tests/test-unlockpt.c: New file.
12120         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12121
12122         Tests for module 'grantpt'.
12123         * modules/grantpt-tests: New file.
12124         * tests/test-grantpt.c: New file.
12125         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12126
12127 2011-09-20  Bruno Haible  <bruno@clisp.org>
12128
12129         freopen tests: EBADF tests.
12130         * tests/test-freopen.c: Include errno.h, unistd.h.
12131         (main): Add tests for EBADF, commented out for the moment.
12132
12133         fclose tests: EBADF tests.
12134         * tests/test-fclose.c (main): Add tests for EBADF.
12135
12136         fflush tests: EBADF tests.
12137         * tests/test-fflush.c: Include errno.h, macros.h.
12138         (main): Add tests for EBADF.
12139
12140         ftello tests: EBADF tests.
12141         * tests/test-ftello4.sh: New file.
12142         * tests/test-ftello4.c: New file.
12143         * modules/ftello-tests (Files): Add them.
12144         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12145
12146         fseeko tests: EBADF tests.
12147         * tests/test-fseeko4.sh: New file.
12148         * tests/test-fseeko4.c: New file.
12149         * modules/fseeko-tests (Files): Add them.
12150         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12151
12152         Tests for function fputc().
12153         * modules/fputc-tests: New file.
12154         * tests/test-fputc.c: New file.
12155         * modules/stdio-tests (Depends-on): Add fputc-tests.
12156
12157         Tests for function fgetc().
12158         * modules/fgetc-tests: New file.
12159         * tests/test-fgetc.c: New file.
12160         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12161
12162         Tests for function fdopen().
12163         * modules/fdopen-tests: New file.
12164         * tests/test-fdopen.c: New file.
12165         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12166
12167         Tests for module 'vdprintf'.
12168         * modules/vdprintf-tests: New file.
12169         * tests/test-vdprintf.c: New file.
12170
12171         Tests for module 'dprintf'.
12172         * modules/dprintf-tests: New file.
12173         * tests/test-dprintf.c: New file.
12174
12175 2011-09-20  Bruno Haible  <bruno@clisp.org>
12176
12177         Tests for module 'ioctl'.
12178         * modules/ioctl-tests: New file.
12179         * tests/test-ioctl.c: New file.
12180
12181 2011-09-20  Bruno Haible  <bruno@clisp.org>
12182
12183         fcntl tests: EBADF tests.
12184         * tests/test-fcntl.c (main): Add more tests for EBADF.
12185
12186 2011-09-20  Bruno Haible  <bruno@clisp.org>
12187
12188         utimensat tests: EBADF tests.
12189         * tests/test-utimensat.c (main): Add tests for EBADF.
12190
12191         renameat tests: EBADF tests.
12192         * tests/test-renameat.c (main): Add tests for EBADF.
12193
12194         mkfifoat tests: EBADF tests.
12195         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12196
12197         readlinkat tests: EBADF tests.
12198         * tests/test-readlinkat.c (main): Add tests for EBADF.
12199
12200         symlinkat tests: EBADF tests.
12201         * tests/test-symlinkat.c (main): Add tests for EBADF.
12202
12203         linkat tests: EBADF tests.
12204         * tests/test-linkat.c (main): Add tests for EBADF.
12205
12206         Tests for module 'faccessat'.
12207         * modules/faccessat-tests: New file.
12208         * tests/test-faccessat.c: New file.
12209
12210         fdopendir tests: EBADF tests.
12211         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12212
12213         openat tests: EBADF tests.
12214         * tests/test-fchownat.c (main): Add tests for EBADF.
12215         * tests/test-fstatat.c (main): Likewise.
12216         * tests/test-mkdirat.c (main): Likewise.
12217         * tests/test-openat.c (main): Likewise.
12218         * tests/test-unlinkat.c (main): Likewise.
12219         * tests/test-fchmodat.c: New file.
12220         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12221         (Makefile.am): Also run 'test-fchmodat'.
12222
12223 2011-09-20  Bruno Haible  <bruno@clisp.org>
12224
12225         utimens, futimens, fdutimensat tests: EBADF tests.
12226         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12227
12228         Tests for function fstat().
12229         * modules/fstat-tests: New file.
12230         * tests/test-fstat.c: New file.
12231         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12232
12233 2011-09-20  Bruno Haible  <bruno@clisp.org>
12234
12235         test-ttyname_r tests: EBADF tests.
12236         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12237
12238         Tests for module 'isatty'.
12239         * modules/isatty-tests: New file.
12240         * tests/test-isatty.c: New file.
12241
12242         Tests for module 'write'.
12243         * modules/write-tests: New file.
12244         * tests/test-write.c: New file.
12245
12246         Tests for module 'read'.
12247         * modules/read-tests: New file.
12248         * tests/test-read.c: New file.
12249
12250         pwrite tests: EBADF tests.
12251         * tests/test-pwrite.c (main): Add tests for EBADF.
12252
12253         pread tests: EBADF tests.
12254         * tests/test-pread.c (main): Add tests for EBADF.
12255
12256         lseek tests: EBADF tests.
12257         * tests/test-lseek.c (main): Add more tests for EBADF.
12258
12259         Tests for module 'ftruncate'.
12260         * modules/ftruncate-tests: New file.
12261         * tests/test-ftruncate.sh: New file.
12262         * tests/test-ftruncate.c: New file.
12263
12264         fsync tests: EBADF tests.
12265         * tests/test-fsync.c (main): Add more tests for EBADF.
12266
12267         fdatasync tests: EBADF tests.
12268         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12269
12270         Tests for module 'fchown'.
12271         * modules/fchown-tests: New file.
12272         * tests/test-fchown.c: New file.
12273
12274         Tests for module 'fchmod'.
12275         * modules/fchmod-tests: New file.
12276         * tests/test-fchmod.c: New file.
12277
12278         fchdir tests: EBADF tests.
12279         * tests/test-fchdir.c (main): Add more tests for EBADF.
12280
12281         dup2 tests: EBADF tests.
12282         * tests/test-dup2.c (main): Add more tests for EBADF.
12283
12284         Tests for module 'dup'.
12285         * modules/dup-tests: New file.
12286         * tests/test-dup.c: New file.
12287
12288         Tests for module 'close'.
12289         * modules/close-tests: New file.
12290         * tests/test-close.c: New file.
12291
12292 2011-09-20  Bruno Haible  <bruno@clisp.org>
12293
12294         Tests for module 'shutdown'.
12295         * modules/shutdown-tests: New file.
12296         * tests/test-shutdown.c: New file.
12297
12298         Tests for module 'setsockopt'.
12299         * modules/setsockopt-tests: New file.
12300         * tests/test-setsockopt.c: New file.
12301
12302         Tests for module 'sendto'.
12303         * modules/sendto-tests: New file.
12304         * tests/test-sendto.c: New file.
12305
12306         Tests for module 'send'.
12307         * modules/send-tests: New file.
12308         * tests/test-send.c: New file.
12309
12310         Tests for module 'recvfrom'.
12311         * modules/recvfrom-tests: New file.
12312         * tests/test-recvfrom.c: New file.
12313
12314         Tests for module 'recv'.
12315         * modules/recv-tests: New file.
12316         * tests/test-recv.c: New file.
12317
12318         Tests for module 'listen'.
12319         * modules/listen-tests: New file.
12320         * tests/test-listen.c: New file.
12321
12322         Tests for module 'getsockopt'.
12323         * modules/getsockopt-tests: New file.
12324         * tests/test-getsockopt.c: New file.
12325
12326         Tests for module 'getsockname'.
12327         * modules/getsockname-tests: New file.
12328         * tests/test-getsockname.c: New file.
12329
12330         Tests for module 'getpeername'.
12331         * modules/getpeername-tests: New file.
12332         * tests/test-getpeername.c: New file.
12333
12334         Tests for module 'connect'.
12335         * modules/connect-tests: New file.
12336         * tests/test-connect.c: New file.
12337
12338         Tests for module 'bind'.
12339         * modules/bind-tests: New file.
12340         * tests/test-bind.c: New file.
12341
12342         accept4 tests: Fix for native Windows.
12343         * tests/test-accept4.c: Include sockets.h.
12344         (main): Invoke gl_sockets_startup.
12345         * modules/accept4-tests (Depends-on): Add sockets.
12346
12347         accept tests: Fix for native Windows.
12348         * tests/test-accept.c: Include sockets.h.
12349         (main): Invoke gl_sockets_startup.
12350         * modules/accept-tests (Depends-on): Add sockets.
12351
12352 2011-09-19  Bruno Haible  <bruno@clisp.org>
12353
12354         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12355         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12356         do...while(0).
12357         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12358         Suggested by Paul Eggert.
12359
12360 2011-09-19  Bruno Haible  <bruno@clisp.org>
12361
12362         sched: Ensure pid_t is defined.
12363         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12364         not define pid_t.
12365         * lib/sched.in.h: Include <sys/types.h>.
12366         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12368
12369 2011-09-19  Bruno Haible  <bruno@clisp.org>
12370
12371         msvc-inval: Ensure the entire expansion is a single statement.
12372         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12373         of braces.
12374
12375 2011-09-19  Jim Meyering  <meyering@redhat.com>
12376
12377         tests: use printf, not echo in init.sh's warn_ function
12378         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12379         misbehave when given strings containing a backslash or starting
12380         with e.g., -n.  James Youngman suggested setting IFS.
12381
12382 2011-09-19  Eric Blake  <eblake@redhat.com>
12383
12384         futimens: enhance test
12385         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12386         closed non-negative fd.
12387
12388         date: accept 'hence' as opposite of 'ago'
12389         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12390         * tests/test-parse-datetime.c (main): Enhance test.
12391         Suggested by Jesse Wilson.
12392
12393 2011-09-19  Jim Meyering  <meyering@redhat.com>
12394
12395         getcwd: don't fail in a deep directory on a system without openat
12396         Before this change, getcwd would fail when called from a directory
12397         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12398         the non-openat implementation used "..", "../..", "../../..", etc.
12399         to access ancestor directories.  With too many, that string would
12400         be longer than PATH_MAX.
12401         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12402         using gnulib's openat replacement.
12403         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12404         we're using the replacement function.
12405
12406 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12407
12408         maint.mk: avoid warnings from perl about missing files
12409         * top/maint.mk (def_sym_regex): Ignore files listed in
12410         $(gl_other_headers_) that do not exist, say because a project
12411         does not use a corresponding module.
12412
12413 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12414
12415         stat: use pathmax.h only if needed
12416         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12417         This is better for Emacs, which does not have a mingw port and
12418         therefore can avoid the pathmax module.
12419
12420         utimens: remove dependency on dup2
12421         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12422         to work around the Linux kernel bug.
12423         * modules/utimens (Depends-on): Remove dup2.
12424
12425 2011-09-18  Bruno Haible  <bruno@clisp.org>
12426
12427         inet_ntop, inet_pton: Look for it also in libresolv.
12428         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12429         libnsl, search for it in libresolv.
12430         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12431         Needed on Solaris 7.
12432
12433 2011-09-18  Bruno Haible  <bruno@clisp.org>
12434
12435         accept, accept4 tests: Avoid link error on Solaris.
12436         * modules/accept-tests (Makefile.am): Link test-accept against
12437         $(LIBSOCKET).
12438         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12439         $(LIBSOCKET).
12440
12441         accept4: Avoid link error on Solaris.
12442         * modules/accept4 (Link): New section.
12443
12444         socket functions: Avoid link errors on Solaris.
12445         * modules/accept (Depends-on): Add socketlib.
12446         (Link): New section.
12447         * modules/bind (Depends-on): Add socketlib.
12448         (Link): New section.
12449         * modules/connect (Depends-on): Add socketlib.
12450         (Link): New section.
12451         * modules/getpeername (Depends-on): Add socketlib.
12452         (Link): New section.
12453         * modules/getsockname (Depends-on): Add socketlib.
12454         (Link): New section.
12455         * modules/getsockopt (Depends-on): Add socketlib.
12456         (Link): New section.
12457         * modules/listen (Depends-on): Add socketlib.
12458         (Link): New section.
12459         * modules/recv (Depends-on): Add socketlib.
12460         (Link): New section.
12461         * modules/recvfrom (Depends-on): Add socketlib.
12462         (Link): New section.
12463         * modules/send (Depends-on): Add socketlib.
12464         (Link): New section.
12465         * modules/sendto (Depends-on): Add socketlib.
12466         (Link): New section.
12467         * modules/setsockopt (Depends-on): Add socketlib.
12468         (Link): New section.
12469         * modules/shutdown (Depends-on): Add socketlib.
12470         (Link): New section.
12471         * modules/socket (Depends-on): Add socketlib.
12472         (Link): New section.
12473
12474 2011-09-18  Bruno Haible  <bruno@clisp.org>
12475
12476         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12477         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12478         than 5 seconds.
12479         * modules/ptsname-tests (configure.ac): Test for alarm.
12480
12481 2011-09-18  Bruno Haible  <bruno@clisp.org>
12482
12483         posix_spawn_file_actions_add*: Fix module dependencies.
12484         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12485         posix_spawn_file_actions_init.
12486         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12487         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12488
12489 2011-09-18  Bruno Haible  <bruno@clisp.org>
12490
12491         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12492         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12493         * tests/test-renameat.c (main): Likewise.
12494
12495 2011-09-18  Bruno Haible  <bruno@clisp.org>
12496
12497         Tests for module 'accept4'.
12498         * modules/accept4-tests: New file.
12499         * tests/test-accept4.c: New file.
12500
12501 2011-09-18  Bruno Haible  <bruno@clisp.org>
12502
12503         Tests for module 'accept'.
12504         * modules/accept-tests: New file.
12505         * tests/test-accept.c: New file.
12506
12507 2011-09-18  Bruno Haible  <bruno@clisp.org>
12508
12509         dup2: Support for MSVC.
12510         * lib/dup2.c: Include msvc-inval.h.
12511         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12512         _get_osfhandle calls.
12513         * modules/dup2 (Depends-on): Add msvc-inval.
12514         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12515
12516         New module 'msvc-inval'.
12517         * lib/msvc-inval.h: New file.
12518         * lib/msvc-inval.c: New file.
12519         * m4/msvc-inval.m4: New file.
12520         * modules/msvc-inval: New file.
12521
12522 2011-09-17  Bruno Haible  <bruno@clisp.org>
12523
12524         Tests for module 'pclose'.
12525         * modules/pclose-tests: New file.
12526
12527         New module 'pclose'.
12528         * lib/stdio.in.h (pclose): New declaration.
12529         * lib/pclose.c: New file.
12530         * m4/pclose.m4: New file.
12531         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12532         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12533         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12534         * modules/pclose: New file.
12535         * modules/popen-tests (Depends-on): Add pclose.
12536         * modules/popen-safer-tests (Depends-on): Likewise.
12537         * doc/posix-functions/pclose.texi: Mention the new module.
12538
12539 2011-09-17  Bruno Haible  <bruno@clisp.org>
12540
12541         popen: Support for MSVC.
12542         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12543         * lib/popen.c (popen): Provide alternate definition for native Windows.
12544         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12546         * modules/popen (Depends-on, configure.ac): Update condition.
12547         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12548         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12549         fixed.
12550
12551 2011-09-17  Bruno Haible  <bruno@clisp.org>
12552
12553         isnanl, isnand, isnanf: Work around MSVC bug.
12554         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12555
12556 2011-09-17  Bruno Haible  <bruno@clisp.org>
12557
12558         sys_socket tests: Fix recent mistake.
12559         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12560
12561 2011-09-17  Bruno Haible  <bruno@clisp.org>
12562
12563         putenv: Support for MSVC.
12564         * modules/putenv (Depends-on): Add environ.
12565         * lib/putenv.c (environ): Disable declaration.
12566         * lib/unistd.in.h: Update comment.
12567
12568 2011-09-17  Bruno Haible  <bruno@clisp.org>
12569
12570         math: Avoid macro redefinition warnings on MSVC.
12571         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12572         Undefine before redefining.
12573
12574 2011-09-17  Bruno Haible  <bruno@clisp.org>
12575
12576         doc: Mention functions which are declared as macros.
12577         * doc/posix-functions/*[fl].texi: Mention that some functions are
12578         defined as macros with arguments only.
12579
12580 2011-09-17  Bruno Haible  <bruno@clisp.org>
12581
12582         Add dependencies to new dirent related modules.
12583         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12584         * modules/fts (Depends-on): Likewise.
12585         * modules/glob (Depends-on): Likewise.
12586         * modules/savedir (Depends-on): Likewise.
12587         * modules/scandir (Depends-on): Likewise.
12588         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12589         * modules/fdopendir (Depends-on): Add opendir.
12590
12591 2011-09-17  Bruno Haible  <bruno@clisp.org>
12592
12593         inet_pton: Support for MSVC on Windows Vista or newer.
12594         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12595         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12596         HAVE_DECL_INET_PTON is defined.
12597         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12598         On platforms with <winsock2.h>, test whether inet_pton is declared in
12599         <ws2tcpip.h>. If so, arrange to replace it.
12600         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12601         REPLACE_INET_PTON.
12602         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12603         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12604         (Depends-on, configure.ac): Update condition.
12605         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12606
12607 2011-09-17  Bruno Haible  <bruno@clisp.org>
12608
12609         inet_ntop: Support for MSVC on Windows Vista or newer.
12610         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12611         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12612         HAVE_DECL_INET_NTOP is defined.
12613         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12614         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12615         <ws2tcpip.h>. If so, arrange to replace it.
12616         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12617         REPLACE_INET_NTOP.
12618         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12619         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12620         (Depends-on, configure.ac): Update condition.
12621         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12622
12623 2011-09-16  Eric Blake  <eblake@redhat.com>
12624
12625         test-fsync: yet another enhancement
12626         * tests/test-fsync.c (main): Also test behavior on read-only text
12627         file.
12628
12629 2011-09-16  Bruno Haible  <bruno@clisp.org>
12630
12631         Enhance fsync, fdatasync tests.
12632         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12633         * tests/test-fdatasync.c (main): Likewise.
12634
12635 2011-09-16  Bruno Haible  <bruno@clisp.org>
12636
12637         Support for MSVC compiler: Ensure mode_t gets defined.
12638         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12639         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12640         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12641         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12642         * tests/test-fcntl-h.c: Check that mode_t is defined.
12643         * tests/test-sys_stat.c: Likewise.
12644         * tests/test-sys_types.c: Likewise.
12645         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12646         * doc/posix-headers/sys_stat.texi: Likewise.
12647         * doc/posix-headers/sys_types.texi: Likewise.
12648
12649 2011-09-16  Bruno Haible  <bruno@clisp.org>
12650
12651         sys_stat: Support for MSVC.
12652         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12653         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12654         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12655         MSVC.
12656
12657 2011-09-16  Bruno Haible  <bruno@clisp.org>
12658
12659         Support for MSVC compiler: Ensure off_t gets defined.
12660         * lib/unistd.in.h: Include <sys/types.h>.
12661         * tests/test-fcntl-h.c: Check that off_t is defined.
12662         * tests/test-sys_stat.c: Likewise.
12663         * tests/test-sys_types.c: Likewise.
12664
12665 2011-09-16  Eric Blake  <eblake@redhat.com>
12666
12667         fdatasync: port to Solaris
12668         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12669         * modules/fdatasync (Link): Document it.
12670         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12671
12672         fdatasync: port to MacOS X 10.7
12673         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12674         declared.
12675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12676         * modules/unistd (Makefile.am): Substitute it.
12677         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12678         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12679
12680         fdatasync: minor improvements
12681         * modules/fdatasync (Depends-on): Add condition for fsync.
12682         * lib/fdatasync.c (fdatasync): Add comment.
12683         * tests/test-unistd-c++.cc: Test fdatasync.
12684
12685         unistd: update refs to newer POSIX
12686         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12687         Suggested by Bruno Haible.
12688
12689         fdatasync: new module
12690         * modules/fsync (Description): Document difference to fdatasync.
12691         * modules/fdatasync: New module.
12692         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12693         * lib/fdatasync.c (fdatasync): Likewise.
12694         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12695         defaults.
12696         * modules/unistd (Makefile.am): Set witnesses.
12697         * lib/unistd.in.h (fdatasync): Declare.
12698         * MODULES.html.sh: Document it.
12699         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12700         * modules/fdatasync-tests: New test.
12701         * tests/test-fdatasync.c: Likewise.
12702
12703 2011-09-16  Eric Blake  <eblake@redhat.com>
12704
12705         test-fsync: enhance tests
12706         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12707         * tests/test-fsync.c (main): Enhance test.
12708
12709 2011-09-15  Bruno Haible  <bruno@clisp.org>
12710
12711         Support for MSVC compiler: Ensure ssize_t gets defined.
12712         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12713         * doc/posix-headers/stdio.texi: Likewise.
12714         * modules/stdio (Depends-on): Add ssize_t.
12715         * modules/sys_socket (Depends-on): Likewise.
12716         * modules/sys_types (Depends-on): Likewise.
12717         * modules/sys_uio (Depends-on): Likewise.
12718         * modules/unistd (Depends-on): Likewise.
12719         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12720         * tests/test-sys_types.c: Check that ssize_t is defined.
12721
12722 2011-09-14  Bruno Haible  <bruno@clisp.org>
12723
12724         Avoid using #, the m4 comment starter character, near brackets.
12725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12726         delimiter character in sed expressions.
12727         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12728         Suggested by Eric Blake.
12729
12730         Properly quote AC_CHECK_DECLS' 4th argument.
12731         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12732         argument.
12733         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12734         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12735         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12736         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12737         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12738         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12740         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12741         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12742         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12743         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12744         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12745         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12746         * m4/isinf.m4 (gl_ISINF): Likewise.
12747         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12748         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12749         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12750         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12751         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12753         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12754         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12755         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12756         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12757         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12760         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12762         Reported by Eric Blake.
12763
12764         Properly quote AC_CHECK_DECL's 4th argument.
12765         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12766         argument.
12767         * m4/argp.m4 (gl_ARGP): Likewise.
12768         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12769         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12770         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12771         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12772         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12773         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12774         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12775         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12776         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12777         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12778         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12779         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12780         Reported by Eric Blake.
12781
12782 2011-09-14  Eric Blake  <eblake@redhat.com>
12783
12784         opendir: avoid compile warning
12785         * lib/opendir.c (includes): Always include errno.h.
12786         Reported by Tatsuro MATSUOKA.
12787
12788 2011-09-14  Jim Meyering  <meyering@redhat.com>
12789
12790         maint.mk: sc_tight_scope: propagate failure from sub-make
12791         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12792         Reported by Martin von Gagern.
12793
12794 2011-09-13  Bruno Haible  <bruno@clisp.org>
12795
12796         tempname: Support for MSVC.
12797         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12798         MSVC.
12799         * modules/tempname (Depends-on): Add fcntl-h.
12800
12801 2011-09-13  Bruno Haible  <bruno@clisp.org>
12802
12803         sys_time: Support for MSVC.
12804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12805         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12806         include <winsock2.h>.
12807         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12808         function declarations that collide with POSIX.
12809         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12810         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12811
12812 2011-09-13  Bruno Haible  <bruno@clisp.org>
12813
12814         stat: Support for MSVC.
12815         * lib/stat.c: Include pathmax.h.
12816         * modules/stat (Depends-on): Add pathmax.
12817
12818         pathmax: Support for native Windows.
12819         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12820
12821 2011-09-12  Bruno Haible  <bruno@clisp.org>
12822
12823         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12824         * lib/dirent.in.h (struct dirent): New type.
12825         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12826         DT_WHT): New macros.
12827         (DIR): New type.
12828         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12829         (readdir, rewinddir): New declarations.
12830         * lib/dirent-private.h: New file.
12831         * lib/opendir.c: New file.
12832         * lib/readdir.c: New file.
12833         * lib/rewinddir.c: New file.
12834         * lib/closedir.c: New file.
12835         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12836         * m4/opendir.m4: New file.
12837         * m4/readdir.m4: New file.
12838         * m4/rewinddir.m4: New file.
12839         * m4/closedir.m4: New file.
12840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12841         REPLACE_CLOSEDIR here.
12842         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12843         readdir, rewinddir are declared.
12844         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12845         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12846         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12847         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12848         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12849         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12850         * modules/opendir: New file.
12851         * modules/readdir: New file.
12852         * modules/rewinddir: New file.
12853         * modules/closedir: New file.
12854         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12855         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12856         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12857         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12858         * NEWS: Mention the 'fchdir' change.
12859
12860 2011-09-11  Bruno Haible  <bruno@clisp.org>
12861
12862         asm-underscore.m4: Support for MSVC.
12863         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12864         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12865
12866 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12867
12868         Doc about crypt functions.
12869         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12870         needing for _GNU_SOURCE to get crypt.
12871         * doc/posix-functions/encrypt.texi: Likewise.
12872         * doc/posix-functions/setkey.texi: Likewise.
12873
12874 2011-09-11  Bruno Haible  <bruno@clisp.org>
12875
12876         doc: Update regarding MSVC 9.
12877         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12878         tested".
12879         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12880         * doc/posix-headers/*.texi: Likewise.
12881         * doc/pastposix-functions/*.texi: Likewise.
12882         * doc/glibc-functions/*.texi: Likewise.
12883         * doc/glibc-headers/*.texi: Likewise.
12884
12885 2011-09-11  Bruno Haible  <bruno@clisp.org>
12886
12887         unistd et al.: Don't assume <unistd.h> exists.
12888         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12889         does not exist.
12890         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12891         exist. But include <stdlib.h>.
12892         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12893         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12894         symlink() does not exist.
12895         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12896         include <io.h> instead.
12897         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12898         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12899         include <direct.h> instead.
12900         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12902         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12903         <io.h> instead.
12904         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12905         correctly if the system does not have hard links.
12906         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12907         <direct.h> instead.
12908         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12909         it when looking for function declarations.
12910         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12911         <direct.h> and <io.h> instead.
12912         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12913
12914 2011-09-11  Bruno Haible  <bruno@clisp.org>
12915
12916         strcase: Support for MSVC.
12917         * modules/strcase (Status, Notice): Remove obsoletion mark.
12918         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12919         * doc/posix-functions/strncasecmp.texi: Likewise.
12920
12921         strings: Don't assume <strings.h> exists.
12922         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12923         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12924         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12925         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12926
12927 2011-09-11  Bruno Haible  <bruno@clisp.org>
12928
12929         dirent: Don't assume <dirent.h> exists.
12930         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12931         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12932         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12933         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12934
12935 2011-09-11  Bruno Haible  <bruno@clisp.org>
12936
12937         Fix wint_t on MSVC.
12938         * lib/wchar.in.h (wint_t): On MSVC, override it.
12939         * lib/wctype.in.h (wint_t): Likewise.
12940         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12941         MSVC.
12942         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12943         * doc/posix-headers/wctype.texi: Likewise.
12944
12945 2011-09-11  Bruno Haible  <bruno@clisp.org>
12946
12947         sys_types: Fix typo.
12948         * lib/sys_types.in.h: Fix typo in comment.
12949         Reported by Paul Eggert.
12950
12951         Support for MSVC compiler: Ensure size_t gets defined.
12952         * modules/strings (Depends-on): Add 'sys_types'.
12953         * modules/sys_uio (Depends-on): Likewise.
12954         * lib/sys_uio.in.h: Update comment.
12955
12956         C++ tests for module 'sys_types'.
12957         * modules/sys_types-c++-tests: New file.
12958         * tests/test-sys_types-c++.cc: New file.
12959
12960         Tests for module 'sys_types'.
12961         * modules/sys_types-tests: New file.
12962         * tests/test-sys_types.c: New file.
12963
12964         New module 'sys_types'.
12965         * lib/sys_types.in.h: New file.
12966         * m4/sys_types_h.m4: New file.
12967         * modules/sys_types: New file.
12968         * doc/posix-headers/sys_types.texi: Mention the new module and the
12969         size_t problem on MSVC 9.
12970
12971 2011-09-11  Bruno Haible  <bruno@clisp.org>
12972
12973         Support for MSVC compiler: Avoid division by a literal 0.
12974         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12975         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12976         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12977         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12978         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12979         * tests/infinity.h: New file.
12980         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12981         on MSVC.
12982         * tests/test-ceilf1.c: Include infinity.h.
12983         (main): Use Infinityf.
12984         * tests/test-ceil1.c: Include infinity.h.
12985         (main): Use Infinityd.
12986         * tests/test-ceill.c: Include infinity.h.
12987         (main): Use Infinityl.
12988         * tests/test-dprintf-posix.c: Include infinity.h.
12989         (test_function): Use Infinityd.
12990         * tests/test-floorf1.c: Include infinity.h.
12991         (main): Use Infinityf.
12992         * tests/test-floor1.c: Include infinity.h.
12993         (main): Use Infinityd.
12994         * tests/test-floorl.c: Include infinity.h.
12995         (main): Use Infinityl.
12996         * tests/test-fprintf-posix.c: Include infinity.h.
12997         (test_function): Use Infinityd.
12998         * tests/test-frexp.c: Include infinity.h.
12999         (main): Use Infinityd.
13000         * tests/test-frexpl.c: Include infinity.h.
13001         (main): Use Infinityl.
13002         * tests/test-isfinite.c: Include infinity.h.
13003         (test_isfinitef): Use Infinityf.
13004         (test_isfinited): Use Infinityd.
13005         (test_isfinitel): Use Infinityl.
13006         * tests/test-isinf.c: Include infinity.h.
13007         (test_isinff): Use Infinityf.
13008         (test_isinfd): Use Infinityd.
13009         (test_isinfl): Use Infinityl.
13010         * tests/test-isnan.c: Include infinity.h.
13011         (test_float): Use Infinityf.
13012         (test_double): Use Infinityd.
13013         (test_long_double): Use Infinityl.
13014         * tests/test-isnanf.h: Include infinity.h.
13015         (main): Use Infinityf.
13016         * tests/test-isnand.h: Include infinity.h.
13017         (main): Use Infinityd.
13018         * tests/test-isnanl.h: Include infinity.h.
13019         (main): Use Infinityl.
13020         * tests/test-ldexpl.c: Include infinity.h.
13021         (main): Use Infinityl.
13022         * tests/test-printf-posix.h: Include infinity.h.
13023         (test_function): Use Infinityd.
13024         * tests/test-roundf1.c: Include infinity.h.
13025         (main): Use Infinityf.
13026         * tests/test-round1.c: Include infinity.h.
13027         (main): Use Infinityd.
13028         * tests/test-roundl.c: Include infinity.h.
13029         (main): Use Infinityl.
13030         * tests/test-signbit.c: Include infinity.h.
13031         (test_signbitf): Use Infinityf.
13032         (test_signbitd): Use Infinityd.
13033         (test_signbitl): Use Infinityl.
13034         * tests/test-snprintf-posix.h: Include infinity.h.
13035         (test_function): Use Infinityd, Infinityl.
13036         * tests/test-sprintf-posix.h: Include infinity.h.
13037         (test_function): Use Infinityd, Infinityl.
13038         * tests/test-truncf1.c: Include infinity.h.
13039         (main): Use Infinityf.
13040         * tests/test-trunc1.c: Include infinity.h.
13041         (main): Use Infinityd.
13042         * tests/test-truncl.c: Include infinity.h.
13043         (main): Use Infinityl.
13044         * tests/test-vasnprintf-posix.c: Include infinity.h.
13045         (test_function): Use Infinityd, Infinityl.
13046         * tests/test-vasprintf-posix.c: Include infinity.h.
13047         (test_function): Use Infinityd, Infinityl.
13048         * modules/ceilf-tests (Files): Add tests/infinity.h.
13049         * modules/ceil-tests (Files): Likewise.
13050         * modules/ceill-tests (Files): Likewise.
13051         * modules/dprintf-posix-tests (Files): Likewise.
13052         * modules/floorf-tests (Files): Likewise.
13053         * modules/floor-tests (Files): Likewise.
13054         * modules/floorl-tests (Files): Likewise.
13055         * modules/fprintf-posix-tests (Files): Likewise.
13056         * modules/frexp-tests (Files): Likewise.
13057         * modules/frexp-nolibm-tests (Files): Likewise.
13058         * modules/frexpl-tests (Files): Likewise.
13059         * modules/frexpl-nolibm-tests (Files): Likewise.
13060         * modules/isfinite-tests (Files): Likewise.
13061         * modules/isinf-tests (Files): Likewise.
13062         * modules/isnan-tests (Files): Likewise.
13063         * modules/isnanf-tests (Files): Likewise.
13064         * modules/isnanf-nolibm-tests (Files): Likewise.
13065         * modules/isnand-tests (Files): Likewise.
13066         * modules/isnand-nolibm-tests (Files): Likewise.
13067         * modules/isnanl-tests (Files): Likewise.
13068         * modules/isnanl-nolibm-tests (Files): Likewise.
13069         * modules/ldexpl-tests (Files): Likewise.
13070         * modules/printf-posix-tests (Files): Likewise.
13071         * modules/roundf-tests (Files): Likewise.
13072         * modules/round-tests (Files): Likewise.
13073         * modules/roundl-tests (Files): Likewise.
13074         * modules/signbit-tests (Files): Likewise.
13075         * modules/snprintf-posix-tests (Files): Likewise.
13076         * modules/sprintf-posix-tests (Files): Likewise.
13077         * modules/truncf-tests (Files): Likewise.
13078         * modules/trunc-tests (Files): Likewise.
13079         * modules/truncl-tests (Files): Likewise.
13080         * modules/vasnprintf-posix-tests (Files): Likewise.
13081         * modules/vasprintf-posix-tests (Files): Likewise.
13082         * modules/vdprintf-posix-tests (Files): Likewise.
13083         * modules/vfprintf-posix-tests (Files): Likewise.
13084         * modules/vprintf-posix-tests (Files): Likewise.
13085         * modules/vsnprintf-posix-tests (Files): Likewise.
13086         * modules/vsprintf-posix-tests (Files): Likewise.
13087         * modules/xprintf-posix-tests (Files): Likewise.
13088
13089 2011-09-11  Bruno Haible  <bruno@clisp.org>
13090
13091         Ensure pid_t gets defined.
13092         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13093         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13094         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13095         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13096         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13097         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13098         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13099         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13100         * tests/test-fcntl-h.c: Check that pid_t is defined.
13101         * tests/test-sched.c: Likewise.
13102         * tests/test-termios.c: Likewise.
13103         * tests/test-time.c: Likewise.
13104         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13105         * doc/posix-headers/signal.texi: Likewise.
13106         * doc/posix-headers/sys_types.texi: Likewise.
13107         * doc/posix-headers/time.texi: Likewise.
13108
13109 2011-09-11  Bruno Haible  <bruno@clisp.org>
13110
13111         acl: Fix compilation on Solaris 10 (older version).
13112         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13113         of ACE_EVERYONE.
13114         * lib/set-mode-acl.c (qset_acl): Likewise.
13115         Reported by Christian Jullien <eligis@orange.fr>.
13116
13117 2011-09-10  Bruno Haible  <bruno@clisp.org>
13118
13119         iconv, unsetenv: Add support for MSVC compiler.
13120         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13121         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13122
13123 2011-09-10  Bruno Haible  <bruno@clisp.org>
13124
13125         *printf: Add support for MSVC compiler.
13126         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13127         handles the exception caused by the %n directive. When cross-compiling,
13128         guess no on native Windows.
13129         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13130         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13131         emulate it through vsnprintf.
13132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13133         * doc/posix-functions/dprintf.texi: Update documentation regarding
13134         MSVC 9.
13135         * doc/posix-functions/fprintf.texi: Likewise.
13136         * doc/posix-functions/printf.texi: Likewise.
13137         * doc/posix-functions/snprintf.texi: Likewise.
13138         * doc/posix-functions/sprintf.texi: Likewise.
13139         * doc/posix-functions/swprintf.texi: Likewise.
13140         * doc/posix-functions/vdprintf.texi: Likewise.
13141         * doc/posix-functions/vfprintf.texi: Likewise.
13142         * doc/posix-functions/vprintf.texi: Likewise.
13143         * doc/posix-functions/vsnprintf.texi: Likewise.
13144         * doc/posix-functions/vsprintf.texi: Likewise.
13145         * doc/glibc-functions/asprintf.texi: Likewise.
13146         * doc/glibc-functions/obstack_printf.texi: Likewise.
13147         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13148         * doc/glibc-functions/vasprintf.texi: Likewise.
13149
13150 2011-09-10  Bruno Haible  <bruno@clisp.org>
13151
13152         nocrash: Add support for native Windows.
13153         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13154
13155 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13156             Bruno Haible  <bruno@clisp.org>
13157
13158         absolute-header, include-next: Add support for MSVC compiler.
13159         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13160         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13161         directory separator in #line directives.
13162         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13163         recognize also backslash as directory separator in #line directives.
13164
13165 2011-09-08  Jim Meyering  <meyering@redhat.com>
13166
13167         maint.mk: mark the post-release commit log with "maint: " prefix
13168         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13169         one-line commit-log summary.
13170
13171 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13172             Bruno Haible  <bruno@clisp.org>
13173
13174         Doc about crypt functions.
13175         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13176         systems.
13177         * doc/posix-functions/encrypt.texi: Likewise.
13178         * doc/posix-functions/setkey.texi: Likewise.
13179
13180 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13181
13182         * lib/gc.h: Fix copyright header.
13183
13184 2011-09-07  Bruno Haible  <bruno@clisp.org>
13185
13186         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13187         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13188         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13189
13190 2011-09-07  Bruno Haible  <bruno@clisp.org>
13191
13192         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13193         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13194         * lib/freopen.c: Likewise.
13195         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13196         * lib/lstat.c: Likewise.
13197         * lib/stat.c: Likewise.
13198         * lib/open.c: Use different syntax for include of <fcntl.h>.
13199         * lib/openat.c: Include fcntl.h again, explicitly.
13200
13201 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13202
13203         parse-datetime: document the newly accepted format
13204         * doc/parse-datetime.texi (Combined date and time of day items):
13205         New section.
13206
13207 2011-09-06  Bruno Haible  <bruno@clisp.org>
13208
13209         acl: Fix a test failure on newer Solaris 10 with ZFS.
13210         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13211         ENOSYS as no ACL.
13212         Reported by Jim Meyering.
13213
13214 2011-09-06  Bruno Haible  <bruno@clisp.org>
13215
13216         acl: Update for AIX >= 5.3 with NFS.
13217         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13218         ENOSYS as no ACL.
13219
13220         acl: Fix a test failure on AIX >= 5.3 with NFS.
13221         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13222         as no ACL.
13223
13224 2011-09-06  Bruno Haible  <bruno@clisp.org>
13225
13226         acl: Fix a test failure on IRIX 6.5 with NFS.
13227         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13228         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13229         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13230         * lib/copy-acl.c (qcopy_acl): Likewise.
13231
13232 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13233
13234         openat: port to AIX 7.1 with large files
13235         AIX 7.1 does a "#define openat open64at" if large files are in use,
13236         so we can't simply #undef openat.  Use the orig_openat trick (similar
13237         to orig_open in lib/open.c) to work around the problem.  Problem
13238         reported by Kevin Brott for GNU tar, in the thread containing
13239         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13240         * lib/openat.c (__need_system_fcntl_h): Define first.
13241         Include <fcntl.h> and <sys/types.h> before undefining.
13242         (orig_openat) [HAVE_OPENAT]: New inline function.
13243         (openat) [HAVE_OPENAT]: Do not undef.
13244         (rpl_openat): Use orig_openat, not openat.
13245
13246 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13247             Bruno Haible  <bruno@clisp.org>
13248
13249         acl: Avoid errors on NonStop Kernel.
13250         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13251         ENOTSUP errors.
13252
13253 2011-09-05  Bruno Haible  <bruno@clisp.org>
13254
13255         acl: Clean up Solaris code.
13256         * lib/acl-internal.h: Remove no-op #if.
13257         * lib/file-has-acl.c: Likewise.
13258         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13259         * lib/copy-acl.c (qcopy_acl): Likewise.
13260
13261 2011-09-05  Bruno Haible  <bruno@clisp.org>
13262
13263         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13264         binaries built on the original Solaris 10.
13265         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13266         trivial.
13267
13268 2011-09-05  Bruno Haible  <bruno@clisp.org>
13269
13270         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13271         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13272         10.
13273         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13274         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13275         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13276         instead of acl_get, facl_get, acl_set, facl_set.
13277
13278 2011-09-05  Bruno Haible  <bruno@clisp.org>
13279
13280         copy-file: Try unit tests on more file systems.
13281         * tests/test-copy-file-1.sh: New file.
13282         * tests/test-copy-file-2.sh: New file.
13283         * modules/copy-file-tests (Files): Add them.
13284         (Makefile.am): Add them to TESTS.
13285
13286         acl: Try unit tests on more file systems.
13287         * tests/test-file-has-acl-1.sh: New file.
13288         * tests/test-file-has-acl-2.sh: New file.
13289         * tests/test-set-mode-acl-1.sh: New file.
13290         * tests/test-set-mode-acl-2.sh: New file.
13291         * tests/test-copy-acl-1.sh: New file.
13292         * tests/test-copy-acl-2.sh: New file.
13293         * modules/acl-tests (Files): Add them.
13294         (Makefile.am): Add them to TESTS.
13295
13296 2011-09-04  Bruno Haible  <bruno@clisp.org>
13297
13298         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13299         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13300         10.
13301         (OLD_ALLOW, OLD_DENY): New macros.
13302         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13303         ACE_ACCESS_ALLOWED_ACE_TYPE.
13304         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13305         ACE_ACCESS_DENIED_ACE_TYPE.
13306         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13307         (NEW_ACE_EXECUTE): Fix value.
13308         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13309         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13310         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13311         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13312         NEW_ACE_SYNCHRONIZE): New macros.
13313         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13314         instead of acl_fromtext, acl_set, facl_set.
13315         Fixes a coreutils/tests/cp/perm failure.
13316
13317 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13318
13319         openat: test for fstatat (..., 0) bug
13320         Further testing with tar suggests that fstatat (..., 0)
13321         does not work in general, on AIX 7.1; see
13322         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13323         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13324         replacement fstatat (which is what older AIX releases were using
13325         anyway).
13326         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13327         use is now changed to orig_fstatat.  This was probably the right
13328         thing to do anyway.
13329         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13330         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13331         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13332         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13333         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13334         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13335         if the bug is found.
13336
13337         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13338         This tests for another fstatat bug on AIX 7.1:
13339         fstatat (AT_FDCWD, ..., 0) does not work.  See
13340         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13341         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13342         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13343         (rpl_fstatat): Adjust so that it works around either (or both)
13344         bugs if present.
13345         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13346
13347 2011-09-03  Karl Berry  <karl@gnu.org>
13348
13349         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13350         in index entries.
13351
13352 2011-09-02  Bruno Haible  <bruno@clisp.org>
13353
13354         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13355         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13356         values of AR, ARFLAGS, RANLIB.
13357         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13358
13359 2011-09-02  Bruno Haible  <bruno@clisp.org>
13360
13361         Find 'ar' program that fits with --host argument.
13362         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13363
13364 2011-09-02  Bruno Haible  <bruno@clisp.org>
13365
13366         tests: init.sh: Support any non-GNU diff.
13367         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13368         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13369         Solaris 8.
13370
13371 2011-09-02  Bruno Haible  <bruno@clisp.org>
13372
13373         tests: init.sh: work also with any non-GNU diff that supports -u
13374         * tests/init.sh: Relax check for diff -u support.
13375         Rather than checking for GNU diff via --version, simply check
13376         for support for -u itself.  Useful at least on OpenBSD 4.9,
13377         AIX 7.1, IRIX 6.5, and Solaris 10.
13378
13379 2011-09-01  Bruno Haible  <bruno@clisp.org>
13380
13381         strtoimax, strtoumax: Document problem on HP-UX 11.
13382         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13383         * doc/posix-functions/strtoumax.texi: Likewise.
13384
13385 2011-09-01  Bruno Haible  <bruno@clisp.org>
13386
13387         strtoumax: Avoid link error on OSF/1 with DTK cc.
13388         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13389         defined as a function.
13390         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13391         strtoumax is defined, not whether it is declared.
13392
13393 2011-09-01  Bruno Haible  <bruno@clisp.org>
13394
13395         strtoimax: Avoid link error on OSF/1 with DTK cc.
13396         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13397         defined as a function.
13398         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13399         strtoimax is defined, not whether it is declared.
13400
13401 2011-09-01  Bruno Haible  <bruno@clisp.org>
13402
13403         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13404         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13405         as a function.
13406         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13407         whether it is declared.
13408
13409 2011-09-01  Bruno Haible  <bruno@clisp.org>
13410
13411         imaxabs: Avoid link error on OSF/1 with DTK cc.
13412         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13413         as a function.
13414         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13415         whether it is declared.
13416
13417 2011-09-01  Bruno Haible  <bruno@clisp.org>
13418
13419         Tests for module 'strtoumax'.
13420         * modules/strtoumax-tests: New file.
13421         * tests/test-strtoumax.c: New file.
13422
13423         Tests for module 'strtoimax'.
13424         * modules/strtoimax-tests: New file.
13425         * tests/test-strtoimax.c: New file.
13426
13427         Tests for module 'imaxdiv'.
13428         * modules/imaxdiv-tests: New file.
13429         * tests/test-imaxdiv.c: New file.
13430
13431         Tests for module 'imaxabs'.
13432         * modules/imaxabs-tests: New file.
13433         * tests/test-imaxabs.c: New file.
13434
13435 2011-09-01  Bruno Haible  <bruno@clisp.org>
13436
13437         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13438         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13439         pthread_create.
13440
13441 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13442
13443         openat: work around AIX 7.1 fstatat issue
13444         This should fix the problem that was not properly fixed
13445         in the previous change, dated 2011-08-30.
13446         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13447         __need_system_stat_h defined.
13448         (orig_fstatat) [HAVE_FSTATAT]: New function.
13449         (rpl_fstatat): Go back to the old way of doing things,
13450         except call orig_fstatat instead of fstatat.
13451         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13452         Remove unnecessary check whether fstatat fills in st_size etc.
13453
13454 2011-09-01  Bruno Haible  <bruno@clisp.org>
13455
13456         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13457         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13458         just include the system's header.
13459
13460 2011-08-31  Jim Meyering  <meyering@redhat.com>
13461
13462         tests: avoid spurious assertion failure in test-float.c on ppc64
13463         * tests/test-float.c (test_long_double): Comment out an assertion,
13464         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13465         with gcc-4.4.4.
13466
13467         maint: indent with spaces, not TABs
13468         I need to get in the habit of running gnulib's "make check".
13469         Both of these would have been caught.
13470         * m4/largefile.m4: Indent with spaces, not TABs.
13471         * lib/parse-datetime.y (iso_8601_time): Likewise.
13472         Spotted by Pádraig Brady.
13473
13474         test-parse-datetime.c: accommodate a relatively strict gcc warning
13475         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13476         to avoid a warning from gcc's -Werror=missing-declarations.
13477         Insert a few spaces-before-funcall-parenthesis.
13478
13479 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13480
13481         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13482         The parser now accepts ISO 8601 date-time strings with "T" as the
13483         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13484         with a space between the date and time strings.  Now it also parses
13485         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13486         variants like "2004-02-29T16:21:42.333-07:00"
13487         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13488         of day representation using the 'T' separator character.
13489         * doc/parse-datetime.texi (General date syntax): replace use of
13490         deprecated --iso-8601 option with --rfc-3339 in example of date
13491         command output formats that can be parsed.
13492         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13493         lib/parse-datetime.y.
13494         (gmt_offset): New function.
13495         (main): Add additional test cases to validate ISO8601 extended
13496         date and time of day parsing.
13497
13498 2011-08-31  Bruno Haible  <bruno@clisp.org>
13499
13500         freopen: Documentation.
13501         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13502         name.
13503         Reported by Claudio Bley <claudio.bley@gmail.com>.
13504
13505 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13506
13507         freopen: Don't crash if the filename argument is NULL.
13508         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13509         NULL.
13510
13511 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13512
13513         openat: work around AIX 7.1 fstatat bug
13514         Problem reported by Kevin Brott for GNU tar, in the thread containing
13515         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13516         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13517         FSTATAT_ST_SIZE_ETC_BROKEN.
13518         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13519         rpl_fstatat.
13520         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13521         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13522         AC_CHECK_FUNCS_ONCE for fstatat.
13523         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13524         fchmodat, mkdirat, openat and unlinkat.
13525
13526 2011-08-30  Bruno Haible  <bruno@clisp.org>
13527
13528         Avoid endless recursions if config.h includes some header files.
13529         * lib/fopen.c (__need_FILE): Define already before including config.h.
13530         * lib/freopen.c (__need_FILE): Likewise.
13531         * lib/open.c (__need_system_fcntl_h): Likewise.
13532         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13533         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13534         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13535
13536 2011-08-25  Karl Berry  <karl@gnu.org>
13537
13538         * config/srclist.txt (ylwrap): new try.
13539         * build-aux/ylwrap: new file.
13540
13541 2011-08-23  Bruno Haible  <bruno@clisp.org>
13542
13543         tmpdir: Use a good default directory on native Windows.
13544         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13545         (P_tmpdir): Default to _P_tmpdir on native Windows.
13546         (path_search): On native Windows, try the value returned by GetTempPath
13547         before trying P_tmpdir.
13548         * modules/tmpdir (Depends-on): Add pathmax.
13549         Suggested by John Darrington <john@darrington.wattle.id.au>.
13550
13551 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13552
13553         doc: fix typo in README-release
13554         * top/README-release: Capitalize first word of a sentence.
13555
13556 2011-08-19  Jim Meyering  <meyering@redhat.com>
13557
13558         fts: do not exhaust memory when processing million-entry directories
13559         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13560         directory would require about 256*N bytes of memory.  Thus, it was
13561         easy to construct a directory too large to be processed by any of
13562         those tools.  With this change, fts' maximum memory utilization is
13563         now limited to around 30MB.
13564         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13565         (fts_read): When we've processed the final entry (i.e., when
13566         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13567         using the parent entry to read any remaining entries.  Dispatch
13568         depending on what fts_build returns:
13569         - NULL+stop, aka failure: stop
13570         - NULL otherwise: move up in the dir hierarchy
13571         - non-NULL: handle this new entry
13572         (fts_build): Declare and use new local, continue_readdir.
13573         Prepare to be called from fts_read, when the entries
13574         from a partially-read directory have just been exhausted.
13575         In that case, we'll skip the opendir and instead use the parent's
13576         fts_dirp and derive dir_fd from that.
13577         Finally, in the readdir loop, if we read max_entries entries,
13578         exit the loop ensuring *not* to call closedir.  This is required
13579         so that fts_dirp can be reused on a subsequent call.
13580         Prompted by Ben England's report of memory exhaustion in find
13581         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13582
13583         maint: fts: move decl of `dp' down into while loop; split a long line
13584         * lib/fts.c (fts_build): No semantic change.
13585
13586         fts: add/use new struct member, fts_dirp
13587         We are about to use this to manage any directory with
13588         too many entries to read all of them into memory at once.
13589         To do that, we'll need to save the DIR* pointer in each
13590         affected FTSENT struct.
13591         * lib/fts_.h: Include <dirent.h>.
13592         (struct FTSENT) [fts_dirp]: New member.
13593         * lib/fts.c (closedir_and_clear): Define.
13594         Use it in place of closedir so that we are sure to
13595         clear the new fts_dirp member when done with it.
13596         (fts_alloc): Initialize the new member.
13597         (fts_lfree): Free, if needed.
13598
13599         maint: fts: give __opendir2 a new parameter and rename
13600         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13601         than surreptitiously using sole caller's "dir_fd".
13602         (fts_opendir): Rename from __opendir2.
13603
13604         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13605         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13606
13607         maint: fts.c: correct off-by-one indentation
13608         * lib/fts.c (fts_build): Correct indentation, change style
13609         of a couple of block comments, and bracing style.
13610
13611         maint: fts.c: move __opendir2 #define "up" out of function body
13612         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13613
13614         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13615         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13616         out for a long time and besides was useful only on BSD systems.
13617
13618 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13619
13620         regex: port to Stratus OpenVOS
13621         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13622         define to empty, rather than attempting nonportable optimizations.
13623         Problem reported by Paul Green in:
13624         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13625         and fix suggested by Eric Blake in:
13626         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13627
13628 2011-08-17  Eric Blake  <eblake@redhat.com>
13629
13630         getcwd: fix test failures on mingw
13631         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13632         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13633         test if long directory cannot be created, and allow mingw errno.
13634
13635         getcwd-lgpl: fix m4 to match relaxed test for BSD
13636         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13637         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13638         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13639         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13640         signature problem.
13641
13642         getcwd: fix compilation on mingw64
13643         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13644         getcwd.
13645         Reported by Marc-André Lureau.
13646
13647         pipe2: silence compiler warning
13648         * lib/pipe2.c (pipe2): Hide label if it is not used.
13649
13650 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13651
13652         relocatable-prog: fix link error
13653         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13654         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13655         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13656         into modules/relocatable-lib without noticing that
13657         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13658         also needs to build relocatable.c.
13659
13660 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13661
13662         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13664         shell code: it contained a 'break' that was not in a loop.
13665         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13666         via a shell-language loop; this may have been true in old Autoconf
13667         versions, but it's not true in Autoconf 2.68.  I found this bug
13668         when testing coreutils git on Solaris 8, whose shell complains
13669         about the syntax error.
13670
13671 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13672
13673         * lib/base64.c: Fix comment to reference RFC 4648.
13674         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13675         <gvtulder@gmail.com>.
13676
13677 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13678
13679         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13680
13681         po/Makefile.in.in: fix make -q problem
13682         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13683         rule, since there's no file named 'check-macro-version' and its
13684         use as a file breaks make -q.
13685         (all): Don't depend on check-macro-version.
13686         (CHECK_MACRO_VERSION): New macro.
13687         (stamp-po): Use it.
13688
13689         configmake: fix make -q problem
13690         * modules/configmake (configmake.h): Update configmake.h's time stamp
13691         even if the file does not change.  Otherwise, 'make -q' fails.
13692         Problem reported by Simon Josefsson in
13693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13694
13695 2011-08-11  Jim Meyering  <meyering@redhat.com>
13696
13697         git-version-gen: correct the advice in a comment
13698         * build-aux/git-version-gen: Correct comment.
13699         Don't recommend to list .tarball-version in .gitignore.
13700
13701 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13702
13703         base64: fix off-by-one buffer size bug
13704         Problem and (trivial) fix reported by Gijs van Tulder in
13705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13706         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13707         * tests/test-base64.c (main): Catch the bug.
13708
13709 2011-08-10  Eric Blake  <eblake@redhat.com>
13710
13711         closein: correct comments
13712         * lib/closein.c (close_stdin): Improve comments.
13713
13714 2011-08-09  Bruno Haible  <bruno@clisp.org>
13715
13716         More tests for 'fseeko'.
13717         * tests/test-fseeko3.c: New file, from Eric Blake.
13718         * tests/test-fseeko3.sh: New file.
13719         * modules/fseeko-tests (Files): Add them.
13720         (TESTS): Add test-fseeko3.sh.
13721         (check_PROGRAMS): Add test-fseeko3.
13722
13723 2011-08-09  Eric Blake  <eblake@redhat.com>
13724
13725         fseeko: remove unneeded hack
13726         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13727
13728         fseeko: fix bug on glibc
13729         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13730         Reported by John W. Eaton.
13731
13732 2011-08-08  Bruno Haible  <bruno@clisp.org>
13733
13734         unictype/base: Fix interoperability with preinstalled libunistring.
13735         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13736         Reported by Simon Josefsson.
13737
13738 2011-08-08  Bruno Haible  <bruno@clisp.org>
13739
13740         iswblank: Detect declaration correctly.
13741         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13742         AC_CHECK_DECLS invocation.
13743
13744 2011-08-08  Bruno Haible  <bruno@clisp.org>
13745
13746         tcgetsid: Detect declaration correctly.
13747         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13748         AC_CHECK_DECLS invocation.
13749         Reported by Simon Josefsson.
13750
13751 2011-08-08  Eric Blake  <eblake@redhat.com>
13752
13753         largefile: fix typo that regressed large file support
13754         * modules/largefile (configure.ac-early): Fix section name.
13755
13756 2011-08-06  Karl Berry  <karl@gnu.org>
13757
13758         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13759         a separate module.
13760
13761 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13762
13763         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13764         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13765         get prototype for free.
13766
13767 2011-08-04  Bruno Haible  <bruno@clisp.org>
13768
13769         Tests for module 'pathmax'.
13770         * modules/pathmax-tests: New file.
13771         * tests/test-pathmax.c: New file.
13772
13773         canonicalize-lgpl: Support larger filenames on the Hurd.
13774         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13775         Reported by Paul Eggert.
13776
13777         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13778         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13779         * lib/chdir-long.h: Include pathmax.h.
13780         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13781         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13782         (PATH_MAX): Remove code that is done by pathmax.h.
13783         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13784         * lib/tmpfile.c: Add a comment.
13785         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13786         * modules/chdir-long (Depends-on): Add pathmax.
13787         * modules/getcwd (Depends-on): Add pathmax.
13788         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13789         is not defined.
13790         * doc/posix-headers/limits.texi: Mention the pathmax module.
13791         * NEWS: Mention the change.
13792
13793 2011-08-02  Bruno Haible  <bruno@clisp.org>
13794
13795         pthread_sigmask: Actually use results of gl_THREADLIB.
13796         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13797         gl_THREADLIB, not gl_[]THREADLIB.
13798         Reported by Eric Blake.
13799
13800 2011-08-02  Jim Meyering  <meyering@redhat.com>
13801
13802         maint.mk: relax the default _gl_TS_function_match regexp
13803         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13804         space between function name and "(" in an "extern" declaration.
13805         That would fail to match a decl with no space there: extern void foo();
13806
13807 2011-07-31  Iain Nicol  <iain@thenicols.net>
13808
13809         git-version-gen: document that EXTRA_DIST must include .version
13810         * build-aux/git-version-gen: In the how-to-use comment, document
13811         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13812         will fail when run from an unpacked distribution tarball.
13813
13814 2011-08-01  Bruno Haible  <bruno@clisp.org>
13815
13816         wctype-h: Fix last change.
13817         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13818         REPLACE_TOWLOWER to 0.
13819         Reported by Sam Steingold <sds@gnu.org>.
13820
13821 2011-07-31  Bruno Haible  <bruno@clisp.org>
13822
13823         frexpl: Update autoconf test.
13824         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13825         according to changes of 2011-06-20.
13826
13827 2011-07-31  Bruno Haible  <bruno@clisp.org>
13828
13829         sys_utsname: Add support for Minix.
13830         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13831         <sys/utsname.h>.
13832         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13833         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13834
13835 2011-07-31  Bruno Haible  <bruno@clisp.org>
13836
13837         strings: Add support for Minix.
13838         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13839         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13840         * doc/posix-headers/strings.texi: Document the Minix problem.
13841
13842 2011-07-31  Bruno Haible  <bruno@clisp.org>
13843
13844         wctype-h: Add support for Minix.
13845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13846         REPLACE_TOWLOWER.
13847         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13848         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13849         REPLACE_ISWCNTRL.
13850
13851 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13852
13853         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13854         This is a performance improvement for 64-bit hosts: it causes the
13855         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13856
13857 2011-07-31  Bruno Haible  <bruno@clisp.org>
13858
13859         stdioext: Add support for Minix.
13860         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13861         * lib/fpurge.c (fpurge): Likewise.
13862         * lib/freadahead.c (freadahead): Likewise.
13863         * lib/freadable.c (freadable): Likewise.
13864         * lib/freading.c (freading): Likewise.
13865         * lib/freadptr.c (freadptr): Likewise.
13866         * lib/freadseek.c (freadptrinc): Likewise.
13867         * lib/fseeko.c (rpl_fseeko): Likewise.
13868         * lib/fseterr.c (fseterr): Likewise.
13869         * lib/fwritable.c (fwritable): Likewise.
13870         * lib/fwriting.c (fwriting): Likewise.
13871         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13872         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13873
13874 2011-07-31  Bruno Haible  <bruno@clisp.org>
13875
13876         errno: Port to Minix.
13877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13878         ECONNABORTED are defined.
13879         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13880         GNULIB_defined_ECONNABORTED): New macros.
13881         * lib/strerror-override.h (strerror_override): Test also
13882         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13883         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13884         ECONNABORTED.
13885         * doc/posix-headers/errno.texi: Mention the Minix problem.
13886
13887 2011-07-31  Bruno Haible  <bruno@clisp.org>
13888
13889         Work around declaration collisions on Minix.
13890         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13891         defined, set REPLACE_MBSINIT.
13892         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13893         defined, set REPLACE_MBRTOWC.
13894         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13895         set REPLACE_MBRLEN.
13896         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13897         defined, set REPLACE_MBSRTOWCS.
13898         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13899         defined, set REPLACE_WCRTOMB.
13900         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13901         defined, set REPLACE_WCSRTOMBS.
13902
13903 2011-07-31  Bruno Haible  <bruno@clisp.org>
13904
13905         Add support for Minix with ACK compiler.
13906         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13907         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13908         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13909
13910 2011-07-31  Bruno Haible  <bruno@clisp.org>
13911
13912         Documentation about Minix.
13913         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13914         * doc/glibc-headers/*.texi: Likewise.
13915         * doc/posix-functions/*.texi: Likewise.
13916         * doc/glibc-functions/*.texi: Likewise.
13917
13918 2011-07-31  Bruno Haible  <bruno@clisp.org>
13919
13920         snippet/warn-on-use: Fix indentation.
13921         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13922
13923 2011-07-25  Jim Meyering  <meyering@redhat.com>
13924
13925         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13926         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13927         commands.
13928
13929 2011-07-27  Jim Meyering  <meyering@redhat.com>
13930
13931         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13932         * top/maint.mk (gl_extract_significant_defines_): Now that
13933         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13934         gnulib/lib/signal.in.h, and now that we recommend to
13935         define-if-undefined those two symbols in application code,
13936         we must filter them out of the "significant" list.
13937         This avoids a "make syntax-check" failure in coreutils.
13938
13939 2011-07-26  Eric Blake  <eblake@redhat.com>
13940
13941         warnings: add comments about previous patch
13942         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13943         * m4/include_next.m4: Likewise.
13944         * m4/warn-on-use.m4: Likewise.
13945         * m4/warnings.m4: Likewise, and simplify use.
13946         Suggested by Stefano Lattarini.
13947
13948         include-next, warnings: support older autoconf
13949         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13950         AS_VAR_PUSHDEF in a way that works with older autoconf.
13951         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13952         Reported by Daniel P. Berrange.
13953
13954 2011-07-25  Bruno Haible  <bruno@clisp.org>
13955
13956         fseek, ftell: Fix doc.
13957         * doc/posix-functions/fseek.texi: Reword statement about
13958         AC_SYS_LARGEFILE.
13959         * doc/posix-functions/ftell.texi: Likewise.
13960
13961 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13962             Bruno Haible  <bruno@clisp.org>
13963
13964         Add dependencies to the 'largefile' module.
13965         * modules/fopen (Depends-on): Add 'largefile'.
13966         * modules/freopen (Depends-on): Likewise.
13967         * modules/fseeko (Depends-on): Likewise.
13968         * modules/ftello (Depends-on): Likewise.
13969         * modules/glob (Depends-on): Likewise.
13970         * modules/lseek (Depends-on): Likewise.
13971         * modules/lstat (Depends-on): Likewise.
13972         * modules/mkostemp (Depends-on): Likewise.
13973         * modules/mkostemps (Depends-on): Likewise.
13974         * modules/mkstemp (Depends-on): Likewise.
13975         * modules/mkstemps (Depends-on): Likewise.
13976         * modules/open (Depends-on): Likewise.
13977         * modules/openat (Depends-on): Likewise.
13978         * modules/pread (Depends-on): Likewise.
13979         * modules/pwrite (Depends-on): Likewise.
13980         * modules/scandir (Depends-on): Likewise.
13981         * modules/stat (Depends-on): Likewise.
13982         * modules/tmpfile (Depends-on): Likewise.
13983         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13984         since the containing module now depends on the largefile module.
13985         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13986         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13987         off_t is fixed by gnulib.
13988         * doc/posix-functions/freopen.texi: Likewise.
13989         * doc/posix-functions/fseeko.texi: Likewise.
13990         * doc/posix-functions/fstatat.texi: Likewise.
13991         * doc/posix-functions/ftello.texi: Likewise.
13992         * doc/posix-functions/glob.texi: Likewise.
13993         * doc/posix-functions/lseek.texi: Likewise.
13994         * doc/posix-functions/lstat.texi: Likewise.
13995         * doc/posix-functions/mkstemp.texi: Likewise.
13996         * doc/posix-functions/open.texi: Likewise.
13997         * doc/posix-functions/openat.texi: Likewise.
13998         * doc/posix-functions/pread.texi: Likewise.
13999         * doc/posix-functions/pwrite.texi: Likewise.
14000         * doc/posix-functions/scandir.texi: Likewise.
14001         * doc/posix-functions/stat.texi: Likewise.
14002         * doc/posix-functions/tmpfile.texi: Likewise.
14003         * doc/glibc-functions/mkostemp.texi: Likewise.
14004         * doc/glibc-functions/mkostemps.texi: Likewise.
14005         * doc/glibc-functions/mkstemps.texi: Likewise.
14006
14007 2011-07-25  Bruno Haible  <bruno@clisp.org>
14008
14009         fcntl: Move AC_LIBOBJ invocation to module description.
14010         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14011         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14012
14013         fcntl: Remove call-in from fchdir.m4.
14014         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14016
14017         dup3: Remove potential call-in from fchdir.m4.
14018         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14020
14021         dup2: Move AC_LIBOBJ invocation to module description.
14022         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14023         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14024         Don't invoke AC_LIBOBJ.
14025         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14026
14027         dup2: Remove call-in from fchdir.m4.
14028         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14030
14031         fclose: Move AC_LIBOBJ invocation to module description.
14032         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14033         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14034         to 1.
14035         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14036
14037         fclose: Remove call-in from close.m4.
14038         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14039         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14040
14041         close: Move AC_LIBOBJ invocation to module description.
14042         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14043         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14044         1.
14045         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14046
14047         close: Remove call-in from fchdir.m4.
14048         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14050
14051         open: Move AC_LIBOBJ invocation to module description.
14052         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14053         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14054         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14055
14056         open: Remove call-in from fchdir.m4.
14057         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14059
14060         fchdir: Start to remove gl_REPLACE_* idiom.
14061         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14062         (gl_FUNC_FCHDIR): Invoke it.
14063
14064 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14065
14066         * lib/ftell.c (ftell): Comment out cast.
14067
14068         close: use gl_REPLACE_FCLOSE only if defined
14069         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14070         is defined.  The close module doesn't depend on the fclose module
14071         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14073         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14074
14075 2011-07-24  Jim Meyering  <meyering@redhat.com>
14076
14077         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14078         * tests/test-select.h (test_function): Declare as "static".
14079
14080 2011-07-24  Bruno Haible  <bruno@clisp.org>
14081
14082         doc: Mention the effects of AC_SYS_LARGEFILE.
14083         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14084         on this function.
14085         * doc/posix-functions/aio_error.texi: Likewise.
14086         * doc/posix-functions/aio_fsync.texi: Likewise.
14087         * doc/posix-functions/aio_read.texi: Likewise.
14088         * doc/posix-functions/aio_return.texi: Likewise.
14089         * doc/posix-functions/aio_suspend.texi: Likewise.
14090         * doc/posix-functions/aio_write.texi: Likewise.
14091         * doc/posix-functions/fgetpos.texi: Likewise.
14092         * doc/posix-functions/fopen.texi: Likewise.
14093         * doc/posix-functions/freopen.texi: Likewise.
14094         * doc/posix-functions/fsetpos.texi: Likewise.
14095         * doc/posix-functions/fstatvfs.texi: Likewise.
14096         * doc/posix-functions/ftruncate.texi: Likewise.
14097         * doc/posix-functions/ftw.texi: Likewise.
14098         * doc/posix-functions/getrlimit.texi: Likewise.
14099         * doc/posix-functions/glob.texi: Likewise.
14100         * doc/posix-functions/lio_listio.texi: Likewise.
14101         * doc/posix-functions/lockf.texi: Likewise.
14102         * doc/posix-functions/mkstemp.texi: Likewise.
14103         * doc/posix-functions/mmap.texi: Likewise.
14104         * doc/posix-functions/nftw.texi: Likewise.
14105         * doc/posix-functions/openat.texi: Likewise.
14106         * doc/posix-functions/opendir.texi: Likewise.
14107         * doc/posix-functions/posix_fadvise.texi: Likewise.
14108         * doc/posix-functions/posix_fallocate.texi: Likewise.
14109         * doc/posix-functions/pread.texi: Likewise.
14110         * doc/posix-functions/pwrite.texi: Likewise.
14111         * doc/posix-functions/readdir.texi: Likewise.
14112         * doc/posix-functions/readdir_r.texi: Likewise.
14113         * doc/posix-functions/rewinddir.texi: Likewise.
14114         * doc/posix-functions/scandir.texi: Likewise.
14115         * doc/posix-functions/seekdir.texi: Likewise.
14116         * doc/posix-functions/setrlimit.texi: Likewise.
14117         * doc/posix-functions/statvfs.texi: Likewise.
14118         * doc/posix-functions/telldir.texi: Likewise.
14119         * doc/posix-functions/tmpfile.texi: Likewise.
14120         * doc/posix-functions/truncate.texi: Likewise.
14121         * doc/glibc-functions/fallocate.texi: Likewise.
14122         * doc/glibc-functions/fstatfs.texi: Likewise.
14123         * doc/glibc-functions/fts_children.texi: Likewise.
14124         * doc/glibc-functions/fts_read.texi: Likewise.
14125         * doc/glibc-functions/getdirentries.texi: Likewise.
14126         * doc/glibc-functions/mkostemp.texi: Likewise.
14127         * doc/glibc-functions/mkostemps.texi: Likewise.
14128         * doc/glibc-functions/mkstemps.texi: Likewise.
14129         * doc/glibc-functions/preadv.texi: Likewise.
14130         * doc/glibc-functions/pwritev.texi: Likewise.
14131         * doc/glibc-functions/sendfile.texi: Likewise.
14132         * doc/glibc-functions/statfs.texi: Likewise.
14133
14134 2011-07-24  Bruno Haible  <bruno@clisp.org>
14135
14136         doc: Fix typo.
14137         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14138
14139 2011-07-24  Bruno Haible  <bruno@clisp.org>
14140
14141         doc: Mention fsusage.
14142         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14143
14144 2011-07-24  Bruno Haible  <bruno@clisp.org>
14145
14146         doc: Mention new glibc headers and functions.
14147         * doc/glibc-headers/gshadow.texi: New file.
14148         * doc/glibc-functions/endsgent.texi: New file.
14149         * doc/glibc-functions/fgetsgent.texi: New file.
14150         * doc/glibc-functions/fgetsgent_r.texi: New file.
14151         * doc/glibc-functions/getsgent.texi: New file.
14152         * doc/glibc-functions/getsgent_r.texi: New file.
14153         * doc/glibc-functions/getsgnam.texi: New file.
14154         * doc/glibc-functions/getsgnam_r.texi: New file.
14155         * doc/glibc-functions/putsgent.texi: New file.
14156         * doc/glibc-functions/setsgent.texi: New file.
14157         * doc/glibc-functions/sgetsgent.texi: New file.
14158         * doc/glibc-functions/sgetsgent_r.texi: New file.
14159         * doc/glibc-functions/malloc_info.texi: New file.
14160         * doc/glibc-functions/preadv.texi: New file.
14161         * doc/glibc-functions/pwritev.texi: New file.
14162         * doc/glibc-functions/register_printf_modifier.texi: New file.
14163         * doc/glibc-functions/register_printf_specifier.texi: New file.
14164         * doc/glibc-functions/register_printf_type.texi: New file.
14165         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14166         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14167         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14168         * doc/glibc-functions/pthread_getname_np.texi: New file.
14169         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14170         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14171         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14172         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14173         * doc/glibc-functions/pthread_setname_np.texi: New file.
14174         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14175         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14176         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14177         * doc/glibc-functions/qsort_r.texi: New file.
14178         * doc/glibc-functions/quick_exit.texi: New file.
14179         * doc/glibc-functions/syncfs.texi: New file.
14180         * doc/gnulib.texi: Include them.
14181         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14182         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14183         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14184         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14185         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14186         * doc/glibc-functions/execvpe.texi: Likewise.
14187
14188 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14189
14190         ftell: don't include <unistd.h>
14191         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14192         guaranteed to define off_t, and the ftell module depends on the
14193         stdio module.
14194
14195         ftell: do not assume wraparound signed arithmetic
14196         * lib/ftell.c: Include <limits.h>.
14197         (ftell): Don't assume wraparound signed arithmetic.
14198
14199 2011-07-24  Bruno Haible  <bruno@clisp.org>
14200
14201         close: No longer depend on module 'fclose'.
14202         * modules/close (Depends-on): Remove fclose.
14203         * NEWS: Mention the change.
14204         Suggested by Sam Steingold <sds@gnu.org>.
14205
14206 2011-07-24  Bruno Haible  <bruno@clisp.org>
14207
14208         fsusage: Enable large volume support on AIX >= 5.2.
14209         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14210         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14211         instead of STAT_STATVFS.
14212         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14213
14214         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14215         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14216         f_blocks field only on MacOS X.
14217
14218         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14220         * modules/fsusage (Depends-on): Add largefile.
14221
14222 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14223
14224         * README: Modernize discussion of signed integers.
14225         Assuming overflow wraparound is no longer safe.
14226         Mention ones' complement and signed magnitude.
14227
14228 2011-07-22  Bruno Haible  <bruno@clisp.org>
14229
14230         select tests, pselect tests: Refactor.
14231         * tests/test-select.h: New file, extracted from tests/test-select.c.
14232         (select_fn): New type.
14233         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14234         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14235         test_pipe): Add my_select argument.
14236         (test_function): Renamed from main. Add my_select argument.
14237         * tests/test-select.c: Move most code to tests/test-select.h. Include
14238         test-select.h.
14239         * modules/select-tests (Files): Add tests/test-select.h.
14240         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14241         (my_select, main): New functions.
14242         * modules/pselect-tests (Files): Add tests/test-select.h,
14243         tests/macros.h, tests/signature.h.
14244         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14245         (configure.ac): Check for <sys/wait.h>.
14246
14247 2011-07-22  Bruno Haible  <bruno@clisp.org>
14248
14249         sys_select tests: Check the signature of FD_*.
14250         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14251         signature tests from here...
14252         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14253         here.
14254         * modules/sys_select-tests (Files): Add tests/signature.h.
14255
14256 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         largefile: new module, replacing large-inode
14259         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14260         * MODULES.html.sh: Add largefile, remove large-inode.
14261         * modules/largefile, m4/largefile.m4: New files.
14262         * modules/large-inode, m4/large-inode.m4: Remove.
14263
14264         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14266         implementations that use only 32 bits to count blocks.
14267         On typical hosts with 1024-byte blocks, this fails with file
14268         systems as small as 4 TiB.  Problem reported by Herb Wartens
14269         <http://debbugs.gnu.org/9140> and this should also fix a similar
14270         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14271
14272         large-inode: New module
14273         * MODULES.html.sh: Add it.
14274         * modules/large-inode, m4/large-inode.m4: New files.
14275
14276         extensions: Enable extensions on MacOS X 10.5 and later.
14277         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14278
14279 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14280
14281         file-has-acl: use acl_extended_file_nofollow if available
14282         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14283         (acl_extended_file): New macro.
14284         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14285         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14286
14287 2011-07-21  Bruno Haible  <bruno@clisp.org>
14288
14289         Declare system functions in a way that works with C++.
14290         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14291         declare fdopendir as extern "C".
14292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14293         declare frexpl as extern "C".
14294         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14295         declare gai_strerror as extern "C".
14296         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14297         programs, declare gai_strerror as extern "C".
14298         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14299         declare getlogin_r as extern "C".
14300         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14301         as extern "C".
14302         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14303         declare ldexpl as extern "C".
14304         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14305         as extern "C".
14306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14307         program, declare getmntinfo as extern "C".
14308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14309         stpncpy as extern "C".
14310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14311         program, declare __xpg_strerror_r as extern "C".
14312         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14313         strndup as extern "C".
14314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14315         declare memset and bzero as extern "C".
14316         Reported by Sam Steingold <sds@gnu.org>.
14317
14318 2011-07-12  Jim Meyering  <meyering@redhat.com>
14319
14320         maint.mk: prohibit inclusion of "verify.h" without use
14321         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14322
14323 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14324
14325         timer-time: A new module to check for timer_settime()
14326         * m4/timer_time.m4: Check for the posix function.
14327         * modules/timer-time: Add the new module.
14328         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14329         Mention it.
14330
14331 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14332             Bruno Haible  <bruno@clisp.org>
14333
14334         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14335         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14336         not defined, assume POSIX threads and look for pthread_sigmask in
14337         $LIBS, without changing $CPPFLAGS.
14338
14339 2011-07-19  Bruno Haible  <bruno@clisp.org>
14340
14341         strstr: Update cross-compilation guess.
14342         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14343         CPUs, guess no, in view of glibc
14344         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14345         Suggested by Eric Blake. Reported by Reuben Thomas.
14346
14347 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14348
14349         getopt-gnu: suppress core dumps from detection code
14350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14351         to suppress core dumps that may well occur on glibc systems.
14352         * modules/getopt-gnu: Depend on nocrash.
14353
14354 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14355
14356         pthread_sigmask: ensure usleep is declared
14357         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14358         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14359
14360 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14361
14362         doc: Document NonStop portability issues.
14363         * doc/posix-functions/sigaction.texi (sigaction):
14364         * doc/posix-headers/signal.texi (signal.h):
14365         Document NonStop.  See Joachim Schmitz in
14366         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14367
14368 2011-07-15  Bruno Haible  <bruno@clisp.org>
14369
14370         ffsl, ffsll: Avoid unportable behaviour.
14371         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14372
14373 2011-07-15  Bruno Haible  <bruno@clisp.org>
14374
14375         ffs: More tests.
14376         * tests/test-ffs.c (NBITS): New macro.
14377         (main): Add more tests.
14378         * tests/test-ffsl.c (NBITS): New macro.
14379         (main): Add more tests.
14380         * tests/test-ffsll.c (NBITS): New macro.
14381         (main): Add more tests.
14382
14383 2011-07-15  Eric Blake  <eblake@redhat.com>
14384
14385         ffsl, ffsll: new modules
14386         * modules/ffsl: New file.
14387         * modules/ffsll: Likewise.
14388         * m4/ffsl.m4: Likewise.
14389         * m4/ffsll.m4: Likewise.
14390         * lib/ffsl.c: Likewise.
14391         * lib/ffsl.h: Likewise.
14392         * lib/ffsll.c: Likewise.
14393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14394         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14395         * modules/string (Makefile.am): Substitute witnesses.
14396         * lib/strings.in.h (ffsl, ffsll): Declare.
14397         * modules/ffsl-tests: New test file.
14398         * modules/ffsll-tests: Likewise.
14399         * tests/test-ffsl.c: Likewise.
14400         * tests/test-ffsll.c: Likewise.
14401         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14402         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14403         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14404
14405         ffs: fix m4 prerequisite
14406         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14407
14408         ffs: avoid undefined behavior
14409         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14410         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14411         Reported by Bruno Haible.
14412
14413 2011-07-12  Bruno Haible  <bruno@clisp.org>
14414
14415         pthread_sigmask: Rely on module 'threadlib'.
14416         * modules/pthread_sigmask (Depends-on): Add threadlib.
14417         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14418         is defined.
14419
14420 2011-07-12  Bruno Haible  <bruno@clisp.org>
14421
14422         regex: Depend on module 'strcase'.
14423         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14424
14425 2011-07-12  Jim Meyering  <meyering@redhat.com>
14426
14427         warn-on-use: fix typo in file name
14428         * modules/snippet/warn-on-use (Files): Correct file name:
14429         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14430
14431 2011-07-12  Bruno Haible  <bruno@clisp.org>
14432
14433         strings: Document module.
14434         * doc/posix-headers/strings.texi: Mention module 'strings'.
14435
14436 2011-07-12  Bruno Haible  <bruno@clisp.org>
14437
14438         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14439         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14440         (Files, Makefile.am): Update.
14441         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14442         * modules/stdlib (Depends-on): Update.
14443
14444 2011-07-12  Bruno Haible  <bruno@clisp.org>
14445
14446         * NEWS: Mention the changes.
14447
14448         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14449         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14450         (Files, Makefile.am): Update.
14451         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14452         * modules/arpa_inet (Depends-on): Update.
14453         * modules/ctype (Depends-on): Update.
14454         * modules/dirent (Depends-on): Update.
14455         * modules/fcntl-h (Depends-on): Update.
14456         * modules/glob (Depends-on): Update.
14457         * modules/iconv-h (Depends-on): Update.
14458         * modules/inttypes-incomplete (Depends-on): Update.
14459         * modules/langinfo (Depends-on): Update.
14460         * modules/locale (Depends-on): Update.
14461         * modules/math (Depends-on): Update.
14462         * modules/netdb (Depends-on): Update.
14463         * modules/poll-h (Depends-on): Update.
14464         * modules/pty (Depends-on): Update.
14465         * modules/search (Depends-on): Update.
14466         * modules/signal (Depends-on): Update.
14467         * modules/spawn (Depends-on): Update.
14468         * modules/stdio (Depends-on): Update.
14469         * modules/stdlib (Depends-on): Update.
14470         * modules/string (Depends-on): Update.
14471         * modules/strings (Depends-on): Update.
14472         * modules/sys_file (Depends-on): Update.
14473         * modules/sys_ioctl (Depends-on): Update.
14474         * modules/sys_select (Depends-on): Update.
14475         * modules/sys_socket (Depends-on): Update.
14476         * modules/sys_stat (Depends-on): Update.
14477         * modules/sys_time (Depends-on): Update.
14478         * modules/sys_times (Depends-on): Update.
14479         * modules/sys_utsname (Depends-on): Update.
14480         * modules/sys_wait (Depends-on): Update.
14481         * modules/termios (Depends-on): Update.
14482         * modules/time (Depends-on): Update.
14483         * modules/unistd (Depends-on): Update.
14484         * modules/wchar (Depends-on): Update.
14485         * modules/wctype-h (Depends-on): Update.
14486         * MODULES.html.sh (Support for building libraries and executables):
14487         Update.
14488
14489         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14490         * modules/snippet/unused-parameter: Renamed from
14491         modules/unused-parameter.
14492         (Files, Makefile.am): Update.
14493         * build-aux/snippet/unused-parameter.h: Renamed from
14494         build-aux/unused-parameter.h.
14495         * modules/selinux-h (Depends-on): Update.
14496         * modules/unistr/base (Depends-on): Update.
14497         * MODULES.html.sh (Core language properties): Update.
14498
14499         Rename module 'link-warning' to 'snippet/link-warning'.
14500         * modules/snippet/link-warning: Renamed from modules/link-warning.
14501         (Files, Makefile.am): Update.
14502         * build-aux/snippet/link-warning.h: Renamed from
14503         build-aux/link-warning.h.
14504         * MODULES.html.sh (Support for building libraries and executables):
14505         Update.
14506
14507         Rename module 'c++defs' to 'snippet/c++defs'.
14508         * modules/snippet/c++defs: Renamed from modules/c++defs.
14509         (Files, Makefile.am): Update.
14510         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14511         * modules/arpa_inet (Depends-on): Update.
14512         * modules/ctype (Depends-on): Update.
14513         * modules/dirent (Depends-on): Update.
14514         * modules/fcntl-h (Depends-on): Update.
14515         * modules/glob (Depends-on): Update.
14516         * modules/iconv-h (Depends-on): Update.
14517         * modules/langinfo (Depends-on): Update.
14518         * modules/locale (Depends-on): Update.
14519         * modules/math (Depends-on): Update.
14520         * modules/netdb (Depends-on): Update.
14521         * modules/poll-h (Depends-on): Update.
14522         * modules/pty (Depends-on): Update.
14523         * modules/search (Depends-on): Update.
14524         * modules/signal (Depends-on): Update.
14525         * modules/spawn (Depends-on): Update.
14526         * modules/stdio (Depends-on): Update.
14527         * modules/stdlib (Depends-on): Update.
14528         * modules/string (Depends-on): Update.
14529         * modules/strings (Depends-on): Update.
14530         * modules/sys_ioctl (Depends-on): Update.
14531         * modules/sys_select (Depends-on): Update.
14532         * modules/sys_socket (Depends-on): Update.
14533         * modules/sys_stat (Depends-on): Update.
14534         * modules/sys_time (Depends-on): Update.
14535         * modules/sys_wait (Depends-on): Update.
14536         * modules/termios (Depends-on): Update.
14537         * modules/time (Depends-on): Update.
14538         * modules/unistd (Depends-on): Update.
14539         * modules/wchar (Depends-on): Update.
14540         * modules/wctype-h (Depends-on): Update.
14541
14542         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14543         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14544         (Files, Makefile.am): Update.
14545         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14546         * modules/argv-iter (Depends-on): Update.
14547         * modules/arpa_inet (Depends-on): Update.
14548         * modules/dirent (Depends-on): Update.
14549         * modules/fcntl-h (Depends-on): Update.
14550         * modules/fnmatch (Depends-on): Update.
14551         * modules/getopt-posix (Depends-on): Update.
14552         * modules/glob (Depends-on): Update.
14553         * modules/iconv-h (Depends-on): Update.
14554         * modules/inttypes-incomplete (Depends-on): Update.
14555         * modules/locale (Depends-on): Update.
14556         * modules/math (Depends-on): Update.
14557         * modules/netdb (Depends-on): Update.
14558         * modules/search (Depends-on): Update.
14559         * modules/signal (Depends-on): Update.
14560         * modules/spawn (Depends-on): Update.
14561         * modules/stdio (Depends-on): Update.
14562         * modules/stdlib (Depends-on): Update.
14563         * modules/string (Depends-on): Update.
14564         * modules/strings (Depends-on): Update.
14565         * modules/sys_socket (Depends-on): Update.
14566         * modules/sys_stat (Depends-on): Update.
14567         * modules/sys_time (Depends-on): Update.
14568         * modules/sys_times (Depends-on): Update.
14569         * modules/sys_utsname (Depends-on): Update.
14570         * modules/time (Depends-on): Update.
14571         * modules/unistd (Depends-on): Update.
14572         * modules/wchar (Depends-on): Update.
14573         * MODULES.html.sh (Support for building libraries and executables):
14574         Update.
14575
14576 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14577
14578         Improvements on _Noreturn and related modules.
14579
14580         modules/_Exit-tests: test _Noreturn too
14581         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14582         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14583         (main): Use them.
14584
14585         stdnoreturn, stdnoreturn-tests: remove modules
14586         They're not needed here and a bit premature for use elsewhere.  See
14587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14588         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14589         * tests/test-stdnoreturn.c: Remove files.
14590         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14591         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14592         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14593         and using noreturn.
14594         * modules/openat, modules/sigpipe-die, modules/xalloc:
14595         * modules/xmemdup0, modules/xstrtol:
14596         Remove dependency on stdnoreturn.
14597
14598         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14599         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14600         Reparenthesize to avoid GCC warning.
14601         Support Microsoft's syntax.
14602         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14603
14604         _Noreturn-tests: remove module
14605         * modules/_Noreturn-tests: Remove.
14606         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14607         * tests/test-_Noreturn.c: Remove.
14608         * tests/test-stdnoreturn.c: Merge from the old
14609         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14610
14611 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14612
14613         _Noreturn, stdnoreturn, and related modules.
14614
14615         * top/maint.mk: Adjust to new noreturn support.
14616         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14617         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14618
14619         xalloc: use stdnoreturn.h
14620         * lib/xalloc.h: Include <stdnoreturn.h>.
14621         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14622         * modules/xalloc (Depends-on): Add stdnoreturn.
14623
14624         xstrtol: use stdnoreturn.h
14625         * lib/xstrtol.h: Include <stdnoreturn.h>.
14626         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14627         * modules/xstrtol (Depends-on): Add stdnoreturn.
14628
14629         xmemdup0: use stdnoreturn.h
14630         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14631         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14632         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14633
14634         sigpipe-die: use stdnoreturn.h
14635         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14636         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14637         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14638
14639         openat: use stdnoreturn.h
14640         * lib/openat.h: Include <stdnoreturn.h>.
14641         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14642         * modules/openat (Depends-on): Add stdnoreturn.
14643
14644         * lib/openat-die.c (openat_save_fail): Modernize comment.
14645
14646         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14647
14648         * lib/glthread/thread.h: Modernize comment.
14649
14650         obstack: use _Noreturn
14651         * lib/obstack.c (__attribute__): Remove macro.
14652         (print_and_abort): Use _Noreturn.
14653
14654         c-stack: use _Noreturn
14655         * lib/c-stack.c (die, overflow_handler, segv_handler):
14656         Use _Noreturn rather than __attribute__((noreturn)).
14657
14658         argmatch-tests, exclude_tests: use _Noreturn
14659         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14660         Remove.
14661         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14662
14663         stdlib: use _Noreturn
14664         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14665         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14666         * modules/stdlib (Depends-on): Add _Noreturn.
14667         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14668
14669         stdnoreturn-tests: new module
14670         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14671
14672         stdnoreturn: new module
14673         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14674         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14675
14676         _Noreturn-tests: new module
14677         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14678
14679         _Noreturn: new module
14680         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14681         New section, mentioning it.
14682         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14683
14684         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14685
14686 2011-07-11  Eric Blake  <eblake@redhat.com>
14687
14688         ffs: new module
14689         * modules/ffs: New file.
14690         * m4/ffs.m4: Likewise.
14691         * lib/ffs.c: Likewise.
14692         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14693         * modules/strings (Makefile.am): Substitute witness.
14694         (Depends-on): Add c++defs.
14695         * lib/strings.in.h (ffs): Declare.
14696         * modules/ffs-tests: New test file.
14697         * tests/test-ffs.c: Test new module.
14698         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14699         * doc/posix-functions/ffs.texi (ffs): Likewise.
14700
14701         regex: avoid compiler warning
14702         * lib/regex.c (includes): Include <strings.h>, for use of
14703         strcasecmp in regcomp.c.
14704         Reported by Joachim Schmitz.
14705
14706 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14707
14708         stdint: respect system's intmax_t if INTMAX_MAX
14709         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14710         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14711         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14712         long but int64_t is long long, and where we will clash with the
14713         system intmax_t if we override it.  See
14714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14715         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14716         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14717         similarly for UINTMAX_C.
14718
14719 2011-07-08  Bruno Haible  <bruno@clisp.org>
14720
14721         pthread_sigmask tests: Avoid a compiler warning.
14722         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14723         non-zero.
14724
14725         sigprocmask tests: A better way to avoid a compiler warning.
14726         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14727         (main): Complain if system() returns non-zero.
14728         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14729
14730 2011-07-08  Bruno Haible  <bruno@clisp.org>
14731
14732         pthread_sigmask: Work around IRIX bug.
14733         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14734         bug.
14735         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14736         there may be unblocked pending signals.
14737         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14738
14739 2011-07-08  Bruno Haible  <bruno@clisp.org>
14740
14741         pthread_sigmask: Work around Cygwin bug.
14742         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14743         bug.
14744         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14745         the system's pthread_sigmask function.
14746         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14747
14748 2011-07-08  Bruno Haible  <bruno@clisp.org>
14749
14750         pthread_sigmask: Work around bug in single-threaded implementation.
14751         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14752         FreeBSD, HP-UX, Solaris bug.
14753         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14754         * lib/pthread_sigmask.c: Include <stddef.h>.
14755         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14756         the system's pthread_sigmask function.
14757         * modules/pthread_sigmask (configure.ac): Invoke
14758         gl_PREREQ_PTHREAD_SIGMASK.
14759         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14760         HP-UX, Solaris.
14761
14762 2011-07-08  Eric Blake  <eblake@redhat.com>
14763
14764         test-sigprocmask: avoid compiler warning
14765         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14766         * tests/test-sigprocmask.c (main): Use it to silence warning.
14767         Reported by Jim Meyering.
14768
14769         test-snprintf: avoid compiler warning
14770         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14771         * tests/test-vsnprintf.c (main): Likewise.
14772         Reported by Jim Meyering.
14773
14774 2011-07-08  Bruno Haible  <bruno@clisp.org>
14775
14776         Tests for module 'pthread_sigmask'.
14777         * modules/pthread_sigmask-tests: New file.
14778         * tests/test-pthread_sigmask1.c: New file, based on
14779         tests/test-sigprocmask.c.
14780         * tests/test-pthread_sigmask2.c: New file.
14781
14782 2011-07-08  Jim Meyering  <meyering@redhat.com>
14783
14784         test-getopt.h: avoid warning about an unused variable
14785         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14786
14787 2011-07-07  Jim Meyering  <meyering@redhat.com>
14788
14789         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14790         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14791         now that it no longer contains leading TABs.
14792         Remove unused "url=FIXME" statement.
14793
14794 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14795
14796         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14798         When gl_THREADLIB is not in use, assume that the POSIX sematics
14799         are desired.  This is better for Emacs, which uses POSIX semantics
14800         on GNUish and/or POSIXish platforms, and does not use threads at
14801         all otherwise.
14802
14803         pthread_sigmask: fix typo when testing for libraries
14804         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14805         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14806
14807 2011-07-08  Eric Blake  <eblake@redhat.com>
14808
14809         fts: introduce FTS_NOATIME
14810         * lib/fts_.h (FTS_NOATIME): New bit flag.
14811         (FTS_OPTIONMASK): Adjust.
14812         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14813         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14814
14815 2011-07-08  Bruno Haible  <bruno@clisp.org>
14816
14817         Tests for module 'thread'.
14818         * modules/thread-tests: New file.
14819         * tests/test-thread_self.c: New file.
14820         * tests/test-thread_create.cc: New file.
14821
14822 2011-07-08  Bruno Haible  <bruno@clisp.org>
14823
14824         thread: Avoid gcc warnings when using gl_thread_self().
14825         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14826         'void *'.
14827         (gl_thread_self_pointer): Update.
14828
14829 2011-07-07  Bruno Haible  <bruno@clisp.org>
14830
14831         signal-c++-tests: Check declaration of pthread_sigmask.
14832         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14833         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14834         $(LIB_PTHREAD_SIGMASK).
14835
14836 2011-07-07  Bruno Haible  <bruno@clisp.org>
14837
14838         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14839         * lib/signal.in.h (pthread_sigmask): Override if
14840         REPLACE_PTHREAD_SIGMASK is 1.
14841         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14842         REPLACE_PTHREAD_SIGMASK.
14843         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14844         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14845         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14846         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14847         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14848
14849 2011-07-07  Bruno Haible  <bruno@clisp.org>
14850
14851         pthread_sigmask: Ensure declaration in <signal.h>.
14852         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14853         include <pthread.h>.
14854         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14855         problem.
14856
14857 2011-07-07  Bruno Haible  <bruno@clisp.org>
14858
14859         pthread_sigmask: Document the module.
14860         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14861
14862 2011-07-07  Bruno Haible  <bruno@clisp.org>
14863
14864         pthread_sigmask: Follow gnulib conventions.
14865         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14866         gl_PTHREAD_SIGMASK.
14867         * modules/pthread_sigmask (configure.ac): Update.
14868
14869 2011-07-07  Bruno Haible  <bruno@clisp.org>
14870
14871         pthread_sigmask: Make declaration C++ safe.
14872         * lib/signal.in.h: In two special conditions, just do an #include_next.
14873         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14874         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14875         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14876         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14877         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14878         not REPLACE_PTHREAD_MASK.
14879         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14880         not REPLACE_PTHREAD_MASK.
14881         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14882
14883 2011-07-07  Bruno Haible  <bruno@clisp.org>
14884
14885         pthread_sigmask: Fix return value.
14886         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14887         * lib/pthread_sigmask.c: New file.
14888         * modules/pthread_sigmask (Files): Add it.
14889         (configure.ac): Invoke AC_LIBOBJ.
14890
14891 2011-07-07  Eric Blake  <eblake@redhat.com>
14892
14893         getopt: more portable argv creation
14894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14895         const, use char arrays rather than strings.
14896         Suggested by Paul Eggert.
14897
14898 2011-07-07  Bruno Haible  <bruno@clisp.org>
14899
14900         Tests for module 'sigprocmask'.
14901         * modules/sigprocmask-tests: New file.
14902         * tests/test-sigprocmask.c: New file.
14903
14904 2011-07-07  Bruno Haible  <bruno@clisp.org>
14905
14906         float tests: Tweak.
14907         * tests/test-float.c (main): Tweak skip message.
14908
14909 2011-07-07  Eric Blake  <eblake@redhat.com>
14910
14911         getopt: avoid compiler warning during configure
14912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14913         assigning string literals to non-const pointer.
14914
14915         getopt-gnu: avoid crash in glibc getopt
14916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14917         * tests/test-getopt.h (test_getopt): Enhance test.
14918         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14919         * doc/posix-functions/getopt.texi (getopt): Document it.
14920         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14921         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14922         Likewise.
14923
14924 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14925
14926         getopt: handle W; without long options in getopt [BZ #12922]
14927         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14928         but no long options are defined, just return 'W'.
14929
14930 2011-07-07  Bruno Haible  <bruno@clisp.org>
14931
14932         Avoid literal tabs.
14933         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14934         variable containing a tab instead of a literal tab.
14935         Reported by Jim Meyering.
14936
14937 2011-07-07  Bruno Haible  <bruno@clisp.org>
14938
14939         Comments.
14940         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14941
14942 2011-07-06  Bruno Haible  <bruno@clisp.org>
14943
14944         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14945         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14946         <winsock2.h>.
14947         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14948         lib/sys_socket.in.h.
14949         (close, gethostname): Hide declarations from <winsock2.h>.
14950         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14951         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14952         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14953         (select): Don't override if gnulib's <sys/select.h> was already
14954         included.
14955         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14956         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14957         setsockopt, shutdown, select): Tweak indentation.
14958
14959 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14960
14961         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14962         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14963         in an application that does not use the sys_select module.
14964
14965 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14966
14967         poll: do not return 0 on timeout=-1
14968         * lib/poll.c: Loop with yield if no events occured
14969
14970 2011-07-06  Eric Blake  <eblake@redhat.com>
14971
14972         pthread_sigmask: always replace when not using pthread
14973         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14974         replacement when using some threading other than pthread.  Fix
14975         logic bug.
14976
14977 2011-07-06  Bruno Haible  <bruno@clisp.org>
14978
14979         Comments.
14980         * m4/printf.m4: Update comments about mingw.
14981
14982 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14983
14984         sys_select: define sigset_t more portably
14985         * lib/sys_select.in.h: Always include <sys/types.h>, since
14986         we now need sigset_t and mingw defines it there.
14987         Include <signal.h> before split inclusion guard, to avoid
14988         mishaps on Solaris, whose <signal.h> eventually includes us.
14989         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14990         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14991         which come from ...
14992         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14993         gl_CHECK_TYPE_SIGSET_T.
14994         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14995         does the real work.
14996         * modules/sys_select (Depends-on): Add 'signal'.
14997
14998         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14999         Suggested by Bruno Haible.
15000
15001         pselect: Use pthread_sigmask, not sigprocmask.
15002         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15003         multithreaded apps better than sigprocmask does.
15004         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15005         sigprocmask directly.
15006
15007 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15010         Don't #undef,  since we don't need any underlying pselect.
15011         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15012         (Depends-on): Add select.
15013         (Link): Add $(LIBSOCKET).
15014         These changes suggested by Bruno Haible.
15015
15016         pselect: document better
15017         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15018         * doc/posix-functions/pselect.texi (pselect): Document new module.
15019
15020         pthread_sigmask: new module
15021         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15022         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15023         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15024         This is done only as a macro; I don't know how well that'll
15025         work for C++.  Move <sys/types.h> include before the include_next,
15026         to avoid mishap on Solaris.
15027         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15028         * modules/signal (Makefile.am): Substitute the check's results.
15029         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15030
15031         test-pselect: new module
15032         * modules/pselect-tests, tests/test-pselect.c: New files.
15033         * tests/test-select.c, tests/test-sys_select-c++.cc:
15034         If TEST_PSELECT is defined, test pselect instead of testing select.
15035
15036         * tests/test-sys_select.c (sigset_t): Test for it, too.
15037         Suggested by Bruno Haible.
15038
15039 2011-07-05  Eric Blake  <eblake@redhat.com>
15040
15041         snprintf: guarantee %1$d, for libintl
15042         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15043         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15044         * doc/posix-functions/snprintf.texi (snprintf): Update.
15045         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15046         * tests/test-snprintf.c (main): Enhance test.
15047         * tests/test-vsnprintf.c (main): Likewise.
15048
15049 2011-07-05  Jim Meyering  <meyering@redhat.com>
15050
15051         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15052         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15053         per Bruno's request, to accommodate this idiom (no space after "#")
15054         even when the function is inside an #if block:
15055         char *
15056         gets (char *s)
15057         #undef gets
15058         {
15059           ...
15060         }
15061
15062 2011-07-04  Jim Meyering  <meyering@redhat.com>
15063
15064         maint: indent with spaces, not TABs, and add a rule to check this
15065         * tests/test-userspec.c: Indent with spaces, not TABs.
15066         * tests/test-argp.c: Likewise.
15067         * tests/test-c-stack2.sh: Likewise.
15068         * tests/test-parse-duration.sh: Likewise
15069         * m4/strtod.m4: Likewise.
15070         * m4/alloca.m4: Likewise.
15071         * m4/pselect.m4: Likewise.
15072         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15073
15074 2011-07-03  Jim Meyering  <meyering@redhat.com>
15075
15076         maint.mk: correct omissions in prohibit_argmatch_without_use check
15077         This rule would mistakenly report that argmatch.h is included without
15078         use even when both the argmatch and invalid_arg macro were used.
15079         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15080         of argmatch and invalid_arg.
15081
15082 2011-07-03  Bruno Haible  <bruno@clisp.org>
15083
15084         Comments about EINTR.
15085         * lib/safe-read.h: Explain the purpose of this module.
15086         * lib/safe-write.h: Likewise.
15087         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15088         module.
15089         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15090         module.
15091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15092
15093 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15094
15095         xnanosleep: Rewrite to use new dtotimespec module.
15096         It has the conversion code that used to be in xnanosleep.
15097         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15098         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15099         (TIME_T_MAX): Remove.
15100         (xnanosleep): Rewrite in terms of dtotimespec.
15101         * modules/xnanosleep (Depends-on): Add dtotimespec.
15102         Remove intprops, stdbool.
15103
15104         timespec-add, timespec-sub: new modules
15105         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15106         * lib/timespec-add.c, lib/timespec-sub.c:
15107         * modules/timespec-add, modules/timespec-sub: New files.
15108
15109         dtotimespec: new module
15110         * lib/timespec.h (dtotimespec): New decl.
15111         * lib/dtotimespec.c, modules/dtotimespec: New files.
15112
15113         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15114
15115         pselect: new module
15116         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15117         (pselect): New decls.
15118         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15119         since the standard pselect decl uses 'restrict'.
15120         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15121         HAVE_PSELECT, REPLACE_PSELECT.
15122         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15123         HAVE_PSELECT, REPLACE_PSELECT.
15124         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15125
15126         sys_select: don't depend on sys_socket
15127         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15129         This fix works on GNU and GNU-like platforms, but has not been tested
15130         on native Windows.
15131         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15133         gl_HEADER_SYS_SOCKET.
15134         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15135         gl_PREREQ_SYS_H_WINSOCK2.
15136
15137 2011-06-29  Eric Blake  <eblake@redhat.com>
15138
15139         pipe2: fix C89 compile problem
15140         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15141         Reported by Bruno Haible.
15142
15143         pipe, pipe2: don't corrupt fd on error
15144         * lib/pipe.c (pipe): Leave fd unchanged on error.
15145         * lib/pipe2.c (pipe2): Likewise.
15146         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15147         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15148
15149 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15150
15151         mmap-anon: do not use regular expressions inadvertently
15152         * m4/mmap-anon.m4: Remove trailing period from strings sought
15153         in the output.
15154
15155 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15156
15157         nanosleep: fix integer overflow problem
15158         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15159         arithmetic wraps around on overflow.
15160
15161         nanosleep: simplify carrying
15162         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15163         first call to the underyling nanosleep, not for the last one.
15164         This doesn't fix any bugs, but it simplifies the computation of
15165         the remaining delay.  Found while auditing integer overflow issues.
15166
15167         dup2: remove test for existence of fcntl
15168         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15169         "#if HAVE_FCNTL", in the configure-time test program.
15170         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15171         and therefore speeds up "configure" a bit.  Found while
15172         adding the dup2 module to Emacs.
15173
15174 2011-06-24  Eric Blake  <eblake@redhat.com>
15175
15176         maint.mk: enhance useless header checks
15177         * top/maint.mk (_sc_header_without_use): Check both include
15178         styles.
15179         (sc_prohibit_assert_without_use)
15180         (sc_prohibit_close_stream_without_use)
15181         (sc_prohibit_getopt_without_use)
15182         (sc_prohibit_quotearg_without_use)
15183         (sc_prohibit_quote_without_use)
15184         (sc_prohibit_long_options_without_use)
15185         (sc_prohibit_inttostr_without_use)
15186         (sc_prohibit_ignore_value_without_use)
15187         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15188         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15189         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15190         (sc_prohibit_hash_pjw_without_use)
15191         (sc_prohibit_safe_read_without_use)
15192         (sc_prohibit_argmatch_without_use)
15193         (sc_prohibit_canonicalize_without_use)
15194         (sc_prohibit_root_dev_ino_without_use)
15195         (sc_prohibit_openat_without_use)
15196         (sc_prohibit_c_ctype_without_use)
15197         (sc_prohibit_signal_without_use)
15198         (sc_prohibit_stdio--_without_use)
15199         (sc_prohibit_stdio-safer_without_use)
15200         (sc_prohibit_strings_without_use)
15201         (sc_prohibit_intprops_without_use)
15202         (sc_prohibit_stddef_without_use)
15203         (sc_prohibit_xfreopen_without_use): Update clients.
15204
15205 2011-06-24  Jim Meyering  <meyering@redhat.com>
15206
15207         syntax-check: keep one maint.mk rule in sync with its header
15208         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15209         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15210         I prefer to avoid temporary files here, so use <(...), but that
15211         is not supported by /bin/sh, so...
15212         (SHELL): Define to /bin/bash.
15213
15214 2011-06-24  Eric Blake  <eblake@redhat.com>
15215
15216         maint.mk: update sc_prohibit_intprops_without_use
15217         * top/maint.mk (_intprops_names): Match recent changes.
15218
15219 2011-06-24  Bruno Haible  <bruno@clisp.org>
15220
15221         strerror-override: No-op tweak.
15222         * lib/strerror-override.h (strerror_override): Reorder conditions,
15223         for consistency with lib/strerror-override.c.
15224
15225 2011-06-23  Eric Blake  <eblake@redhat.com>
15226
15227         maint.mk: test further PATH_MAX issues
15228         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15229         (sc_prohibit_path_max_allocation): ...and also test alloca.
15230         Suggested by Jim Meyering.
15231
15232 2011-06-22  Eric Blake  <eblake@redhat.com>
15233
15234         maint.mk: add syntax-check to avoid char[PATH_MAX]
15235         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15236
15237         stat: be robust to PATH_MAX definition
15238         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15239         * modules/stat (Depends-on): Add verify.
15240
15241         link: work around IRIX bug
15242         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15243         * lib/link.c (rpl_link): Work around it.
15244         * tests/test-link.h (test_link): Enhance test.
15245         * doc/posix-functions/link.texi (link): Document the bug.
15246
15247         getopt: silence clang warning
15248         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15249         dereference.
15250         Reported by Gustavo Martin Domato.
15251
15252 2011-06-22  Jim Meyering  <meyering@redhat.com>
15253
15254         bootstrap: do not insert a blank line into each .gitignore file
15255         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15256
15257 2011-06-21  Eric Blake  <eblake@redhat.com>
15258
15259         perror: test for output mismatch
15260         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15261         perror on IRIX.
15262
15263         strerror_r: fix OpenBSD behavior on out-of-range
15264         * lib/strerror_r.c (strerror_r): Always use maximal string.
15265         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15266
15267         strerror_r: fix OpenBSD behavior on 0
15268         * lib/strerror-override.c (strerror_override): Also override 0
15269         when needed.
15270         * lib/strerror-override.h (strerror_override): Likewise.
15271         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15272         earlier.
15273         * lib/strerror_r.c (strerror_r): Likewise.
15274         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15275         behavior...
15276         (gl_FUNC_STRERROR_0): ...into new macro.
15277         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15278         is overridden.
15279         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15280         * modules/strerror-override (Files): Add strerror.m4.
15281         (configure.ac): Also provide override for 0 when needed.
15282         * doc/posix-functions/strerror.texi (strerror): Document this.
15283         * doc/posix-functions/perror.texi (perror): Likewise.
15284
15285         perror: adjust array size
15286         * modules/perror (Depends-on): Add strerror-override.
15287         * lib/perror.c (perror): Use it to avoid magic number.
15288
15289         strerror-override: reduce size
15290         * lib/strerror-override.c (strerror_override): Use fewer lines.
15291
15292 2011-06-20  Bruno Haible  <bruno@clisp.org>
15293
15294         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15295         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15296
15297 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         alloca: port to compilers that can optimize like GCC 4.6.0
15300         * lib/alloca.c (find_stack_direction): New signature, taken from
15301         Autoconf git.  This works with GCC 4.6.0.  This code should never
15302         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15303         be used with other compilers that optimize as well as GCC 4.6.0 does.
15304         (alloca): Adjust to new signature.
15305         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15306         New macro, which patches Autoconf in a similar way.
15307
15308         c-stack: stop worrying about stack direction
15309         * lib/c-stack.c (find_stack_direction): Remove.
15310         (segv_handler): Don't worry about stack direction growth, as it's
15311         too much of a pain to configure this correctly, given how compilers
15312         are optimizing-away our stack-growth detection code.  Instead, assume
15313         that any access to just before or just after the stack is OK.
15314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15315         Don't require AC_FUNC_ALLOCA; no longer needed.
15316
15317 2011-06-20  Eric Blake  <eblake@redhat.com>
15318
15319         test-stat: don't allocate PATH_MAX bytes
15320         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15321         PATH_MAX-sized buffer.
15322         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15323         * modules/stat-tests (Depends-on): Likewise.
15324         * tests/test-fstatat.c (includes): Drop pathmax.h.
15325         * tests/test-stat.c (includes): Likewise.
15326         Reported by Bruno Haible.
15327
15328 2011-06-20  Bruno Haible  <bruno@clisp.org>
15329
15330         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15331         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15332         * lib/float.c: New file.
15333         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15334         REPLACE_FLOAT_LDBL.
15335         * modules/float (Files): Add lib/float.c.
15336         (configure.ac): Invoke AC_LIBOBJ.
15337         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15338
15339 2011-06-20  Bruno Haible  <bruno@clisp.org>
15340
15341         Tests for module 'float'.
15342         * modules/float-tests: New file.
15343         * tests/test-float.c: New file.
15344
15345 2011-06-19  Bruno Haible  <bruno@clisp.org>
15346
15347         isinf: Coding style.
15348         * lib/isinf.c: Use GNU coding style.
15349
15350 2011-06-19  Bruno Haible  <bruno@clisp.org>
15351
15352         linkat test: Avoid test failure on AIX 7.1.
15353         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15354         * tests/test-link.h (test_link): Likewise.
15355
15356 2011-06-19  Bruno Haible  <bruno@clisp.org>
15357
15358         pread test: Avoid test failure on OpenBSD 4.9.
15359         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15360
15361 2011-06-19  Bruno Haible  <bruno@clisp.org>
15362
15363         sprintf-posix: Fix test failure on AIX 7.1.
15364         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15365         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15366         on AIX.
15367         * doc/posix-functions/fprintf.texi: Likewise.
15368         * doc/posix-functions/printf.texi: Likewise.
15369         * doc/posix-functions/snprintf.texi: Likewise.
15370         * doc/posix-functions/sprintf.texi: Likewise.
15371         * doc/posix-functions/vdprintf.texi: Likewise.
15372         * doc/posix-functions/vfprintf.texi: Likewise.
15373         * doc/posix-functions/vprintf.texi: Likewise.
15374         * doc/posix-functions/vsnprintf.texi: Likewise.
15375         * doc/posix-functions/vsprintf.texi: Likewise.
15376
15377 2011-06-19  Bruno Haible  <bruno@clisp.org>
15378
15379         roundl-ieee: Fix test failure on AIX 7.1.
15380         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15381         * doc/posix-functions/roundl.texi: Mention problem with negative
15382         arguments.
15383
15384 2011-06-19  Bruno Haible  <bruno@clisp.org>
15385
15386         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15387         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15388         * doc/posix-functions/round.texi: Mention problem with negative
15389         arguments.
15390         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15391
15392 2011-06-19  Bruno Haible  <bruno@clisp.org>
15393
15394         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15396         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15397         * doc/posix-functions/roundf.texi: Mention problem with negative
15398         arguments.
15399         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15400
15401 2011-06-19  Bruno Haible  <bruno@clisp.org>
15402
15403         ceilf-ieee: Work around bug on MacOS X 10.5.
15404         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15405
15406         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15407         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15408         IEEE compliant, avoid compiler optimizations.
15409         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15410         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15411         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15412         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15413         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15414         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15416         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15417         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15419
15420 2011-06-19  Bruno Haible  <bruno@clisp.org>
15421
15422         ceilf-ieee: Work around bug on AIX 7.1.
15423         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15424         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15425
15426 2011-06-19  Bruno Haible  <bruno@clisp.org>
15427
15428         ceil-ieee: Work around bug on AIX 7.1.
15429         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15430         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15431
15432 2011-06-18  Bruno Haible  <bruno@clisp.org>
15433
15434         fsync test: Avoid test failure on MacOS X and AIX.
15435         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15436         EINVAL.
15437
15438 2011-06-18  Bruno Haible  <bruno@clisp.org>
15439
15440         openat, fdopendir tests: Fix link errors.
15441         * modules/openat-tests (Depends-on): Add progname.
15442         * modules/fdopendir-tests (Depends-on): Likewise.
15443         * tests/test-fchownat.c: Include progname.h.
15444         (main): Call set_program_name.
15445         * tests/test-fstatat.c: Include progname.h.
15446         (main): Call set_program_name.
15447         * tests/test-mkdirat.c: Include progname.h.
15448         (main): Call set_program_name.
15449         * tests/test-openat.c: Include progname.h.
15450         (main): Call set_program_name.
15451         * tests/test-unlinkat.c: Include progname.h.
15452         (main): Call set_program_name.
15453         * tests/test-fdopendir.c: Include progname.h.
15454         (main): Call set_program_name.
15455
15456 2011-06-18  Bruno Haible  <bruno@clisp.org>
15457
15458         Doc update.
15459         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15460         HP-UX.
15461         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15462
15463 2011-06-18  Bruno Haible  <bruno@clisp.org>
15464
15465         getcwd tests: Avoid compilation error on HP-UX 11.31.
15466         * modules/getcwd-tests (Depends-on): Add pathmax.
15467         * tests/test-getcwd.c: Include pathmax.h.
15468
15469 2011-06-18  Bruno Haible  <bruno@clisp.org>
15470
15471         isfinite, isinf: Fix link error on AIX 6 and 7.
15472         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15473         needed, also test the macro with a 'float' argument.
15474         * m4/isinf.m4 (gl_ISINF): Likewise.
15475
15476 2011-06-18  Bruno Haible  <bruno@clisp.org>
15477
15478         getloadavg: Don't clobber LIBS. Regression from previous commit.
15479         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15480         AC_CHECK_LIB from here...
15481         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15482         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15483         gl_func_getloadavg_done.
15484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15485
15486 2011-06-18  Bruno Haible  <bruno@clisp.org>
15487
15488         clean-temp: Improve documentation.
15489         * lib/clean-temp.h: Explain better how to use this module.
15490         Reported by John Darrington <john@darrington.wattle.id.au>.
15491
15492 2011-06-17  Bruno Haible  <bruno@clisp.org>
15493
15494         pread, pwrite: Avoid cc warning on AIX.
15495         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15496         (pwrite): Likewise.
15497
15498 2011-06-17  Bruno Haible  <bruno@clisp.org>
15499
15500         spawn-pipe tests: Fix link error.
15501         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15503
15504 2011-06-17  Bruno Haible  <bruno@clisp.org>
15505
15506         Tests: Remove unnecessary dependency.
15507         * modules/canonicalize-tests (Depends-on): Remove progname.
15508         * modules/chown-tests (Depends-on): Likewise.
15509         * modules/dirname-tests (Depends-on): Likewise.
15510         * modules/fdopendir-tests (Depends-on): Likewise.
15511         * modules/fdutimensat-tests (Depends-on): Likewise.
15512         * modules/hash-tests (Depends-on): Likewise.
15513         * modules/lchown-tests (Depends-on): Likewise.
15514         * modules/linkat-tests (Depends-on): Likewise.
15515         * modules/renameat-tests (Depends-on): Likewise.
15516         * modules/spawn-pipe-tests (Depends-on): Likewise.
15517         * modules/utimensat-tests (Depends-on): Likewise.
15518
15519 2011-06-17  Bruno Haible  <bruno@clisp.org>
15520
15521         spawn-pipe tests: Fix link error.
15522         * tests/test-spawn-pipe-child.c: Undefine fflush.
15523
15524 2011-06-17  Bruno Haible  <bruno@clisp.org>
15525
15526         Fix tests link errors.
15527         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15528         * modules/chown-tests (Makefile.am): Don't link test-chown with
15529         LIBINTL.
15530         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15531         LIBINTL.
15532         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15533         LIBINTL.
15534         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15535         LIBINTL.
15536
15537 2011-06-16  Bruno Haible  <bruno@clisp.org>
15538
15539         crypto/gc-sha1: Fix recent regression.
15540         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15541         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15542
15543         crypto/gc-md5: Fix recent regression.
15544         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15545
15546         crypto/gc-md4: Fix recent regression.
15547         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15548         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15549
15550         crypto/gc-arctwo: Fix recent regression.
15551         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15552         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15553
15554         crypto/gc-rijndael: Fix recent regression.
15555         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15556         (configure.ac): Invoke AC_LIBOBJ here.
15557         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15559
15560         crypto/gc-hmac-sha1: Fix recent regression.
15561         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15562         (configure.ac): Invoke AC_LIBOBJ here.
15563         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15565
15566         crypto/gc-hmac-md5: Fix recent regression.
15567         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15568         (configure.ac): Invoke AC_LIBOBJ here.
15569         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15571
15572         crypto/gc-des: Fix recent regression.
15573         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15574         (configure.ac): Invoke AC_LIBOBJ here.
15575         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15577
15578         crypto/gc-arcfour: Fix recent regression.
15579         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15580         (configure.ac): Invoke AC_LIBOBJ here.
15581         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15583
15584 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15585
15586         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15587         After the 2011-05-21 change, this macro requires
15588         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15589         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15590
15591 2011-06-16  Bruno Haible  <bruno@clisp.org>
15592
15593         fprintftime: Move AC_LIBOBJ invocations to module description.
15594         * m4/fprintftime.m4: Remove file.
15595         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15596         (configure.ac): Remove gl_FPRINTFTIME call.
15597         (Makefile.am): Augment lib_SOURCES.
15598         Reported by Jim Meyering.
15599
15600 2011-06-16  Bruno Haible  <bruno@clisp.org>
15601
15602         tmpfile-safer: Finish 2011-05-23 commit.
15603         * m4/stdio-safer.m4: Really remove file.
15604         Reported by Jim Meyering.
15605
15606 2011-06-16  Bruno Haible  <bruno@clisp.org>
15607
15608         syntax-check: Fix typo.
15609         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15610         printf-posix.m4.
15611         Reported by Jim Meyering.
15612
15613 2011-06-13  Jim Meyering  <meyering@redhat.com>
15614
15615         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15616         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15617
15618 2011-05-23  Bruno Haible  <bruno@clisp.org>
15619
15620         yesno: Move AC_LIBOBJ invocations to module description.
15621         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15622         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15623
15624 2011-05-23  Bruno Haible  <bruno@clisp.org>
15625
15626         xstrtol: Move AC_LIBOBJ invocations to module description.
15627         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15628         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15629
15630 2011-05-23  Bruno Haible  <bruno@clisp.org>
15631
15632         xstrtold: Move AC_LIBOBJ invocations to module description.
15633         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15634         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15635
15636 2011-05-23  Bruno Haible  <bruno@clisp.org>
15637
15638         xstrtod: Move AC_LIBOBJ invocations to module description.
15639         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15640         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15641
15642 2011-05-23  Bruno Haible  <bruno@clisp.org>
15643
15644         xnanosleep: Move AC_LIBOBJ invocations to module description.
15645         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15646         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15647
15648 2011-05-23  Bruno Haible  <bruno@clisp.org>
15649
15650         xgetcwd: Move AC_LIBOBJ invocations to module description.
15651         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15652         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15653
15654 2011-05-23  Bruno Haible  <bruno@clisp.org>
15655
15656         xalloc: Move AC_LIBOBJ invocations to module description.
15657         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15658         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15659
15660 2011-05-23  Bruno Haible  <bruno@clisp.org>
15661
15662         write-any-file: Move AC_LIBOBJ invocations to module description.
15663         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15664         invocation.
15665         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15666
15667 2011-05-23  Bruno Haible  <bruno@clisp.org>
15668
15669         utimens: Move AC_LIBOBJ invocations to module description.
15670         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15671         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15672
15673 2011-05-23  Bruno Haible  <bruno@clisp.org>
15674
15675         utimecmp: Move AC_LIBOBJ invocations to module description.
15676         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15677         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15678
15679 2011-05-23  Bruno Haible  <bruno@clisp.org>
15680
15681         userspec: Move AC_LIBOBJ invocations to module description.
15682         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15683         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15684
15685 2011-05-23  Bruno Haible  <bruno@clisp.org>
15686
15687         unlinkdir: Move AC_LIBOBJ invocations to module description.
15688         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15689         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15690
15691 2011-05-23  Bruno Haible  <bruno@clisp.org>
15692
15693         unistd-safer: Move AC_LIBOBJ invocations to module description.
15694         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15695         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15696
15697 2011-05-23  Bruno Haible  <bruno@clisp.org>
15698
15699         tempname: Move AC_LIBOBJ invocations to module description.
15700         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15701         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15702
15703 2011-05-23  Bruno Haible  <bruno@clisp.org>
15704
15705         strftime: Move AC_LIBOBJ invocations to module description.
15706         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15707         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15708
15709 2011-05-23  Bruno Haible  <bruno@clisp.org>
15710
15711         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15712         * m4/stdlib-safer.m4: Remove file.
15713         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15714         (configure.ac): Remove gl_STDLIB_SAFER call.
15715         (Makefile.am): Augment lib_SOURCES.
15716
15717 2011-05-23  Bruno Haible  <bruno@clisp.org>
15718
15719         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15720         * m4/stdio-safer.m4: Remove file.
15721         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15722         (configure.ac): Remove gl_TMPFILE_SAFER call.
15723         (Makefile.am): Augment lib_SOURCES.
15724
15725 2011-05-23  Bruno Haible  <bruno@clisp.org>
15726
15727         popen-safer: Move AC_LIBOBJ invocations to module description.
15728         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15729         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15730         (configure.ac): Remove gl_POPEN_SAFER call.
15731         (Makefile.am): Augment lib_SOURCES.
15732
15733 2011-05-23  Bruno Haible  <bruno@clisp.org>
15734
15735         freopen-safer: Move AC_LIBOBJ invocations to module description.
15736         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15737         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15738         (configure.ac): Remove gl_FREOPEN_SAFER call.
15739         (Makefile.am): Augment lib_SOURCES.
15740
15741 2011-05-23  Bruno Haible  <bruno@clisp.org>
15742
15743         fopen-safer: Move AC_LIBOBJ invocations to module description.
15744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15745         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15746         (configure.ac): Remove gl_FOPEN_SAFER call.
15747         (Makefile.am): Augment lib_SOURCES.
15748
15749 2011-05-23  Bruno Haible  <bruno@clisp.org>
15750
15751         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15752         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15753         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15754
15755 2011-05-23  Bruno Haible  <bruno@clisp.org>
15756
15757         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15758         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15759         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15760
15761 2011-05-23  Bruno Haible  <bruno@clisp.org>
15762
15763         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15764         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15765         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15766
15767 2011-05-23  Bruno Haible  <bruno@clisp.org>
15768
15769         settime: Move AC_LIBOBJ invocations to module description.
15770         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15771         * modules/settime (Makefile.am): Augment lib_SOURCES.
15772
15773 2011-05-23  Bruno Haible  <bruno@clisp.org>
15774
15775         savedir: Move AC_LIBOBJ invocations to module description.
15776         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15777         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15778
15779 2011-05-23  Bruno Haible  <bruno@clisp.org>
15780
15781         save-cwd: Move AC_LIBOBJ invocations to module description.
15782         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15783         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15784
15785 2011-05-23  Bruno Haible  <bruno@clisp.org>
15786
15787         same: Move AC_LIBOBJ invocations to module description.
15788         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15789         * modules/same (Makefile.am): Augment lib_SOURCES.
15790
15791 2011-05-23  Bruno Haible  <bruno@clisp.org>
15792
15793         safe-write: Move AC_LIBOBJ invocations to module description.
15794         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15795         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15796         instead of gl_SAFE_WRITE.
15797         (Makefile.am): Augment lib_SOURCES.
15798
15799 2011-05-23  Bruno Haible  <bruno@clisp.org>
15800
15801         safe-read: Move AC_LIBOBJ invocations to module description.
15802         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15803         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15804         of gl_SAFE_READ.
15805         (Makefile.am): Augment lib_SOURCES.
15806
15807 2011-05-23  Bruno Haible  <bruno@clisp.org>
15808
15809         safe-alloc: Move AC_LIBOBJ invocations to module description.
15810         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15811         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15812
15813 2011-05-23  Bruno Haible  <bruno@clisp.org>
15814
15815         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15816         * m4/rijndael.m4: Remove file.
15817         * modules/crypto/rijndael (Files): Remove it.
15818         (configure.ac): Remove gl_RIJNDAEL call.
15819         (Makefile.am): Augment lib_SOURCES.
15820
15821 2011-05-23  Bruno Haible  <bruno@clisp.org>
15822
15823         readtokens: Move AC_LIBOBJ invocations to module description.
15824         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15825         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15826
15827 2011-05-23  Bruno Haible  <bruno@clisp.org>
15828
15829         read-file: Move AC_LIBOBJ invocations to module description.
15830         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15831         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15832         of gl_FUNC_READ_FILE.
15833         (Makefile.am): Augment lib_SOURCES.
15834
15835 2011-05-23  Bruno Haible  <bruno@clisp.org>
15836
15837         quotearg: Move AC_LIBOBJ invocations to module description.
15838         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15839         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15840
15841 2011-05-23  Bruno Haible  <bruno@clisp.org>
15842
15843         quote: Move AC_LIBOBJ invocations to module description.
15844         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15845         * modules/quote (Makefile.am): Augment lib_SOURCES.
15846
15847 2011-05-23  Bruno Haible  <bruno@clisp.org>
15848
15849         posixver: Move AC_LIBOBJ invocations to module description.
15850         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15851         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15852
15853 2011-05-23  Bruno Haible  <bruno@clisp.org>
15854
15855         posixtm: Move AC_LIBOBJ invocations to module description.
15856         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15857         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15858
15859 2011-05-23  Bruno Haible  <bruno@clisp.org>
15860
15861         physmem: Move AC_LIBOBJ invocations to module description.
15862         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15863         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15864
15865 2011-05-23  Bruno Haible  <bruno@clisp.org>
15866
15867         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15868         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15869         invocation.
15870         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15871
15872 2011-05-23  Bruno Haible  <bruno@clisp.org>
15873
15874         mpsort: Move AC_LIBOBJ invocations to module description.
15875         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15876         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15877
15878 2011-05-23  Bruno Haible  <bruno@clisp.org>
15879
15880         modechange: Move AC_LIBOBJ invocations to module description.
15881         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15882         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15883
15884 2011-05-23  Bruno Haible  <bruno@clisp.org>
15885
15886         mkdir-p: Move AC_LIBOBJ invocations to module description.
15887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15888         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15889
15890 2011-05-23  Bruno Haible  <bruno@clisp.org>
15891
15892         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15893         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15894         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15895
15896 2011-05-23  Bruno Haible  <bruno@clisp.org>
15897
15898         mgetgroups: Move AC_LIBOBJ invocations to module description.
15899         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15900         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15901
15902 2011-05-23  Bruno Haible  <bruno@clisp.org>
15903
15904         memxor: Move AC_LIBOBJ invocations to module description.
15905         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15906         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15907
15908 2011-05-23  Bruno Haible  <bruno@clisp.org>
15909
15910         memcoll: Move AC_LIBOBJ invocations to module description.
15911         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15912         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15913
15914 2011-05-23  Bruno Haible  <bruno@clisp.org>
15915
15916         memcasecmp: Move AC_LIBOBJ invocations to module description.
15917         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15918         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15919
15920 2011-05-23  Bruno Haible  <bruno@clisp.org>
15921
15922         crypto/md5: Move AC_LIBOBJ invocations to module description.
15923         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15924         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15925
15926 2011-05-23  Bruno Haible  <bruno@clisp.org>
15927
15928         crypto/md4: Move AC_LIBOBJ invocations to module description.
15929         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15930         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15931
15932 2011-05-23  Bruno Haible  <bruno@clisp.org>
15933
15934         crypto/md2: Move AC_LIBOBJ invocations to module description.
15935         * m4/md2.m4: Remove file.
15936         * modules/crypto/md2 (Files): Remove it.
15937         (configure.ac): Remove gl_MD2 call.
15938         (Makefile.am): Augment lib_SOURCES.
15939
15940 2011-05-23  Bruno Haible  <bruno@clisp.org>
15941
15942         long-options: Move AC_LIBOBJ invocations to module description.
15943         * m4/long-options.m4: Remove file.
15944         * modules/long-options (Files): Remove it.
15945         (configure.ac): Remove gl_LONG_OPTIONS call.
15946         (Makefile.am): Augment lib_SOURCES.
15947
15948 2011-05-23  Bruno Haible  <bruno@clisp.org>
15949
15950         i-ring: Move AC_LIBOBJ invocations to module description.
15951         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15952         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15953
15954 2011-05-23  Bruno Haible  <bruno@clisp.org>
15955
15956         idcache: Move AC_LIBOBJ invocations to module description.
15957         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15958         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15959
15960 2011-05-23  Bruno Haible  <bruno@clisp.org>
15961
15962         human: Move AC_LIBOBJ invocations to module description.
15963         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15964         * modules/human (Makefile.am): Augment lib_SOURCES.
15965
15966 2011-05-23  Bruno Haible  <bruno@clisp.org>
15967
15968         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15969         * m4/hmac-sha1.m4: Remove file.
15970         * modules/crypto/hmac-sha1 (Files): Remove it.
15971         (configure.ac): Remove gl_HMAC_SHA1 call.
15972         (Makefile.am): Augment lib_SOURCES.
15973
15974 2011-05-23  Bruno Haible  <bruno@clisp.org>
15975
15976         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15977         * m4/hmac-md5.m4: Remove file.
15978         * modules/crypto/hmac-md5 (Files): Remove it.
15979         (configure.ac): Remove gl_HMAC_MD5 call.
15980         (Makefile.am): Augment lib_SOURCES.
15981
15982 2011-05-23  Bruno Haible  <bruno@clisp.org>
15983
15984         hash: Move AC_LIBOBJ invocations to module description.
15985         * m4/hash.m4: Remove file.
15986         * modules/hash (Files): Remove it.
15987         (configure.ac): Remove gl_HASH call.
15988         (Makefile.am): Augment lib_SOURCES.
15989
15990 2011-05-23  Bruno Haible  <bruno@clisp.org>
15991
15992         hard-locale: Move AC_LIBOBJ invocations to module description.
15993         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15994         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15995
15996 2011-05-23  Bruno Haible  <bruno@clisp.org>
15997
15998         getugroups: Move AC_LIBOBJ invocations to module description.
15999         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16000         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16001
16002 2011-05-23  Bruno Haible  <bruno@clisp.org>
16003
16004         gettime: Move AC_LIBOBJ invocations to module description.
16005         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16006         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16007
16008 2011-05-23  Bruno Haible  <bruno@clisp.org>
16009
16010         getndelim2: Move AC_LIBOBJ invocations to module description.
16011         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16012         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16013
16014 2011-05-23  Bruno Haible  <bruno@clisp.org>
16015
16016         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16017         * m4/gc-pbkdf2-sha1.m4: Remove file.
16018         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16019         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16020         (Makefile.am): Augment lib_SOURCES.
16021
16022 2011-05-23  Bruno Haible  <bruno@clisp.org>
16023
16024         fts: Move AC_LIBOBJ invocations to module description.
16025         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16026         * modules/fts (configure.ac): ... to here.
16027
16028 2011-05-23  Bruno Haible  <bruno@clisp.org>
16029
16030         file-type: Move AC_LIBOBJ invocations to module description.
16031         * m4/file-type.m4: Remove file.
16032         * modules/file-type (Files): Remove it.
16033         (configure.ac): Remove gl_FILE_TYPE call.
16034         (Makefile.am): Augment lib_SOURCES.
16035
16036 2011-05-23  Bruno Haible  <bruno@clisp.org>
16037
16038         filenamecat*: Respect rules for use of AC_LIBOBJ.
16039         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16040         Remove AC_LIBOBJ invocation.
16041         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16042         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16043
16044 2011-05-23  Bruno Haible  <bruno@clisp.org>
16045
16046         filemode: Move AC_LIBOBJ invocations to module description.
16047         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16048         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16049
16050 2011-05-23  Bruno Haible  <bruno@clisp.org>
16051
16052         openat-safer: Move AC_LIBOBJ invocations to module description.
16053         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16054         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16055
16056 2011-05-23  Bruno Haible  <bruno@clisp.org>
16057
16058         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16059         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16060         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16061
16062 2011-05-23  Bruno Haible  <bruno@clisp.org>
16063
16064         exclude: Move AC_LIBOBJ invocations to module description.
16065         * m4/exclude.m4: Remove file.
16066         * modules/exclude (Files): Remove it.
16067         (configure.ac): Remove gl_EXCLUDE call.
16068         (Makefile.am): Augment lib_SOURCES.
16069
16070 2011-05-23  Bruno Haible  <bruno@clisp.org>
16071
16072         dirname*: Respect rules for use of AC_LIBOBJ.
16073         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16074         invocations.
16075         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16076         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16077
16078 2011-05-23  Bruno Haible  <bruno@clisp.org>
16079
16080         dirent-safer: Move AC_LIBOBJ invocations to module description.
16081         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16082         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16083
16084 2011-05-23  Bruno Haible  <bruno@clisp.org>
16085
16086         crypto/des: Move AC_LIBOBJ invocations to module description.
16087         * m4/des.m4: Remove file.
16088         * modules/crypto/des (Files): Remove it.
16089         (configure.ac): Remove gl_DES call.
16090         (Makefile.am): Augment lib_SOURCES.
16091
16092 2011-05-23  Bruno Haible  <bruno@clisp.org>
16093
16094         cycle-check: Move AC_LIBOBJ invocations to module description.
16095         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16096         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16097
16098 2011-05-23  Bruno Haible  <bruno@clisp.org>
16099
16100         c-strtold: Move AC_LIBOBJ invocations to module description.
16101         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16102         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16103
16104 2011-05-23  Bruno Haible  <bruno@clisp.org>
16105
16106         c-strtod: Move AC_LIBOBJ invocations to module description.
16107         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16108         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16109
16110 2011-05-23  Bruno Haible  <bruno@clisp.org>
16111
16112         crc: Move AC_LIBOBJ invocations to module description.
16113         * m4/crc.m4: Remove file.
16114         * modules/crc (Files): Remove it.
16115         (configure.ac): Remove gl_CRC call.
16116         (Makefile.am): Augment lib_SOURCES.
16117
16118 2011-05-23  Bruno Haible  <bruno@clisp.org>
16119
16120         close-stream: Move AC_LIBOBJ invocations to module description.
16121         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16122         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16123
16124 2011-05-23  Bruno Haible  <bruno@clisp.org>
16125
16126         closeout: Move AC_LIBOBJ invocations to module description.
16127         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16128         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16129
16130 2011-05-23  Bruno Haible  <bruno@clisp.org>
16131
16132         closein: Move AC_LIBOBJ invocations to module description.
16133         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16134         * modules/closein (Makefile.am): Augment lib_SOURCES.
16135
16136 2011-05-23  Bruno Haible  <bruno@clisp.org>
16137
16138         cloexec: Move AC_LIBOBJ invocations to module description.
16139         * m4/cloexec.m4: Remove file.
16140         * modules/cloexec (Files): Remove it.
16141         (configure.ac): Remove gl_CLOEXEC call.
16142         (Makefile.am): Augment lib_SOURCES.
16143
16144 2011-05-23  Bruno Haible  <bruno@clisp.org>
16145
16146         check-version: Move AC_LIBOBJ invocations to module description.
16147         * m4/check-version.m4: Remove file.
16148         * modules/check-version (Files): Remove it.
16149         (configure.ac): Remove gl_CHECK_VERSION call.
16150         (Makefile.am): Augment lib_SOURCES.
16151
16152 2011-05-23  Bruno Haible  <bruno@clisp.org>
16153
16154         chdir-safer: Move AC_LIBOBJ invocations to module description.
16155         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16156         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16157
16158 2011-05-23  Bruno Haible  <bruno@clisp.org>
16159
16160         canonicalize: Move AC_LIBOBJ invocations to module description.
16161         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16162         AC_LIBOBJ invocation.
16163         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16164
16165 2011-05-23  Bruno Haible  <bruno@clisp.org>
16166
16167         canon-host: Move AC_LIBOBJ invocations to module description.
16168         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16169         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16170         instead of gl_CANON_HOST.
16171         (Makefile.am): Augment lib_SOURCES.
16172
16173 2011-05-23  Bruno Haible  <bruno@clisp.org>
16174
16175         backupfile: Move AC_LIBOBJ invocations to module description.
16176         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16177         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16178
16179 2011-05-23  Bruno Haible  <bruno@clisp.org>
16180
16181         argmatch: Move AC_LIBOBJ invocations to module description.
16182         * m4/argmatch.m4: Remove file.
16183         * modules/argmatch (Files): Remove it.
16184         (configure.ac): Remove gl_ARGMATCH call.
16185         (Makefile.am): Augment lib_SOURCES.
16186
16187 2011-05-23  Bruno Haible  <bruno@clisp.org>
16188
16189         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16190         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16191         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16192
16193 2011-05-23  Bruno Haible  <bruno@clisp.org>
16194
16195         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16196         * m4/arcfour.m4: Remove file.
16197         * modules/crypto/arcfour (Files): Remove it.
16198         (configure.ac): Remove gl_ARCFOUR call.
16199         (Makefile.am): Augment lib_SOURCES.
16200
16201 2011-05-22  Bruno Haible  <bruno@clisp.org>
16202
16203         write: Move AC_LIBOBJ invocations to module description.
16204         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16205         * modules/write (configure.ac): ... to here.
16206
16207 2011-05-22  Bruno Haible  <bruno@clisp.org>
16208
16209         wmemset: Move AC_LIBOBJ invocations to module description.
16210         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16211         here...
16212         * modules/wmemset (configure.ac): ... to here.
16213
16214 2011-05-22  Bruno Haible  <bruno@clisp.org>
16215
16216         wmemmove: Move AC_LIBOBJ invocations to module description.
16217         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16218         here...
16219         * modules/wmemmove (configure.ac): ... to here.
16220
16221 2011-05-22  Bruno Haible  <bruno@clisp.org>
16222
16223         wmemcpy: Move AC_LIBOBJ invocations to module description.
16224         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16225         here...
16226         * modules/wmemcpy (configure.ac): ... to here.
16227
16228 2011-05-22  Bruno Haible  <bruno@clisp.org>
16229
16230         wmemcmp: Move AC_LIBOBJ invocations to module description.
16231         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16232         here...
16233         * modules/wmemcmp (configure.ac): ... to here.
16234
16235 2011-05-22  Bruno Haible  <bruno@clisp.org>
16236
16237         wmemchr: Move AC_LIBOBJ invocations to module description.
16238         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16239         here...
16240         * modules/wmemchr (configure.ac): ... to here.
16241
16242 2011-05-22  Bruno Haible  <bruno@clisp.org>
16243
16244         wcswidth: Move AC_LIBOBJ invocations to module description.
16245         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16246         here...
16247         * modules/wcswidth (configure.ac): ... to here.
16248
16249 2011-05-22  Bruno Haible  <bruno@clisp.org>
16250
16251         wcwidth: Respect rules for use of AC_LIBOBJ.
16252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16253         invocation from here...
16254         * modules/wcwidth (configure.ac): ... to here.
16255         (Depends-on): Update conditions.
16256
16257 2011-05-22  Bruno Haible  <bruno@clisp.org>
16258
16259         wctype: Move AC_LIBOBJ invocations to module description.
16260         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16261         invocation from here...
16262         * modules/wctype (configure.ac): ... to here.
16263         (Depends-on): Update conditions.
16264
16265 2011-05-22  Bruno Haible  <bruno@clisp.org>
16266
16267         wctrans: Move AC_LIBOBJ invocations to module description.
16268         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16269         invocation from here...
16270         * modules/wctrans (configure.ac): ... to here.
16271
16272 2011-05-22  Bruno Haible  <bruno@clisp.org>
16273
16274         wctomb: Move AC_LIBOBJ invocations to module description.
16275         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16276         invocations from here...
16277         * modules/wctomb (configure.ac): ... to here.
16278
16279 2011-05-22  Bruno Haible  <bruno@clisp.org>
16280
16281         wctob: Move AC_LIBOBJ invocations to module description.
16282         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16283         gl_PREREQ_WCTOB invocations from here...
16284         * modules/wctob (configure.ac): ... to here.
16285         (Depends-on): Update conditions.
16286
16287 2011-05-22  Bruno Haible  <bruno@clisp.org>
16288
16289         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16290         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16291         here...
16292         * modules/wcsxfrm (configure.ac): ... to here.
16293
16294 2011-05-22  Bruno Haible  <bruno@clisp.org>
16295
16296         wcstok: Move AC_LIBOBJ invocations to module description.
16297         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16298         * modules/wcstok (configure.ac): ... to here.
16299
16300 2011-05-22  Bruno Haible  <bruno@clisp.org>
16301
16302         wcsstr: Move AC_LIBOBJ invocations to module description.
16303         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16304         * modules/wcsstr (configure.ac): ... to here.
16305
16306 2011-05-22  Bruno Haible  <bruno@clisp.org>
16307
16308         wcsspn: Move AC_LIBOBJ invocations to module description.
16309         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16310         * modules/wcsspn (configure.ac): ... to here.
16311
16312 2011-05-22  Bruno Haible  <bruno@clisp.org>
16313
16314         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16315         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16316         gl_PREREQ_WCSRTOMBS invocations from here...
16317         * modules/wcsrtombs (configure.ac): ... to here.
16318
16319 2011-05-22  Bruno Haible  <bruno@clisp.org>
16320
16321         wcsrchr: Move AC_LIBOBJ invocations to module description.
16322         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16323         here...
16324         * modules/wcsrchr (configure.ac): ... to here.
16325
16326 2011-05-22  Bruno Haible  <bruno@clisp.org>
16327
16328         wcspbrk: Move AC_LIBOBJ invocations to module description.
16329         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16330         here...
16331         * modules/wcspbrk (configure.ac): ... to here.
16332
16333 2011-05-22  Bruno Haible  <bruno@clisp.org>
16334
16335         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16336         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16337         gl_PREREQ_WCSNRTOMBS invocations from here...
16338         * modules/wcsnrtombs (configure.ac): ... to here.
16339
16340 2011-05-22  Bruno Haible  <bruno@clisp.org>
16341
16342         wcsnlen: Move AC_LIBOBJ invocations to module description.
16343         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16344         here...
16345         * modules/wcsnlen (configure.ac): ... to here.
16346
16347 2011-05-22  Bruno Haible  <bruno@clisp.org>
16348
16349         wcsncpy: Move AC_LIBOBJ invocations to module description.
16350         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16351         here...
16352         * modules/wcsncpy (configure.ac): ... to here.
16353
16354 2011-05-22  Bruno Haible  <bruno@clisp.org>
16355
16356         wcsncmp: Move AC_LIBOBJ invocations to module description.
16357         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16358         here...
16359         * modules/wcsncmp (configure.ac): ... to here.
16360
16361 2011-05-22  Bruno Haible  <bruno@clisp.org>
16362
16363         wcsncat: Move AC_LIBOBJ invocations to module description.
16364         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16365         here...
16366         * modules/wcsncat (configure.ac): ... to here.
16367
16368 2011-05-22  Bruno Haible  <bruno@clisp.org>
16369
16370         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16371         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16372         from here...
16373         * modules/wcsncasecmp (configure.ac): ... to here.
16374
16375 2011-05-22  Bruno Haible  <bruno@clisp.org>
16376
16377         wcslen: Move AC_LIBOBJ invocations to module description.
16378         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16379         * modules/wcslen (configure.ac): ... to here.
16380
16381 2011-05-22  Bruno Haible  <bruno@clisp.org>
16382
16383         wcsdup: Move AC_LIBOBJ invocations to module description.
16384         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16385         * modules/wcsdup (configure.ac): ... to here.
16386
16387 2011-05-22  Bruno Haible  <bruno@clisp.org>
16388
16389         wcscspn: Move AC_LIBOBJ invocations to module description.
16390         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16391         here...
16392         * modules/wcscspn (configure.ac): ... to here.
16393
16394 2011-05-22  Bruno Haible  <bruno@clisp.org>
16395
16396         wcscpy: Move AC_LIBOBJ invocations to module description.
16397         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16398         * modules/wcscpy (configure.ac): ... to here.
16399
16400 2011-05-22  Bruno Haible  <bruno@clisp.org>
16401
16402         wcscoll: Move AC_LIBOBJ invocations to module description.
16403         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16404         here...
16405         * modules/wcscoll (configure.ac): ... to here.
16406
16407 2011-05-22  Bruno Haible  <bruno@clisp.org>
16408
16409         wcscmp: Move AC_LIBOBJ invocations to module description.
16410         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16411         * modules/wcscmp (configure.ac): ... to here.
16412
16413 2011-05-22  Bruno Haible  <bruno@clisp.org>
16414
16415         wcschr: Move AC_LIBOBJ invocations to module description.
16416         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16417         * modules/wcschr (configure.ac): ... to here.
16418
16419 2011-05-22  Bruno Haible  <bruno@clisp.org>
16420
16421         wcscat: Move AC_LIBOBJ invocations to module description.
16422         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16423         * modules/wcscat (configure.ac): ... to here.
16424
16425 2011-05-22  Bruno Haible  <bruno@clisp.org>
16426
16427         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16428         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16429         here...
16430         * modules/wcscasecmp (configure.ac): ... to here.
16431
16432 2011-05-22  Bruno Haible  <bruno@clisp.org>
16433
16434         wcrtomb: Move AC_LIBOBJ invocations to module description.
16435         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16436         invocations from here...
16437         * modules/wcrtomb (configure.ac): ... to here.
16438
16439 2011-05-22  Bruno Haible  <bruno@clisp.org>
16440
16441         wcpncpy: Move AC_LIBOBJ invocations to module description.
16442         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16443         here...
16444         * modules/wcpncpy (configure.ac): ... to here.
16445
16446 2011-05-22  Bruno Haible  <bruno@clisp.org>
16447
16448         wcpcpy: Move AC_LIBOBJ invocations to module description.
16449         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16450         * modules/wcpcpy (configure.ac): ... to here.
16451
16452 2011-05-22  Bruno Haible  <bruno@clisp.org>
16453
16454         waitpid: Move AC_LIBOBJ invocations to module description.
16455         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16456         invocation from here...
16457         * modules/waitpid (configure.ac): ... to here.
16458
16459 2011-05-22  Bruno Haible  <bruno@clisp.org>
16460
16461         utimensat: Move AC_LIBOBJ invocations to module description.
16462         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16463         here...
16464         * modules/utimensat (configure.ac): ... to here.
16465
16466 2011-05-22  Bruno Haible  <bruno@clisp.org>
16467
16468         usleep: Move AC_LIBOBJ invocations to module description.
16469         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16470         here...
16471         * modules/usleep (configure.ac): ... to here.
16472
16473 2011-05-22  Bruno Haible  <bruno@clisp.org>
16474
16475         unlockpt: Move AC_LIBOBJ invocations to module description.
16476         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16477         gl_PREREQ_UNLOCKPT invocations from here...
16478         * modules/unlockpt (configure.ac): ... to here.
16479
16480 2011-05-22  Bruno Haible  <bruno@clisp.org>
16481
16482         unlink: Respect rules for use of AC_LIBOBJ.
16483         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16484         * modules/unlink (configure.ac): ... to here.
16485
16486 2011-05-22  Bruno Haible  <bruno@clisp.org>
16487
16488         uname: Move AC_LIBOBJ invocations to module description.
16489         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16491         here...
16492         * modules/uname (configure.ac): ... to here.
16493
16494 2011-05-22  Bruno Haible  <bruno@clisp.org>
16495
16496         ttyname_r: Move AC_LIBOBJ invocations to module description.
16497         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16498         gl_PREREQ_TTYNAME_R invocations from here...
16499         * modules/ttyname_r (configure.ac): ... to here.
16500
16501 2011-05-22  Bruno Haible  <bruno@clisp.org>
16502
16503         tsearch: Move AC_LIBOBJ invocations to module description.
16504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16505         invocations from here...
16506         * modules/tsearch (configure.ac): ... to here.
16507
16508 2011-05-22  Bruno Haible  <bruno@clisp.org>
16509
16510         towctrans: Move AC_LIBOBJ invocations to module description.
16511         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16512         AC_LIBOBJ invocation from here...
16513         * modules/towctrans (configure.ac): ... to here.
16514
16515 2011-05-22  Bruno Haible  <bruno@clisp.org>
16516
16517         tmpfile: Move AC_LIBOBJ invocations to module description.
16518         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16519         invocations from here...
16520         * modules/tmpfile (configure.ac): ... to here.
16521
16522 2011-05-22  Bruno Haible  <bruno@clisp.org>
16523
16524         times: Move AC_LIBOBJ invocations to module description.
16525         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16526         * modules/times (configure.ac): ... to here.
16527
16528 2011-05-22  Bruno Haible  <bruno@clisp.org>
16529
16530         time_r: Move AC_LIBOBJ invocations to module description.
16531         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16532         invocations from here...
16533         * modules/time_r (configure.ac): ... to here.
16534
16535 2011-05-22  Bruno Haible  <bruno@clisp.org>
16536
16537         timegm: Move AC_LIBOBJ invocations to module description.
16538         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16539         invocations from here...
16540         * modules/timegm (configure.ac): ... to here.
16541
16542 2011-05-22  Bruno Haible  <bruno@clisp.org>
16543
16544         tcgetsid: Move AC_LIBOBJ invocations to module description.
16545         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16546         and gl_PREREQ_TCGETSID invocations from here...
16547         * modules/tcgetsid (configure.ac): ... to here.
16548         (Depends-on): Update conditions.
16549
16550 2011-05-22  Bruno Haible  <bruno@clisp.org>
16551
16552         symlinkat: Move AC_LIBOBJ invocations to module description.
16553         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16554         here...
16555         * modules/symlinkat (configure.ac): ... to here.
16556
16557 2011-05-22  Bruno Haible  <bruno@clisp.org>
16558
16559         symlink: Move AC_LIBOBJ invocations to module description.
16560         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16561         here...
16562         * modules/symlink (configure.ac): ... to here.
16563
16564 2011-05-22  Bruno Haible  <bruno@clisp.org>
16565
16566         strverscmp: Move AC_LIBOBJ invocations to module description.
16567         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16569         from here...
16570         * modules/strverscmp (configure.ac): ... to here.
16571
16572 2011-05-22  Bruno Haible  <bruno@clisp.org>
16573
16574         strtok_r: Move AC_LIBOBJ invocations to module description.
16575         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16576         and gl_PREREQ_STRTOK_R invocations from here...
16577         * modules/strtok_r (configure.ac): ... to here.
16578         (Depends-on): Update conditions.
16579
16580 2011-05-22  Bruno Haible  <bruno@clisp.org>
16581
16582         strtoumax: Move AC_LIBOBJ invocations to module description.
16583         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16585         from here...
16586         * modules/strtoumax (configure.ac): ... to here.
16587
16588 2011-05-22  Bruno Haible  <bruno@clisp.org>
16589
16590         strtoimax: Move AC_LIBOBJ invocations to module description.
16591         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16593         from here...
16594         * modules/strtoimax (configure.ac): ... to here.
16595
16596 2011-05-22  Bruno Haible  <bruno@clisp.org>
16597
16598         strtoull: Move AC_LIBOBJ invocations to module description.
16599         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16600         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16601         from here...
16602         * modules/strtoull (configure.ac): ... to here.
16603
16604 2011-05-22  Bruno Haible  <bruno@clisp.org>
16605
16606         strtoll: Move AC_LIBOBJ invocations to module description.
16607         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16609         here...
16610         * modules/strtoll (configure.ac): ... to here.
16611
16612 2011-05-22  Bruno Haible  <bruno@clisp.org>
16613
16614         strtoul: Move AC_LIBOBJ invocations to module description.
16615         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16616         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16617         * modules/strtoul (configure.ac): ... to here.
16618
16619 2011-05-22  Bruno Haible  <bruno@clisp.org>
16620
16621         strtol: Move AC_LIBOBJ invocations to module description.
16622         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16623         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16624         * modules/strtol (configure.ac): ... to here.
16625
16626 2011-05-22  Bruno Haible  <bruno@clisp.org>
16627
16628         strtod: Move AC_LIBOBJ invocations to module description.
16629         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16630         invocations from here...
16631         * modules/strtod (configure.ac): ... to here.
16632
16633 2011-05-22  Bruno Haible  <bruno@clisp.org>
16634
16635         strstr*: Move AC_LIBOBJ invocations to module description.
16636         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16637         invocations from here...
16638         * modules/strstr-simple (configure.ac): ... to here.
16639         * modules/strstr (configure.ac): ... and here.
16640
16641 2011-05-22  Bruno Haible  <bruno@clisp.org>
16642
16643         strsignal: Move AC_LIBOBJ invocations to module description.
16644         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16645         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16646         * modules/strsignal (configure.ac): ... to here.
16647         (Depends-on): Update conditions.
16648
16649 2011-05-22  Bruno Haible  <bruno@clisp.org>
16650
16651         strsep: Move AC_LIBOBJ invocations to module description.
16652         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16653         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16654         here...
16655         * modules/strsep (configure.ac): ... to here.
16656
16657 2011-05-22  Bruno Haible  <bruno@clisp.org>
16658
16659         strptime: Move AC_LIBOBJ invocations to module description.
16660         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16661         gl_PREREQ_STRPTIME invocations from here...
16662         * modules/strptime (configure.ac): ... to here.
16663
16664 2011-05-22  Bruno Haible  <bruno@clisp.org>
16665
16666         strpbrk: Move AC_LIBOBJ invocations to module description.
16667         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16669         here...
16670         * modules/strpbrk (configure.ac): ... to here.
16671
16672 2011-05-22  Bruno Haible  <bruno@clisp.org>
16673
16674         strnlen: Move AC_LIBOBJ invocations to module description.
16675         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16676         invocations from here...
16677         * modules/strnlen (configure.ac): ... to here.
16678
16679 2011-05-22  Bruno Haible  <bruno@clisp.org>
16680
16681         strndup: Move AC_LIBOBJ invocations to module description.
16682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16683         invocations from here...
16684         * modules/strndup (configure.ac): ... to here.
16685         (Depends-on): Update conditions.
16686
16687 2011-05-22  Bruno Haible  <bruno@clisp.org>
16688
16689         strncat: Move AC_LIBOBJ invocations to module description.
16690         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16691         invocations from here...
16692         * modules/strncat (configure.ac): ... to here.
16693
16694 2011-05-22  Bruno Haible  <bruno@clisp.org>
16695
16696         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16697         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16698         invocations from here...
16699         * modules/strdup (configure.ac): ... to here.
16700         * modules/strdup-posix (configure.ac): ... and here.
16701
16702 2011-05-22  Bruno Haible  <bruno@clisp.org>
16703
16704         strcspn: Move AC_LIBOBJ invocations to module description.
16705         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16707         here...
16708         * modules/strcspn (configure.ac): ... to here.
16709
16710 2011-05-22  Bruno Haible  <bruno@clisp.org>
16711
16712         strchrnul: Move AC_LIBOBJ invocations to module description.
16713         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16714         gl_PREREQ_STRCHRNUL invocations from here...
16715         * modules/strchrnul (configure.ac): ... to here.
16716
16717 2011-05-22  Bruno Haible  <bruno@clisp.org>
16718
16719         strcasestr*: Move AC_LIBOBJ invocations to module description.
16720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16721         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16722         * modules/strcasestr-simple (configure.ac): ... to here.
16723         * modules/strcasestr (configure.ac): ... and here.
16724
16725 2011-05-22  Bruno Haible  <bruno@clisp.org>
16726
16727         strcase: Move AC_LIBOBJ invocations to module description.
16728         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16729         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16730         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16731         gl_PREREQ_STRNCASECMP invocations from here...
16732         * modules/strcase (configure.ac): ... to here.
16733
16734 2011-05-22  Bruno Haible  <bruno@clisp.org>
16735
16736         stpncpy: Move AC_LIBOBJ invocations to module description.
16737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16738         here...
16739         * modules/stpncpy (configure.ac): ... to here.
16740
16741 2011-05-22  Bruno Haible  <bruno@clisp.org>
16742
16743         stpcpy: Move AC_LIBOBJ invocations to module description.
16744         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16746         here...
16747         * modules/stpcpy (configure.ac): ... to here.
16748
16749 2011-05-21  Bruno Haible  <bruno@clisp.org>
16750
16751         stat: Move AC_LIBOBJ invocations to module description.
16752         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16753         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16754         here...
16755         * modules/stat (configure.ac): ... to here.
16756
16757 2011-05-21  Bruno Haible  <bruno@clisp.org>
16758
16759         sleep: Move AC_LIBOBJ invocations to module description.
16760         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16761         * modules/sleep (configure.ac): ... to here.
16762
16763 2011-05-21  Bruno Haible  <bruno@clisp.org>
16764
16765         signbit: Move AC_LIBOBJ invocations to module description.
16766         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16767         * modules/signbit (configure.ac): ... to here.
16768
16769 2011-05-21  Bruno Haible  <bruno@clisp.org>
16770
16771         sigprocmask: Move AC_LIBOBJ invocations to module description.
16772         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16773         gl_PREREQ_SIGPROMASK invocations from here...
16774         * modules/sigprocmask (configure.ac): ... to here.
16775
16776 2011-05-21  Bruno Haible  <bruno@clisp.org>
16777
16778         sigaction: Move AC_LIBOBJ invocations to module description.
16779         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16780         gl_PREREQ_SIGACTION invocations from here...
16781         * modules/sigaction (configure.ac): ... to here.
16782
16783 2011-05-21  Bruno Haible  <bruno@clisp.org>
16784
16785         sig2str: Move AC_LIBOBJ invocations to module description.
16786         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16788         here...
16789         * modules/sig2str (configure.ac): ... to here.
16790
16791 2011-05-21  Bruno Haible  <bruno@clisp.org>
16792
16793         setlocale: Move AC_LIBOBJ invocations to module description.
16794         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16795         gl_PREREQ_SETLOCALE invocations from here...
16796         * modules/setlocale (configure.ac): ... to here.
16797
16798 2011-05-21  Bruno Haible  <bruno@clisp.org>
16799
16800         unsetenv: Move AC_LIBOBJ invocations to module description.
16801         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16802         and gl_PREREQ_UNSETENV invocations from here...
16803         * modules/unsetenv (configure.ac): ... to here.
16804         (Depends-on): Update.
16805
16806 2011-05-21  Bruno Haible  <bruno@clisp.org>
16807
16808         setenv: Move AC_LIBOBJ invocations to module description.
16809         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16810         here...
16811         * modules/setenv (configure.ac): ... to here.
16812
16813 2011-05-21  Bruno Haible  <bruno@clisp.org>
16814
16815         selinux-h: Move AC_LIBOBJ invocations to module description.
16816         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16817         AC_LIBOBJ invocation from here...
16818         * modules/selinux-h (configure.ac): ... to here.
16819
16820 2011-05-21  Bruno Haible  <bruno@clisp.org>
16821
16822         select: Respect rules for use of AC_LIBOBJ.
16823         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16824         here...
16825         * modules/select (configure.ac): ... to here.
16826
16827 2011-05-21  Bruno Haible  <bruno@clisp.org>
16828
16829         scandir: Move AC_LIBOBJ invocations to module description.
16830         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16831         invocations from here...
16832         * modules/scandir (configure.ac): ... to here.
16833
16834 2011-05-21  Bruno Haible  <bruno@clisp.org>
16835
16836         rpmatch: Move AC_LIBOBJ invocations to module description.
16837         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16839         here...
16840         * modules/rpmatch (configure.ac): ... to here.
16841
16842 2011-05-21  Bruno Haible  <bruno@clisp.org>
16843
16844         rmdir: Respect rules for use of AC_LIBOBJ.
16845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16846         * modules/rmdir (configure.ac): ... to here.
16847
16848 2011-05-21  Bruno Haible  <bruno@clisp.org>
16849
16850         renameat: Move AC_LIBOBJ invocations to module description.
16851         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16852         here...
16853         * modules/renameat (configure.ac): ... to here.
16854
16855 2011-05-21  Bruno Haible  <bruno@clisp.org>
16856
16857         rename: Respect rules for use of AC_LIBOBJ.
16858         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16859         here...
16860         * modules/rename (configure.ac): ... to here.
16861
16862 2011-05-21  Bruno Haible  <bruno@clisp.org>
16863
16864         remove: Move AC_LIBOBJ invocations to module description.
16865         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16866         here...
16867         * modules/remove (configure.ac): ... to here.
16868
16869 2011-05-21  Bruno Haible  <bruno@clisp.org>
16870
16871         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16872         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16873         macro.
16874         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16875         * modules/relocatable-lib (configure.ac): ... to here.
16876         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16877         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16878
16879 2011-05-21  Bruno Haible  <bruno@clisp.org>
16880
16881         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16882         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16883         here...
16884         * modules/relocatable-prog (configure.ac): ... to here.
16885
16886 2011-05-21  Bruno Haible  <bruno@clisp.org>
16887
16888         regex: Move AC_LIBOBJ invocations to module description.
16889         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16890         invocations from here...
16891         * modules/regex (configure.ac): ... to here.
16892
16893 2011-05-21  Bruno Haible  <bruno@clisp.org>
16894
16895         realloc-*: Move AC_LIBOBJ invocations to module description.
16896         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16897         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16898         AC_LIBOBJ invocations from here...
16899         * modules/realloc-gnu (configure.ac): ... to here.
16900         * modules/realloc-posix (configure.ac): ... and here.
16901
16902 2011-05-21  Bruno Haible  <bruno@clisp.org>
16903
16904         readutmp: Move AC_LIBOBJ invocations to module description.
16905         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16906         * modules/readutmp (configure.ac): ... to here.
16907
16908 2011-05-21  Bruno Haible  <bruno@clisp.org>
16909
16910         readlinkat: Move AC_LIBOBJ invocations to module description.
16911         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16912         here...
16913         * modules/readlinkat (configure.ac): ... to here.
16914
16915 2011-05-21  Bruno Haible  <bruno@clisp.org>
16916
16917         readlink: Move AC_LIBOBJ invocations to module description.
16918         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16919         gl_PREREQ_READLINK invocations from here...
16920         * modules/readlink (configure.ac): ... to here.
16921
16922 2011-05-21  Bruno Haible  <bruno@clisp.org>
16923
16924         readline: Move AC_LIBOBJ invocations to module description.
16925         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16926         gl_PREREQ_READLINE invocations from here...
16927         * modules/readline (configure.ac): ... to here.
16928
16929 2011-05-21  Bruno Haible  <bruno@clisp.org>
16930
16931         read: Move AC_LIBOBJ invocations to module description.
16932         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16933         * modules/read (configure.ac): ... to here.
16934
16935 2011-05-21  Bruno Haible  <bruno@clisp.org>
16936
16937         rawmemchr: Move AC_LIBOBJ invocations to module description.
16938         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16940         from here...
16941         * modules/rawmemchr (configure.ac): ... to here.
16942
16943 2011-05-21  Bruno Haible  <bruno@clisp.org>
16944
16945         random_r: Move AC_LIBOBJ invocations to module description.
16946         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16947         gl_PREREQ_RANDOM_R invocations from here...
16948         * modules/random_r (configure.ac): ... to here.
16949
16950 2011-05-21  Bruno Haible  <bruno@clisp.org>
16951
16952         pwrite: Move AC_LIBOBJ invocations to module description.
16953         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16954         * modules/pwrite (configure.ac): ... to here.
16955
16956 2011-05-21  Bruno Haible  <bruno@clisp.org>
16957
16958         putenv: Move AC_LIBOBJ invocations to module description.
16959         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16960         * modules/putenv (configure.ac): ... to here.
16961
16962 2011-05-21  Bruno Haible  <bruno@clisp.org>
16963
16964         login_tty: Move AC_LIBOBJ invocations to module description.
16965         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16966         * modules/login_tty (configure.ac): ... to here.
16967
16968 2011-05-21  Bruno Haible  <bruno@clisp.org>
16969
16970         openpty: Move AC_LIBOBJ invocations to module description.
16971         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16972         * modules/openpty (configure.ac): ... to here.
16973
16974 2011-05-21  Bruno Haible  <bruno@clisp.org>
16975
16976         forkpty: Move AC_LIBOBJ invocations to module description.
16977         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16978         * modules/forkpty (configure.ac): ... to here.
16979
16980 2011-05-21  Bruno Haible  <bruno@clisp.org>
16981
16982         ptsname: Move AC_LIBOBJ invocations to module description.
16983         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16984         invocations from here...
16985         * modules/ptsname (configure.ac): ... to here.
16986
16987 2011-05-21  Bruno Haible  <bruno@clisp.org>
16988
16989         pread: Move AC_LIBOBJ invocations to module description.
16990         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16991         * modules/pread (configure.ac): ... to here.
16992
16993 2011-05-21  Bruno Haible  <bruno@clisp.org>
16994
16995         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16996         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16997         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16998         * modules/posix_spawn (configure.ac): ... to here.
16999         * modules/posix_spawnp (configure.ac): ... and here.
17000
17001 2011-05-21  Bruno Haible  <bruno@clisp.org>
17002
17003         popen: Move AC_LIBOBJ invocations to module description.
17004         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17005         invocations from here...
17006         * modules/popen (configure.ac): ... to here.
17007
17008 2011-05-21  Bruno Haible  <bruno@clisp.org>
17009
17010         poll: Move AC_LIBOBJ invocations to module description.
17011         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17012         invocations from here...
17013         * modules/poll (configure.ac): ... to here.
17014
17015 2011-05-21  Bruno Haible  <bruno@clisp.org>
17016
17017         pipe-posix: Move AC_LIBOBJ invocations to module description.
17018         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17019         * modules/pipe-posix (configure.ac): ... to here.
17020
17021 2011-05-21  Bruno Haible  <bruno@clisp.org>
17022
17023         openat: Respect rules for use of AC_LIBOBJ.
17024         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17025         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17026         * modules/openat (configure.ac): ... to here.
17027
17028 2011-05-21  Bruno Haible  <bruno@clisp.org>
17029
17030         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17031         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17032         invocation from here...
17033         * modules/obstack-printf (configure.ac): ... to here.
17034         * modules/obstack-printf-posix (configure.ac): ... and here.
17035
17036 2011-05-21  Bruno Haible  <bruno@clisp.org>
17037
17038         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17039         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17040         from here...
17041         * modules/nl_langinfo (configure.ac): ... to here.
17042
17043 2011-05-21  Bruno Haible  <bruno@clisp.org>
17044
17045         nanosleep: Move AC_LIBOBJ invocations to module description.
17046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17047         gl_PREREQ_NANOSLEEP invocations from here...
17048         * modules/nanosleep (configure.ac): ... to here.
17049
17050 2011-05-21  Bruno Haible  <bruno@clisp.org>
17051
17052         mountlist: Move AC_LIBOBJ invocations to module description.
17053         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17054         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17055         * modules/mountlist (configure.ac): ... to here.
17056
17057 2011-05-21  Bruno Haible  <bruno@clisp.org>
17058
17059         mktime: Respect rules for use of AC_LIBOBJ.
17060         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17061         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17062         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17063         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17064         * modules/mktime (configure.ac): ... to here.
17065         * modules/mktime-internal (configure.ac): ... and here.
17066         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17067
17068 2011-05-21  Bruno Haible  <bruno@clisp.org>
17069
17070         mkstemps: Move AC_LIBOBJ invocations to module description.
17071         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17072         here...
17073         * modules/mkstemps (configure.ac): ... to here.
17074
17075 2011-05-21  Bruno Haible  <bruno@clisp.org>
17076
17077         mkstemp: Move AC_LIBOBJ invocations to module description.
17078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17079         gl_PREREQ_MKSTEMP invocations from here...
17080         * modules/mkstemp (configure.ac): ... to here.
17081
17082 2011-05-21  Bruno Haible  <bruno@clisp.org>
17083
17084         mkostemps: Move AC_LIBOBJ invocations to module description.
17085         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17086         here...
17087         * modules/mkostemps (configure.ac): ... to here.
17088
17089 2011-05-21  Bruno Haible  <bruno@clisp.org>
17090
17091         mkostemp: Move AC_LIBOBJ invocations to module description.
17092         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17093         gl_PREREQ_MKOSTEMP invocations from here...
17094         * modules/mkostemp (configure.ac): ... to here.
17095
17096 2011-05-21  Bruno Haible  <bruno@clisp.org>
17097
17098         mknod: Move AC_LIBOBJ invocations to module description.
17099         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17100         * modules/mknod (configure.ac): ... to here.
17101
17102 2011-05-21  Bruno Haible  <bruno@clisp.org>
17103
17104         mkfifoat: Move AC_LIBOBJ invocations to module description.
17105         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17106         here...
17107         * modules/mkfifoat (configure.ac): ... to here.
17108
17109 2011-05-21  Bruno Haible  <bruno@clisp.org>
17110
17111         mkfifo: Respect rules for use of AC_LIBOBJ.
17112         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17113         here...
17114         * modules/mkfifo (configure.ac): ... to here.
17115
17116 2011-05-21  Bruno Haible  <bruno@clisp.org>
17117
17118         mkdtemp: Move AC_LIBOBJ invocations to module description.
17119         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17120         invocations from here...
17121         * modules/mkdtemp (configure.ac): ... to here.
17122
17123 2011-05-21  Bruno Haible  <bruno@clisp.org>
17124
17125         mkdir: Move AC_LIBOBJ invocations to module description.
17126         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17127         * modules/mkdir (configure.ac): ... to here.
17128
17129 2011-05-21  Bruno Haible  <bruno@clisp.org>
17130
17131         memset: Move AC_LIBOBJ invocations to module description.
17132         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17134         here...
17135         * modules/memset (configure.ac): ... to here.
17136
17137 2011-05-21  Bruno Haible  <bruno@clisp.org>
17138
17139         memrchr: Move AC_LIBOBJ invocations to module description.
17140         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17142         here...
17143         * modules/memrchr (configure.ac): ... to here.
17144
17145 2011-05-21  Bruno Haible  <bruno@clisp.org>
17146
17147         mempcpy: Move AC_LIBOBJ invocations to module description.
17148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17150         here...
17151         * modules/mempcpy (configure.ac): ... to here.
17152
17153 2011-05-21  Bruno Haible  <bruno@clisp.org>
17154
17155         memmove: Move AC_LIBOBJ invocations to module description.
17156         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17158         here...
17159         * modules/memmove (configure.ac): ... to here.
17160
17161 2011-05-21  Bruno Haible  <bruno@clisp.org>
17162
17163         memmem*: Move AC_LIBOBJ invocations to module description.
17164         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17165         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17166         here...
17167         (gl_FUNC_MEMMEM): ... and here...
17168         * modules/memmem-simple (configure.ac): ... to here.
17169         * modules/memmem (configure.ac): ... and here.
17170
17171 2011-05-21  Bruno Haible  <bruno@clisp.org>
17172
17173         memcpy: Move AC_LIBOBJ invocations to module description.
17174         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17176         here...
17177         * modules/memcpy (configure.ac): ... to here.
17178
17179 2011-05-21  Bruno Haible  <bruno@clisp.org>
17180
17181         memcmp: Simplify autoconf macro.
17182         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17183         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17184         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17185
17186 2011-05-21  Bruno Haible  <bruno@clisp.org>
17187
17188         memcmp: Move AC_LIBOBJ invocations to module description.
17189         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17190         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17191         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17192         * modules/memcmp (configure.ac): ... to here.
17193         (Depends-on): Update conditions.
17194
17195 2011-05-21  Bruno Haible  <bruno@clisp.org>
17196
17197         memchr: Respect rules for use of AC_LIBOBJ.
17198         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17199         invocations from here...
17200         * modules/memchr (configure.ac): ... to here.
17201
17202 2011-05-21  Bruno Haible  <bruno@clisp.org>
17203
17204         mbtowc: Move AC_LIBOBJ invocations to module description.
17205         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17206         invocations from here...
17207         * modules/mbtowc (configure.ac): ... to here.
17208
17209 2011-05-21  Bruno Haible  <bruno@clisp.org>
17210
17211         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17212         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17213         gl_PREREQ_MBSRTOWCS invocations from here...
17214         * modules/mbsrtowcs (configure.ac): ... to here.
17215
17216 2011-05-21  Bruno Haible  <bruno@clisp.org>
17217
17218         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17219         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17220         gl_PREREQ_MBSNRTOWCS invocations from here...
17221         * modules/mbsnrtowcs (configure.ac): ... to here.
17222
17223 2011-05-21  Bruno Haible  <bruno@clisp.org>
17224
17225         mbsinit: Move AC_LIBOBJ invocations to module description.
17226         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17227         invocations from here...
17228         * modules/mbsinit (configure.ac): ... to here.
17229
17230 2011-05-21  Bruno Haible  <bruno@clisp.org>
17231
17232         mbrlen: Move AC_LIBOBJ invocations to module description.
17233         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17234         invocations from here...
17235         * modules/mbrlen (configure.ac): ... to here.
17236
17237 2011-05-21  Bruno Haible  <bruno@clisp.org>
17238
17239         mbrtowc: Respect rules for use of AC_LIBOBJ.
17240         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17241         invocations from here...
17242         * modules/mbrtowc (configure.ac): ... to here.
17243
17244 2011-05-21  Bruno Haible  <bruno@clisp.org>
17245
17246         malloc-*: Move AC_LIBOBJ invocations to module description.
17247         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17248         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17249         AC_LIBOBJ invocations from here...
17250         * modules/malloc-gnu (configure.ac): ... to here.
17251         * modules/malloc-posix (configure.ac): ... and here.
17252
17253 2011-05-21  Bruno Haible  <bruno@clisp.org>
17254
17255         lstat, openat: Respect rules for use of AC_LIBOBJ.
17256         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17257         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17258         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17259         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17260         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17261         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17262         here.
17263         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17264
17265 2011-05-21  Bruno Haible  <bruno@clisp.org>
17266
17267         lseek: Move AC_LIBOBJ invocations to module description.
17268         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17269         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17270         * modules/lseek (configure.ac): ... to here.
17271
17272 2011-05-21  Bruno Haible  <bruno@clisp.org>
17273
17274         linkat: Move AC_LIBOBJ invocations to module description.
17275         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17276         here...
17277         * modules/linkat (configure.ac): ... to here.
17278
17279 2011-05-21  Bruno Haible  <bruno@clisp.org>
17280
17281         link: Respect rules for use of AC_LIBOBJ.
17282         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17283         * modules/link (configure.ac): ... to here.
17284
17285 2011-05-21  Bruno Haible  <bruno@clisp.org>
17286
17287         lchown: Move AC_LIBOBJ invocations to module description.
17288         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17289         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17290         * modules/lchown (configure.ac): ... to here.
17291
17292 2011-05-21  Bruno Haible  <bruno@clisp.org>
17293
17294         iswctype: Move AC_LIBOBJ invocations to module description.
17295         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17296         here...
17297         * modules/iswctype (configure.ac): ... to here.
17298
17299 2011-05-21  Bruno Haible  <bruno@clisp.org>
17300
17301         iswblank: Move AC_LIBOBJ invocations to module description.
17302         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17303         here...
17304         * modules/iswblank (configure.ac): ... to here.
17305
17306 2011-05-21  Bruno Haible  <bruno@clisp.org>
17307
17308         atanl: Move AC_LIBOBJ invocations to module description.
17309         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17310         * modules/atanl (configure.ac): ... to here.
17311
17312 2011-05-21  Bruno Haible  <bruno@clisp.org>
17313
17314         acosl: Move AC_LIBOBJ invocations to module description.
17315         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17316         * modules/acosl (configure.ac): ... to here.
17317
17318 2011-05-21  Bruno Haible  <bruno@clisp.org>
17319
17320         asinl: Respect rules for use of AC_LIBOBJ.
17321         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17322         * modules/asinl (configure.ac): ... to here.
17323
17324 2011-05-21  Bruno Haible  <bruno@clisp.org>
17325
17326         tanl: Move AC_LIBOBJ invocations to module description.
17327         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17328         * modules/tanl (configure.ac): ... to here.
17329
17330 2011-05-21  Bruno Haible  <bruno@clisp.org>
17331
17332         cosl: Move AC_LIBOBJ invocations to module description.
17333         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17334         * modules/cosl (configure.ac): ... to here.
17335
17336 2011-05-21  Bruno Haible  <bruno@clisp.org>
17337
17338         sinl: Move AC_LIBOBJ invocations to module description.
17339         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17340         * modules/sinl (configure.ac): ... to here.
17341
17342 2011-05-21  Bruno Haible  <bruno@clisp.org>
17343
17344         logl: Move AC_LIBOBJ invocations to module description.
17345         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17346         * modules/logl (configure.ac): ... to here.
17347
17348 2011-05-21  Bruno Haible  <bruno@clisp.org>
17349
17350         expl: Move AC_LIBOBJ invocations to module description.
17351         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17352         * modules/expl (configure.ac): ... to here.
17353
17354 2011-05-21  Bruno Haible  <bruno@clisp.org>
17355
17356         roundl: Move AC_LIBOBJ invocations to module description.
17357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17358         * modules/roundl (configure.ac): ... to here.
17359
17360 2011-05-21  Bruno Haible  <bruno@clisp.org>
17361
17362         round: Move AC_LIBOBJ invocations to module description.
17363         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17364         * modules/round (configure.ac): ... to here.
17365
17366 2011-05-21  Bruno Haible  <bruno@clisp.org>
17367
17368         roundf: Move AC_LIBOBJ invocations to module description.
17369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17370         * modules/roundf (configure.ac): ... to here.
17371
17372 2011-05-21  Bruno Haible  <bruno@clisp.org>
17373
17374         truncl: Move AC_LIBOBJ invocations to module description.
17375         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17376         * modules/truncl (configure.ac): ... to here.
17377
17378 2011-05-21  Bruno Haible  <bruno@clisp.org>
17379
17380         trunc: Move AC_LIBOBJ invocations to module description.
17381         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17382         * modules/trunc (configure.ac): ... to here.
17383
17384 2011-05-21  Bruno Haible  <bruno@clisp.org>
17385
17386         truncf: Move AC_LIBOBJ invocations to module description.
17387         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17388         * modules/truncf (configure.ac): ... to here.
17389
17390 2011-05-21  Bruno Haible  <bruno@clisp.org>
17391
17392         ceill: Move AC_LIBOBJ invocations to module description.
17393         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17394         * modules/ceill (configure.ac): ... to here.
17395
17396 2011-05-21  Bruno Haible  <bruno@clisp.org>
17397
17398         ceil: Move AC_LIBOBJ invocations to module description.
17399         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17400         * modules/ceil (configure.ac): ... to here.
17401
17402 2011-05-21  Bruno Haible  <bruno@clisp.org>
17403
17404         ceilf: Move AC_LIBOBJ invocations to module description.
17405         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17406         * modules/ceilf (configure.ac): ... to here.
17407
17408 2011-05-21  Bruno Haible  <bruno@clisp.org>
17409
17410         floorl: Respect rules for use of AC_LIBOBJ.
17411         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17412         * modules/floorl (configure.ac): ... to here.
17413
17414 2011-05-21  Bruno Haible  <bruno@clisp.org>
17415
17416         floor: Respect rules for use of AC_LIBOBJ.
17417         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17418         * modules/floor (configure.ac): ... to here.
17419
17420 2011-05-21  Bruno Haible  <bruno@clisp.org>
17421
17422         floorf: Move AC_LIBOBJ invocations to module description.
17423         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17424         * modules/floorf (configure.ac): ... to here.
17425
17426 2011-05-20  Bruno Haible  <bruno@clisp.org>
17427
17428         sqrtl: Respect rules for use of AC_LIBOBJ.
17429         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17430         * modules/sqrtl (configure.ac): ... to here.
17431
17432 2011-05-20  Bruno Haible  <bruno@clisp.org>
17433
17434         ldexpl: Respect rules for use of AC_LIBOBJ.
17435         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17436         * modules/ldexpl (configure.ac): ... to here.
17437
17438 2011-05-20  Bruno Haible  <bruno@clisp.org>
17439
17440         frexpl*: Respect rules for use of AC_LIBOBJ.
17441         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17442         invocation from here...
17443         * modules/frexpl (configure.ac): ... to here.
17444         * modules/frexpl-nolibm (configure.ac): ... and here.
17445
17446 2011-05-20  Bruno Haible  <bruno@clisp.org>
17447
17448         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17449         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17450         invocation from here...
17451         * modules/frexp (configure.ac): ... to here.
17452         * modules/frexp-nolibm (configure.ac): ... and here.
17453
17454 2011-05-20  Bruno Haible  <bruno@clisp.org>
17455
17456         isnan: Respect rules for use of AC_LIBOBJ.
17457         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17458         invocations here.
17459         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17460         REPLACE_ISNAN.
17461         * modules/isnand (configure.ac): Likewise.
17462         * modules/isnanl (configure.ac): Likewise.
17463
17464 2011-05-20  Bruno Haible  <bruno@clisp.org>
17465
17466         isnanl*: Respect rules for use of AC_LIBOBJ.
17467         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17468         invocation from here...
17469         * modules/isnanl (configure.ac): ... to here.
17470         * modules/isnanl-nolibm (configure.ac): ... and here.
17471
17472 2011-05-20  Bruno Haible  <bruno@clisp.org>
17473
17474         isnand*: Move AC_LIBOBJ invocations to module description.
17475         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17476         invocation from here...
17477         * modules/isnand (configure.ac): ... to here.
17478         * modules/isnand-nolibm (configure.ac): ... and here.
17479
17480 2011-05-20  Bruno Haible  <bruno@clisp.org>
17481
17482         isnanf*: Move AC_LIBOBJ invocations to module description.
17483         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17484         invocation from here...
17485         * modules/isnanf (configure.ac): ... to here.
17486         * modules/isnanf-nolibm (configure.ac): ... and here.
17487
17488 2011-05-20  Bruno Haible  <bruno@clisp.org>
17489
17490         isnan*: Separate the AC_LIBOBJ invocations.
17491         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17492         AC_LIBOBJ invocation.
17493         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17494         here.
17495         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17496         AC_LIBOBJ invocation.
17497         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17498         here.
17499         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17500         AC_LIBOBJ invocation.
17501         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17502         here.
17503         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17504
17505 2011-05-08  Bruno Haible  <bruno@clisp.org>
17506
17507         isinf: Move AC_LIBOBJ invocations to module description.
17508         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17509         * modules/isinf (configure.ac): ... to here.
17510
17511 2011-05-08  Bruno Haible  <bruno@clisp.org>
17512
17513         isfinite: Move AC_LIBOBJ invocations to module description.
17514         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17515         * modules/isfinite (configure.ac): ... to here.
17516
17517 2011-05-08  Bruno Haible  <bruno@clisp.org>
17518
17519         isblank: Move AC_LIBOBJ invocations to module description.
17520         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17521         here...
17522         * modules/isblank (configure.ac): ... to here.
17523
17524 2011-05-08  Bruno Haible  <bruno@clisp.org>
17525
17526         isapipe: Move AC_LIBOBJ invocations to module description.
17527         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17528         gl_PREREQ_ISAPIPE invocations from here...
17529         * modules/isapipe (configure.ac): ... to here.
17530         (Depends-on): Update condition.
17531
17532 2011-05-08  Bruno Haible  <bruno@clisp.org>
17533
17534         ioctl: Move AC_LIBOBJ invocations to module description.
17535         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17536         invocations from here...
17537         * modules/ioctl (configure.ac): ... to here.
17538         (Depends-on): Update condition.
17539
17540 2011-05-08  Bruno Haible  <bruno@clisp.org>
17541
17542         imaxdiv: Move AC_LIBOBJ invocations to module description.
17543         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17544         invocations from here...
17545         * modules/imaxdiv (configure.ac): ... to here.
17546
17547 2011-05-08  Bruno Haible  <bruno@clisp.org>
17548
17549         imaxabs: Move AC_LIBOBJ invocations to module description.
17550         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17551         invocations from here...
17552         * modules/imaxabs (configure.ac): ... to here.
17553
17554 2011-05-08  Bruno Haible  <bruno@clisp.org>
17555
17556         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17558         AC_LIBOBJ invocations from here...
17559         * modules/getaddrinfo (configure.ac): ... to here.
17560         (Depends-on): Add conditions.
17561
17562 2011-05-08  Bruno Haible  <bruno@clisp.org>
17563
17564         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17565         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17566         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17567         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17568         (gl_PREREQ_INET_PTON): ... from here.
17569         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17570         gl_PREREQ_INET_PTON here.
17571         (Depends-on): Update condition.
17572
17573 2011-05-08  Bruno Haible  <bruno@clisp.org>
17574
17575         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17576         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17577         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17578         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17579         (gl_PREREQ_INET_NTOP): ... from here.
17580         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17581         gl_PREREQ_INET_NTOP here.
17582         (Depends-on): Update condition.
17583
17584 2011-05-08  Bruno Haible  <bruno@clisp.org>
17585
17586         iconv_open: Move AC_LIBOBJ invocations to module description.
17587         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17588         AC_LIBOBJ invocations from here...
17589         * modules/iconv_open (configure.ac): ... to here.
17590
17591 2011-05-08  Bruno Haible  <bruno@clisp.org>
17592
17593         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17594         If module 'iconv_open' is among the main modules and module
17595         'iconv_open-utf' is among the tests dependencies, then
17596         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17597         return the special iconv_t values. Therefore iconv() and iconv_close()
17598         must support these special iconv_t values, already in lib, not only in
17599         tests.
17600         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17601         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17602         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17603         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17604         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17605         (Depends-on): Add the dependencies of iconv_open-utf.
17606         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17607         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17608         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17609
17610 2011-05-08  Bruno Haible  <bruno@clisp.org>
17611
17612         group-member: Move AC_LIBOBJ invocations to module description.
17613         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17614         gl_PREREQ_GROUP_MEMBER invocations from here...
17615         * modules/group-member (configure.ac): ... to here.
17616
17617 2011-05-08  Bruno Haible  <bruno@clisp.org>
17618
17619         grantpt: Move AC_LIBOBJ invocations to module description.
17620         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17621         invocations from here...
17622         * modules/grantpt (configure.ac): ... to here.
17623
17624 2011-05-08  Bruno Haible  <bruno@clisp.org>
17625
17626         glob: Move AC_LIBOBJ invocations to module description.
17627         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17628         from here...
17629         * modules/glob (configure.ac): ... to here.
17630
17631 2011-05-08  Bruno Haible  <bruno@clisp.org>
17632
17633         getusershell: Move AC_LIBOBJ invocations to module description.
17634         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17635         Move AC_LIBOBJ invocation from here...
17636         * modules/getusershell (configure.ac): ... to here.
17637         (Depends-on): Update condition.
17638
17639 2011-05-08  Bruno Haible  <bruno@clisp.org>
17640
17641         gettimeofday: Move AC_LIBOBJ invocations to module description.
17642         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17643         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17644         gl_PREREQ_GETTIMEOFDAY invocations from here...
17645         * modules/gettimeofday (configure.ac): ... to here.
17646
17647 2011-05-08  Bruno Haible  <bruno@clisp.org>
17648
17649         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17650         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17651         just gl_FUNC_TZSET.
17652         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17653         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17654         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17655         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17656
17657 2011-05-08  Bruno Haible  <bruno@clisp.org>
17658
17659         getsubopt: Move AC_LIBOBJ invocations to module description.
17660         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17661         gl_PREREQ_GETSUBOPT invocations from here...
17662         * modules/getsubopt (configure.ac): ... to here.
17663
17664 2011-05-08  Bruno Haible  <bruno@clisp.org>
17665
17666         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17667         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17668         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17669         * modules/getpass-gnu (configure.ac): ... to here.
17670
17671 2011-05-08  Bruno Haible  <bruno@clisp.org>
17672
17673         getpass: Move AC_LIBOBJ invocations to module description.
17674         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17675         gl_PREREQ_GETPASS invocations from here...
17676         * modules/getpass (configure.ac): ... to here.
17677
17678 2011-05-08  Bruno Haible  <bruno@clisp.org>
17679
17680         getpagesize: Move AC_LIBOBJ invocations to module description.
17681         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17682         from here...
17683         * modules/getpagesize (configure.ac): ... to here.
17684
17685 2011-05-08  Bruno Haible  <bruno@clisp.org>
17686
17687         getopt: Move AC_LIBOBJ invocations to module description.
17688         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17689         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17690         invocations from here...
17691         * modules/getopt-gnu (configure.ac): ... to here.
17692         * modules/getopt-posix (configure.ac): ... and here.
17693         (Depends-on): Update condition.
17694
17695 2011-05-08  Bruno Haible  <bruno@clisp.org>
17696
17697         getopt, argp: Respect rules for use of AC_LIBOBJ.
17698         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17699         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17700         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17701         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17702
17703 2011-05-08  Bruno Haible  <bruno@clisp.org>
17704
17705         getlogin_r: Move AC_LIBOBJ invocations to module description.
17706         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17707         gl_PREREQ_GETLOGIN_R invocations from here...
17708         * modules/getlogin_r (configure.ac): ... to here.
17709
17710 2011-05-08  Bruno Haible  <bruno@clisp.org>
17711
17712         getlogin: Move AC_LIBOBJ invocations to module description.
17713         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17714         here...
17715         * modules/getlogin (configure.ac): ... to here.
17716
17717 2011-05-08  Bruno Haible  <bruno@clisp.org>
17718
17719         getloadavg: Move AC_LIBOBJ invocations to module description.
17720         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17721         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17722         * modules/getloadavg (configure.ac): ... to here.
17723
17724 2011-05-08  Bruno Haible  <bruno@clisp.org>
17725
17726         gethrxtime: Move AC_LIBOBJ invocations to module description.
17727         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17728         LIB_GETHRXTIME from here...
17729         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17730         invocations from here...
17731         * modules/gethrxtime (configure.ac): ... to here.
17732
17733 2011-05-08  Bruno Haible  <bruno@clisp.org>
17734
17735         gethostname: Move AC_LIBOBJ invocations to module description.
17736         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17737         gl_PREREQ_GETHOSTNAME invocations from here...
17738         * modules/gethostname (configure.ac): ... to here.
17739
17740 2011-05-08  Bruno Haible  <bruno@clisp.org>
17741
17742         getgroups: Move AC_LIBOBJ invocations to module description.
17743         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17744         here...
17745         * modules/getgroups (configure.ac): ... to here.
17746
17747 2011-05-08  Bruno Haible  <bruno@clisp.org>
17748
17749         getdtablesize: Move AC_LIBOBJ invocations to module description.
17750         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17751         invocation from here...
17752         * modules/getdtablesize (configure.ac): ... to here.
17753
17754 2011-05-08  Bruno Haible  <bruno@clisp.org>
17755
17756         getdomainname: Move AC_LIBOBJ invocations to module description.
17757         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17758         gl_PREREQ_GETDOMAINNAME invocations from here...
17759         * modules/getdomainname (configure.ac): ... to here.
17760
17761 2011-05-08  Bruno Haible  <bruno@clisp.org>
17762
17763         getline: Move AC_LIBOBJ invocations to module description.
17764         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17765         invocations from here...
17766         * modules/getline (configure.ac): ... to here.
17767
17768 2011-05-08  Bruno Haible  <bruno@clisp.org>
17769
17770         getline: Simplify.
17771         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17772         It's already handled through the module dependency.
17773
17774 2011-05-08  Bruno Haible  <bruno@clisp.org>
17775
17776         getdelim: Move AC_LIBOBJ invocations to module description.
17777         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17778         and gl_PREREQ_GETDELIM invocations from here...
17779         * modules/getdelim (configure.ac): ... to here.
17780         (Depends-on): Fix condition.
17781
17782 2011-05-08  Bruno Haible  <bruno@clisp.org>
17783
17784         getcwd: Move AC_LIBOBJ invocations to module description.
17785         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17786         invocations from here...
17787         * modules/getcwd (configure.ac): ... to here.
17788
17789 2011-05-08  Bruno Haible  <bruno@clisp.org>
17790
17791         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17792         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17793         here...
17794         * modules/getcwd-lgpl (configure.ac): ... to here.
17795
17796 2011-05-07  Bruno Haible  <bruno@clisp.org>
17797
17798         crypto/gc: Move AC_LIBOBJ invocations to module description.
17799         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17800         * modules/crypto/gc (configure.ac): ... to here.
17801
17802 2011-05-07  Bruno Haible  <bruno@clisp.org>
17803
17804         fwriting: Move AC_LIBOBJ invocations to module description.
17805         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17806         here...
17807         * modules/fwriting (configure.ac): ... to here.
17808
17809 2011-05-07  Bruno Haible  <bruno@clisp.org>
17810
17811         fwritable: Move AC_LIBOBJ invocations to module description.
17812         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17813         here...
17814         * modules/fwritable (configure.ac): ... to here.
17815
17816 2011-05-07  Bruno Haible  <bruno@clisp.org>
17817
17818         futimens: Move AC_LIBOBJ invocations to module description.
17819         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17820         here...
17821         * modules/futimens (configure.ac): ... to here.
17822
17823 2011-05-07  Bruno Haible  <bruno@clisp.org>
17824
17825         ftruncate: Move AC_LIBOBJ invocations to module description.
17826         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17827         gl_PREREQ_FTRUNCATE invocations from here...
17828         * modules/ftruncate (configure.ac): ... to here.
17829
17830 2011-05-07  Bruno Haible  <bruno@clisp.org>
17831
17832         fsync: Move AC_LIBOBJ invocations to module description.
17833         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17834         invocations from here...
17835         * modules/fsync (configure.ac): ... to here.
17836
17837 2011-05-07  Bruno Haible  <bruno@clisp.org>
17838
17839         fsusage: Move AC_LIBOBJ invocations to module description.
17840         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17841         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17842         * modules/fsusage (configure.ac): ... to here.
17843
17844 2011-05-07  Bruno Haible  <bruno@clisp.org>
17845
17846         freopen: Move AC_LIBOBJ invocations to module description.
17847         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17848         invocations from here...
17849         * modules/freopen (configure.ac): ... to here.
17850
17851 2011-05-07  Bruno Haible  <bruno@clisp.org>
17852
17853         free: Move AC_LIBOBJ invocations to module description.
17854         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17855         invocations from here...
17856         * modules/free (configure.ac): ... to here.
17857
17858 2011-05-07  Bruno Haible  <bruno@clisp.org>
17859
17860         freadable: Move AC_LIBOBJ invocations to module description.
17861         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17862         here...
17863         * modules/freadable (configure.ac): ... to here.
17864
17865 2011-05-07  Bruno Haible  <bruno@clisp.org>
17866
17867         fpurge: Move AC_LIBOBJ invocations to module description.
17868         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17869         invocations from here...
17870         * modules/fpurge (configure.ac): ... to here.
17871
17872 2011-05-07  Bruno Haible  <bruno@clisp.org>
17873
17874         fpending: Move AC_LIBOBJ invocations to module description.
17875         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17876         gl_FUNC_FPENDING.
17877         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17878         invocations from here...
17879         * modules/fpending (configure.ac): ... to here.
17880
17881 2011-05-07  Bruno Haible  <bruno@clisp.org>
17882
17883         fopen: Move AC_LIBOBJ invocations to module description.
17884         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17885         invocations from here...
17886         * modules/fopen (configure.ac): ... to here.
17887
17888 2011-05-07  Bruno Haible  <bruno@clisp.org>
17889
17890         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17891         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17892         gl_FUNC_FNMATCH_POSIX.
17893         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17894         invocations from here...
17895         * modules/fnmatch (configure.ac): ... to here.
17896         * modules/fnmatch-gnu (configure.ac): ... and here.
17897
17898 2011-05-07  Bruno Haible  <bruno@clisp.org>
17899
17900         flock: Move AC_LIBOBJ invocations to module description.
17901         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17902         invocations from here...
17903         * modules/flock (configure.ac): ... to here.
17904
17905 2011-05-07  Bruno Haible  <bruno@clisp.org>
17906
17907         fileblocks: Move AC_LIBOBJ invocations to module description.
17908         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17909         gl_PREREQ_FILEBLOCKS invocations from here...
17910         * modules/fileblocks (configure.ac): ... to here.
17911
17912 2011-05-06  Bruno Haible  <bruno@clisp.org>
17913
17914         fflush: Move AC_LIBOBJ invocations to module description.
17915         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17916         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17917         invocations from here...
17918         * modules/fflush (configure.ac): ... to here.
17919
17920 2011-05-06  Bruno Haible  <bruno@clisp.org>
17921
17922         fdopendir: Move AC_LIBOBJ invocations to module description.
17923         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17924         here...
17925         * modules/fdopendir (configure.ac): ... to here.
17926         (Depends-on): Improve conditions.
17927
17928 2011-05-06  Bruno Haible  <bruno@clisp.org>
17929
17930         _Exit: Move AC_LIBOBJ invocations to module description.
17931         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17932         invocations from here...
17933         * modules/_Exit (configure.ac): ... to here.
17934
17935 2011-05-21  Bruno Haible  <bruno@clisp.org>
17936
17937         euidaccess: Respect rules for use of AC_LIBOBJ.
17938         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17940         from here...
17941         * modules/euidaccess (configure.ac): ... to here.
17942
17943 2011-05-06  Bruno Haible  <bruno@clisp.org>
17944
17945         error: Move AC_LIBOBJ invocations to module description.
17946         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17947         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17948         invocations from here...
17949         * modules/error (configure.ac): ... to here.
17950
17951 2011-05-06  Bruno Haible  <bruno@clisp.org>
17952
17953         duplocale: Move AC_LIBOBJ invocations to module description.
17954         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17955         gl_PREREQ_DUPLOCALE invocations from here...
17956         * modules/duplocale (configure.ac): ... to here.
17957
17958 2011-05-05  Bruno Haible  <bruno@clisp.org>
17959
17960         dirfd: Move AC_LIBOBJ invocations to module description.
17961         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17962         gl_FUNC_DIRFD.
17963         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17964         here...
17965         * modules/dirfd (configure.ac): ... to here.
17966         (Depends-on): Fix condition.
17967
17968 2011-05-05  Bruno Haible  <bruno@clisp.org>
17969
17970         chown: Respect rules for use of AC_LIBOBJ.
17971         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17972         * modules/chown (configure.ac): ... to here.
17973
17974 2011-05-05  Bruno Haible  <bruno@clisp.org>
17975
17976         chdir-long: Move AC_LIBOBJ invocations to module description.
17977         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17978         gl_PREREQ_CHDIR_LONG invocations from here...
17979         * modules/chdir-long (configure.ac): ... to here.
17980
17981 2011-05-05  Bruno Haible  <bruno@clisp.org>
17982
17983         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17984         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17985         from here...
17986         * modules/canonicalize-lgpl (configure.ac): ... to here.
17987
17988 2011-05-05  Bruno Haible  <bruno@clisp.org>
17989
17990         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17991         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17992         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17993         REPLACE_CALLOC.
17994         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17995         * modules/calloc-gnu (configure.ac): Likewise.
17996
17997 2011-05-05  Bruno Haible  <bruno@clisp.org>
17998
17999         btowc: Move AC_LIBOBJ invocations to module description.
18000         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18001         invocations from here...
18002         * modules/btowc (configure.ac): ... to here.
18003
18004 2011-05-21  Bruno Haible  <bruno@clisp.org>
18005
18006         atexit: Move AC_LIBOBJ invocations to module description.
18007         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18008         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18009         here...
18010         * modules/atexit (configure.ac): ... to here.
18011
18012 2011-05-05  Bruno Haible  <bruno@clisp.org>
18013
18014         atoll: Move AC_LIBOBJ invocations to module description.
18015         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18016         invocations from here...
18017         * modules/atoll (configure.ac): ... to here.
18018
18019 2011-05-05  Bruno Haible  <bruno@clisp.org>
18020
18021         argz: Move AC_LIBOBJ invocations to module description.
18022         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18023         * modules/argz (configure.ac): ... to here.
18024
18025 2011-05-05  Bruno Haible  <bruno@clisp.org>
18026
18027         alphasort: Move AC_LIBOBJ invocations to module description.
18028         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18029         gl_PREREQ_ALPHASORT invocations from here...
18030         * modules/alphasort (configure.ac): ... to here.
18031
18032 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18033
18034         verify: new macro verify_expr; verify_true deprecated
18035         * NEWS: Mention this.
18036         * doc/verify.texi (Compile-time Assertions): Document this.
18037         * lib/verify.h (verify_true): Deprecate.
18038         (verify_expr): New macro.
18039         * tests/test-verify.c (function): Test verify_expr.
18040
18041 2011-06-14  Jim Meyering  <meyering@redhat.com>
18042
18043         init.sh: give more portable redirection-related advice in a comment
18044         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18045         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18046         for lots of discussion.  Stefano Lattarini suggested the solution
18047         of putting "9>&2" after the command.  Reported by Bruno Haible.
18048
18049 2011-06-13  Bruno Haible  <bruno@clisp.org>
18050
18051         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18053         'none'.
18054
18055 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18056
18057         ftoastr: use strtof only if HAVE_STRTOF
18058         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18060         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18061         * modules/ftoastr (configure.ac): Check for strtof.
18062
18063 2011-06-13  Bruno Haible  <bruno@clisp.org>
18064
18065         gnulib-tool: Addendum to 2011-06-08 commit.
18066         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18067         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18068
18069 2011-06-13  Bruno Haible  <bruno@clisp.org>
18070
18071         fseeko: Provide a non-inline replacement of fseek().
18072         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18073         * modules/fseeko (Depends-on): Add fseek.
18074         * modules/fseek (License): Change to LGPLv2+.
18075
18076 2011-06-13  Bruno Haible  <bruno@clisp.org>
18077
18078         ftello: Provide a non-inline replacement of ftell().
18079         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18080         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18081         not have ftello() (such as on mingw).
18082         * modules/ftello (Depends-on): Add ftell.
18083         * modules/ftell (License): Change to LGPLv2+.
18084
18085 2011-05-07  Bruno Haible  <bruno@clisp.org>
18086
18087         ftell: Move AC_LIBOBJ invocations to module description.
18088         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18089         * modules/ftell (configure.ac): ... to here.
18090
18091 2011-05-07  Bruno Haible  <bruno@clisp.org>
18092
18093         ftello: Respect rules for use of AC_LIBOBJ.
18094         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18095         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18096         here...
18097         * modules/ftello (configure.ac): ... to here.
18098
18099 2011-05-07  Bruno Haible  <bruno@clisp.org>
18100
18101         fseeko: Simplify.
18102         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18103         (gl_FUNC_FSEEKO): Inline it here.
18104
18105 2011-05-07  Bruno Haible  <bruno@clisp.org>
18106
18107         fseek: Move AC_LIBOBJ invocations to module description.
18108         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18109         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18110         * modules/fseek (configure.ac): ... to here.
18111
18112 2011-05-07  Bruno Haible  <bruno@clisp.org>
18113
18114         fseek: Respect rules for use of AC_LIBOBJ.
18115         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18116         here...
18117         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18118
18119 2011-05-07  Bruno Haible  <bruno@clisp.org>
18120
18121         fseeko: Respect rules for use of AC_LIBOBJ.
18122         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18123         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18124         here...
18125         * modules/fseeko (configure.ac): ... to here.
18126
18127 2011-06-13  Bruno Haible  <bruno@clisp.org>
18128
18129         gnulib-tool: Allow comments in the 'Depends-on' section.
18130         * doc/gnulib.texi (Module description): Mention comment syntax in the
18131         Depends-on section.
18132         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18133
18134 2011-06-13  Bruno Haible  <bruno@clisp.org>
18135
18136         file-set.h: guard __attibute__ use, now that it's not always defined
18137         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18138         versions that support it.  This fixes a coreutils build failure with
18139         the vendor cc on HP-UX 11.31.
18140
18141 2011-06-12  Bruno Haible  <bruno@clisp.org>
18142
18143         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18144         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18145         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18146         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18147         (acl, aclsort): New declarations.
18148         (aclv_nontrivial): New declaration.
18149         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18150         (file_has_acl): Read also the second kind of HP-UX ACLs.
18151         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18152         kind of HP-UX ACLs if the first kind fails.
18153         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18154         second kind of HP-UX ACLs.
18155         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18156         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18157         agree.
18158         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18159         hpuxjfs.
18160         Handle hpuxjfs.
18161         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18162         hpuxjfs.
18163         Handle hpuxjfs.
18164         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18165         (func_test_same_acls): Use both lsacl and getacl.
18166         Handle hpuxjfs.
18167         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18168         (func_test_same_acls): Use both lsacl and getacl.
18169         Handle hpuxjfs.
18170
18171 2011-06-12  Bruno Haible  <bruno@clisp.org>
18172
18173         acl: Complete the 2010-08-10 fix.
18174         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18175         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18176         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18177         explicitly.
18178         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18179         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18180
18181 2011-06-12  Bruno Haible  <bruno@clisp.org>
18182
18183         spawn-pipe tests: Comments.
18184         * tests/test-spawn-pipe-child.c (main): Update comment.
18185         Reported by James Youngman <jay@gnu.org>.
18186
18187 2011-06-11  James Youngman  <jay@gnu.org>
18188
18189         New module 'stat-size'.
18190         * modules/stat-size: New module.  Provides macros for accessing
18191         file size information in instances of struct stat.  Depends on the
18192         fileblocks module because it calls st_blocks.
18193         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18194         * doc/gnulib.texi: Include stat-size.texi.
18195         * doc/stat-size.texi: Documentation for this module.
18196         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18197         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18198         AC_STRUCT_ST_BLOCKS.
18199
18200 2011-06-09  Bruno Haible  <bruno@clisp.org>
18201
18202         thread: Support pthreads-win32.
18203         * lib/glthread/thread.h (gl_thread_self): Define differently on
18204         pthreads-win32.
18205         (gl_null_thread): New declaration.
18206         (gl_thread_self_pointer): New macro.
18207         * lib/glthread/thread.c (gl_null_thread): New constant.
18208         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18209         gl_thread_self.
18210         * tests/test-tls.c: Likewise.
18211         Suggested by Paul Eggert. Reported by Eric Blake.
18212
18213 2011-06-09  Bruno Haible  <bruno@clisp.org>
18214
18215         thread: Fix confusion between NULL and 0.
18216         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18217         Reported by Paul Eggert.
18218
18219 2011-06-09  Bruno Haible  <bruno@clisp.org>
18220
18221         spawn-pipe tests: Avoid test failure on HP-UX 11.
18222         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18223         is closed.
18224
18225 2011-06-09  Bruno Haible  <bruno@clisp.org>
18226
18227         acl tests: Fix compilation error on HP-UX 11.
18228         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18229
18230 2011-06-09  Bruno Haible  <bruno@clisp.org>
18231
18232         rmdir: Avoid test failure on HP-UX 10.20.
18233         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18234         EEXIST.
18235
18236 2011-06-08  Eric Blake  <eblake@redhat.com>
18237
18238         perror: fix test on mingw
18239         * modules/perror-tests (Depends-on): Add dup2.
18240
18241         strerror_r-posix: fix on MacOS
18242         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18243         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18244         logic bug.
18245         * lib/strerror_r.c (strerror_r): Fix the bug.
18246         * lib/strerror.c (strerror): Likewise.
18247         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18248         problem.
18249         * doc/posix-functions/strerror.texi (strerror): Likewise.
18250         * doc/posix-functions/perror.texi (perror): Likewise.
18251         * tests/test-strerror.c (main): Enhance test.
18252         * tests/test-strerror_r.c (main): Likewise.
18253
18254 2011-06-08  Bruno Haible  <bruno@clisp.org>
18255
18256         gnulib-tool: Better isolation between different gnulib-tool invocations.
18257         * gnulib-tool: New option --witness-c-macro.
18258         (witness_c_macro): New variable.
18259         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18260         AM_CPPFLAGS define it as a C macro.
18261         (func_emit_tests_Makefile_am): Likewise.
18262         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18263         read it from there.
18264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18265         m4_define, not AC_DEFUN.
18266         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18267         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18268         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18269         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18270         s|...|...|, to substitute the values of the GNULIB_* module indicator
18271         variables.
18272         * modules/dirent (Makefile.am): Likewise.
18273         * modules/fcntl-h (Makefile.am): Likewise.
18274         * modules/iconv-h (Makefile.am): Likewise.
18275         * modules/langinfo (Makefile.am): Likewise.
18276         * modules/locale (Makefile.am): Likewise.
18277         * modules/math (Makefile.am): Likewise.
18278         * modules/netdb (Makefile.am): Likewise.
18279         * modules/poll-h (Makefile.am): Likewise.
18280         * modules/pty (Makefile.am): Likewise.
18281         * modules/search (Makefile.am): Likewise.
18282         * modules/signal (Makefile.am): Likewise.
18283         * modules/spawn (Makefile.am): Likewise.
18284         * modules/stdio (Makefile.am): Likewise.
18285         * modules/stdlib (Makefile.am): Likewise.
18286         * modules/string (Makefile.am): Likewise.
18287         * modules/sys_ioctl (Makefile.am): Likewise.
18288         * modules/sys_select (Makefile.am): Likewise.
18289         * modules/sys_socket (Makefile.am): Likewise.
18290         * modules/sys_stat (Makefile.am): Likewise.
18291         * modules/sys_times (Makefile.am): Likewise.
18292         * modules/sys_utsname (Makefile.am): Likewise.
18293         * modules/sys_wait (Makefile.am): Likewise.
18294         * modules/termios (Makefile.am): Likewise.
18295         * modules/time (Makefile.am): Likewise.
18296         * modules/unistd (Makefile.am): Likewise.
18297         * modules/wchar (Makefile.am): Likewise.
18298
18299 2011-06-08  Eric Blake  <eblake@redhat.com>
18300
18301         strerror: simplify replacement
18302         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18303         * modules/strerror (configure.ac): No prereqs needed here...
18304         * modules/strerror-override (configure.ac): ...but this needs it.
18305         (Files): Add file for needed prereq macro.
18306
18307 2011-06-08  Bruno Haible  <bruno@clisp.org>
18308
18309         strerror_r-posix: Tweaks.
18310         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18311         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18312         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18313         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18314         (gl_FUNC_STRERROR_R): ... to here.
18315         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18316
18317 2011-06-07  Eric Blake  <eblake@redhat.com>
18318
18319         perror: document fixed bugs
18320         * doc/posix-functions/perror.texi (perror): Document recent
18321         patches.
18322
18323 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18324
18325         stat-time: get_stat_birthtime failure is better-defined
18326         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18327         return a timestamp whose tv_sec and tv_nsec values are both -1.
18328         Previously, the spec said only that the tv_nsec value was negative.
18329         This upward-compatible change simplifies GNU tar a bit.
18330
18331 2011-06-07  Eric Blake  <eblake@redhat.com>
18332
18333         strerror_r-posix: work around cygwin 1.7.9
18334         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18335         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18336         bug without replacing strerror_r.
18337         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18338         strerror_r is buggy, but without requiring strerror_r compilation.
18339         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18340
18341         test-perror: relax test to ignore cygwin bug
18342         * tests/test-perror2.c (main): Relax test on requiring detection
18343         of stream errors, and use unbuffered stream.
18344         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18345         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18346         * doc/posix-functions/fputc.texi (fputc): Likewise.
18347         * doc/posix-functions/fputs.texi (fputs): Likewise.
18348         * doc/posix-functions/fputws.texi (fputws): Likewise.
18349         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18350         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18351         * doc/posix-functions/getopt.texi (getopt): Likewise.
18352         * doc/posix-functions/perror.texi (perror): Likewise.
18353         * doc/posix-functions/printf.texi (printf): Likewise.
18354         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18355         * doc/posix-functions/psignal.texi (psignal): Likewise.
18356         * doc/posix-functions/putc.texi (putc): Likewise.
18357         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18358         Likewise.
18359         * doc/posix-functions/putchar.texi (putchar): Likewise.
18360         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18361         Likewise.
18362         * doc/posix-functions/puts.texi (puts): Likewise.
18363         * doc/posix-functions/putwc.texi (putwc): Likewise.
18364         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18365         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18366         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18367         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18368         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18369         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18370         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18371         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18372
18373 2011-05-22  Bruno Haible  <bruno@clisp.org>
18374
18375         strerror: Move AC_LIBOBJ invocations to module description.
18376         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18377         gl_PREREQ_STRERROR invocations from here...
18378         * modules/strerror (configure.ac): ... to here.
18379
18380 2011-05-21  Bruno Haible  <bruno@clisp.org>
18381
18382         perror: Use common idiom.
18383         * modules/perror (configure.ac): Reorder statements.
18384
18385 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18386
18387         tests: fix usage message in 'mktempd_'
18388         * tests/init.sh (mktempd_): In the usage message, use literal
18389         'mktempd_', not '$ME' (which is even undefined), as the name of
18390         the subroutine.
18391
18392 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18393
18394         tests init: new function 'fatal_', for hard errors
18395         Before this patch, the only way offered by tests/init.sh to
18396         properly signal a hard error was the `framework_failure_'
18397         function.  But the error message issued by that function,
18398         as its name would suggest, refers to a set-up failure in the
18399         testsuite, while hard errors can obviously also be due to
18400         other reasons.  The best way to fix this inconsistency is to
18401         introduce a new function with a more general error message.
18402         * tests/init.sh (fatal_): New function.
18403
18404 2011-06-06  Eric Blake  <eblake@redhat.com>
18405
18406         canonicalize-lgpl: use common idiom
18407         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18408         over newer POSIX -Rf.
18409         Reported by Bruno Haible.
18410
18411         canonicalize-lgpl: work around AIX realpath bug
18412         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18413         * doc/posix-functions/realpath.texi (realpath): Document it.
18414         Reported by Bruno Haible.
18415
18416         strerror: work around FreeBSD bug
18417         * lib/strerror.c (strerror): Special case 0.
18418         Reported by Bruno Haible.
18419
18420         strerror-override: avoid bloating errno module
18421         * modules/errno (Files, configure.ac): Move replacement strings...
18422         * modules/strerror-override: ...to new module.
18423         * modules/strerror (Depends-on): Add strerror-override.
18424         * modules/strerror_r-posix (Depends-on): Likewise.
18425         * MODULES.html.sh: Document new module.
18426         Reported by Bruno Haible.
18427
18428 2011-06-06  Bruno Haible  <bruno@clisp.org>
18429
18430         spawn-pipe tests: Rename program.
18431         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18432         * tests/test-spawn-pipe-child.c: Update comment.
18433         * tests/test-spawn-pipe.sh: Update.
18434         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18435
18436         spawn-pipe tests: Link the child program only against libc.
18437         * tests/test-spawn-pipe-child.c: New file, extracted from
18438         tests/test-spawn-pipe.c.
18439         (main): Expect only one argument.
18440         (is_open): New function, copied from tests/test-pipe.c.
18441         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18442         (child_main): Remove function.
18443         (test_pipe): Pass only one argument to the child program.
18444         (main): Remove child process code. Expect the child program's name as
18445         first argument.
18446         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18447         argument.
18448         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18449         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18450         test-spawn-pipe-child against no libraries.
18451
18452 2011-06-06  Bruno Haible  <bruno@clisp.org>
18453
18454         careadlinkat: Avoid mismatch between ssize_t and int.
18455         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18456         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18457
18458 2011-06-06  Jim Meyering  <meyering@redhat.com>
18459
18460         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18461         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18462         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18463
18464 2011-06-05  Bruno Haible  <bruno@clisp.org>
18465
18466         ansi-c++-opt: Interoperability with libtool.
18467         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18468         set the variable to "no", not to ":".
18469         * NEWS: Mention the change.
18470
18471 2011-06-05  Bruno Haible  <bruno@clisp.org>
18472
18473         acl: Fix test failure on AIX 7.
18474         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18475         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18476
18477 2011-06-05  Bruno Haible  <bruno@clisp.org>
18478
18479         pipe-filter-ii: Fix test failure on AIX and IRIX.
18480         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18481         with EAGAIN, retry with a smaller buffer size.
18482
18483 2011-06-05  Bruno Haible  <bruno@clisp.org>
18484
18485         localename: Fix link dependencies.
18486         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18487         * modules/localename-tests (Makefile.am): Link test-localename with
18488         $(LIBTHREAD).
18489
18490 2011-06-05  Bruno Haible  <bruno@clisp.org>
18491
18492         error: Avoid gcc warning.
18493         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18494
18495 2011-06-05  Bruno Haible  <bruno@clisp.org>
18496
18497         unsetenv: Avoid gcc warning.
18498         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18499
18500 2011-06-05  Bruno Haible  <bruno@clisp.org>
18501
18502         setenv: Avoid gcc warning.
18503         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18504
18505 2011-06-05  Bruno Haible  <bruno@clisp.org>
18506
18507         sys_select: Ensure memset is declared also on AIX 7.
18508         * lib/sys_select.in.h: Include <string.h> also on AIX.
18509         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18510         self-contained also on AIX 7.1.
18511
18512 2011-06-04  Jim Meyering  <meyering@redhat.com>
18513
18514         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18515         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18516         function name, "error".
18517         (_gl_translatable_diag_func_re): New configurable variable.
18518
18519 2011-06-04  Bruno Haible  <bruno@clisp.org>
18520
18521         getopt: Avoid gcc warning.
18522         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18523
18524 2011-06-04  Bruno Haible  <bruno@clisp.org>
18525
18526         strerror_r: Fix comments.
18527         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18528         commit.
18529
18530 2011-06-04  Bruno Haible  <bruno@clisp.org>
18531
18532         perror: Fix compilation error.
18533         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18534         Undefine fprintf, not sprintf.
18535         * modules/perror (Depends-on): Remove intprops, verify.
18536
18537 2011-06-04  Bruno Haible  <bruno@clisp.org>
18538
18539         setlocale: Enable replacement on Cygwin 1.5.
18540         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18541         Cygwin 1.5.x.
18542         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18543         LC_CTYPE category also exists on Cygwin 1.5.x.
18544
18545 2011-06-04  Bruno Haible  <bruno@clisp.org>
18546
18547         strerror-override: Don't disable symbol renamings.
18548         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18549         * lib/strerror-override.c: Include config.h.
18550         (strerror_override): Don't undefine.
18551
18552 2011-06-03  Bruno Haible  <bruno@clisp.org>
18553
18554         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18555         * lib/localename.h: Update copyright header.
18556         * lib/localename.c: Likewise.
18557         * lib/relocatable.h: Likewise.
18558         * lib/relocatable.c: Likewise.
18559
18560 2011-06-02  Bruno Haible  <bruno@clisp.org>
18561
18562         doc: Fix a module name.
18563         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18564
18565 2011-06-02  Bruno Haible  <bruno@clisp.org>
18566
18567         pipe2: Remove dependency on 'nonblocking' module.
18568         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18569         O_NONBLOCK is defined by gnulib.
18570         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18571         is zero.
18572         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18573         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18574         defined by gnulib.
18575         (get_nonblocking_flag): New function.
18576         (main): Test O_NONBLOCK flag only if it is nonzero.
18577         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18578
18579 2011-06-03  Jim Meyering  <meyering@redhat.com>
18580
18581         maint: three new prohibit-header-without-use rules
18582         Prohibit use of cloexec.h, posixver.h, same.h without use.
18583         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18584         (sc_prohibit_posixver_without_use): Likewise.
18585         (sc_prohibit_same_without_use): Likewise.
18586
18587 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18588
18589         allocator: 'die' routine is now given requested size
18590         * lib/allocator.h (struct allocator.die): New size arg.
18591         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18592         If the actual problem is an ssize_t limitation, not a size_t or
18593         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18594
18595 2011-06-01  Eric Blake  <eblake@redhat.com>
18596
18597         strerror: drop strerror_r dependency
18598         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18599         * lib/strerror-override.c (strerror_override): ...to new file.
18600         * lib/strerror-override.h: Add prototype.
18601         * lib/strerror-impl.h: Delete.
18602         * lib/strerror.c (strerror): New implementation.
18603         * modules/errno (Files): Add new files.
18604         (configure.ac): Compile new file as appropriate.
18605         * modules/strerror (Files): Drop unused file.
18606         (Depends-on): Drop strerror_r-posix.
18607         * MODULES.html.sh: Document strerror_r-posix.
18608         Requested by Sam Steingold.
18609
18610         perror: call strerror_r directly
18611         * modules/perror (Files): Drop strerror-impl.h.
18612         * lib/perror.c (perror): Use our own stack buffer, rather than
18613         calling a wrapper that uses static storage.
18614         * doc/posix-functions/perror.texi (perror): Document a limitation
18615         of our replacement.
18616
18617         strerror_r: fix includes for FreeBSD
18618         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18619         since we use abort on some platforms.
18620         Reported by Matthias Bolte.
18621
18622 2011-05-31  Bruno Haible  <bruno@clisp.org>
18623
18624         Fix link errors in tests: openat-die uses gettext-h.
18625         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18626         against $(LIBINTL).
18627         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18628         against $(LIBINTL).
18629         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18630         $(LIBINTL).
18631         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18632         against $(LIBINTL).
18633         * modules/linkat-tests (Makefile.am): Link test-linkat against
18634         $(LIBINTL).
18635         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18636         $(LIBINTL).
18637         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18638         against $(LIBINTL).
18639         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18640         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18641         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18642         $(LIBINTL).
18643         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18644         $(LIBINTL).
18645         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18646         $(LIBINTL).
18647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18648
18649 2011-05-31  Bruno Haible  <bruno@clisp.org>
18650
18651         Fix link errors in tests: wait-process uses gettext-h.
18652         * modules/nonblocking-pipe-tests (Makefile.am): Set
18653         test_nonblocking_pipe_main_LDADD.
18654         * modules/nonblocking-socket-tests (Makefile.am): Link
18655         test-nonblocking-socket-main against $(LIBINTL).
18656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18657
18658 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18659
18660         assert-h: work around 'verify' incompatibility
18661         * lib/verify.h: Use @...@ directives, not ifdef.
18662         * modules/assert-h (assert.h): Implement the directives.
18663         (assert.h): Substitute the symbol-prefix more consistently.
18664
18665 2011-05-29  Jim Meyering  <meyering@redhat.com>
18666
18667         trim: remove three superfluous assignments
18668         * lib/trim.c (trim2): Remove three superfluous assignments
18669         and correct brace positioning.
18670
18671 2011-05-29  Bruno Haible  <bruno@clisp.org>
18672
18673         wctype-h: Avoid namespace pollution on Solaris 2.6.
18674         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18675         identifiers.
18676         * doc/posix-headers/wctype.texi: Mention the problem.
18677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18678
18679 2011-05-28  Jim Meyering  <meyering@redhat.com>
18680
18681         parse-datetime.y: accommodate -Wstrict-overflow
18682         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18683         placate -Wstrict-overflow.
18684
18685         trim: avoid a warning from -O2 -Wstrict-overflow
18686         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18687
18688 2011-05-29  Bruno Haible  <bruno@clisp.org>
18689
18690         gnulib-tool: Fix bug in yesterday's commit.
18691         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18692         twice.
18693
18694 2011-05-29  Bruno Haible  <bruno@clisp.org>
18695
18696         Allow multiple gnulib generated include files to be combined.
18697         * gnulib-tool (func_compute_include_guard_prefix): New function.
18698         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18699         ${gl_include_guard_prefix} references.
18700         (func_import, func_create_testdir): Invoke
18701         func_compute_include_guard_prefix.
18702         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18703         * lib/ctype.in.h: Likewise.
18704         * lib/dirent.in.h: Likewise.
18705         * lib/errno.in.h: Likewise.
18706         * lib/fcntl.in.h: Likewise.
18707         * lib/float.in.h: Likewise.
18708         * lib/getopt.in.h: Likewise.
18709         * lib/iconv.in.h: Likewise.
18710         * lib/langinfo.in.h: Likewise.
18711         * lib/locale.in.h: Likewise.
18712         * lib/math.in.h: Likewise.
18713         * lib/netdb.in.h: Likewise.
18714         * lib/netinet_in.in.h: Likewise.
18715         * lib/poll.in.h: Likewise.
18716         * lib/pthread.in.h: Likewise.
18717         * lib/pty.in.h: Likewise.
18718         * lib/sched.in.h: Likewise.
18719         * lib/se-selinux.in.h: Likewise.
18720         * lib/search.in.h: Likewise.
18721         * lib/signal.in.h: Likewise.
18722         * lib/spawn.in.h: Likewise.
18723         * lib/stdarg.in.h: Likewise.
18724         * lib/stddef.in.h: Likewise.
18725         * lib/stdint.in.h: Likewise.
18726         * lib/stdio.in.h: Likewise.
18727         * lib/stdlib.in.h: Likewise.
18728         * lib/string.in.h: Likewise.
18729         * lib/strings.in.h: Likewise.
18730         * lib/sys_file.in.h: Likewise.
18731         * lib/sys_ioctl.in.h: Likewise.
18732         * lib/sys_select.in.h: Likewise.
18733         * lib/sys_socket.in.h: Likewise.
18734         * lib/sys_stat.in.h: Likewise.
18735         * lib/sys_time.in.h: Likewise.
18736         * lib/sys_times.in.h: Likewise.
18737         * lib/sys_uio.in.h: Likewise.
18738         * lib/sys_utsname.in.h: Likewise.
18739         * lib/sys_wait.in.h: Likewise.
18740         * lib/sysexits.in.h: Likewise.
18741         * lib/termios.in.h: Likewise.
18742         * lib/time.in.h: Likewise.
18743         * lib/unistd.in.h: Likewise.
18744         * lib/wchar.in.h: Likewise.
18745         * lib/wctype.in.h: Likewise.
18746         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18747         * modules/ctype (Makefile.am): Likewise.
18748         * modules/dirent (Makefile.am): Likewise.
18749         * modules/errno (Makefile.am): Likewise.
18750         * modules/fcntl-h (Makefile.am): Likewise.
18751         * modules/float (Makefile.am): Likewise.
18752         * modules/getopt-posix (Makefile.am): Likewise.
18753         * modules/iconv-h (Makefile.am): Likewise.
18754         * modules/langinfo (Makefile.am): Likewise.
18755         * modules/locale (Makefile.am): Likewise.
18756         * modules/math (Makefile.am): Likewise.
18757         * modules/netdb (Makefile.am): Likewise.
18758         * modules/netinet_in (Makefile.am): Likewise.
18759         * modules/poll-h (Makefile.am): Likewise.
18760         * modules/pthread (Makefile.am): Likewise.
18761         * modules/pty (Makefile.am): Likewise.
18762         * modules/sched (Makefile.am): Likewise.
18763         * modules/search (Makefile.am): Likewise.
18764         * modules/selinux-h (Makefile.am): Likewise.
18765         * modules/signal (Makefile.am): Likewise.
18766         * modules/spawn (Makefile.am): Likewise.
18767         * modules/stdarg (Makefile.am): Likewise.
18768         * modules/stddef (Makefile.am): Likewise.
18769         * modules/stdint (Makefile.am): Likewise.
18770         * modules/stdio (Makefile.am): Likewise.
18771         * modules/stdlib (Makefile.am): Likewise.
18772         * modules/string (Makefile.am): Likewise.
18773         * modules/strings (Makefile.am): Likewise.
18774         * modules/sys_file (Makefile.am): Likewise.
18775         * modules/sys_ioctl (Makefile.am): Likewise.
18776         * modules/sys_select (Makefile.am): Likewise.
18777         * modules/sys_socket (Makefile.am): Likewise.
18778         * modules/sys_stat (Makefile.am): Likewise.
18779         * modules/sys_time (Makefile.am): Likewise.
18780         * modules/sys_times (Makefile.am): Likewise.
18781         * modules/sys_uio (Makefile.am): Likewise.
18782         * modules/sys_utsname (Makefile.am): Likewise.
18783         * modules/sys_wait (Makefile.am): Likewise.
18784         * modules/sysexits (Makefile.am): Likewise.
18785         * modules/termios (Makefile.am): Likewise.
18786         * modules/time (Makefile.am): Likewise.
18787         * modules/unistd (Makefile.am): Likewise.
18788         * modules/wchar (Makefile.am): Likewise.
18789         * modules/wctype-h (Makefile.am): Likewise.
18790         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18791
18792 2011-05-29  Bruno Haible  <bruno@clisp.org>
18793
18794         assert-h: Allow multiple gnulib generated replacements to coexist.
18795         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18796
18797 2011-05-29  Bruno Haible  <bruno@clisp.org>
18798
18799         argp: Allow coexistence with strerror_r-posix module.
18800         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18801         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18802         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18803         not the glibc signature.
18804
18805 2011-05-28  Bruno Haible  <bruno@clisp.org>
18806
18807         gnulib-tool: Alternative structure of testdirs, similar to --import.
18808         * gnulib-tool: New option --single-configure.
18809         (func_usage): Document it.
18810         (single_configure): New variable.
18811         (func_modules_transitive_closure_separately,
18812         func_modules_transitive_closure_separately,
18813         func_determine_use_libtests, func_modules_add_dummy_separately,
18814         func_modules_to_filelist_separately): New functions, extracted from
18815         func_import.
18816         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18817         (func_import): Use the new functions.
18818         (func_create_testdir): Set final_modules. Handle $single_configure =
18819         true case.
18820
18821 2011-05-28  Bruno Haible  <bruno@clisp.org>
18822
18823         getloadavg: Remove an unreliable safety check.
18824         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18825         getloadavg.c is in place.
18826         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18827         Reported by Sam Steingold <sds@gnu.org>.
18828
18829 2011-05-28  Bruno Haible  <bruno@clisp.org>
18830
18831         doc: Cleanup yet another file produced by texinfo.tex.
18832         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18833
18834 2011-05-28  Bruno Haible  <bruno@clisp.org>
18835
18836         Finish the conditional dependencies mechanism.
18837         * gnulib-tool: New option --no-conditional-dependencies.
18838         (func_usage): Document it. Don't mark --conditional-dependencies as
18839         experimental.
18840         (cond_dependencies): The possible values can now be true, false, empty.
18841         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18842         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18843         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18844
18845 2011-05-28  Bruno Haible  <bruno@clisp.org>
18846
18847         doc: Use a recent texinfo.tex.
18848         * doc/Makefile (tex_opts): New variable.
18849         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18850
18851 2011-05-28  Jim Meyering  <meyering@redhat.com>
18852
18853         intprops.h: adjust comment to match code change
18854         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18855         only once, it *may* have side effects.  Also fix an unrelated typo.
18856         (_GL_INT_SIGNED): Likewise.
18857
18858 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18859
18860         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18861
18862 2011-05-26  Bruno Haible  <bruno@clisp.org>
18863
18864         mbsrchr: Avoid collision with system function on Interix.
18865         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18866         Reported by Markus Duft <mduft@gentoo.org>.
18867
18868 2011-05-15  James Youngman  <jay@gnu.org>
18869
18870         getopt: for ambiguous options, enumerate the possibilities.
18871         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18872         the ambiguous options when an ambiguous prefix is given. This was
18873         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18874         glibc change was
18875         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18876
18877 2011-05-25  Eric Blake  <eblake@redhat.com>
18878
18879         getcwd: work around mingw bug
18880         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18881         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18882         Reported by Matthias Bolte.
18883
18884 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18885
18886         test-intprops: disable -Wtype-limits diagnostics
18887         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18888         diagnostics.  Otherwise, the integer overflow macros generate many
18889         diagnostics.  Reported by Jim Meyering in
18890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18891
18892         intprops: shorten, to pacify gcc -Woverlength-strings
18893         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18894         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18895         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18896         likely to run afoul of C compiler limits for string constant lengths.
18897         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18898
18899 2011-05-24  Eric Blake  <eblake@redhat.com>
18900
18901         docs: document recently fixed glibc printf bug
18902         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18903         * doc/posix-functions/printf.texi (printf): Likewise.
18904         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18905         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18906
18907         closein-tests: convert to init.sh
18908         * modules/closein-tests (Files): Add init.sh
18909         * tests/test-closein.sh Use it.
18910
18911         yesno-tests: convert to init.sh
18912         * modules/yesno-tests (Files): Add init.sh.
18913         * tests/test-yesno.sh: Use it.
18914
18915         atexit-tests: ensure reliable exit status
18916         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18917         Reported by Bruno Haible.
18918
18919 2011-05-24  Bruno Haible  <bruno@clisp.org>
18920
18921         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18922         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18923         gl_PREREQ_STRERROR_R invocations from here...
18924         * modules/strerror_r-posix (configure.ac): ... to here.
18925
18926 2011-05-24  Eric Blake  <eblake@redhat.com>
18927
18928         strerror_r: fix missing header
18929         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18930
18931         strerror_r: fix AIX test failures
18932         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18933         ERANGE failure.
18934
18935         strerror_r: fix Solaris test failures
18936         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18937         failures.
18938         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18939
18940         strerror_r: enforce POSIX recommendations
18941         * lib/strerror_r.c (safe_copy): New helper method.
18942         (strerror_r): Guarantee a non-empty string.
18943         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18944         recent POSIX rulings and to match our strerror guarantees.
18945         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18946
18947 2011-05-24  Jim Meyering  <meyering@redhat.com>
18948
18949         test-perror2.c: avoid warning about unused variable
18950         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18951
18952 2011-05-24  Eric Blake  <eblake@redhat.com>
18953
18954         perror: avoid spurious test failure on HP-UX
18955         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18956
18957         tests: fix logic bug in init.sh
18958         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18959         shell.
18960
18961 2011-05-24  Jim Meyering  <meyering@redhat.com>
18962
18963         utimensat: do not reference an out-of-scope buffer
18964         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18965         declared in an inner scope, yet "times" would be dereferenced outside
18966         the scope in which "ts" was valid.
18967         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18968         of ts[2] "out/up", so that the use of aliased "times" (via
18969         "times = ts;") does not end up referencing an out-of-scope "ts"
18970
18971         opendir-safer.c: don't clobber errno; don't close negative FD
18972         * lib/opendir-safer.c (opendir_safer):
18973         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18974         file descriptor, and more importantly, don't clobber the
18975         offending errno value with EINVAL.  Before, upon failure
18976         of dup_safer, we would pass the negative file descriptor to
18977         fdopendir, which would clobber errno.
18978
18979 2011-05-23  Bruno Haible  <bruno@clisp.org>
18980
18981         idcache: Fix module description.
18982         * modules/idcache (Include): Set to "idcache.h".
18983
18984 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18985
18986         gnulib-tool: fix portability problem with MacOS sed
18987         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18988         before the "}".  Problem reported by Leo in
18989         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18990         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18991         sed_extract_condition1, sed_extract_condition2.
18992
18993 2011-05-23  Bruno Haible  <bruno@clisp.org>
18994
18995         hash: Simplify autoconf macro.
18996         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18997
18998 2011-05-23  Bruno Haible  <bruno@clisp.org>
18999
19000         getugroups: Fix module description.
19001         * modules/getugroups (Include): Set to "getugroups.h".
19002
19003 2011-05-23  Bruno Haible  <bruno@clisp.org>
19004
19005         linkat: Simplify autoconf macro.
19006         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19007
19008 2011-05-23  Bruno Haible  <bruno@clisp.org>
19009             Eric Blake  <eblake@redhat.com>
19010
19011         linkat, renameat: Update dependencies.
19012         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19013         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19014         symlinkat.
19015
19016 2011-05-23  Jim Meyering  <meyering@redhat.com>
19017
19018         maint.mk: more tight_scope improvements
19019         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19020         (_gl_TS_headers): Define only in if-0'd block.
19021         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19022         sometimes we must *not* use it.  Adjust uses accordingly.
19023         (sc_tight_scope): Use much simpler grep-based test to determine
19024         whether we skip this rule.
19025
19026         maint.mk: generalize/improve the tight-scope rule
19027         * top/maint.mk: Emit a warning when the test is skipped.
19028         (_gl_TS_dir): Add $(srcdir)/ prefix.
19029         (_gl_TS_function_match): Simplify, rather than trying
19030         to enumerate common types.  Otherwise, it would fail to match an
19031         "extern unsigned char const *" declaration in idutils.
19032         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19033         a way to support use of that type of macro.
19034         (_gl_TS_var_match): Simplify regexp.
19035         (_gl_TS_obj_files): New configurable variable.
19036         (_gl_TS_headers): Likewise.
19037
19038 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19039
19040         verify: fix bug when gnulib <assert.h> is also included
19041         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19042         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19043         Perhaps there's a better way, but this fixes the immediate problem.
19044         Problem reported by Bruno Haible in
19045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19046
19047 2011-05-22  Bruno Haible  <bruno@clisp.org>
19048
19049         xgetcwd: Simplify autoconf macro.
19050         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19051
19052 2011-05-22  Bruno Haible  <bruno@clisp.org>
19053
19054         New module 'mktime-internal'.
19055         * modules/mktime-internal: New file.
19056         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19057         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19058         mktime_internal as a C macro if libc has __mktime_internal.
19059         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19060         conditions.
19061         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19062
19063 2011-05-22  Bruno Haible  <bruno@clisp.org>
19064
19065         timegm: Correct mktime replacement statements.
19066         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19067         defining mktime as a C macro. This completes a 2009-07-28 commit.
19068
19069 2011-05-22  Bruno Haible  <bruno@clisp.org>
19070
19071         timegm: Simplify autoconf macro.
19072         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19073
19074 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19075
19076         clock-time: change to LGPLv2+.
19077         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19078         BSD-like but we have no mark for that; this is good enough for now.
19079
19080 2011-05-21  Bruno Haible  <bruno@clisp.org>
19081
19082         strerror_r: Fix comments.
19083         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19084
19085 2011-05-21  Bruno Haible  <bruno@clisp.org>
19086
19087         relocatable-prog-wrapper: Fix possible link error.
19088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19089         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19090         (gl_FUNC_SETENV): ... to here.
19091         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19092         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19093
19094 2011-05-21  Bruno Haible  <bruno@clisp.org>
19095
19096         relocatable-prog-wrapper: Assume strerror() exists.
19097         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19098         m4/strerror.m4.
19099         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19100         * lib/relocwrapper.c: Remove mention of strerror module.
19101         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19102         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19103         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19104         C macro.
19105
19106 2011-05-21  Bruno Haible  <bruno@clisp.org>
19107
19108         select: Simplify replacement idiom.
19109         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19110         Win32 platforms.
19111         * lib/sys_select.in.h (select): Simplify accordingly.
19112         * modules/select (Depends-on): Likewise.
19113
19114 2011-05-21  Bruno Haible  <bruno@clisp.org>
19115
19116         mkdir-p: Simplify autoconf macro.
19117         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19118         gl_FUNC_LCHOWN.
19119
19120 2011-05-21  Eric Blake  <eblake@redhat.com>
19121
19122         strerror_r: avoid clobbering strerror on cygwin
19123         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19124         fall back instead to sys_errlist.
19125         * modules/strerror (configure.ac): Add witness.
19126         * tests/test-strerror_r.c (main): Enhance test.
19127         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19128         * tests/test-perror2.c (main): Free memory before exit.
19129
19130 2011-05-21  Bruno Haible  <bruno@clisp.org>
19131
19132         mkdtemp: Use gnulib naming conventions.
19133         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19134         * modules/mkdtemp (configure.ac): Update.
19135
19136 2011-05-20  Eric Blake  <eblake@redhat.com>
19137
19138         strerror_r: avoid corrupting errno on Solaris
19139         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19140         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19141
19142         strerror_r: avoid compiler warning
19143         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19144
19145         strerror_r: simplify AIX code
19146         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19147
19148         test-perror: avoid spurious failure on FreeBSD
19149         * modules/perror-tests (Depends-on): Add strerror, now that
19150         strerror_r no longer pulls it in.
19151
19152 2011-05-20  Bruno Haible  <bruno@clisp.org>
19153
19154         strerror_r-posix: Remove unused dependencies.
19155         * modules/strerror_r-posix (Depends-on): Remove strerror.
19156         Reported by Eric Blake.
19157
19158 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19159
19160         intprops: remove assumption about A|B representation
19161         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19162         is a valid integer if both A and B are.  Although this is true for
19163         all known practical hosts, the C standard doesn't guarantee it,
19164         and the code need not assume it.  Also, this change may work around
19165         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19167
19168 2011-05-20  Eric Blake  <eblake@redhat.com>
19169
19170         perror: work around FreeBSD bug
19171         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19172         is broken.  Move AC_LIBOBJ...
19173         * modules/perror (configure.ac): Here.
19174         * doc/posix-functions/perror.texi (perror): Document this.
19175         * tests/test-perror2.c (main): Enhance test.
19176
19177         test-perror: check for strerror interactions
19178         * tests/macros.h (STREQ): Add macro.
19179         * modules/perror-tests (Files): Add second test.
19180         * tests/test-perror2.c (main): New file.
19181         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19182
19183         test-perror: rewrite to use init script
19184         * modules/perror-tests (Files): Add init.sh.
19185         * tests/test-perror.sh: Use temporary directory.
19186
19187 2011-05-20  Jim Meyering  <meyering@redhat.com>
19188
19189         maint: replace misused "a" with "an"
19190         * doc/intprops.texi: "a integer"
19191         * doc/regex.texi: "a explanation"
19192         * lib/alignof.h: "a object"
19193         * lib/argmatch.h: "a explanation"
19194         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19195         * lib/stdint.in.h: "a integer"
19196         * lib/userspec.c: "a owner"
19197         * doc/gnulib.texi: Fix "a idea", and reword.
19198
19199 2011-05-19  Jim Meyering  <meyering@redhat.com>
19200
19201         maint: correct misuse of "a" and "an"
19202         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19203         * lib/argp-help.c: "an docum...": s/an/a/
19204         * lib/argp-parse.c: "An vector": s/An/A/
19205         * lib/execute.c: "an native": s/an/a/
19206         * lib/spawn-pipe.c: Likewise.
19207         * lib/gc.h: "an Gc_rc": s/an/a/
19208         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19209         * lib/fts.c: "an stat.st_dev": s/an/a/
19210
19211 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19212
19213         intprops-tests: work around HP-UX 11.23 cc bug with constants
19214         * tests/test-intprops.c (VERIFY): New macro.
19215         (main): Use it, instead of verify, to work around the compiler bug; see
19216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19217
19218         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19219         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19220         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19221         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19222         (_GL_REMAINDER_OVERFLOW): Use it.
19223
19224         intprops-tests: revert unsigned part of previous change
19225         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19226         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19227         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19229
19230 2011-05-19  Bruno Haible  <bruno@clisp.org>
19231
19232         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19233         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19234         strerror_r() returned without filling the buffer.
19235         Reported by Eric Blake.
19236
19237 2011-05-19  Eric Blake  <eblake@redhat.com>
19238
19239         strerror_r: guarantee unchanged errno
19240         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19241         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19242         failure.
19243         * tests/test-strerror_r.c (main): Enhance test.
19244
19245 2011-05-19  Bruno Haible  <bruno@clisp.org>
19246
19247         strerror_r: Reorder #if blocks.
19248         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19249         for consistency with the previous commit.
19250
19251 2011-05-19  Bruno Haible  <bruno@clisp.org>
19252
19253         perror: Avoid clobbering the strerror buffer when possible.
19254         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19255         * lib/strerror.c: Include it.
19256         * modules/strerror (Files): Add lib/strerror-impl.h.
19257         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19258         (my_strerror): New function, defined through lib/strerror-impl.h.
19259         (perror): Use it instead of strerror.
19260         * modules/perror (Files): Add lib/strerror-impl.h.
19261         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19262
19263 2011-05-19  Eric Blake  <eblake@redhat.com>
19264
19265         strerror_r: fix on newer cygwin
19266         * lib/strerror_r.c (strerror_r): Cygwin now has
19267         __xpg_strerror_r, use it.
19268
19269 2011-05-19  Bruno Haible  <bruno@clisp.org>
19270
19271         strerror_r: Avoid clobbering the strerror buffer when possible.
19272         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19273         (sys_nerr, sys_errlist): New declarations.
19274         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19275         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19276         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19277
19278 2011-05-19  Bruno Haible  <bruno@clisp.org>
19279
19280         strerror_r: Fix test failure on mingw.
19281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19282         EXTEND_STRERROR_R.
19283         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19284         macros from errno.in.h instead.
19285
19286 2011-05-19  Eric Blake  <eblake@redhat.com>
19287
19288         strerror: relax test for Solaris
19289         * tests/test-strerror.c (main): Permit Solaris behavior.
19290         * tests/test-strerror_r.c (main): Likewise.
19291
19292         strerror: enforce POSIX ruling on strerror(0)
19293         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19295         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19296         * doc/posix-functions/strerror.texi (strerror): Document it.
19297         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19298         * tests/test-strerror.c (main): Strengthen test.
19299         * tests/test-strerror_r.c (main): Likewise.
19300
19301 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19302
19303         intprop-tests: port to older and more-pedantic compilers
19304         * modules/intprops-tests (Files): Add tests/macros.h.
19305         * tests/test-intprops.c: Include macros.h.
19306         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19307         it's no longer documented to expand to an integer constant expression.
19308         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19309         argument is floating point, as it's no longer documented to expand
19310         to an integer constant expression in that case.
19311         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19312         compiler bugs reported by Bruno Haible.  See
19313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19314         (U0, U1): New constants, to work around the same bugs.  Also,
19315         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19316
19317         intprops: work around C compiler bugs
19318         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19319         bug in Sun C 5.11 2010/08/13 and other compilers; see
19320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19321
19322         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19323         * doc/intprops.texi (Integer Type Determination): Fix
19324         documentation for TYPE_IS_INTEGER: it returns an constant
19325         expression, not an integer constant expression.  Fix doc for
19326         TYPE_SIGNED: it returns an integer constant expression only if its
19327         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19328         hardly worth documented that way....)
19329
19330 2011-05-18  Bruno Haible  <bruno@clisp.org>
19331
19332         strerror_r: Avoid clobbering the strerror buffer when possible.
19333         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19334         Handle gnulib defined errno values here. When strerror() returns NULL
19335         or an empty string, return EINVAL.
19336         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19337         gnulib defined errno values here.
19338         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19339
19340 2011-05-18  Eric Blake  <eblake@redhat.com>
19341
19342         fnmatch: avoid compiler warning
19343         * lib/fnmatch_loop.c (FCT): Use correct type.
19344         Reported by Matthias Bolte.
19345
19346 2011-05-13  Jim Meyering  <meyering@redhat.com>
19347
19348         maint.mk: three new prohibit_<HDR>_without_use rules
19349         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19350         (sc_prohibit_stdio-safer_without_use): Likewise.
19351         (sc_prohibit_xfreopen_without_use): Likewise.
19352
19353 2011-05-17  Jim Meyering  <meyering@redhat.com>
19354
19355         announce-gen: fail if the NEWS delta is empty
19356         If there's nothing noteworthy in NEWS, then either you forgot
19357         or you shouldn't be releasing.
19358         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19359
19360 2011-05-17  Pádraig Brady <P@draigBrady.com>
19361
19362         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19363         reserved symbols starting with double underscore from the check.
19364
19365 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19366
19367         intprops: add doc
19368         * doc/intprops.texi: New file, documenting intprops.
19369         * doc/gnulib.texi (Particular Modules): Include it.
19370
19371         verify: add doc to gnulib manual and fix example
19372         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19373         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19374         (Compile-time Assertions): Fix example so it can't overflow.
19375
19376 2011-05-17  Jim Meyering  <meyering@redhat.com>
19377
19378         warnings.m4: don't usurp save_CPPFLAGS variable name
19379         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19380
19381         doc: fix typo
19382         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19383
19384 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19385             Bruno Haible  <bruno@clisp.org>
19386
19387         doc: Tweak recent change.
19388         * README (Portability guidelines): Tweak new text.
19389         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19390         Interix 6.1.
19391
19392 2011-05-16  Eric Blake  <eblake@redhat.com>
19393
19394         inttypes: avoid autoconf warning
19395         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19396         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19397
19398 2011-05-16  Sam Steingold <sds@gnu.org>
19399         and Eric Blake  <eblake@redhat.com>
19400
19401         vc-list-files: accept multiple directory operands
19402         * build-aux/vc-list-files: Iterate over all remaining operands.
19403
19404 2011-05-16  Bruno Haible  <bruno@clisp.org>
19405
19406         Fix confusion regarding deprecated modules.
19407         * modules/calloc (Status, Notice): Mark module as deprecated, not
19408         obsolete.
19409         * modules/fnmatch-posix (Status, Notice): Likewise.
19410         * modules/getdate (Status, Notice): Likewise.
19411         * modules/getopt (Status, Notice): Likewise.
19412         * modules/malloc (Status, Notice): Likewise.
19413         * modules/pipe (Status, Notice): Likewise.
19414         * modules/realloc (Status, Notice): Likewise.
19415         * modules/rename-dest-slash (Status, Notice): Likewise.
19416         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19417         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19418         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19419         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19420         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19421
19422 2011-05-16  Bruno Haible  <bruno@clisp.org>
19423
19424         doc: List the target platforms.
19425         * doc/gnulib-intro.texi (Target Platforms): New section.
19426         * doc/gnulib.texi (Introduction): Update menu.
19427         * README (Portability guidelines): Refer to the new section. Update
19428         statement about oldest supported environment. Remove rationale why
19429         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19430         unportable C89 function.
19431         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19432         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19433
19434 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19435
19436         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19437
19438 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19439
19440         intprops-tests: new module
19441         * modules/intprops-tests, tests/test-intprops.c: New files.
19442
19443         intprops: add safe, portable integer overflow checking
19444         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19445         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19446         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19447         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19448         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19449         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19450         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19451         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19452         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19453         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19454         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19455
19456 2011-05-12  James Youngman  <jay@gnu.org>
19457
19458         Add a test for glibc's Bugzilla bug #12378.
19459         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19460         doesn't allow the literal matching of a lone "[" (which is
19461         required by POSIX).
19462         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19463
19464 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19465
19466         Sync glibc change fixing Bugzilla bug #12378.
19467         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19468         beginning and fall back to matching as normal character if the
19469         string ends before the matching ']' is found.  This is what POSIX
19470         requires.
19471
19472 2011-05-13  Eric Blake  <eblake@redhat.com>
19473
19474         getcwd-lgpl: relax test for FreeBSD
19475         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19476         issue.
19477         * tests/test-getcwd-lgpl.c (main): Relax test.
19478         Reported by Matthias Bolte.
19479
19480 2011-05-11  Eric Blake  <eblake@redhat.com>
19481
19482         test-fflush: silence compiler warning
19483         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19484
19485 2011-05-11  Bruno Haible  <bruno@clisp.org>
19486
19487         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19488         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19489         * modules/canonicalize (Depends-on): Add 'nocrash'.
19490         * modules/canonicalize-lgpl (Depends-on): Likewise.
19491         * doc/posix-functions/realpath.texi: Update platforms list.
19492         Reported by Ryan Schmidt <ryandesign@macports.org>.
19493
19494 2011-05-11  Bruno Haible  <bruno@clisp.org>
19495
19496         group-member: Declare function in <unistd.h>.
19497         * lib/unistd.in.h (group_member): New declaration.
19498         * lib/group-member.h: Remove file.
19499         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19500         * tests/test-unistd-c++.cc: Check signature of group_member.
19501         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19502         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19503         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19504         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19505         HAVE_GROUP_MEMBER.
19506         * modules/group-member (Files): Remove lib/group-member.h.
19507         (Depends-on): Add unistd. Specify conditions.
19508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19509         (Include): Change to <unistd.h>.
19510         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19511         HAVE_GROUP_MEMBER.
19512         * NEWS: Mention the change.
19513         * lib/euidaccess.c: Don't include group-member.h.
19514
19515 2011-05-11  Bruno Haible  <bruno@clisp.org>
19516
19517         group-member: Document module.
19518         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19519         module.
19520
19521 2011-05-11  Bruno Haible  <bruno@clisp.org>
19522
19523         fclose: Fix mistake earlier today.
19524         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19525
19526 2011-05-11  Eric Blake  <eblake@redhat.com>
19527
19528         fclose: preserve fflush errors
19529         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19530         Reported by Jim Meyering.
19531
19532         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19533         * build-aux/bootstrap (check_versions): When no specific version
19534         is required, merely check that the app produces an exit status
19535         that indicates its existence.
19536
19537         maint.mk: drop redundant check
19538         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19539         the same but better.
19540
19541 2011-05-11  Bruno Haible  <bruno@clisp.org>
19542
19543         fclose: Fix possible link error.
19544         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19545         unregister_shadow_fd. Improve comments.
19546         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19547         Eric Blake.
19548
19549 2011-05-11  Jim Meyering  <meyering@redhat.com>
19550
19551         maint.mk: improve "can not" detection and generalize rule name
19552         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19553         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19554         Use the same technique as in sc_prohibit_doubled_word, so that
19555         we recognize "can not" also when the words are separated by a newline.
19556         Suggested by Eric Blake.
19557         (perl_filename_lineno_text_): Define.  Factored out of...
19558         (prohibit_doubled_word_): ...here.  Use the new definition.
19559         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19560         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19561         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19562
19563 2011-05-10  Eric Blake  <eblake@redhat.com>
19564
19565         fclose: avoid double close race when possible
19566         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19567         all but WINDOWS_SOCKETS.
19568
19569 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19570
19571         openat: correct new comment
19572         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19573
19574 2011-05-10  Jim Meyering  <meyering@redhat.com>
19575
19576         openat: add comments
19577         * lib/openat-proc.c (openat_proc_name): Add comments,
19578         mostly from Eric Blake.
19579
19580 2011-05-09  Eric Blake  <eblake@redhat.com>
19581
19582         openat: reduce syscalls in first probe of /proc
19583         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19584         be a directory.  Simplify the probe for .. bugs.
19585         * modules/openat (Depends-on): Drop same-inode.
19586         Reported by Bastien ROUCARIES.
19587
19588 2011-05-09  Jim Meyering  <meyering@redhat.com>
19589
19590         maint.mk: change semantics/name of tight_scope variables
19591         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19592         Rename variables to align with semantics that make them more useful.
19593
19594         maint.mk: tweak new rule's name not to impinge
19595         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19596         (sc_tight_scope): Use new rule name rather than $@-0.
19597
19598         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19599         * top/maint.mk (sc_tight_scope): New rule.
19600         (sc_tight_scope-0): New rule, ifdef'd out.
19601         (_gl_TS_dir): Default.
19602         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19603         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19604
19605 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19606
19607         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19608         Haible <bruno@clisp.org>.
19609
19610 2011-05-08  Bruno Haible  <bruno@clisp.org>
19611
19612         Comments.
19613         * m4/isnanf.m4: Add comment.
19614         * m4/isnanl.m4: Likewise.
19615
19616 2011-05-08  Bruno Haible  <bruno@clisp.org>
19617
19618         glob: Remove obsolete macro.
19619         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19620
19621 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19622
19623         intprops: Sun C 5.11 supports __typeof__
19624         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19625         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19626         which is new.
19627         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19628
19629         intprops: switch to usual gnulib indenting and naming
19630         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19631         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19632
19633         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19634
19635 2011-05-08  Jim Meyering  <meyering@redhat.com>
19636
19637         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19638         * top/maint.mk (release-prep): Use make's --no-print-directory
19639         option when generating the announcement.  This eliminates the
19640         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19641         generated announcement template.
19642
19643 2011-05-08  Bruno Haible  <bruno@clisp.org>
19644
19645         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19646         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19647         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19648
19649 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19650
19651         ignore-value, verify: Omit include files from lib_SOURCES.
19652         * modules/ignore-value, modules/verify (Makefile.am):
19653         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19654         that leads Automake to duplicate use of am__objects_... variables
19655         in Makefile.in.  See
19656         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19657
19658 2011-05-07  Bruno Haible  <bruno@clisp.org>
19659
19660         fclose: Simplify autoconf macro.
19661         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19662         defined.
19663
19664 2011-05-07  Bruno Haible  <bruno@clisp.org>
19665
19666         canonicalize-lgpl: Fix autoconf macro ordering bug.
19667         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19668         gl_STDLIB_H_DEFAULTS.
19669
19670 2011-05-06  Eric Blake  <eblake@redhat.com>
19671
19672         maintainer-makefile: make sc_po_check easier to tune
19673         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19674         to probe for strings, such as an alternate location for gnulib.
19675
19676         fclose: guarantee behavior on seekable stdin
19677         * modules/fclose (Depends-on): Add fflush.
19678         * doc/posix-functions/fclose.texi (fclose): Document this.
19679         * tests/test-fclose.c (main): Make test for this unconditional.
19680
19681 2011-05-06  Bruno Haible  <bruno@clisp.org>
19682
19683         fflush, fpurge: Relicense under LGPLv2+.
19684         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19685         * modules/fpurge (License): Likewise.
19686         With permission from Eric Blake and Jim Meyering.
19687         Suggested by Eric Blake.
19688
19689 2011-05-06  Karl Berry  <karl@gnu.org>
19690
19691         * MODULES.html.sh (func_all_modules): remove exit.
19692
19693 2011-05-06  Jim Meyering  <meyering@redhat.com>
19694
19695         maint.mk: use info-gnu@ as the default only for a stable release
19696         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19697         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19698         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19699         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19700
19701 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19702
19703         assert-h: new module, which supports C1X-style static_assert
19704         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19705         * lib/verify.h: Revamp so that this can be copied into assert.h,
19706         while retaining the ability to use it standalone as before.
19707         Rename private identifiers so as not to encroach on the
19708         standard C namespace, since this is now used by assert.h.
19709         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19710         the old verify_true.
19711         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19712         the old verify_true.  Use _GL_VERIFY_TYPE.
19713         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19714         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19715         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19716         defined when this file is copied into the replacement assert.h.
19717         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19718         and _Static_assert is not built in.
19719         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19720         defined, and use the new macros mentioned above.
19721         * doc/posix-headers/assert.texi: Document this.
19722
19723 2011-05-05  Bruno Haible  <bruno@clisp.org>
19724
19725         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19726         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19727         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19728         gl_REPLACE_FCLOSE here.
19729         * modules/fflush (Depends-on): Remove fclose.
19730         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19731         combination with module 'fclose'.
19732
19733 2011-05-05  Bruno Haible  <bruno@clisp.org>
19734
19735         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19736         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19737         gl_FUNC_FFLUSH.
19738         (gl_FUNC_FFLUSH): Use it.
19739         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19740         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19741         gl_REPLACE_FSEEKO here.
19742
19743 2011-05-05  Bruno Haible  <bruno@clisp.org>
19744
19745         tzset: Relicense under LGPL.
19746         * modules/tzset (License): Change to LGPL.
19747         No agreement needed; it's a no-op.
19748
19749         strtoimax, strtoumax: Relicense under LGPL.
19750         * modules/strtoimax (License): Change to LGPL.
19751         * modules/strtoumax (License): Likewise.
19752         With permission from Jim Meyering, Paul Eggert:
19753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19755
19756         getgroups: Relicense under LGPL.
19757         * modules/getgroups (License): Change to LGPL.
19758         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19762
19763         nanosleep: Relicense under LGPL.
19764         * modules/nanosleep (License): Change to LGPL.
19765         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19766         Haible:
19767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19771
19772         futimens: Relicense under LGPL.
19773         * modules/futimens (License): Change to LGPL.
19774         With permission from Eric Blake:
19775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19776
19777         fflush: Relicense under LGPL.
19778         * modules/fflush (License): Change to LGPL.
19779         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19783
19784         tmpfile: Relicense under LGPL.
19785         * modules/tmpfile (License): Change to LGPL.
19786         With permission from Ben Pfaff:
19787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19788
19789         isfinite: Relicense under LGPL.
19790         * modules/isfinite (License): Change to LGPL.
19791         With permission from Ben Pfaff, Bruno Haible:
19792         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19794
19795         acosl..tanl: Relicense under LGPL.
19796         * modules/acosl (License): Change to LGPL.
19797         * modules/asinl (License): Likewise.
19798         * modules/atanl (License): Likewise.
19799         * modules/cosl (License): Likewise.
19800         * modules/expl (License): Likewise.
19801         * modules/logl (License): Likewise.
19802         * modules/sinl (License): Likewise.
19803         * modules/sqrtl (License): Likewise.
19804         * modules/tanl (License): Likewise.
19805         Source code originally from glibc and Paolo Bonzini. Agreements:
19806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19808
19809 2011-05-05  Bruno Haible  <bruno@clisp.org>
19810
19811         signal: Define sighandler_t.
19812         * lib/signal.in.h (sighandler_t): New type.
19813         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19814         whether sighandler_t is defined.
19815         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19816         * modules/signal (Depends-on): Add extensions.
19817         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19818         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19819         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19820
19821 2011-05-05  Eric Blake  <eblake@redhat.com>
19822
19823         maint: remove useless REPLACE_*_H macros
19824         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19825         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19826         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19827         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19828         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19829         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19830         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19831         * m4/btowc.m4: Update callers.
19832         * m4/dirfd.m4: Likewise.
19833         * m4/duplocale.m4: Likewise.
19834         * m4/fchdir.m4: Likewise.
19835         * m4/fdopendir.m4: Likewise.
19836         * m4/inet_ntop.m4: Likewise.
19837         * m4/inet_pton.m4: Likewise.
19838         * m4/ioctl.m4: Likewise.
19839         * m4/mbrlen.m4: Likewise.
19840         * m4/mbrtowc.m4: Likewise.
19841         * m4/mbsinit.m4: Likewise.
19842         * m4/mbsnrtowcs.m4: Likewise.
19843         * m4/mbsrtowcs.m4: Likewise.
19844         * m4/poll.m4: Likewise.
19845         * m4/setlocale.m4: Likewise.
19846         * m4/wcrtomb.m4: Likewise.
19847         * m4/wcsnrtombs.m4: Likewise.
19848         * m4/wcsrtombs.m4: Likewise.
19849         * m4/wctob.m4: Likewise.
19850         * m4/wcwidth.m4: Likewise.
19851         * modules/posix_spawn: Likewise.
19852         * modules/posix_spawn_file_actions_addclose: Likewise.
19853         * modules/posix_spawn_file_actions_adddup2: Likewise.
19854         * modules/posix_spawn_file_actions_addopen: Likewise.
19855         * modules/posix_spawn_file_actions_destroy: Likewise.
19856         * modules/posix_spawn_file_actions_init: Likewise.
19857         * modules/posix_spawnattr_destroy: Likewise.
19858         * modules/posix_spawnattr_getflags: Likewise.
19859         * modules/posix_spawnattr_getpgroup: Likewise.
19860         * modules/posix_spawnattr_getschedparam: Likewise.
19861         * modules/posix_spawnattr_getschedpolicy: Likewise.
19862         * modules/posix_spawnattr_getsigdefault: Likewise.
19863         * modules/posix_spawnattr_getsigmask: Likewise.
19864         * modules/posix_spawnattr_init: Likewise.
19865         * modules/posix_spawnattr_setflags: Likewise.
19866         * modules/posix_spawnattr_setpgroup: Likewise.
19867         * modules/posix_spawnattr_setschedparam: Likewise.
19868         * modules/posix_spawnattr_setschedpolicy: Likewise.
19869         * modules/posix_spawnattr_setsigdefault: Likewise.
19870         * modules/posix_spawnattr_setsigmask: Likewise.
19871         * modules/posix_spawnp: Likewise.
19872
19873 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19874
19875         Add option to do-release-commit-and-tag to specify branch.
19876         * build-aux/do-release-commit-and-tag: Add --branch.
19877
19878 2011-05-03  Bruno Haible  <bruno@clisp.org>
19879
19880         Avoid unnecessary compilation units, through conditional dependencies.
19881         * modules/accept (Depends-on): Add conditions to the dependencies.
19882         * modules/acosl (Depends-on): Likewise.
19883         * modules/argz (Depends-on): Likewise.
19884         * modules/asinl (Depends-on): Likewise.
19885         * modules/atanl (Depends-on): Likewise.
19886         * modules/atoll (Depends-on): Likewise.
19887         * modules/bind (Depends-on): Likewise.
19888         * modules/btowc (Depends-on): Likewise.
19889         * modules/canonicalize-lgpl (Depends-on): Likewise.
19890         * modules/ceil (Depends-on): Likewise.
19891         * modules/ceilf (Depends-on): Likewise.
19892         * modules/ceill (Depends-on): Likewise.
19893         * modules/chdir-long (Depends-on): Likewise.
19894         * modules/chown (Depends-on): Likewise.
19895         * modules/close (Depends-on): Likewise.
19896         * modules/connect (Depends-on): Likewise.
19897         * modules/cosl (Depends-on): Likewise.
19898         * modules/dirfd (Depends-on): Likewise.
19899         * modules/dprintf (Depends-on): Likewise.
19900         * modules/dprintf-posix (Depends-on): Likewise.
19901         * modules/error (Depends-on): Likewise.
19902         * modules/euidaccess (Depends-on): Likewise.
19903         * modules/expl (Depends-on): Likewise.
19904         * modules/faccessat (Depends-on): Likewise.
19905         * modules/fchdir (Depends-on): Likewise.
19906         * modules/fclose (Depends-on): Likewise.
19907         * modules/fcntl (Depends-on): Likewise.
19908         * modules/fdopendir (Depends-on): Likewise.
19909         * modules/fflush (Depends-on): Likewise.
19910         * modules/floor (Depends-on): Likewise.
19911         * modules/floorf (Depends-on): Likewise.
19912         * modules/floorl (Depends-on): Likewise.
19913         * modules/fnmatch (Depends-on): Likewise.
19914         * modules/fopen (Depends-on): Likewise.
19915         * modules/fprintf-posix (Depends-on): Likewise.
19916         * modules/frexp (Depends-on): Likewise.
19917         * modules/frexp-nolibm (Depends-on): Likewise.
19918         * modules/frexpl (Depends-on): Likewise.
19919         * modules/frexpl-nolibm (Depends-on): Likewise.
19920         * modules/fseek (Depends-on): Likewise.
19921         * modules/fsusage (Depends-on): Likewise.
19922         * modules/ftell (Depends-on): Likewise.
19923         * modules/ftello (Depends-on): Likewise.
19924         * modules/futimens (Depends-on): Likewise.
19925         * modules/getcwd (Depends-on): Likewise.
19926         * modules/getcwd-lgpl (Depends-on): Likewise.
19927         * modules/getdelim (Depends-on): Likewise.
19928         * modules/getdomainname (Depends-on): Likewise.
19929         * modules/getgroups (Depends-on): Likewise.
19930         * modules/gethostname (Depends-on): Likewise.
19931         * modules/getline (Depends-on): Likewise.
19932         * modules/getlogin_r (Depends-on): Likewise.
19933         * modules/getopt-posix (Depends-on): Likewise.
19934         * modules/getpeername (Depends-on): Likewise.
19935         * modules/getsockname (Depends-on): Likewise.
19936         * modules/getsockopt (Depends-on): Likewise.
19937         * modules/getsubopt (Depends-on): Likewise.
19938         * modules/getusershell (Depends-on): Likewise.
19939         * modules/glob (Depends-on): Likewise.
19940         * modules/grantpt (Depends-on): Likewise.
19941         * modules/iconv_open (Depends-on): Likewise.
19942         * modules/iconv_open-utf (Depends-on): Likewise.
19943         * modules/inet_ntop (Depends-on): Likewise.
19944         * modules/inet_pton (Depends-on): Likewise.
19945         * modules/ioctl (Depends-on): Likewise.
19946         * modules/isapipe (Depends-on): Likewise.
19947         * modules/isfinite (Depends-on): Likewise.
19948         * modules/isinf (Depends-on): Likewise.
19949         * modules/lchown (Depends-on): Likewise.
19950         * modules/ldexpl (Depends-on): Likewise.
19951         * modules/link (Depends-on): Likewise.
19952         * modules/linkat (Depends-on): Likewise.
19953         * modules/listen (Depends-on): Likewise.
19954         * modules/logl (Depends-on): Likewise.
19955         * modules/lstat (Depends-on): Likewise.
19956         * modules/mbrlen (Depends-on): Likewise.
19957         * modules/mbrtowc (Depends-on): Likewise.
19958         * modules/mbsinit (Depends-on): Likewise.
19959         * modules/mbsnrtowcs (Depends-on): Likewise.
19960         * modules/mbsrtowcs (Depends-on): Likewise.
19961         * modules/mbtowc (Depends-on): Likewise.
19962         * modules/memcmp (Depends-on): Likewise.
19963         * modules/mkdir (Depends-on): Likewise.
19964         * modules/mkdtemp (Depends-on): Likewise.
19965         * modules/mkfifo (Depends-on): Likewise.
19966         * modules/mkfifoat (Depends-on): Likewise.
19967         * modules/mknod (Depends-on): Likewise.
19968         * modules/mkostemp (Depends-on): Likewise.
19969         * modules/mkostemps (Depends-on): Likewise.
19970         * modules/mkstemp (Depends-on): Likewise.
19971         * modules/mkstemps (Depends-on): Likewise.
19972         * modules/mktime (Depends-on): Likewise.
19973         * modules/nanosleep (Depends-on): Likewise.
19974         * modules/open (Depends-on): Likewise.
19975         * modules/openat (Depends-on): Likewise.
19976         * modules/perror (Depends-on): Likewise.
19977         * modules/poll (Depends-on): Likewise.
19978         * modules/popen (Depends-on): Likewise.
19979         * modules/posix_spawn (Depends-on): Likewise.
19980         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19981         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19982         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19983         * modules/posix_spawnp (Depends-on): Likewise.
19984         * modules/pread (Depends-on): Likewise.
19985         * modules/printf-posix (Depends-on): Likewise.
19986         * modules/ptsname (Depends-on): Likewise.
19987         * modules/putenv (Depends-on): Likewise.
19988         * modules/pwrite (Depends-on): Likewise.
19989         * modules/readline (Depends-on): Likewise.
19990         * modules/readlink (Depends-on): Likewise.
19991         * modules/readlinkat (Depends-on): Likewise.
19992         * modules/recv (Depends-on): Likewise.
19993         * modules/recvfrom (Depends-on): Likewise.
19994         * modules/regex (Depends-on): Likewise.
19995         * modules/remove (Depends-on): Likewise.
19996         * modules/rename (Depends-on): Likewise.
19997         * modules/renameat (Depends-on): Likewise.
19998         * modules/rmdir (Depends-on): Likewise.
19999         * modules/round (Depends-on): Likewise.
20000         * modules/roundf (Depends-on): Likewise.
20001         * modules/roundl (Depends-on): Likewise.
20002         * modules/rpmatch (Depends-on): Likewise.
20003         * modules/select (Depends-on): Likewise.
20004         * modules/send (Depends-on): Likewise.
20005         * modules/sendto (Depends-on): Likewise.
20006         * modules/setenv (Depends-on): Likewise.
20007         * modules/setlocale (Depends-on): Likewise.
20008         * modules/setsockopt (Depends-on): Likewise.
20009         * modules/shutdown (Depends-on): Likewise.
20010         * modules/sigaction (Depends-on): Likewise.
20011         * modules/signbit (Depends-on): Likewise.
20012         * modules/sigprocmask (Depends-on): Likewise.
20013         * modules/sinl (Depends-on): Likewise.
20014         * modules/sleep (Depends-on): Likewise.
20015         * modules/snprintf (Depends-on): Likewise.
20016         * modules/snprintf-posix (Depends-on): Likewise.
20017         * modules/socket (Depends-on): Likewise.
20018         * modules/sprintf-posix (Depends-on): Likewise.
20019         * modules/sqrtl (Depends-on): Likewise.
20020         * modules/stat (Depends-on): Likewise.
20021         * modules/strchrnul (Depends-on): Likewise.
20022         * modules/strdup-posix (Depends-on): Likewise.
20023         * modules/strerror (Depends-on): Likewise.
20024         * modules/strerror_r-posix (Depends-on): Likewise.
20025         * modules/strndup (Depends-on): Likewise.
20026         * modules/strnlen (Depends-on): Likewise.
20027         * modules/strptime (Depends-on): Likewise.
20028         * modules/strsep (Depends-on): Likewise.
20029         * modules/strsignal (Depends-on): Likewise.
20030         * modules/strstr-simple (Depends-on): Likewise.
20031         * modules/strtod (Depends-on): Likewise.
20032         * modules/strtoimax (Depends-on): Likewise.
20033         * modules/strtok_r (Depends-on): Likewise.
20034         * modules/strtoumax (Depends-on): Likewise.
20035         * modules/symlink (Depends-on): Likewise.
20036         * modules/symlinkat (Depends-on): Likewise.
20037         * modules/tanl (Depends-on): Likewise.
20038         * modules/tcgetsid (Depends-on): Likewise.
20039         * modules/tmpfile (Depends-on): Likewise.
20040         * modules/trunc (Depends-on): Likewise.
20041         * modules/truncf (Depends-on): Likewise.
20042         * modules/truncl (Depends-on): Likewise.
20043         * modules/uname (Depends-on): Likewise.
20044         * modules/unlink (Depends-on): Likewise.
20045         * modules/unlockpt (Depends-on): Likewise.
20046         * modules/unsetenv (Depends-on): Likewise.
20047         * modules/usleep (Depends-on): Likewise.
20048         * modules/utimensat (Depends-on): Likewise.
20049         * modules/vasprintf (Depends-on): Likewise.
20050         * modules/vdprintf (Depends-on): Likewise.
20051         * modules/vdprintf-posix (Depends-on): Likewise.
20052         * modules/vfprintf-posix (Depends-on): Likewise.
20053         * modules/vprintf-posix (Depends-on): Likewise.
20054         * modules/vsnprintf (Depends-on): Likewise.
20055         * modules/vsnprintf-posix (Depends-on): Likewise.
20056         * modules/vsprintf-posix (Depends-on): Likewise.
20057         * modules/wcrtomb (Depends-on): Likewise.
20058         * modules/wcscasecmp (Depends-on): Likewise.
20059         * modules/wcscspn (Depends-on): Likewise.
20060         * modules/wcsdup (Depends-on): Likewise.
20061         * modules/wcsncasecmp (Depends-on): Likewise.
20062         * modules/wcsnrtombs (Depends-on): Likewise.
20063         * modules/wcspbrk (Depends-on): Likewise.
20064         * modules/wcsrtombs (Depends-on): Likewise.
20065         * modules/wcsspn (Depends-on): Likewise.
20066         * modules/wcsstr (Depends-on): Likewise.
20067         * modules/wcstok (Depends-on): Likewise.
20068         * modules/wcswidth (Depends-on): Likewise.
20069         * modules/wctob (Depends-on): Likewise.
20070         * modules/wctomb (Depends-on): Likewise.
20071         * modules/wctype (Depends-on): Likewise.
20072         * modules/wcwidth (Depends-on): Likewise.
20073         * modules/write (Depends-on): Likewise.
20074
20075 2011-05-03  Bruno Haible  <bruno@clisp.org>
20076
20077         Support for conditional dependencies.
20078         * doc/gnulib.texi (Module description): Document the syntax of
20079         conditional dependencies.
20080         * gnulib-tool: New option --conditional-dependencies.
20081         (func_usage): Document it.
20082         (cond_dependencies): New variable.
20083         (func_get_automake_snippet_conditional,
20084         func_get_automake_snippet_unconditional): New functions, extracted from
20085         func_get_automake_snippet.
20086         (func_get_automake_snippet): Use them.
20087         (sed_first_32_chars): New variable.
20088         (func_module_shellfunc_name): New function.
20089         (func_module_shellvar_name): New function.
20090         (func_module_conditional_name): New function.
20091         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20092         func_cond_module_condition): New functions.
20093         (func_modules_transitive_closure): Add support for conditional
20094         dependencies.
20095         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20096         conditional automake snippet in an automake conditional.
20097         (func_emit_autoconf_snippets): Emit shell functions that contain the
20098         code for conditional modules.
20099         (func_import, func_create_testdir): Update specification.
20100
20101 2011-05-03  Eric Blake  <eblake@redhat.com>
20102
20103         test-getaddrinfo: report error information
20104         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20105
20106 2011-05-03  Jim Meyering  <meyering@redhat.com>
20107
20108         bootstrap: avoid build failure when $GZIP is set
20109         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20110         program name.  If defined at all, it is supposed to list gzip options.
20111         Reported by Alan Curry in http://debbugs.gnu.org/8609
20112
20113 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20114
20115         readme-release: new module with release instructions
20116         * modules/readme-release: New module.
20117         * top/README-release: New file, from coreutils, grep, diffutils.
20118         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20119
20120 2011-05-02  Eric Blake  <eblake@redhat.com>
20121
20122         fflush: also replace fclose when fixing fflush
20123         * modules/fflush (Depends-on): Add fclose.
20124         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20125         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20126         memstreams with no backing fd.
20127         * doc/posix-functions/fclose.texi (fclose): Document the use of
20128         fflush module to fix the bug.
20129         * tests/test-fclose.c (main): Relax test when fclose is used in
20130         isolation.
20131
20132         fclose: add some tests
20133         * modules/fclose-tests: New test module.
20134         * tests/test-fclose.c: New file.
20135         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20136
20137         fclose: reduced dependencies
20138         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20139         simpler lseek.
20140         * lib/fclose.c (rpl_fclose): Likewise.
20141         Reported by Simon Josefsson.
20142
20143         exit: drop remaining clients
20144         * modules/argmatch (Depends-on): Replace exit with stdlib.
20145         * modules/copy-file (Depends-on): Likewise.
20146         * modules/execute (Depends-on): Likewise.
20147         * modules/exitfail (Depends-on): Likewise.
20148         * modules/obstack (Depends-on): Likewise.
20149         * modules/pagealign_alloc (Depends-on): Likewise.
20150         * modules/pipe-filter-gi (Depends-on): Likewise.
20151         * modules/pipe-filter-ii (Depends-on): Likewise.
20152         * modules/savewd (Depends-on): Likewise.
20153         * modules/spawn-pipe (Depends-on): Likewise.
20154         * modules/wait-process (Depends-on): Likewise.
20155         * modules/xsetenv (Depends-on): Likewise.
20156         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20157         * modules/git-merge-changelog (Depends-on): Likewise.
20158         * modules/long-options (Depends-on): Likewise.
20159         * modules/pt_chown (Depends-on): Likewise.
20160         * modules/sysexits (Depends-on): Likewise.
20161
20162         freading: relax license from LGPLv3+ to LGPLv2+
20163         * modules/freading (License): Relax LGPL version.
20164
20165 2011-05-02  Bruno Haible  <bruno@clisp.org>
20166
20167         fchdir: Remove unused dependencies.
20168         * modules/fchdir (Depends-on): Remove include_next.
20169
20170 2011-05-02  Bruno Haible  <bruno@clisp.org>
20171
20172         gnulib-tool: Refactor.
20173         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20174         from func_emit_autoconf_snippets.
20175         (func_emit_autoconf_snippets): Use it.
20176
20177 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20178
20179         * NEWS: Document removal of 'exit'.
20180         * modules/exit: Remove file.
20181
20182 2011-05-01  Bruno Haible  <bruno@clisp.org>
20183
20184         Update DEPENDENCIES.
20185         * DEPENDENCIES (gettext): Recommend the newest release.
20186         Reported by Simon Josefsson.
20187
20188 2011-05-01  Bruno Haible  <bruno@clisp.org>
20189
20190         gnulib-tool: Reduce code duplication.
20191         * gnulib-tool (func_emit_autoconf_snippets): New function.
20192         (func_import, func_create_testdir): Use it.
20193
20194 2011-04-30  Eric Blake  <eblake@redhat.com>
20195
20196         fclose: don't fail on non-seekable input stream
20197         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20198         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20199         since fflush is allowed to fail in that case.
20200
20201 2011-04-30  Bruno Haible  <bruno@clisp.org>
20202
20203         dup3: cleanup
20204         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20205
20206 2011-04-30  Bruno Haible  <bruno@clisp.org>
20207
20208         netdb: Make it work in C++ mode.
20209         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20210         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20211         module.
20212         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20213         gl_MODULE_INDICATOR_FOR_TESTS.
20214         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20215         * modules/netdb-c++-tests: New file.
20216         * tests/test-netdb-c++.cc: New file.
20217
20218 2011-04-30  Bruno Haible  <bruno@clisp.org>
20219
20220         New modules 'vfscanf', 'vscanf'.
20221         * modules/vfscanf: New file.
20222         * modules/vscanf: New file.
20223         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20224         here.
20225         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20226         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20227
20228 2011-04-30  Bruno Haible  <bruno@clisp.org>
20229
20230         passfd: Add comments.
20231         * lib/passfd.c: Add comments about platforms.
20232
20233 2011-04-30  Bruno Haible  <bruno@clisp.org>
20234
20235         sys_uio: Make <sys/uio.h> self-contained.
20236         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20237         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20238
20239 2011-04-30  Bruno Haible  <bruno@clisp.org>
20240
20241         sys_socket: Ensure 'struct iovec' definition.
20242         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20243         <sys/socket.h>.
20244         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20245
20246 2011-04-30  Bruno Haible  <bruno@clisp.org>
20247
20248         sys_uio: Protect definition of 'struct iovec'.
20249         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20250         it as a C struct.
20251
20252 2011-04-30  Bruno Haible  <bruno@clisp.org>
20253
20254         manywarnings: fix indentation
20255         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20256
20257 2011-04-30  Pádraig Brady <P@draigBrady.com>
20258
20259         manywarnings: add -Wno-missing-field-initializers if needed.
20260         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20261         option if it's needed to allow initialization with { 0, }
20262
20263 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20264
20265         announce-gen: cosmetic improvement
20266         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20267
20268 2011-04-29  Jim Meyering  <meyering@redhat.com>
20269
20270         vc-list-files: indent with spaces, not TABs
20271         * build-aux/vc-list-files: Convert leading TABs to spaces,
20272         to match the style of most other files in gnulib.
20273
20274         announce-gen: indent with spaces, not TABs
20275         * build-aux/announce-gen: Convert all TABs to spaces, to match
20276         the style of most other files in gnulib.
20277
20278 2011-04-29  Eric Blake  <eblake@redhat.com>
20279
20280         quotearg: avoid uninitialized variable use
20281         * lib/quotearg.c (quoting_options_from_style): Initialize
20282         remaining fields, and ensure that custom styles are only used via
20283         quoting_options rather than quoting_style.
20284
20285 2011-04-29  Jim Meyering  <meyering@redhat.com>
20286
20287         maint.mk: remove unused VC-tag variable
20288         * top/maint.mk (VC-tag): Remove unused variable.
20289
20290 2011-04-29  Bruno Haible  <bruno@clisp.org>
20291
20292         netdb: fix gai_strerror replacements
20293         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20294         * modules/netdb: Substitute it.
20295
20296 2011-04-29  Jim Meyering  <meyering@redhat.com>
20297
20298         test-getcwd.c: avoid new set-but-not-used warning
20299         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20300         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20301         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20302         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20303
20304         test-hash.c: avoid a new shadowing warning
20305         * tests/test-hash.c (main): Don't shadow "dup".
20306
20307 2011-04-28  Eric Blake  <eblake@redhat.com>
20308
20309         getaddrinfo: fix gai_strerror signature
20310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20311         and work around mingw with UNICODE defined.
20312         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20313         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20314         * modules/netdb (Makefile.am): Substitute it.
20315         * lib/netdb.in.h (gai_strerror): Declare replacement.
20316         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20317         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20318         the fix.
20319
20320         getsockopt: avoid compiler warning
20321         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20322         Reported by Matthias Bolte.
20323
20324         tests: drop unused link dependency
20325         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20326         * modules/dirent-safer-tests (Makefile.am): Likewise.
20327         * modules/fdopendir-tests (Makefile.am): Likewise.
20328         * modules/mkfifoat-tests (Makefile.am): Likewise.
20329         * modules/openat-safer-tests (Makefile.am): Likewise.
20330         * modules/openat-tests (Makefile.am): Likewise.
20331         * modules/readlinkat-tests (Makefile.am): Likewise.
20332         * modules/symlinkat-tests (Makefile.am): Likewise.
20333         * modules/linkat-tests (Makefile.am): Likewise.
20334         (Depends-on): Switch to filenamecat-lgpl.
20335         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20336         LIBINTL.
20337         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20338         * tests/test-linkat.c (main): Don't require xalloc.
20339
20340         hash, mgetgroups: drop xalloc dependency
20341         * lib/hash.c (includes): Adjust includes.
20342         * lib/mgetgroups.c (includes): Likewise.
20343         (xgetgroups): Move...
20344         * lib/xgetgroups.c: ...to new file.
20345         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20346         * modules/xgetgroups: New file, split from...
20347         * modules/mgetgroups: ...here.
20348         (Depends-on): Add xalloc-oversized.
20349         * modules/hash (Depends-on): Likewise.
20350         * modules/hash-tests (Depends-on): Drop xalloc.
20351         (test_hash_LDADD): Drop unused library.
20352         * tests/test-hash.c (main): Break xalloc dependency.
20353         (includes): Drop unused include.
20354
20355         xalloc-oversized: new module
20356         * modules/xalloc-oversized: New module.
20357         * modules/xalloc (Depends-on): Add it.
20358         * lib/xalloc.h (xalloc_oversized): Move...
20359         * lib/xalloc-oversized.h: ...into new file.
20360
20361         utimecmp: drop dependency on xmalloc
20362         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20363         due to memory pressure.
20364         * modules/utimecmp (Depends-on): Drop xalloc.
20365
20366 2011-04-27  Eric Blake  <eblake@redhat.com>
20367
20368         getcwd: fix mingw bugs
20369         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20370         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20371         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20372
20373 2011-04-27  Bruno Haible  <bruno@clisp.org>
20374
20375         mkstemps: Ensure declaration on MacOS X 10.5.
20376         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20377         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20378         MacOS X.
20379
20380 2011-04-27  Bruno Haible  <bruno@clisp.org>
20381
20382         mkstemp: More documentation.
20383         * doc/posix-functions/mkstemp.texi: Document header file problem on
20384         MacOS X.
20385
20386 2011-04-27  Bruno Haible  <bruno@clisp.org>
20387
20388         mkstemp: Tweak configure message when cross-compiling.
20389         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20390         result as a guess.
20391
20392 2011-04-27  Bruno Haible  <bruno@clisp.org>
20393
20394         clean-temp: Clarify what it does.
20395         * lib/clean-temp.h: Add more comments.
20396         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20397         module.
20398         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20399         * doc/glibc-functions/mkstemps.texi: Likewise.
20400         * doc/glibc-functions/mkostemps.texi: Likewise.
20401
20402 2011-04-27  Eric Blake  <eblake@redhat.com>
20403
20404         fchdir: avoid extra chdir and fix test
20405         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20406         getcwd-lgpl.
20407         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20408         have to be canonical.
20409         (canonicalize_file_name): Drop unused macro.
20410         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20411
20412         filenamecat-lgpl: fix licence
20413         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20414         when it was first created.
20415
20416         linkat, renameat: add missing dependency
20417         * modules/linkat (Depends-on): Require getcwd-lgpl.
20418         * modules/renameat (Depends-on): Likewise.
20419
20420         tests: reduce dependencies
20421         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20422         * tests/test-renameat.c (main): Likewise.
20423         * modules/linkat-tests (Depends-on): Relax dependency.
20424         * modules/renameat-tests (Depends-on): Likewise.
20425         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20426         dependency explicit.
20427
20428         save-cwd: reduce default dependency
20429         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20430         * lib/save-cwd.c: Update comments.
20431         * NEWS: Document the semantic change.
20432
20433         getcwd: enhance tests
20434         * tests/test-getcwd-lgpl.c: New file, taken from...
20435         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20436         repeat long path stress tests from m4 probe.
20437         * modules/getcwd-lgpl-tests: New module.
20438         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20439         * m4/getcwd-abort-bug.m4: Update comment.
20440         * m4/getcwd-path-max.m4: Likewise.
20441
20442         getcwd-lgpl: new module
20443         * modules/getcwd-lgpl: New module.
20444         * lib/getcwd-lgpl.c: New file.
20445         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20446         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20447         * modules/getcwd (configure.ac): Set C witness.
20448         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20449
20450         getcwd: tweak comments
20451         * m4/getcwd-abort-bug.m4: Fix comments.
20452         * m4/getcwd-path-max.m4: Likewise.
20453         * m4/getcwd.m4: Likewise.
20454
20455 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20456         and Eric Blake  <eblake@redhat.com>
20457
20458         mkstemp: replace if system version uses wrong permissions
20459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20460         read/write mode bits set in file created by mkstemp.
20461         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20462
20463 2011-04-27  Eric Blake  <eblake@redhat.com>
20464
20465         passfd: avoid compiler warning
20466         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20467         Reported by Laine Stump.
20468
20469 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20470
20471         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20472         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20473
20474 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20475         and Eric Blake  <eblake@redhat.com>
20476
20477         mkstemp: mention clean-temp module
20478         * lib/mkstemp.c: Add comment.
20479         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20480
20481 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20482
20483         inttypes: also provide default values for 32-bit tests
20484         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20485         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20486
20487 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20488
20489         strtoumax: remove dependency on strtoimax
20490         This is like the strtoull change of yesterday.
20491         * modules/strtoumax (Files): Add lib/strtoimax.c.
20492         (Depends-on): Remove strtoimax and add verify.
20493
20494         inttypes-incomplete: new module
20495         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20496         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20497         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20498         of gl_INTTYPES_H.
20499         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20500         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20501         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20502         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20503         * modules/strtoumax, modules/xstrtol (Depends-on):
20504         Depend on inttypes-incomplete, not inttypes.
20505         * modules/inttypes-incomplete: New module, containing the contents
20506         of the old modules/inttypes module, except that the Files: section
20507         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20508         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20509         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20510         (Depends-on): Depend only on inttypes-incomplete.
20511         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20512
20513         inttypes: omit now-redundant strtoimax and strtoumax work
20514         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20515         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20516
20517         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20518         This supports apps that need pointers to strtoimax and strtoumax,
20519         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20520         nonexistent functions.  See
20521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20522         et seq.
20523         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20524         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20525         a macro.
20526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20527
20528 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20529
20530         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20531
20532 2011-04-25  Bruno Haible  <bruno@clisp.org>
20533
20534         strtol, strtoul: Mark modules as obsolete.
20535         * modules/strtol (Status, Notice): New sections.
20536         * modules/strtoul (Status, Notice): New sections.
20537
20538 2011-04-25  Bruno Haible  <bruno@clisp.org>
20539
20540         strtod: Remove check for strtod, unless supporting old platforms.
20541         * modules/strtod-obsolete: New file.
20542         * m4/strtod-obsolete.m4: New file.
20543         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20544         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20545         * modules/strtod (Depends-on): Add strtod-obsolete.
20546         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20547
20548 2011-04-25  Bruno Haible  <bruno@clisp.org>
20549
20550         strcase: Make module obsolete.
20551         * modules/strcase (Status, Notice): New sections.
20552
20553 2011-04-25  Bruno Haible  <bruno@clisp.org>
20554
20555         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20556         * modules/dup2-obsolete: New file.
20557         * m4/dup2-obsolete.m4: New file.
20558         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20559         gl_FUNC_DUP2_OBSOLETE is not also defined.
20560         * modules/dup2 (Depends-on): Add dup2-obsolete.
20561         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20562
20563 2011-04-25  Bruno Haible  <bruno@clisp.org>
20564
20565         strnlen: Avoid memchr related link error on old obsolete platforms.
20566         * modules/memchr-obsolete: New file.
20567         * m4/memchr-obsolete.m4: New file.
20568         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20569         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20570         * modules/memchr (Depends-on): Add memchr-obsolete.
20571         * modules/strnlen (Depends-on): Likewise.
20572         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20573
20574 2011-04-25  Jim Meyering  <meyering@redhat.com>
20575
20576         maint.mk: makefile_at_at_check extend and clean up
20577         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20578         in addition to */Makefile.am.
20579         Exempt legitimate uses of @VAR@ notation, e.g.,
20580         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20581         Remove obsolete coreutils-specific comment.
20582         Prompted by discussion here:
20583         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20584
20585 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20586
20587         strtoul: remove dependency on strtol
20588         This is so that 'configure' need not check for strtol merely because
20589         the application needs strtoul.
20590         * modules/strtoul (Files): Add lib/strtol.c.
20591         (Depends-on): Remove strtol.
20592
20593         strtoull: remove dependency on strtoul
20594         This is like the strtoll change.
20595         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20596         (Depends-on): Remove strtoul.
20597
20598         strtoll: remove dependency on strtol
20599         This is so that 'configure' need not check for strtol merely because
20600         the application needs strtoll.
20601         * modules/strtoll (Files): Add lib/strtol.c.
20602         (Depends-on): Remove strtol.
20603
20604 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20605
20606         inttypes: Move some configure check to module 'imaxdiv'.
20607         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20608         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20609         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20610
20611 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20612
20613         inttypes: Move some configure check to module 'imaxabs'.
20614         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20615         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20616         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20617
20618 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         inttypes: Remove configure tests that are not needed since 2009-12-31.
20621         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20622         gl_cv_header_working_inttypes_h.
20623
20624 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20625
20626         * modules/strnlen (Depends-on): Remove memchr.
20627         The strnlen implementation doesn't need the memchr module's fixes; see
20628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20629
20630         strtol: remove dependency on wchar
20631         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20632         * modules/strtol (Depends-on): Remove wchar.
20633
20634 2011-04-21  Eric Blake  <eblake@redhat.com>
20635
20636         passfd: fix test regression on Linux
20637         * modules/passfd-tests (configure.ac): Correct socketpair check.
20638
20639         passfd: speed up configure and drop unused code
20640         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20641         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20642         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20643         Instead of probing at configure for unix_scm_rights_bsd44_way,
20644         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20645         check to a struct member probe.
20646         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20647         (sendfd, recvfd): Update preprocessor checks.
20648         * modules/passfd (Files): Reflect rename, and drop unused file.
20649         (Depends-on): Drop unused dependency.
20650
20651         passfd: allow compilation on mingw
20652         * modules/sys_socket (Depends-on): Add sys_uio.
20653         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20654         iovec and a minimal struct msghdr.
20655         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20656         * tests/test-sys_socket.c (main): Enhance test.
20657         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20658         guaranteed to provide what we need.
20659         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20660         * modules/passfd-tests (Depends-on): Add sys_wait.
20661         * tests/test-passfd.c (main): Skip test on mingw, for now.
20662         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20663         partial 'struct msghdr' implementation.
20664
20665         sys_uio: new module
20666         * modules/sys_uio: New module.
20667         * modules/sys_uio-tests: Likewise.
20668         * lib/sys_uio.in.h: New file.
20669         * m4/sys_uio_h.m4: Likewise.
20670         * tests/test-sys_uio.c: Likewise.
20671         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20672         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20673
20674 2011-04-20  Jim Meyering  <meyering@redhat.com>
20675
20676         useless-if-before-free: avoid false-positive
20677         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20678         disjunct so that it too requires a terminating ";".  Without that,
20679         this script would identify as useless one statement from gcc that
20680         was not:
20681           if (aligned_ptr)
20682             free (((void **) aligned_ptr) [-1]);
20683
20684 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20685
20686         doc: update users.txt.
20687         * users.txt: Add barcode.
20688
20689 2011-04-19  Bruno Haible  <bruno@clisp.org>
20690
20691         ioctl: Remove link dependency on native Windows.
20692         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20693         (gl_close_fn, gl_ioctl_fn): New types.
20694         (struct fd_hook): Renamed from struct close_hook. Change type of
20695         private_close_fn field. Add private_ioctl_fn field.
20696         (close_hook_fn): Add parameter for primary close method.
20697         (execute_close_hooks, execute_all_close_hooks): Likewise.
20698         (ioctl_hook_fn): New type.
20699         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20700         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20701         argument.
20702         (unregister_fd_hook): Renamed from unregister_close_hook.
20703         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20704         Don't include <unistd.h>.
20705         (close): Remove undef.
20706         (anchor): Update.
20707         (execute_close_hooks): Add argument for primary close method.
20708         (execute_all_close_hooks): Likewise.
20709         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20710         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20711         argument. Allow each argument to be NULL.
20712         (unregister_fd_hook): Renamed from unregister_close_hook.
20713         * lib/close.c (rpl_close): Pass 'close' function pointer to
20714         execute_all_close_hooks.
20715         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20716         (primary_ioctl): New function.
20717         (ioctl): Don't call ioctlsocket here. Instead, call
20718         execute_all_ioctl_hooks.
20719         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20720         close method.
20721         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20722         (fd_sockets_hook): Renamed from close_sockets_hook.
20723         (gl_sockets_startup, gl_sockets_cleanup): Update.
20724         * modules/fd-hook: Renamed from modules/close-hook. Update.
20725         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20726         * modules/sockets (Depends-on): Likewise.
20727         * modules/ioctl (Depends-on): Add fd-hook.
20728         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20729         GNULIB_SOCKET.
20730
20731 2011-04-19  Bruno Haible  <bruno@clisp.org>
20732
20733         Move the support of O_NONBLOCK in open() to the 'open' module.
20734         * modules/nonblocking (Depends-on): Remove 'open'.
20735         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20736         gl_cv_have_open_O_NONBLOCK.
20737         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20738         O_NONBLOCK support.
20739         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20740
20741 2011-04-17  Bruno Haible  <bruno@clisp.org>
20742
20743         pipe2: Simplify code.
20744         * lib/pipe2.c (pipe2): Reduce code duplication.
20745
20746 2011-04-17  Bruno Haible  <bruno@clisp.org>
20747
20748         nonblocking: Add comment.
20749         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20750
20751 2011-04-17  Bruno Haible  <bruno@clisp.org>
20752
20753         nonblocking: Add tests for sockets.
20754         * tests/test-nonblocking-socket.sh: New file.
20755         * tests/test-nonblocking-socket-main.c: New file.
20756         * tests/test-nonblocking-socket-child.c: New file.
20757         * tests/test-nonblocking-socket.h: New file.
20758         * tests/socket-server.h: New file.
20759         * tests/socket-client.h: New file.
20760         * modules/nonblocking-socket-tests: New file.
20761         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20762
20763 2011-04-17  Bruno Haible  <bruno@clisp.org>
20764
20765         nonblocking: Add tests for pipes.
20766         * tests/test-nonblocking-pipe.sh: New file.
20767         * tests/test-nonblocking-pipe-main.c: New file.
20768         * tests/test-nonblocking-pipe-child.c: New file.
20769         * tests/test-nonblocking-pipe.h: New file.
20770         * tests/test-nonblocking-writer.h: New file.
20771         * tests/test-nonblocking-reader.h: New file.
20772         * tests/test-nonblocking-misc.h: New file.
20773         * modules/nonblocking-pipe-tests: New file.
20774         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20775
20776 2011-04-16  Bruno Haible  <bruno@clisp.org>
20777
20778         gettext: Clarify the needed programmer actions.
20779         * modules/gettext (Notice): New field.
20780         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20781
20782 2011-04-16  Bruno Haible  <bruno@clisp.org>
20783
20784         strchrnul: Tweak last commit.
20785         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20786         bug.
20787         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20788         as in _GL_FUNCDECL_SYS.
20789         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20790         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20791
20792 2011-04-15  Eric Blake  <eblake@redhat.com>
20793
20794         strchrnul: work around cygwin bug
20795         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20796         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20798         * modules/string (Makefile.am): Substitute it.
20799         * lib/string.in.h (strchrnul): Use it.
20800
20801 2011-04-15  Bruno Haible  <bruno@clisp.org>
20802
20803         Don't require lib/stdio-write.c when only module 'stdio' is used.
20804         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20805         invocation.
20806         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20807
20808 2011-04-14  Bruno Haible  <bruno@clisp.org>
20809
20810         Support non-blocking pipe I/O in read() on native Windows.
20811         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20812         (read): New declaration.
20813         * lib/read.c: New file.
20814         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20815         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20816         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20817         vscanf): New declarations.
20818         * lib/stdio-read.c: New file.
20819         * m4/read.m4: New file.
20820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20821         REPLACE_READ.
20822         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20823         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20824         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20825         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20826         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20827         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20828         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20829         * modules/read: New file.
20830         * modules/nonblocking (Files): Add lib/stdio-read.c.
20831         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20832         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20833         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20834         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20835         * modules/pread (Depends-on): Add read.
20836         * modules/safe-read (Depends-on): Likewise.
20837         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20838         gets, scanf, vfscanf, vscanf): Verify signatures.
20839         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20840         problem with non-blocking pipes.
20841         * doc/posix-functions/fgetc.texi: Likewise.
20842         * doc/posix-functions/fgets.texi: Likewise.
20843         * doc/posix-functions/fread.texi: Likewise.
20844         * doc/posix-functions/fscanf.texi: Likewise.
20845         * doc/posix-functions/getc.texi: Likewise.
20846         * doc/posix-functions/getchar.texi: Likewise.
20847         * doc/posix-functions/gets.texi: Likewise.
20848         * doc/posix-functions/scanf.texi: Likewise.
20849         * doc/posix-functions/vfscanf.texi: Likewise.
20850         * doc/posix-functions/vscanf.texi: Likewise.
20851
20852 2011-04-14  Bruno Haible  <bruno@clisp.org>
20853
20854         Support non-blocking pipe I/O in write() on native Windows.
20855         * lib/write.c (rpl_write): Split a write request that failed merely
20856         because the byte count was larger than the pipe buffer's size.
20857         * doc/posix-functions/write.texi: Mention the problem with large byte
20858         counts.
20859
20860 2011-04-14  Bruno Haible  <bruno@clisp.org>
20861
20862         wchar: Ensure that wchar_t gets defined on uClibc.
20863         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20864         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20865
20866 2011-04-13  Bruno Haible  <bruno@clisp.org>
20867
20868         safe-write, full-read: Avoid unnecessary compilation units.
20869         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20870         (Depends-on): Remove safe-read. Add ssize_t.
20871         * modules/full-read (Files): Add lib/full-write.c.
20872         (Depends-on): Add full-write.
20873
20874 2011-04-13  Bruno Haible  <bruno@clisp.org>
20875
20876         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20877         * modules/pwrite (Depends-on): Add 'write'.
20878
20879 2011-04-13  Bruno Haible  <bruno@clisp.org>
20880
20881         Support non-blocking pipe I/O in write() on native Windows.
20882         * lib/unistd.in.h (write): Enable replacement also if
20883         GNULIB_UNISTD_H_NONBLOCKING is 1.
20884         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20885         (rpl_write): When failing to write on a non-blocking pipe, change
20886         errno from ENOSPC to EAGAIN.
20887         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20888         putchar, puts, vfprintf, vprintf): Enable replacement also if
20889         GNULIB_STDIO_H_NONBLOCKING is 1.
20890         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20891         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20892         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20893         CALL_WITH_SIGPIPE_EMULATION.
20894         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20895         * m4/nonblocking.m4: New file.
20896         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20897         for non-blocking I/O support.
20898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20899         GNULIB_UNISTD_H_NONBLOCKING.
20900         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20901         required for non-blocking I/O support.
20902         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20903         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20904         lib/stdio-write.c, m4/asm-underscore.m4.
20905         (Depends-on): Add stdio, unistd.
20906         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20907         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20908         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20909         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20910         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20911         problem with non-blocking pipes.
20912         * doc/posix-functions/fputc.texi: Likewise.
20913         * doc/posix-functions/fputs.texi: Likewise.
20914         * doc/posix-functions/fwrite.texi: Likewise.
20915         * doc/posix-functions/printf.texi: Likewise.
20916         * doc/posix-functions/putc.texi: Likewise.
20917         * doc/posix-functions/putchar.texi: Likewise.
20918         * doc/posix-functions/puts.texi: Likewise.
20919         * doc/posix-functions/vfprintf.texi: Likewise.
20920         * doc/posix-functions/vprintf.texi: Likewise.
20921         * doc/posix-functions/write.texi: Likewise.
20922
20923 2011-04-10  Jim Meyering  <meyering@redhat.com>
20924
20925         maint.mk: prohibit doubled words
20926         Detect them also when they're separated by a newline.
20927         There are 3 ways to customize it:
20928           - disable the test on a per file basis, as usual with rules using
20929             $(VC_LIST_EXCEPT)
20930           - replace the default doubled-word-selecting regexp (affects all files)
20931           - ignore a particular file-vs-doubled-word match
20932         I nearly used that last one to ignore the "is is" match in
20933         coreutils' NEWS file, since the text was "ls -is is ..."
20934         To do that, I would have added this line to cfg.mk:
20935           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20936         but it would have ignored any "is is" match in NEWS.
20937         Low probability, but still...
20938         Instead, I changed the text, slightly:
20939           -  ls -is is now consistent with ls -lis in ignoring values returned
20940           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20941         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20942         (prohibit_doubled_word_): Define.
20943         (sc_prohibit_doubled_word): New rule.
20944         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20945
20946 2011-04-10  Jim Meyering  <meyering@redhat.com>
20947
20948         maint: fix doubled-word typo in comment
20949         * m4/gethostname.m4: s/is is/it is/
20950         * m4/getdomainname.m4: Likewise.
20951
20952 2011-04-10  Jim Meyering  <meyering@redhat.com>
20953
20954         maint: remove doubled word: s/it it/it/
20955         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20956
20957 2011-04-10  Jim Meyering  <meyering@redhat.com>
20958
20959         maint.mk: remove useless semicolon and backslash
20960         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20961         semicolon and backslash.
20962
20963 2011-04-10  Bruno Haible  <bruno@clisp.org>
20964
20965         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20966         * modules/stdint-tests (Depends-on): Add wchar.
20967
20968 2011-04-10  Jim Meyering  <meyering@redhat.com>
20969
20970         maint: remove doubled words in comments, e.g., s/a a/a/
20971         * lib/strptime.c (day_of_the_week): s/the the/the/
20972         * tests/test-chown.h (test_chown): s/a a/a/
20973
20974         test-chown.h: correct a cast
20975         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20976         when the destination is a stat.st_gid.
20977
20978 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20979
20980         getaddrinfo: Fix test for sa_len member.
20981         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20982         include <sys/types.h> before <sys/socket.h>.
20983
20984 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20985
20986         maint: change "can not" to "cannot"
20987         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20988         boundaries.
20989
20990 2011-04-09  Jim Meyering  <meyering@redhat.com>
20991
20992         maint: change "a a" to "a"
20993         * tests/test-lchown.h (test_lchown): s/a a/a/
20994
20995         maint.mk: prohibit \<the the\>
20996         * top/maint.mk (sc_prohibit_the_the): New rule.
20997
20998         maint: fix "the the" in comment
20999         * lib/count-one-bits.h: s/the the/the/
21000
21001         maint: change "can not" to "cannot"
21002         But do not change the occurrences in maintain.texi or in
21003         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21004         * doc/gnulib-tool.texi: s/can not/cannot/
21005         * doc/posix-functions/accept.texi (accept): Likewise.
21006         * doc/posix-functions/socket.texi (socket): Likewise.
21007         * lib/mbrtowc.c: Likewise.
21008
21009         maint.mk: prohibit use of "can not"
21010         * top/maint.mk (sc_prohibit_can_not): New rule.
21011         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21012
21013 2011-04-09  Bruno Haible  <bruno@clisp.org>
21014
21015         careadlinkat: Guard against misuse of careadlinkatcwd.
21016         * lib/careadlinkat.c: Include <stdlib.h>.
21017         (careadlinkatcwd): Check that the fd argument is as expected.
21018
21019 2011-04-09  Bruno Haible  <bruno@clisp.org>
21020
21021         careadlinkat: Use common coding style.
21022         * lib/careadlinkat.c: Move gnulib includes after system includes.
21023
21024 2011-04-09  Bruno Haible  <bruno@clisp.org>
21025
21026         careadlinkat: Clarify specification.
21027         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21028         (careadlinkatcwd): Add comment.
21029         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21030
21031 2011-04-09  Bruno Haible  <bruno@clisp.org>
21032
21033         areadlinkat: Avoid link error on many platforms.
21034         * modules/areadlinkat (Depends-on): Add areadlink.
21035
21036 2011-04-09  Bruno Haible  <bruno@clisp.org>
21037
21038         allocator, careadlinkat: Fix double-inclusion guard.
21039         * lib/allocator.h: Fix double-inclusion guard.
21040         * lib/careadlinkat.h: Likewise.
21041
21042 2011-04-09  Bruno Haible  <bruno@clisp.org>
21043
21044         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21045         * lib/relocwrapper.c: Update dependencies hierarchy.
21046         * build-aux/install-reloc: Update list of files to be compiled.
21047         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21048         lib/allocator.[hc].
21049
21050 2011-04-08  Eric Blake  <eblake@redhat.com>
21051
21052         strftime: silence gnulib-tool warning
21053         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21054
21055 2011-04-08  Bruno Haible  <bruno@clisp.org>
21056
21057         verify: Fix syntax error with GCC 4.6 in C++ mode.
21058         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21059         (HAVE_STATIC_ASSERT): New macro.
21060         (verify_true, verify): Use 'static_assert' if it is supported and
21061         '_Static_assert' is not supported.
21062
21063 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21064
21065         allocator: New module.
21066         * modules/allocator, lib/allocator.c: New files.
21067         * lib/allocator.h (stdlib_allocator): New decl.
21068         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21069         Remove.  Do not include <stdlib.h>.
21070         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21071         * modules/careadlinkat (Files): Remove lib/allocator.h.
21072         (Depends-on): Add allocator.
21073
21074         stdlib: let modules use system malloc, realloc
21075         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21076         if !_GL_USE_STDLIB_ALLOC.
21077         (malloc, realloc): Limit this change to a smaller scope.
21078
21079         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21080         (malloc, realloc): Don't #undef; no longer needed.
21081         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21082         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21083         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21084         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21085         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21086         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21087         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21088         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21089
21090         careadlinkat: rename members to avoid problem
21091         * lib/allocator.h (struct allocator): Rename members from
21092         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21093         and realloc are #define'd.  Reported by Eric Blake in
21094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21095         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21096
21097 2011-04-08  Eric Blake  <eblake@redhat.com>
21098
21099         nonblocking: reduce dependency
21100         * tests/test-nonblocking.c: Only test sockets when in use.
21101         * modules/nonblocking-tests (Depends-on): Drop socket.
21102         (Makefile.am): Link even if sockets are not present.
21103         * modules/pipe2-tests (Makefile.am): Likewise.
21104         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21105
21106         pipe2: fix O_NONBLOCK support on mingw
21107         * modules/pipe2 (Depends-on): Add nonblocking.
21108         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21109         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21110         * tests/test-nonblocking.c (main): Likewise.
21111         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21112
21113         fcntl-h: fix O_ACCMODE on cygwin
21114         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21115         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21116
21117         pipe-filter: drop O_NONBLOCK workarounds
21118         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21119         * modules/pipe-filter-ii (Depends-on): Likewise.
21120         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21121
21122         nonblocking: provide O_NONBLOCK for mingw
21123         * modules/nonblocking (Depends-on): Add open.
21124         (configure.ac): Set new witness macro.
21125         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21126         * modules/fcntl-h (Makefile.am): Substitute it.
21127         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21128         nonblocking module is in use.
21129         * lib/nonblocking.c: Adjust portability test.
21130         * lib/open.c (open): Don't let native open see gnulib flag.
21131         * tests/test-fcntl-h.c (main): Enhance test.
21132         * tests/test-open.h (test_open): Likewise.
21133         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21134
21135         careadlinkat: fix compilation error on mingw
21136         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21137         within struct allocator.
21138
21139 2011-04-06  Eric Blake  <eblake@redhat.com>
21140
21141         binary-io: relicense under LGPLv2+
21142         * modules/binary-io (License): Relax to LGPLv2+.
21143         Requested for libvirt, and required by pipe2.
21144
21145 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21146
21147         verify: use _Static_assert if available
21148         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21149         (verify_true, verify): Use it if available.  This generates better
21150         diagnostics with GCC 4.6.0 and later.
21151
21152 2011-04-05  Bruno Haible  <bruno@clisp.org>
21153
21154         Remove leftover generated .h files after config.status changed.
21155
21156         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21157         GL_GENERATE_ALLOCA_H.
21158         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21159         GL_GENERATE_ALLOCA_H evaluates to false.
21160
21161         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21162         GL_GENERATE_ARGZ_H.
21163         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21164         evaluates to false.
21165
21166         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21167         GL_GENERATE_BYTESWAP_H.
21168         * modules/byteswap (Makefile.am): Remove byteswap.h if
21169         GL_GENERATE_BYTESWAP_H evaluates to false.
21170
21171         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21172         GL_GENERATE_ERRNO_H.
21173         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21174         evaluates to false.
21175
21176         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21177         GL_GENERATE_FLOAT_H.
21178         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21179         evaluates to false.
21180
21181         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21182         GL_GENERATE_FNMATCH_H.
21183         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21184         GL_GENERATE_FNMATCH_H evaluates to false.
21185
21186         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21187         GL_GENERATE_GLOB_H.
21188         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21189         evaluates to false.
21190
21191         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21192         automake conditional GL_GENERATE_ICONV_H.
21193         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21194         evaluates to false.
21195
21196         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21197         GL_GENERATE_NETINET_IN_H.
21198         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21199         GL_GENERATE_NETINET_IN_H evaluates to false.
21200
21201         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21202         conditional GL_GENERATE_PTHREAD_H.
21203         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21204         * modules/pthread (Makefile.am): Remove pthread.h if
21205         GL_GENERATE_PTHREAD_H evaluates to false.
21206
21207         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21208         GL_GENERATE_SCHED_H.
21209         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21210         evaluates to false.
21211
21212         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21213         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21214         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21215         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21216
21217         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21218         GL_GENERATE_STDARG_H.
21219         * modules/stdarg (Makefile.am): Remove stdarg.h if
21220         GL_GENERATE_STDARG_H evaluates to false.
21221
21222         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21223         GL_GENERATE_STDBOOL_H.
21224         * modules/stdbool (Makefile.am): Remove stdbool.h if
21225         GL_GENERATE_STDBOOL_H evaluates to false.
21226
21227         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21228         conditional GL_GENERATE_STDDEF_H.
21229         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21230         * modules/stddef (Makefile.am): Remove stddef.h if
21231         GL_GENERATE_STDDEF_H evaluates to false.
21232
21233         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21234         GL_GENERATE_STDINT_H.
21235         * modules/stdint (Makefile.am): Remove stdint.h if
21236         GL_GENERATE_STDINT_H evaluates to false.
21237
21238         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21239         GL_GENERATE_SYSEXITS_H.
21240         * modules/sysexits (Makefile.am): Remove sysexits.h if
21241         GL_GENERATE_SYSEXITS_H evaluates to false.
21242
21243         Reported by Karl Berry and Ralf Wildenhues.
21244
21245 2011-04-05  Bruno Haible  <bruno@clisp.org>
21246
21247         Ensure to rebuild generated .h files when config.status has changed.
21248         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21249         config.status.
21250         * modules/ctype (Makefile.am): Likewise.
21251         * modules/dirent (Makefile.am): Likewise.
21252         * modules/errno (Makefile.am): Likewise.
21253         * modules/fcntl-h (Makefile.am): Likewise.
21254         * modules/float (Makefile.am): Likewise.
21255         * modules/getopt-posix (Makefile.am): Likewise.
21256         * modules/glob (Makefile.am): Likewise.
21257         * modules/iconv-h (Makefile.am): Likewise.
21258         * modules/inttypes (Makefile.am): Likewise.
21259         * modules/langinfo (Makefile.am): Likewise.
21260         * modules/locale (Makefile.am): Likewise.
21261         * modules/math (Makefile.am): Likewise.
21262         * modules/netdb (Makefile.am): Likewise.
21263         * modules/netinet_in (Makefile.am): Likewise.
21264         * modules/poll-h (Makefile.am): Likewise.
21265         * modules/pthread (Makefile.am): Likewise.
21266         * modules/pty (Makefile.am): Likewise.
21267         * modules/sched (Makefile.am): Likewise.
21268         * modules/search (Makefile.am): Likewise.
21269         * modules/selinux-h (Makefile.am): Likewise.
21270         * modules/signal (Makefile.am): Likewise.
21271         * modules/spawn (Makefile.am): Likewise.
21272         * modules/stdarg (Makefile.am): Likewise.
21273         * modules/stdbool (Makefile.am): Likewise.
21274         * modules/stddef (Makefile.am): Likewise.
21275         * modules/stdint (Makefile.am): Likewise.
21276         * modules/stdio (Makefile.am): Likewise.
21277         * modules/stdlib (Makefile.am): Likewise.
21278         * modules/string (Makefile.am): Likewise.
21279         * modules/strings (Makefile.am): Likewise.
21280         * modules/sys_file (Makefile.am): Likewise.
21281         * modules/sys_ioctl (Makefile.am): Likewise.
21282         * modules/sys_select (Makefile.am): Likewise.
21283         * modules/sys_socket (Makefile.am): Likewise.
21284         * modules/sys_stat (Makefile.am): Likewise.
21285         * modules/sys_time (Makefile.am): Likewise.
21286         * modules/sys_times (Makefile.am): Likewise.
21287         * modules/sys_utsname (Makefile.am): Likewise.
21288         * modules/sys_wait (Makefile.am): Likewise.
21289         * modules/sysexits (Makefile.am): Likewise.
21290         * modules/termios (Makefile.am): Likewise.
21291         * modules/time (Makefile.am): Likewise.
21292         * modules/unistd (Makefile.am): Likewise.
21293         * modules/wchar (Makefile.am): Likewise.
21294         * modules/wctype-h (Makefile.am): Likewise.
21295         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21296
21297 2011-04-05  Bruno Haible  <bruno@clisp.org>
21298
21299         pipe2: Relicense under LGPLv2+.
21300         * modules/pipe2 (License): Change to LGPLv2+.
21301         Requested by Eric Blake, for libvirt.
21302
21303 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21304
21305         bootstrap: compute gnulib_extra_files after updating build_aux
21306         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21307         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21308
21309 2011-04-05  Eric Blake  <eblake@redhat.com>
21310
21311         bootstrap: preserve git whitelist item sorting
21312         * build-aux/bootstrap (sort_patterns): New function.
21313         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21314
21315 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21316
21317         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21318         sc_space_tab check.
21319
21320 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21321
21322         areadlink, areadlinkat: rewrite in terms of careadlinkat
21323         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21324         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21325         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21326         (malloc, realloc): Remove #undefs.
21327         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21328         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21329         readlink, ssize_t, stdint, unistd.
21330         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21331         areadlink, stdint.
21332
21333         careadlinkat: new module
21334         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21335         * modules/careadlinkat: New files, written by me with
21336         a review and feedback from Ben Pfaff in
21337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21338
21339 2011-04-01  Bruno Haible  <bruno@clisp.org>
21340
21341         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21342         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21343         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21344         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21345         Reported by Bruce Korb <bruce.korb@gmail.com>.
21346
21347 2011-04-01  Bruno Haible  <bruno@clisp.org>
21348
21349         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21350         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21351         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21352         * modules/wcpcpy (Depends-on): Add extensions.
21353         * modules/wcpncpy (Depends-on): Likewise.
21354         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21355         systems.
21356         * doc/posix-functions/wcpncpy.texi: Likewise.
21357         * doc/posix-functions/wcwidth.texi: Likewise.
21358
21359 2011-03-31  Eric Blake  <eblake@redhat.com>
21360
21361         nonblocking: fix mingw test failures
21362         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21363         non-blocking flag on regular file.
21364         (get_nonblocking_flag): Set errno on invalid fd.
21365         * tests/test-nonblocking.c (main): Avoid test failure on
21366         directories if fchdir is not active.
21367         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21368
21369 2011-03-31  Bruno Haible  <bruno@clisp.org>
21370
21371         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21372         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21373         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21374         Reported by Simon Josefsson <simon@josefsson.org>.
21375
21376 2011-03-31  Bruno Haible  <bruno@clisp.org>
21377         and Eric Blake  <eblake@redhat.com>
21378
21379         nonblocking: new module
21380         * modules/nonblocking: New module.
21381         * modules/nonblocking-tests: Likewise.
21382         * lib/nonblocking.h: New file.
21383         * lib/nonblocking.c: Likewise.
21384         * tests/test-nonblocking.c: New test.
21385         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21386
21387 2011-03-30  Bruno Haible  <bruno@clisp.org>
21388
21389         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21390         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21391         instead of 'printf' format for GCC >= 4.4.
21392         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21393         (fprintf, printf, vfprintf, vprintf): Declare with
21394         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21395         the system's vfprintf() function.
21396         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21397
21398 2011-03-30  Eric Blake  <eblake@redhat.com>
21399
21400         passfd: fix scoping bug
21401         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21402         before sendmsg/recvmsg.
21403
21404         passfd: standardize coding conventions
21405         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21406         can be learned at compile time.
21407         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21408         ifdefs.
21409         (sendfd, recvfd): Follow gnulib code conventions.
21410
21411         passfd: fix incorrect sendmsg arguments
21412         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21413         incorrect msg_controllen value.
21414         * modules/passfd-tests (Depends-on): Check for alarm.
21415         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21416         Reported by Bastien ROUCARIES.
21417
21418 2011-03-30  Bruno Haible  <bruno@clisp.org>
21419
21420         c-strcasestr: Relicense under LGPLv2+.
21421         * modules/c-strcasestr (License): Change to LGPLv2+.
21422         Requested by Eric Blake, for libvirt.
21423
21424 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21425
21426         * users.txt: Add libidn2.  Fix libtasn1 link.
21427
21428 2011-03-30  Jim Meyering  <meyering@redhat.com>
21429
21430         tests: readlink* ("",... fails with EINVAL on newer kernels
21431         readlink and readlinkat have typically failed with ENOENT for
21432         the invalid, empty file name,  "".  However, with the advent
21433         of linux-2.6.39, they fail with EINVAL.
21434         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21435         when operating on the empty file name.
21436         * tests/test-readlink.h (test_readlink): Likewise.
21437
21438 2011-03-29  Bruno Haible  <bruno@clisp.org>
21439
21440         Relicense some modules under LGPLv2+, for libidn2.
21441         * modules/array-mergesort (License): Change to LGPLv2+.
21442         * modules/c-strcaseeq (License): Likewise.
21443         * modules/striconveh (License): Likewise.
21444         * modules/striconveha (License): Likewise.
21445         * modules/uniconv/base (License): Likewise.
21446         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21447         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21448         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21449         * modules/unictype/base (License): Likewise.
21450         * modules/unictype/bidiclass-of (License): Likewise.
21451         * modules/unictype/category-M (License): Likewise.
21452         * modules/unictype/category-none (License): Likewise.
21453         * modules/unictype/category-of (License): Likewise.
21454         * modules/unictype/category-test (License): Likewise.
21455         * modules/unictype/category-test-withtable (License): Likewise.
21456         * modules/unictype/combining-class (License): Likewise.
21457         * modules/unictype/joiningtype-of (License): Likewise.
21458         * modules/unictype/scripts (License): Likewise.
21459         * modules/uninorm/base (License): Likewise.
21460         * modules/uninorm/canonical-decomposition (License): Likewise.
21461         * modules/uninorm/composition (License): Likewise.
21462         * modules/uninorm/decompose-internal (License): Likewise.
21463         * modules/uninorm/decomposition-table (License): Likewise.
21464         * modules/uninorm/nfc (License): Likewise.
21465         * modules/uninorm/nfd (License): Likewise.
21466         * modules/uninorm/u32-normalize (License): Likewise.
21467         * modules/unistr/base (License): Likewise.
21468         * modules/unistr/u32-cpy (License): Likewise.
21469         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21470         * modules/unistr/u32-to-u8 (License): Likewise.
21471         * modules/unistr/u32-uctomb (License): Likewise.
21472         * modules/unistr/u8-check (License): Likewise.
21473         * modules/unistr/u8-mblen (License): Likewise.
21474         * modules/unistr/u8-mbtouc (License): Likewise.
21475         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21476         * modules/unistr/u8-mbtoucr (License): Likewise.
21477         * modules/unistr/u8-prev (License): Likewise.
21478         * modules/unistr/u8-strlen (License): Likewise.
21479         * modules/unistr/u8-to-u32 (License): Likewise.
21480         * modules/unistr/u8-uctomb (License): Likewise.
21481         * modules/unitypes (License): Likewise.
21482         Requested by Simon Josefsson.
21483
21484 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21485
21486         lib-symbol-visibility: Add a notice.
21487         * modules/lib-symbol-visibility (Notice): New field.
21488
21489 2011-03-29  Bruno Haible  <bruno@clisp.org>
21490
21491         getaddrinfo: Doc fix.
21492         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21493         section "fixed in Gnulib".
21494
21495 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21496
21497         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21498         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21499
21500 2011-03-26  Bruno Haible  <bruno@clisp.org>
21501
21502         unictype/property-byname: Reduce the number of load-time relocations.
21503         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21504         (UC_PROPERTY_INDEX_*): New enumeration values.
21505         (uc_property_byname): Convert an index from the lookup table to an
21506         uc_property_t.
21507         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21508         values.
21509
21510 2011-03-26  Bruno Haible  <bruno@clisp.org>
21511
21512         unictype/property-byname: Allow omitted word separators and aliases.
21513         * lib/unictype/pr_byname.gperf: Add property names without word
21514         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21515         for 'space'.
21516
21517 2011-03-26  Bruno Haible  <bruno@clisp.org>
21518
21519         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21520         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21521         also hyphens to space.
21522         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21523         without spaces.
21524         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21525
21526 2011-03-26  Bruno Haible  <bruno@clisp.org>
21527
21528         unictype/joiningtype-byname: Recognize long names as well.
21529         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21530         a long name.
21531         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21532         unictype/joiningtype_byname.h.
21533         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21534         * lib/unictype/joiningtype_byname.gperf: New file.
21535         * modules/unictype/joiningtype-byname (Files): Add
21536         lib/unictype/joiningtype_byname.gperf.
21537         (Depends-on): Add gperf.
21538         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21539         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21540         long names.
21541
21542         Tests for module 'unictype/joiningtype-longname'.
21543         * modules/unictype/joiningtype-longname-tests: New file.
21544         * tests/unictype/test-joiningtype_longname.c: New file.
21545
21546         New module 'unictype/joiningtype-longname'.
21547         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21548         * lib/unictype/joiningtype_longname.c: New file.
21549         * modules/unictype/joiningtype-longname: New file.
21550         * modules/unictype/joiningtype-all (Depends-on): Add
21551         unictype/joiningtype-longname.
21552
21553 2011-03-26  Bruno Haible  <bruno@clisp.org>
21554
21555         unictype/bidiclass-byname: Recognize long names as well.
21556         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21557         name.
21558         * lib/unictype/bidi_byname.c: Include <string.h>,
21559         unictype/bidi_byname.h.
21560         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21561         * lib/unictype/bidi_byname.gperf: New file.
21562         * modules/unictype/bidiclass-byname (Files): Add
21563         lib/unictype/bidi_byname.gperf.
21564         (Depends-on): Add gperf.
21565         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21566         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21567         long names.
21568
21569         Tests for module 'unictype/bidiclass-longname'.
21570         * modules/unictype/bidiclass-longname-tests: New file.
21571         * tests/unictype/test-bidi_longname.c: New file.
21572
21573         New module 'unictype/bidiclass-longname'.
21574         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21575         * lib/unictype/bidi_longname.c: New file.
21576         * modules/unictype/bidiclass-longname: New file.
21577         * modules/unictype/bidiclass-all (Depends-on): Add
21578         unictype/bidiclass-longname.
21579
21580 2011-03-26  Bruno Haible  <bruno@clisp.org>
21581
21582         unictype/bidi*: Rename modules.
21583         * modules/unictype/bidiclass-all: Renamed from
21584         modules/unictype/bidicategory-all.
21585         * modules/unictype/bidiclass-name: Renamed from
21586         modules/unictype/bidiclass-name.
21587         (Description): Update.
21588         * modules/unictype/bidiclass-name-tests: Renamed from
21589         modules/unictype/bidicategory-name-tests.
21590         * modules/unictype/bidiclass-byname: Renamed from
21591         modules/unictype/bidicategory-byname.
21592         (Description): Update.
21593         * modules/unictype/bidiclass-byname-tests: Renamed from
21594         modules/unictype/bidicategory-byname-tests.
21595         * modules/unictype/bidiclass-of: Renamed from
21596         modules/unictype/bidicategory-of.
21597         (Description): Update.
21598         * modules/unictype/bidiclass-of-tests: Renamed from
21599         modules/unictype/bidicategory-of-tests.
21600         * modules/unictype/bidiclass-test: Renamed from
21601         modules/unictype/bidicategory-test.
21602         (Description): Update.
21603         * modules/unictype/bidiclass-test-tests: Renamed from
21604         modules/unictype/bidicategory-test-tests.
21605         * modules/unictype/bidicategory-all: New file, a simple redirection.
21606         * modules/unictype/bidicategory-name: Likewise.
21607         * modules/unictype/bidicategory-byname: Likewise.
21608         * modules/unictype/bidicategory-of: Likewise.
21609         * modules/unictype/bidicategory-test: Likewise.
21610         * modules/unictype/property-bidi-* (Dependencies): Update.
21611         * lib/unictype/bidi_*.c: Update comment.
21612
21613 2011-03-26  Bruno Haible  <bruno@clisp.org>
21614
21615         unictype/bidi*: Rename functions, part 2.
21616         * modules/unictype/bidicategory-name (configure.ac): Update required
21617         libunistring version.
21618         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21619
21620 2011-03-25  Bruno Haible  <bruno@clisp.org>
21621
21622         New module 'unictype/combining-class-all'.
21623         * modules/unictype/combining-class-all: New file.
21624
21625         Tests for module 'unictype/combining-class-byname'.
21626         * modules/unictype/combining-class-byname-tests: New file.
21627         * tests/unictype/test-combiningclass_byname.c: New file.
21628
21629         New module 'unictype/combining-class-byname'.
21630         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21631         * lib/unictype/combiningclass_byname.c: New file.
21632         * lib/unictype/combiningclass_byname.gperf: New file.
21633         * modules/unictype/combining-class-byname: New file.
21634
21635         Tests for module 'unictype/combining-class-longname'.
21636         * modules/unictype/combining-class-longname-tests: New file.
21637         * tests/unictype/test-combiningclass_longname.c: New file.
21638
21639         New module 'unictype/combining-class-longname'.
21640         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21641         * lib/unictype/combiningclass_longname.c: New file.
21642         * modules/unictype/combining-class-longname: New file.
21643
21644         Tests for module 'unictype/combining-class-name'.
21645         * modules/unictype/combining-class-name-tests: New file.
21646         * tests/unictype/test-combiningclass_name.c: New file.
21647
21648         New module 'unictype/combining-class-name'.
21649         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21650         * lib/unictype/combiningclass_name.c: New file.
21651         * modules/unictype/combining-class-name: New file.
21652
21653 2011-03-25  Bruno Haible  <bruno@clisp.org>
21654
21655         unictype/combining-class: Rename source files.
21656         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21657         of unictype/combining.h.
21658         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21659         Update.
21660         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21661         * modules/unictype/combining-class (Description): Fix.
21662         (Files, Makefile.am): Update.
21663         * tests/unictype/test-combiningclass.c: Renamed from
21664         tests/unictype/test-combining.c.
21665         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21666
21667 2011-03-25  Bruno Haible  <bruno@clisp.org>
21668
21669         unictype: Update list of canonical combining classes.
21670         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21671
21672 2011-03-25  Bruno Haible  <bruno@clisp.org>
21673
21674         unictype/category-byname: Recognize long names as well.
21675         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21676         a long name.
21677         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21678         unictype/categ_byname.h.
21679         (UC_CATEGORY_INDEX_*): New enumeration values.
21680         (uc_general_category_byname): Use uc_general_category_lookup and
21681         convert from index to value.
21682         * lib/unictype/categ_byname.gperf: New file.
21683         * modules/unictype/category-byname (Files): Add
21684         lib/unictype/categ_byname.gperf.
21685         (Depends-on): Add gperf.
21686         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21687         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21688         long names.
21689
21690         Tests for module 'unictype/category-longname'.
21691         * modules/unictype/category-longname-tests: New file.
21692         * tests/unictype/test-categ_longname.c: New file.
21693
21694         New module 'unictype/category-longname'.
21695         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21696         * lib/unictype/categ_longname.c: New file.
21697         * modules/unictype/category-longname: New file.
21698         * modules/unictype/category-all (Depends-on): Add it.
21699
21700 2011-03-25  Bruno Haible  <bruno@clisp.org>
21701
21702         Tests for module 'unictype/category-LC'.
21703         * modules/unictype/category-LC-tests: New file.
21704         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21705
21706         New module 'unictype/category-LC'.
21707         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21708         (UC_CATEGORY_LC): New declaration.
21709         (UC_CASED_LETTER): New macro.
21710         * lib/gen-uni-tables.c (is_category_LC): New function.
21711         (output_categories): Also handle category LC.
21712         (UC_CATEGORY_MASK_LC): New enumeration value.
21713         (general_category_byname): Also handle category LC.
21714         * lib/unictype/categ_LC.c: New file.
21715         * lib/unictype/categ_LC.h: New file, automatically generated.
21716         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21717         category LC.
21718         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21719         * modules/unictype/category-LC: New file.
21720         * modules/unictype/category-byname (Depends-on): Add
21721         unictype/category-LC.
21722         * modules/unictype/category-all (Depends-on): Likewise.
21723
21724 2011-03-25  Eric Blake  <eblake@redhat.com>
21725
21726         xmalloc: revert yesterday's regression
21727         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21728         realloc's underlying behavior (allowing allocation of zero-size
21729         objects, especially if malloc-gnu is also in use).
21730
21731 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21732
21733         maint.mk: add missing version to VC-tag
21734         * top/maint.mk: git tag was missing actual tag name; add it.
21735
21736         valgrind: do leak checking, and exit with code 1 on error (not 0)
21737         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21738         to VALGRIND.
21739
21740 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21741
21742         posix-modules: say what it does.
21743         * posix-modules: Add a line to the --help output saying what it does.
21744
21745 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21746
21747         xmalloc: Do not leak if underlying realloc is C99 compatible.
21748         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21749         This avoids a leak on C99-based systems.  See
21750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21751
21752 2011-03-24  Eric Blake  <eblake@redhat.com>
21753
21754         realloc: document portability problem
21755         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21756         passing 0 size to realloc.
21757
21758 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21759
21760         doc: update users.txt
21761         * users.txt: Add cvsps, tmpwatch
21762
21763 2011-03-23  Matt Rice  <ratmice@gmail.com>
21764
21765         doc: update users.txt
21766         * users.txt: Add gdb.
21767
21768 2011-03-23  Jim Meyering  <meyering@redhat.com>
21769
21770         doc: update users.txt
21771         Looking through matches up to the following URL (there are still
21772         several more pages), I found several projects that use gnulib:
21773         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21774         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21775         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21776
21777 2011-03-22  Bruno Haible  <bruno@clisp.org>
21778
21779         unictype/bidi*: Rename functions.
21780         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21781         uc_bidi_class, uc_is_bidi_class): New declarations.
21782         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21783         uc_bidi_category_byname.
21784         (uc_bidi_category_byname): New function.
21785         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21786         u_bidi_category_name.
21787         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21788         (uc_bidi_category_name): New function.
21789         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21790         uc_bidi_category.
21791         (uc_bidi_category): New function.
21792         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21793         uc_is_bidi_category. Invoke uc_bidi_class.
21794         (uc_is_bidi_category): New function.
21795         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21796         instead of uc_bidi_category_byname.
21797         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21798         instead of uc_bidi_category_name.
21799         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21800         uc_bidi_category.
21801         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21802         instead of uc_is_bidi_category.
21803
21804 2011-03-21  Bruno Haible  <bruno@clisp.org>
21805
21806         New module 'unictype/joininggroup-all'.
21807         * modules/unictype/joininggroup-all: New file.
21808
21809         Tests for module 'unictype/joininggroup-of'.
21810         * modules/unictype/joininggroup-of-tests: New file.
21811         * tests/unictype/test-joininggroup_of.c: New file.
21812         * tests/unictype/test-joininggroup_of.h: New file, automatically
21813         generated by gen-uni-tables.
21814
21815         New module 'unictype/joininggroup-of'.
21816         * modules/unictype/joininggroup-of: New file.
21817         * lib/unictype/joininggroup_of.c: New file.
21818         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21819         gen-uni-tables.
21820
21821         Tests for module 'unictype/joininggroup-byname'.
21822         * modules/unictype/joininggroup-byname-tests: New file.
21823         * tests/unictype/test-joininggroup_byname.c: New file.
21824
21825         New module 'unictype/joininggroup-byname'.
21826         * modules/unictype/joininggroup-byname: New file.
21827         * lib/unictype/joininggroup_byname.c: New file.
21828         * lib/unictype/joininggroup_byname.gperf: New file.
21829
21830         Tests for module 'unictype/joininggroup-name'.
21831         * modules/unictype/joininggroup-name-tests: New file.
21832         * tests/unictype/test-joininggroup_name.c: New file.
21833
21834         New module 'unictype/joininggroup-name'.
21835         * modules/unictype/joininggroup-name: New file.
21836         * lib/unictype/joininggroup_name.c: New file.
21837         * lib/unictype/joininggroup_name.h: New file.
21838
21839         New module 'unictype/joiningtype-all'.
21840         * modules/unictype/joiningtype-all: New file.
21841
21842         Tests for module 'unictype/joiningtype-of'.
21843         * modules/unictype/joiningtype-of-tests: New file.
21844         * tests/unictype/test-joiningtype_of.c: New file.
21845         * tests/unictype/test-joiningtype_of.h: New file, automatically
21846         generated by gen-uni-tables.
21847
21848         New module 'unictype/joiningtype-of'.
21849         * modules/unictype/joiningtype-of: New file.
21850         * lib/unictype/joiningtype_of.c: New file.
21851         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21852         gen-uni-tables.
21853
21854         Tests for module 'unictype/joiningtype-byname'.
21855         * modules/unictype/joiningtype-byname-tests: New file.
21856         * tests/unictype/test-joiningtype_byname.c: New file.
21857
21858         New module 'unictype/joiningtype-byname'.
21859         * modules/unictype/joiningtype-byname: New file.
21860         * lib/unictype/joiningtype_byname.c: New file.
21861
21862         Tests for module 'unictype/joiningtype-name'.
21863         * modules/unictype/joiningtype-name-tests: New file.
21864         * tests/unictype/test-joiningtype_name.c: New file.
21865
21866         New module 'unictype/joiningtype-name'.
21867         * modules/unictype/joiningtype-name: New file.
21868         * lib/unictype/joiningtype_name.c: New file.
21869
21870         unictype: Add support for Arabic shaping properties.
21871         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21872         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21873         declarations.
21874         (UC_JOINING_GROUP_*): New enumeration values.
21875         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21876         declarations.
21877         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21878         (unicode_joining_type): New variable.
21879         (UC_JOINING_GROUP_*): New enumeration values.
21880         (unicode_joining_group): New variable.
21881         (fill_arabicshaping, joining_type_as_c_identifier,
21882         output_joining_type_test, output_joining_type,
21883         joining_group_as_c_identifier, output_joining_group_test,
21884         output_joining_group): New functions.
21885         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21886         fill_arabicshaping and output_joining_type_test, output_joining_type,
21887         output_joining_group_test, output_joining_group.
21888         Reported by Simon Josefsson.
21889
21890 2011-03-21  Jim Meyering  <meyering@redhat.com>
21891
21892         strftime: fix a bug in yesterday's change
21893         * lib/strftime.c (add): Accommodate width's initial value of -1.
21894         Otherwise, nstrftime would copy uninitialized data into
21895         the result buffer.
21896
21897 2011-03-21  Jim Meyering  <meyering@redhat.com>
21898
21899         tests: add strftime-tests module
21900         * tests/test-strftime.c: New file.
21901         * modules/strftime-tests: New module.
21902
21903 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21904
21905         strftime: don't assume a byte count fits in 'int'
21906         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21907         found this problem by static analysis, using gcc -Wstrict-overflow
21908         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21909         on an integer overflow having undefined behavior, but it turns out
21910         that the argument is a size, which might not fit in 'int' anyway,
21911
21912 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21913
21914         stdio: don't require ignore_value around fwrite
21915
21916         This patch works around libc bug 11959
21917         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21918         Without this patch, applications must often write
21919         ignore_value (fwrite (...)) even though the ignore_value is
21920         not helpful here.  It's common to write many objects, using
21921         fwrite/printf/etc., and then use ferror to detect output error.
21922
21923         I considered making this patch optional, but decided against it,
21924         because libc is obviously being inconsistent here: there is no
21925         reason libc should insist that user code must inspect fwrite
21926         return's value without also insisting that it inspect printf's,
21927         putchar's, etc.  If user code wants to have a strict style where
21928         all these functions' values are checked (so that ferror need not
21929         be checked), we could add support for that style in a new gnulib
21930         module, but in the meantime it's better to be consistent and to
21931         support common usage.
21932
21933         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21934         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21935         that we are compiling in checking mode, and if not C++, and
21936         if not already wrapping fwrite for some other reason.
21937         (fwrite): #define to rpl_fwrite if the latter is defined.
21938
21939 2011-03-20  Bruno Haible  <bruno@clisp.org>
21940
21941         verror: Fix compilation error introduced on 2011-02-13.
21942         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21943         instead of __attribute__.
21944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21945
21946 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21947             Bruno Haible  <bruno@clisp.org>
21948
21949         socklen: do not depend on sys_socket
21950         While trying to modify Emacs to use gnulib's socklen module,
21951         I discovered a circular dependency: socklen depends on sys_socket
21952         and vice versa.  Emacs can use socklen, but it does not need
21953         sys_socket because it has its own substitute for sys/socket.h.
21954         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21955         gl_TYPE_SOCKLEN_T.
21956         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21957         gl_PREREQ_SYS_H_SOCKET.
21958         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21959         gl_PREREQ_SYS_H_SOCKET.
21960         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21961         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21962         * modules/socklen (Depends-on): Do not depend on sys_socket.
21963         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21964
21965 2011-03-20  Jim Meyering  <meyering@redhat.com>
21966
21967         maint.mk: sort file names *after* new transformation
21968         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21969         prefix would have led to an unwarranted failure in GNU parted.
21970         Sort after that transformation.
21971
21972 2011-03-19  Jim Meyering  <meyering@redhat.com>
21973
21974         maint.mk: fix po-file syntax-check rule
21975         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21976         Patch by Bruno Haible.
21977
21978 2011-03-19  Bruno Haible  <bruno@clisp.org>
21979
21980         socklen: Update comment.
21981         * m4/socklen.m4: Update comment about platforms.
21982
21983 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21984             Bruno Haible  <bruno@clisp.org>
21985
21986         inet_ntop, inet_pton: Simplify.
21987         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21988         documented to provide socklen_t and we already depend on sys_socket.
21989         * modules/inet_pton (Depends-on): Likewise.
21990         * lib/arpa_inet.in.h: Adjust comment.
21991
21992 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21993             Bruno Haible  <bruno@clisp.org>
21994
21995         netdb: Simplify.
21996         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21997         documented to provide socklen_t and we already depend on sys_socket.
21998         * lib/netdb.in.h: Adjust comment.
21999
22000 2011-03-19  Bruno Haible  <bruno@clisp.org>
22001
22002         sys_socket, netdb: Document problem with socklen_t.
22003         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22004         platforms.
22005         * doc/posix-headers/netdb.texi: Likewise.
22006
22007 2011-03-18  Eric Blake  <eblake@redhat.com>
22008
22009         maint.mk: let po check work in VPATH build
22010         * top/maint.mk (po_file): Allow cfg.mk override.
22011         (sc_po_check): Allow VPATH use.
22012         Reported by Jiri Denemark.
22013
22014 2011-03-16  Jim Meyering  <meyering@redhat.com>
22015
22016         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22017         Before, you would have had to create one .x-sc_ file per rule in order
22018         to exempt offending files.  Now, you may instead use a Make variable --
22019         usually defined in cfg.mk -- whose name identifies the affected rule.
22020         * top/maint.mk (_sc_excl): Define.
22021         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22022         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22023
22024 2011-03-13  Bruno Haible  <bruno@clisp.org>
22025
22026         ignore-value tests: Avoid warnings.
22027         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22028         empty for gcc < 3.4.
22029
22030 2011-03-13  Bruno Haible  <bruno@clisp.org>
22031
22032         passfd: Fix link error on Solaris.
22033         * modules/passfd (Description): Correct.
22034         (Depends-on): Add socketlib.
22035         (Link): New section.
22036         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22037
22038 2011-03-13  Bruno Haible  <bruno@clisp.org>
22039
22040         passfd: Fix link error on AIX 5.2.
22041         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22042
22043 2011-03-13  Bruno Haible  <bruno@clisp.org>
22044
22045         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22046         * lib/sys_socket.in.h: Include <stddef.h>.
22047         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22048         CMSG_FIRSTHDR. Remove unused variable.
22049
22050 2011-03-13  Bruno Haible  <bruno@clisp.org>
22051
22052         passfd: Fix compilation error on OpenBSD.
22053         * lib/passfd.c: Include <sys/uio.h>.
22054
22055 2011-03-13  Bruno Haible  <bruno@clisp.org>
22056
22057         passfd test: Fix warnings.
22058         * tests/test-passfd.c: Include <sys/wait.h>.
22059         (main): Fix typo.
22060
22061 2011-03-13  Bruno Haible  <bruno@clisp.org>
22062
22063         passfd module, part 4, tweaks.
22064         * tests/test-passfd.c: Reorder includes.
22065         (main): Fix perror and printf calls.
22066
22067 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22068
22069         passfd module, part 4.
22070         * modules/passfd-tests: New file.
22071         * tests/test-passfd.c: New file.
22072
22073 2011-03-13  Jim Meyering  <meyering@redhat.com>
22074
22075         Makefile: rely on GNU make; derive syntax-check rule names
22076         Rather than requiring that each sc_ rule be listed as a dependent
22077         of "check", use features of GNU make to derive the list.
22078         * Makefile (syntax-check-rules): Define.
22079         (check): Depend on the new variable, not the hard-coded list.
22080
22081 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22082             Bruno Haible  <bruno@clisp.org>
22083
22084         passfd module, part 3.
22085         * lib/passfd.h (recvfd): Add a flags argument.
22086         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22087         (recvfd): Add a flags argument.
22088         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22089         exists.
22090         * modules/passfd (Depends-on): Add cloexec.
22091         Suggested by Eric Blake.
22092
22093 2011-03-13  Bruno Haible  <bruno@clisp.org>
22094
22095         passfd module, part 2, tweaks.
22096         * modules/passfd (Files): Reorder.
22097         (Depends-on): Remove errno.
22098         (Include): Remove <sys/socket.h>, <sys/un.h>.
22099         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22100         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22101         specification header. Include <sys/socket.h> always. Don't include
22102         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22103         (sendfd): Clarify that it sets errno when it fails.
22104         (recvfd): Fix specification.
22105
22106 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22107
22108         passfd module, part 2.
22109         * modules/passfd: New file.
22110         * lib/passfd.h: New file.
22111         * lib/passfd.c: New file.
22112
22113 2011-03-12  Bruno Haible  <bruno@clisp.org>
22114
22115         wcswidth, mbswidth: Avoid integer overflow.
22116         * lib/wcswidth.c: Include <limits.h>.
22117         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22118         * lib/mbswidth.c: Include <limits.h>.
22119         (mbsnwidth): Avoid 'int' overflow.
22120         Reported by Jim Meyering.
22121
22122 2011-03-12  Bruno Haible  <bruno@clisp.org>
22123
22124         futimens, utimensat: Avoid endless recursion on Solaris 10.
22125         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22126         Solaris.
22127         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22128         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22129
22130 2011-03-11  Jim Meyering  <meyering@redhat.com>
22131
22132         maint.mk: relax a regexp to accommodate other formatting styles
22133         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22134         between "ngettext" and the following "(".
22135
22136 2011-03-11  Pádraig Brady <P@draigBrady.com>
22137
22138         maint.mk: suppress a false positive warning
22139         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22140         diagnostics are marked with ngettext.
22141
22142 2011-03-10  Eric Blake  <eblake@redhat.com>
22143
22144         wchar: add explicit dependencies, for Tru64
22145         * modules/mbmemcasecoll (Depends-on): Add wchar.
22146         * modules/mbtowc (Depends-on): Likewise.
22147         * modules/vasnprintf (Depends-on): Likewise.
22148         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22149         * modules/wctomb (Depends-on): Likewise.
22150         Reported by Peter O'Gorman.
22151
22152 2011-03-08  Bruno Haible  <bruno@clisp.org>
22153
22154         passfd module, part 1, tweaks.
22155         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22156         Improve indentation. Improve AC_MSG_CHECKING messages.
22157         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22158         gl_SOCKET_FAMILIES.
22159
22160 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22161
22162         passfd module, part 1.
22163         * m4/afunix.m4: New file.
22164         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22165         sockets.
22166
22167 2011-03-08  Bruno Haible  <bruno@clisp.org>
22168
22169         regex-quote: New API.
22170         * lib/regex-quote.h: Include <stdbool.h>.
22171         (struct regex_quote_spec): New type.
22172         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22173         New declarations.
22174         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22175         'const struct regex_quote_spec *' argument.
22176         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22177         (pcre_special): New constant.
22178         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22179         New functions.
22180         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22181         'const struct regex_quote_spec *' argument.
22182         * modules/regex-quote (Depends-on): Add stdbool.
22183         * tests/test-regex-quote.c (check): Update for new API. Add test for
22184         anchored results.
22185         * NEWS: Mention the API change.
22186         Reported by Reuben Thomas and Eric Blake.
22187
22188 2011-03-06  Bruno Haible  <bruno@clisp.org>
22189
22190         regex-quote: Fix creation of POSIX extended regular expressions.
22191         * lib/regex-quote.c (ere_special): Add grouping and alternation
22192         operators.
22193
22194 2011-03-05  Bruno Haible  <bruno@clisp.org>
22195
22196         doc: Improve doc regarding autopoint vs. gnulib.
22197         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22198         disable autopoint while running autoreconf.
22199         Suggested by Ralf Wildenhues.
22200
22201 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22202
22203         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22204         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22205
22206 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22207
22208         parse-duration: remove xalloc.h dependency
22209         * lib/parse-duration.c (parse_period): handle NULL return from
22210         strdup instead of calling xstrdup().
22211         * modules/parse-duration: remove "xalloc" dependency
22212
22213 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22214
22215         bootstrap: honor m4_base when running aclocal
22216         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22217
22218 2011-03-02  Jim Meyering  <meyering@redhat.com>
22219
22220         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22221         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22222         on request from Matt Booth.
22223
22224 2011-03-01  Eric Blake  <eblake@redhat.com>
22225
22226         test-link: work on Hurd
22227         * tests/test-link.h (test_link): Hurd rejects linking directories
22228         with EISDIR instead of the POSIX-mandated EPERM.
22229
22230 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22231
22232         stdio: simplify by moving files to printf-posix, sigpipe
22233         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22234         since this symbol is needed only if printf is replaced.
22235         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22236         Require gl_ASM_SYMBOL_PREFIX.
22237         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22238         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22239         (Depends-on): Add 'raise'.
22240         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22241         * modules/stdio (Files): Remove lib/stdio-write.c,
22242         m4/asm-underscore.m4.
22243         (Depends-on): Remove 'raise'.
22244
22245         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22246         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22247         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22248         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22249
22250 2011-02-28  Bruno Haible  <bruno@clisp.org>
22251
22252         localcharset: Assume ANSI C behaviour of free().
22253         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22254         calling free().
22255         Suggested by Simon Josefsson <simon@josefsson.org>.
22256
22257 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22258             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22259             Bruno Haible  <bruno@clisp.org>  (tiny change)
22260
22261         On Cygwin, use /proc file system instead of win32 API.
22262         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22263         Win32 file names.
22264         (DllMain): Simplify by removing Cygwin specific code.
22265         (find_shared_library_fullname): Use Linux specific implementation also
22266         for Cygwin.
22267         (get_shared_library_fullname): Update accordingly.
22268         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22269         Win32 file names.
22270         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22271         Cygwin specific code.
22272
22273 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22274             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22275
22276         Fix OpenMP flag detection for various Fortran compilers.
22277         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22278         OpenMP-conditional compilation construct, to force compile
22279         failure with missing OpenMP flag.
22280         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22281
22282 2011-02-25  Eric Blake  <eblake@redhat.com>
22283
22284         strstr: expand test coverage
22285         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22286         compilation.
22287         * tests/test-memmem.c (main): Duplicate tests.
22288         * tests/test-strcasestr.c (main): Likewise.
22289         * tests/test-c-strcasestr.c (main): Likewise.
22290
22291 2011-02-25  Jim Meyering  <meyering@redhat.com>
22292
22293         maint.mk: detect missing-NL-at-EOF, too
22294         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22295         it also detects when a file lacks a newline at EOF.
22296         (require_exactly_one_NL_at_EOF_): Renamed from
22297         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22298         since people may well have .x-sc_... file names tied to the
22299         existing name.  Suggested by Eric Blake.
22300
22301 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         dirname: move m4/dos.m4 functionality into lib/dosname.h
22304
22305         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22306         extracts symbols from it, puts them into config.h; but it's much
22307         easier to use the symbols directly.  filename.h already does this,
22308         but it disagrees with dos.m4 in some respects.  This patch
22309         introduces a different include file dosname.h that packages up
22310         dos.m4, and then later we can work on merging filename.h and
22311         dosname.h.  Applications that need only the easy-to-configure
22312         symbols should consider including dosname.h rather than dirname.h.
22313         * NEWS: Mention incompatible changes.
22314         * m4/dos.m4: Remove.
22315         * lib/dosname.h, modules/dosname: New files.
22316         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22317         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22318         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22319         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22320         Include dosname.h, not dirname.h.
22321         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22322         Include dosname.h, for definitions of symbols like ISSLASH
22323         that used to be in config.h.
22324         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22325         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22326         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22327         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22328         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22329         * modules/rmdir (Files): Likewise.
22330         * modules/stat (Files): Likewise.
22331         * modules/unlink (Files): Likewise.
22332         * modules/dirname-lgpl (Depends-on): Add dosname.
22333         * modules/lstat (Depends-on): Likewise.
22334         * modules/openat (Depends-on): Likewise.
22335         * modules/rmdir (Depends-on): Likewise.
22336         * modules/savewd (Depends-on): Likewise.
22337         * modules/stat (Depends-on): Likewise.
22338         * modules/unlink (Depends-on): Likewise.
22339         * modules/openat (Depends-on): Remove dirname-lgpl.
22340         * modules/savewd (Depends-on): Likewise.
22341         * tests/test-dirname.c: Do not use removed symbols like
22342         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22343         the remaining symbols, e.g., ISSLASH ('\\').
22344
22345 2011-02-25  Eric Blake  <eblake@redhat.com>
22346
22347         strstr: revert patches that introduced bug and pessimization
22348         * lib/str-two-way.h: Add another reference.
22349         (two_way_short_needle, two_way_long_needle): Revert changes from
22350         2011-02-24; they pessimize search speed.
22351         (critical_factorization): Partially revert changes from
22352         2010-06-22; they violate the requirement that the left half of the
22353         needle be smaller than the period of the needle.
22354
22355 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22356
22357         filenamecat: remove unnecessary dependency on dirname-lgpl
22358         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22359         is no direct dependency, just an indirect one via filenamecat-lgpl.
22360
22361         remove: remove unnecessary use of m4/dos.m4
22362         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22363         * modules/remove (FILES): Remove m4/dos.m4.
22364
22365         * lib/openat-proc.c: Don't include dirname.h; not needed.
22366
22367         backupfile: remove unnecessary use of m4/dos.m4
22368         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22369         of its symbols are used by the backupfile code.  backupfile.c does
22370         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22371         for the rare case of programs that want all their backup file
22372         names to live within 8+3 limits, and dos.m4 doesn't address that.
22373         * modules/backupfile (Files): Remove m4/dos.m4.
22374
22375 2011-02-24  Jim Meyering  <meyering@redhat.com>
22376
22377         strstr: fix a bug whereby strstr would mistakenly return NULL
22378         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22379         in period calculation.
22380         (two_way_long_needle): Likewise.
22381         The original problem was reported by Mike Stump in
22382         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22383         Ralf Wildenhues provided the short needle and haystack.
22384         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22385         Add a more involved test to trigger the bug in two_way_long_needle.
22386
22387 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22388
22389         gnulib-tool: remove use of bold display in help screen
22390         * gnulib-tool (func_usage): Do not use bold display anymore in the
22391         help screen.  That was just meant to be a temporary emphasis for a
22392         backward-incompatible change.
22393
22394 2011-02-23  Bruno Haible  <bruno@clisp.org>
22395
22396         Fix misindentation of preprocessor directives.
22397         * lib/argp-namefrob.h: Reindent preprocessor directives.
22398         * lib/getopt_int.h (struct _getopt_data): Likewise.
22399         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22400         * lib/vasnprintf.c (decode_long_double): Likewise.
22401         * tests/test-argmatch.c: Insert blank lines, for clarity.
22402         * tests/test-exclude.c: Likewise.
22403
22404 2011-02-22  Bruno Haible  <bruno@clisp.org>
22405
22406         ioctl: Fix for MacOS X in 64-bit mode.
22407         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22408         value.
22409         Suggested by Eric Blake.
22410         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22411
22412 2011-02-22  Jim Meyering  <meyering@redhat.com>
22413
22414         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22415         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22416         in lib/.
22417
22418 2011-02-22  Eric Blake  <eblake@redhat.com>
22419
22420         maint: avoid any CDPATH issue
22421         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22422
22423         maint: adjust cpp indentation for my modules, as well
22424         * Makefile (sc_cpp_indent_check): Add my name.
22425         * lib/fbufmode.c: Filter through cppi.
22426         * lib/fpurge.c: Likewise.
22427         * lib/freadable.c: Likewise.
22428         * lib/freading.c: Likewise.
22429         * lib/fwritable.c: Likewise.
22430         * lib/fwriting.c: Likewise.
22431         * lib/sigaction.c: Likewise.
22432
22433 2011-02-22  Jim Meyering  <meyering@redhat.com>
22434
22435         maint: adjust cpp indentation to reflect nesting depth
22436         I.e., in a block of code that begins with an unnested "#if",
22437         put one space between the "#" in column 1 and following token.
22438         For example,
22439         -#include <sys/vfs.h>
22440         +# include <sys/vfs.h>
22441         Do this only in .c files that are part of a module I maintain.
22442         * lib/linkat.c: Filter through cppi.
22443         * lib/nanosleep.c: Likewise.
22444         * lib/openat.c: Likewise.
22445         * lib/openat-die.c: Likewise.
22446         * lib/dup3.c: Likewise.
22447         * lib/fchownat.c: Likewise.
22448         * lib/flock.c: Likewise.
22449         * lib/fsync.c: Likewise.
22450         * lib/fts.c: Likewise.
22451         * lib/getpass.c: Likewise.
22452         * lib/gettimeofday.c: Likewise.
22453         * lib/userspec.c: Likewise.
22454         * Makefile (sc_cpp_indent_check): New rule, to check this.
22455
22456 2011-02-22  Bruno Haible  <bruno@clisp.org>
22457
22458         New module 'wctomb'.
22459         * lib/stdlib.in.h (wctomb): New declaration.
22460         * lib/wctomb.c: New file.
22461         * lib/wctomb-impl.h: New file.
22462         * m4/wctomb.m4: New file.
22463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22464         REPLACE_WCTOMB.
22465         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22466         REPLACE_WCTOMB.
22467         * modules/wctomb: New file.
22468         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22469         * doc/posix-functions/wctomb.texi: Mention the new module.
22470         * modules/wctob (Depends-on): Add wctomb.
22471
22472 2011-02-22  Bruno Haible  <bruno@clisp.org>
22473
22474         New module 'mbtowc'.
22475         * lib/stdlib.in.h (mbtowc): New declaration.
22476         * lib/mbtowc.c: New file.
22477         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22478         * m4/mbtowc.m4: New file.
22479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22480         REPLACE_MBTOWC.
22481         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22482         REPLACE_MBTOWC.
22483         * modules/mbtowc: New file.
22484         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22485         * doc/posix-functions/mbtowc.texi: Mention the new module.
22486         * modules/btowc (Depends-on): Add mbtowc.
22487
22488 2011-02-22  Bruno Haible  <bruno@clisp.org>
22489
22490         wcrtomb: Add more tests for native Windows platforms.
22491         * tests/test-wcrtomb-w32-1.sh: New file.
22492         * tests/test-wcrtomb-w32-2.sh: New file.
22493         * tests/test-wcrtomb-w32-3.sh: New file.
22494         * tests/test-wcrtomb-w32-4.sh: New file.
22495         * tests/test-wcrtomb-w32-5.sh: New file.
22496         * tests/test-wcrtomb-w32.c: New file.
22497         * modules/wcrtomb-tests (Files): Add them.
22498         (Makefile.am): Arrange to run these tests.
22499         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22500         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22501
22502 2011-02-20  Bruno Haible  <bruno@clisp.org>
22503
22504         wcrtomb: Enhance test.
22505         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22506
22507 2011-02-20  Bruno Haible  <bruno@clisp.org>
22508
22509         mbrtowc: Tiny optimization.
22510         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22511
22512 2011-02-20  Jim Meyering  <meyering@redhat.com>
22513
22514         test-exclude.c: remove unmatched #endif
22515         * tests/test-exclude.c: Remove stray #endif, left over from
22516         the change of a week ago.
22517
22518 2011-02-19  Jim Meyering  <meyering@redhat.com>
22519
22520         git-version-gen: skip "-dirty" check when appropriate
22521         * build-aux/git-version-gen: Don't run any git commands when the
22522         version string comes from .tarball-version.  Prior to this, we
22523         would run git update-index --refresh even from a just-unpacked
22524         tarball directory, and that could affect a .git/ directory in a
22525         parent of the build directory.  Reported by Mike Frysinger.
22526
22527 2011-02-19  Bruno Haible  <bruno@clisp.org>
22528
22529         unictype/property-byname: Reduce the size of the 'data' segment.
22530         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22531
22532 2011-02-19  Bruno Haible  <bruno@clisp.org>
22533
22534         unictype/scripts: Reduce the size of the 'data' segment.
22535         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22536         '%pic'.
22537         * lib/unictype/scripts_byname.gperf: Regenerated.
22538
22539 2011-02-19  Bruno Haible  <bruno@clisp.org>
22540
22541         stdint: Update documentation.
22542         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22543
22544 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22545
22546         stdint: omit redundant check for wchar.h
22547         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22548         always tests whether wchar.h exists, so remove the now-redundant test.
22549
22550 2011-02-18  Bruno Haible  <bruno@clisp.org>
22551
22552         stdint: Cut dependency to module 'wchar'.
22553         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22554         include the necessary prerequisites.
22555         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22556         * modules/stdint (Depends-on): Remove wchar.
22557         (Makefile.am): Substitute HAVE_WCHAR_H.
22558         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22559
22560 2011-02-18  Eric Blake  <eblake@redhat.com>
22561
22562         longlong: skip, rather than fail, on cross-compilation
22563         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22564         when cross-compiling; regression from 2011-02-16.
22565
22566 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22567
22568         * NEWS: Mention 2011-02-08 change to stdlib.
22569
22570 2011-02-17  Bruno Haible  <bruno@clisp.org>
22571
22572         getloadavg: Add comments about platforms.
22573         * m4/getloadavg.m4: Add comment.
22574         * lib/getloadavg.c: Likewise.
22575
22576 2011-02-17  Bruno Haible  <bruno@clisp.org>
22577
22578         getloadavg: Fix link error on Solaris 2.6.
22579         * modules/getloadavg (Link): New section.
22580         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22581         linking test-getloadavg.
22582         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22583         getloadavg.
22584
22585 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22588         It was 'int', but this doesn't match the IRIX 6.5 manual.
22589         Suggested by Bruno Haible in
22590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22591
22592 2011-02-17  Bruno Haible  <bruno@clisp.org>
22593
22594         havelib: Fix comments.
22595         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22596         change.
22597
22598 2011-02-17  Bruno Haible  <bruno@clisp.org>
22599
22600         havelib: Update config.rpath.
22601         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22602
22603 2011-02-17  Bruno Haible  <bruno@clisp.org>
22604
22605         getloadavg test: Add some plausibility checks.
22606         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22607         is improbable.
22608
22609 2011-02-16  Eric Blake  <eblake@redhat.com>
22610
22611         maintainer-makefile: make syntax-check a no-op from tarballs
22612         * top/maint.mk (no-vc-detected): New rule.
22613         (local-checks-available): Use it to avoid hanging if someone tries
22614         'make syntax-check' from a tarball.  Also append to any non-syntax
22615         checks already defined in cfg.mk.
22616
22617 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22618
22619         longlong: tune, particularly for common case of c99
22620
22621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22622         or running anything if c99, or if unsigned long long int does not
22623         work.  In either case, we know the answer without further tests.
22624         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22625         it at most once, and use its results for both long long int and
22626         unsigned long long int.  This is more likely to be efficient in
22627         the common case where the program wants to check for both long
22628         long int and unsigned long long int.
22629         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22630         since the answer is already known.
22631
22632 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22633
22634         getloadavg: set errno
22635         * lib/getloadavg.c: Set errno when returning -1.  If no other
22636         error number looks appropriate, set it to ENOSYS if the getloadavg
22637         looks like it can't possibly ever work, ENOTSUP otherwise.
22638         Suggested by Bruno Haible in
22639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22640
22641         getloadavg: trim unused parts and speed up 'configure'
22642         * NEWS: Document this.
22643         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22644         always compiled if getloadavg is absent.
22645         Move test code to ...
22646         * tests/test-getloadavg.c: New file, containing previous
22647         contents of test from lib/getloadavg.c.  It also contains
22648         suggestions by Bruno Haible in
22649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22650         * modules/getloadavg-tests: New file.
22651         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22652         Do tests in the same order as they're needed for getloadavg.c.
22653         Omit setgid-related tests that generate symbols KMEM_GROUP,
22654         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22655         Do only the tests that are needed to see whether the system has
22656         getloadavg, moving the other tests into ...
22657         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22658         NLIST_NAME_UNION; nobody should be using it.  Do not define
22659         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22660         relevant, as the user of this module shouldn't care how getloadavg
22661         is implemented.
22662
22663         getloadavg: omit unused var
22664         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22665
22666 2011-02-15  Jim Meyering  <meyering@redhat.com>
22667
22668         doc: update users.txt
22669         * users.txt: Update iwhd's URL.
22670
22671 2011-02-13  Bruno Haible  <bruno@clisp.org>
22672
22673         Consistent macro naming for macros that use GCC __attribute__.
22674         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22675         _ATTRIBUTE_NONNULL_.
22676         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22677         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22678         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22679         ATTRIBUTE_DEPRECATED.
22680         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22681         ATTRIBUTE_NORETURN.
22682         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22683         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22684         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22685         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22686         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22687         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22688         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22689         ATTRIBUTE_SENTINEL.
22690         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22691         ATTRIBUTE_RETURN_CHECK.
22692         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22693         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22694         ATTRIBUTE_NORETURN.
22695         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22696         Reported by Paul Eggert.
22697
22698 2011-02-13  Bruno Haible  <bruno@clisp.org>
22699
22700         Don't interfere with a program's definition of __attribute__.
22701         * lib/argp.h (__attribute__): Remove definition.
22702         (_GL_ATTRIBUTE_FORMAT): New macro.
22703         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22704         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22705         (_GL_ATTRIBUTE_FORMAT): New macro.
22706         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22707         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22708         GCC 3 or newer.
22709         * lib/error.h (__attribute__): Remove definition.
22710         (_GL_ATTRIBUTE_FORMAT): New macro.
22711         (error, error_at_line): Use it.
22712         * lib/hash.h (__attribute__): Remove definition.
22713         (ATTRIBUTE_WUR): Update definition. Define always.
22714         * lib/openat.h (__attribute__): Remove definition.
22715         (ATTRIBUTE_NORETURN): Update definition. Define always.
22716         * lib/sigpipe-die.h (__attribute__): Remove definition.
22717         (ATTRIBUTE_NORETURN): Update definition. Define always.
22718         * lib/vasnprintf.h (__attribute__): Remove definition.
22719         (_GL_ATTRIBUTE_FORMAT): New macro.
22720         (asnprintf, vasnprintf): Use it.
22721         * lib/xalloc.h (__attribute__): Remove definition.
22722         (ATTRIBUTE_NORETURN): Update definition. Define always.
22723         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22724         * lib/xmemdup0.h (__attribute__): Remove definition.
22725         (ATTRIBUTE_NORETURN): Update definition. Define always.
22726         * lib/xprintf.h (__attribute__): Remove definition.
22727         (_GL_ATTRIBUTE_FORMAT): New macro.
22728         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22729         * lib/xstrtol.h (__attribute__): Remove definition.
22730         (ATTRIBUTE_NORETURN): Update definition. Define always.
22731         * lib/xvasprintf.h (__attribute__): Remove definition.
22732         (_GL_ATTRIBUTE_FORMAT): New macro.
22733         (xasprintf, xvasprintf): Use it.
22734         * tests/test-argmatch.c (__attribute__): Remove definition.
22735         (ATTRIBUTE_NORETURN): Update definition. Define always.
22736         * tests/test-exclude.c (__attribute__): Remove definition.
22737         (ATTRIBUTE_NORETURN): Update definition. Define always.
22738         Reported by Paul Eggert.
22739
22740 2011-02-13  Bruno Haible  <bruno@clisp.org>
22741
22742         mbrtowc: Add more tests for native Windows platforms.
22743         * tests/test-mbrtowc-w32-1.sh: New file.
22744         * tests/test-mbrtowc-w32-2.sh: New file.
22745         * tests/test-mbrtowc-w32-3.sh: New file.
22746         * tests/test-mbrtowc-w32-4.sh: New file.
22747         * tests/test-mbrtowc-w32-5.sh: New file.
22748         * tests/test-mbrtowc-w32.c: New file.
22749         * modules/mbrtowc-tests (Files): Add them.
22750         (Makefile.am): Arrange to run these tests.
22751         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22752         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22753
22754 2011-02-13  Bruno Haible  <bruno@clisp.org>
22755
22756         mbrtowc: Work around native Windows bug.
22757         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22758         guess when no suitable locale for testing was found.
22759         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22760
22761 2011-02-13  Bruno Haible  <bruno@clisp.org>
22762
22763         mbsinit: Work around mingw bug.
22764         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22765         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22766         Windows.
22767         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22768
22769 2011-02-13  Bruno Haible  <bruno@clisp.org>
22770
22771         mbsinit: Don't crash for a NULL argument.
22772         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22773         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22774
22775 2011-02-13  Bruno Haible  <bruno@clisp.org>
22776
22777         Don't interfere with a program's definition of __attribute__.
22778         * lib/stdio.in.h (__attribute__): Remove definition.
22779         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22780         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22781         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22782         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22783         * lib/string.in.h (__attribute__): Remove definition.
22784         Reported by Paul Eggert.
22785
22786 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22787
22788         stdlib: don't get in the way of non-GCC __attribute__
22789         See thread starting at
22790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22791         Revert previous stdlib change, installing the following instead:
22792         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22793         to get in the way of a non-GCC compiler that supports __attribute__.
22794         (_GL_ATTRIBUTE_RETURN): New macro.
22795         (_Exit): Use it instead of __attribute__.
22796
22797 2011-02-12  Bruno Haible  <bruno@clisp.org>
22798
22799         quotearg test: Avoid test failure on mingw.
22800         * tests/test-quotearg.sh: Convert the locale identifier from native
22801         Windows syntax to Unix syntax.
22802
22803 2011-02-12  Bruno Haible  <bruno@clisp.org>
22804
22805         setlocale: Prefer gnulib's override over libintl's override.
22806         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22807         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22808         GNULIB_defined_setlocale is set.
22809
22810 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22811
22812         stdlib: support non-GCC __attribute__
22813
22814         Fix a serious and tricky problem encountered when attempting to
22815         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22816         5.5, but it crashed due to memory corruption on Solaris 10 with
22817         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22818         bits that are otherwise zero.  This tagging is optional inside
22819         Emacs but is preferred and is used when __attribute__ ((__aligned
22820         (8))) works, as it does with both recent-enough GCC and with Sun C
22821         5.11.  However, Sun C 5.11 is not GCC and does not #define
22822         __GNUC__ and __GNUC_MINOR__.
22823
22824         When I added the getloadavg module to Emacs, it brought in
22825         stdlib.in.h, which contained this fragment:
22826
22827            #ifndef __attribute__
22828            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22829            #  define __attribute__(Spec)   /* empty */
22830            # endif
22831            #endif
22832
22833         When files that include <stdlib.h> were compiled with Sun C 5.11,
22834         the above code disabled __attribute__ ((__aligned (8))), which
22835         caused variables to not be properly aligned, which eventually led
22836         to the pointer corruption mentioned above.  (This was a bit hard
22837         to diagnose, unfortunately.)
22838
22839         Several "#define __attribute__(X) /* empty */" code snippets need
22840         to be eradicated from Gnulib to work with non-GCC compilers that
22841         support __attribute__.  The Autoconf way to do this is to test for
22842         each kind of attribute that we want support for, and selectively
22843         enable that in source code.
22844
22845         Fix this problem just for stdlib.h, by adding a test for the
22846         __noreturn__ attribute, and change stdlib.in.h to use that test
22847         when needed.  This technique can be easily generalized to the
22848         other *.in.h files and attributes, and a similar technique can be
22849         used for *.h and *.c files.  This patch is enough to solve the
22850         problem for Emacs + getloadavg, and I thought I'd publish it for
22851         feedback before undertaking further, similar fixes in other
22852         modules.
22853
22854         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22855         because it's not needed for stdlib.h.  It merely substitutes the
22856         value directly into stdlib.h.  We may well need to #define it, or
22857         similar symbols, for other modules, but it's nice to also have an
22858         option to not #define it for applications like Emacs that do not
22859         need it.
22860
22861         * lib/stdlib.in.h (__attribute__): Do not #define.
22862         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22863         be defined only if the _Exit module is also used.
22864         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22866         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22867         platforms.
22868         * modules/_Exit (Files): Add m4/attribute.m4.
22869         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22870         * m4/attribute.m4: New file.
22871
22872 2011-02-12  Bruno Haible  <bruno@clisp.org>
22873
22874         wcsrtombs: Work around bug on native Windows.
22875         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22876         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22877         instead of len.
22878         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22879
22880 2011-02-12  Bruno Haible  <bruno@clisp.org>
22881
22882         mbsrtowcs: Work around bug on native Windows.
22883         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22884         against mingw bug.
22885         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22886
22887 2011-02-12  Bruno Haible  <bruno@clisp.org>
22888
22889         Avoid setlocale bugs in tests.
22890         * modules/btowc (Dependencies): Add setlocale.
22891         * modules/c-strcase (Dependencies): Likewise.
22892         * modules/mbmemcasecmp (Dependencies): Likewise.
22893         * modules/mbmemcasecoll (Dependencies): Likewise.
22894         * modules/mbrtowc (Dependencies): Likewise.
22895         * modules/mbscasecmp (Dependencies): Likewise.
22896         * modules/mbscasestr (Dependencies): Likewise.
22897         * modules/mbschr (Dependencies): Likewise.
22898         * modules/mbscspn (Dependencies): Likewise.
22899         * modules/mbsinit (Dependencies): Likewise.
22900         * modules/mbsncasecmp (Dependencies): Likewise.
22901         * modules/mbsnrtowcs (Dependencies): Likewise.
22902         * modules/mbspbrk (Dependencies): Likewise.
22903         * modules/mbspcasecmp (Dependencies): Likewise.
22904         * modules/mbsrchr (Dependencies): Likewise.
22905         * modules/mbsrtowcs (Dependencies): Likewise.
22906         * modules/mbsspn (Dependencies): Likewise.
22907         * modules/mbsstr (Dependencies): Likewise.
22908         * modules/nl_langinfo (Dependencies): Likewise.
22909         * modules/quotearg (Dependencies): Likewise.
22910         * modules/unicase/locale-language (Dependencies): Likewise.
22911         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22912         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22913         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22914         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22915         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22916         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22917         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22918         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22919         * modules/vasnprintf-posix (Dependencies): Likewise.
22920         * modules/wcrtomb (Dependencies): Likewise.
22921         * modules/wcsnrtombs (Dependencies): Likewise.
22922         * modules/wcsrtombs (Dependencies): Likewise.
22923
22924 2011-02-12  Bruno Haible  <bruno@clisp.org>
22925
22926         setlocale: Workaround native Windows bug.
22927         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22928         succeeds but sets LC_CTYPE to "C", report a failure.
22929         * tests/test-setlocale2.sh: New file.
22930         * tests/test-setlocale2.c: New file.
22931         * modules/setlocale-tests (Files): Add the new files.
22932         (Makefile.am): Enable test-setlocale2.sh test.
22933         * doc/posix-functions/setlocale.texi: Mention workaround.
22934
22935 2011-02-11  Bruno Haible  <bruno@clisp.org>
22936
22937         Tests for module 'setlocale'.
22938         * modules/setlocale-tests: New file.
22939         * tests/test-setlocale1.sh: New file.
22940         * tests/test-setlocale1.c: New file.
22941
22942         New module 'setlocale'.
22943         * lib/locale.in.h (setlocale): New declaration.
22944         * lib/setlocale.c: New file, based on
22945         gettext/gettext-runtime/intl/setlocale.c.
22946         * m4/setlocale.m4: New file.
22947         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22948         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22949         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22950         REPLACE_SETLOCALE.
22951         * modules/setlocale: New file.
22952         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22953         * doc/posix-functions/setlocale.texi: Mention the new module.
22954
22955 2011-02-11  Bruno Haible  <bruno@clisp.org>
22956
22957         Prepare for locale dependent tests on mingw.
22958         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22959         because it has the wrong locale encoding.
22960         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22961         French_France.1252 instead of "fr".
22962         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22963         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22964         because it has the wrong locale encoding.
22965         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22966         native Windows, try Turkish_Turkey.65001.
22967         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22968         Chinese_China.54936.
22969
22970         Prepare for locale dependent tests on mingw.
22971         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22972         differently.
22973         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22974         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22975         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22976         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22977
22978 2011-02-11  Eric Blake  <eblake@redhat.com>
22979
22980         strptime: avoid compiler warnings
22981         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22982         compiler warnings about dead code.
22983         Reported by Daniel P. Berrange.
22984
22985 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22986
22987         doc: update users.txt
22988         * users.txt: Add rcs.
22989
22990 2011-02-10  John W. Eaton  <jwe@gnu.org>
22991
22992         doc: update users.txt
22993         * users.txt: Add octave.
22994
22995 2011-02-10  Jim Meyering  <meyering@redhat.com>
22996
22997         doc: update users.txt
22998         * users.txt: Add iwhd.
22999
23000 2011-02-09  Bruno Haible  <bruno@clisp.org>
23001
23002         gnulib-tool: Make copyright notice adjustment more robust.
23003         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23004         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23005         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23006         License".
23007         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23008
23009 2011-02-06  Bruno Haible  <bruno@clisp.org>
23010
23011         New module 'towctrans'.
23012         * modules/towctrans: New file.
23013         * lib/wctype.in.h (towctrans): New declaration.
23014         * lib/towctrans.c: New file.
23015         * lib/towctrans-impl.h: New file.
23016         * m4/towctrans.m4: New file.
23017         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23018         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23019         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23020         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23021         * doc/posix-functions/towctrans.texi: Mention the new module.
23022
23023 2011-02-06  Bruno Haible  <bruno@clisp.org>
23024
23025         New module 'wctrans'.
23026         * modules/wctrans: New file.
23027         * lib/wctype.in.h (wctrans): New declaration.
23028         * lib/wctrans.c: New file.
23029         * lib/wctrans-impl.h: New file.
23030         * m4/wctrans.m4: New file.
23031         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23032         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23033         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23034         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23035         * doc/posix-functions/wctrans.texi: Mention the new module.
23036
23037 2011-02-06  Bruno Haible  <bruno@clisp.org>
23038
23039         New module 'iswctype'.
23040         * modules/iswctype: New file.
23041         * lib/wctype.in.h (iswctype): New declaration.
23042         * lib/iswctype.c: New file.
23043         * lib/iswctype-impl.h: New file.
23044         * m4/iswctype.m4: New file.
23045         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23046         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23047         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23048         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23049         * doc/posix-functions/iswctype.texi: Mention the new module and the
23050         HP-UX 11.00 problem.
23051
23052 2011-02-06  Bruno Haible  <bruno@clisp.org>
23053
23054         New module 'wctype'.
23055         * modules/wctype: Change to represent the wctype() substitute.
23056         * lib/wctype.in.h (wctype): New declaration.
23057         * lib/wctype.c: New file.
23058         * lib/wctype-impl.h: New file.
23059         * m4/wctype.m4: New file.
23060         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23061         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23062         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23063         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23064         * doc/posix-functions/wctype.texi: Mention the new module and the
23065         HP-UX 11.00 problem.
23066
23067 2011-02-06  Bruno Haible  <bruno@clisp.org>
23068
23069         wctype-h: Ensure wctype_t and wctrans_t are defined.
23070         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23071         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23072         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23073         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23074         HAVE_WCTRANS_T.
23075         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23076
23077 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23078
23079         flock: fix license typo
23080
23081         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23082         omitted.
23083
23084 2011-02-08  Bruno Haible  <bruno@clisp.org>
23085
23086         Split large sed scripts, for HP-UX sed.
23087         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23088         to avoid HP-UX limit of 99 commands, in the near future.
23089         * modules/stdlib (Makefile.am): Likewise.
23090         * modules/unistd (Makefile.am): Likewise.
23091         * modules/wchar (Makefile.am): Likewise.
23092         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23093         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23094         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23095
23096 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23097             Bruno Haible  <bruno@clisp.org>
23098
23099         stdlib: improve random_r modularization
23100         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23101         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23102         you also need the random_r module to get this material right.
23103         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23104         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23105         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23106
23107 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23108
23109         stdlib: don't depend on stdint
23110         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23111         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23112         be independent of whether stdint.h is needed.
23113         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23114         here, instead of ...
23115         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23116         struct random_data should be using the random_r module, not just
23117         the stdlib module (which wouldn't make sense: what package needs
23118         just struct random_data without also needing random_r?).
23119         * modules/stdlib (Depends-on): Remove stdint.
23120
23121         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23122         See the thread rooted at
23123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23124         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23125         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23126         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23127         __VMS)); previously it was always included (via fcntl--.h).
23128         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23129         hand; this is good enough for load averages.  Also, do not use
23130         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23131         flags directly if available and don't bother otherwise.  (Packages
23132         that need the extra reliability should use the modules that define
23133         these flags on older platforms that lack them.)
23134         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23135         fcntl-safer.
23136
23137 2011-02-08  Jim Meyering  <meyering@redhat.com>
23138
23139         di-set.h, ino-map.h: add multiple-inclusion guard
23140         Technically, the guard is required only for ino-map.h, due to its
23141         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23142         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23143         * lib/ino-map.h: Likewise.
23144
23145 2011-02-06  Bruno Haible  <bruno@clisp.org>
23146
23147         iswblank: Ensure declaration on glibc systems.
23148         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23149         * modules/iswblank (Dependencies): Add 'extensions'.
23150         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23151
23152 2011-02-06  Bruno Haible  <bruno@clisp.org>
23153
23154         New module 'iswblank'.
23155         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23156         * modules/iswblank: New file.
23157         * modules/wctype-h (Files): Remove lib/iswblank.c.
23158         (Makefile.am): Substitute GNULIB_ISWBLANK.
23159         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23160         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23161         (gl_WCTYPE_H_DEFAULTS): New macro.
23162         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23163         * modules/iswblank-tests: New file.
23164         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23165         * tests/test-wctype-h.c (main): Remove iswblank tests.
23166         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23167         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23168         of 'wctype-h'.
23169         * NEWS: Mention the change.
23170         * modules/mbchar (Depends-on): Add iswblank.
23171
23172 2011-02-08  Bruno Haible  <bruno@clisp.org>
23173
23174         di-set tests: Refactor.
23175         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23176         unnecessary includes.
23177         (ASSERT): Remove macro.
23178         (main): Make C90 compliant by avoiding variable declaration after
23179         statement.
23180         * modules/di-set-tests (Files): Add tests/macros.h.
23181
23182 2011-02-08  Bruno Haible  <bruno@clisp.org>
23183
23184         ino-map tests: Refactor.
23185         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23186         unnecessary includes.
23187         (ASSERT): Remove macro.
23188         (main): Make C90 compliant by avoiding variable declaration after
23189         statement.
23190         * modules/ino-map-tests (Files): Add tests/macros.h.
23191
23192 2011-02-08  Jim Meyering  <meyering@redhat.com>
23193
23194         di-set: add "const" to a cast
23195         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23196         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23197
23198 2011-02-06  Bruno Haible  <bruno@clisp.org>
23199
23200         Rename module 'wctype' to 'wctype-h'.
23201         * modules/wctype-h: Renamed from modules/wctype.
23202         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23203         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23204         (Files, Depends-on, Makefile.am): Update.
23205         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23206         (Files, Makefile.am): Update.
23207         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23208         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23209         * doc/posix-headers/wctype.texi: Update.
23210         * doc/posix-functions/iswalnum.texi: Update.
23211         * doc/posix-functions/iswalpha.texi: Update.
23212         * doc/posix-functions/iswblank.texi: Update.
23213         * doc/posix-functions/iswcntrl.texi: Update.
23214         * doc/posix-functions/iswdigit.texi: Update.
23215         * doc/posix-functions/iswgraph.texi: Update.
23216         * doc/posix-functions/iswlower.texi: Update.
23217         * doc/posix-functions/iswprint.texi: Update.
23218         * doc/posix-functions/iswpunct.texi: Update.
23219         * doc/posix-functions/iswspace.texi: Update.
23220         * doc/posix-functions/iswupper.texi: Update.
23221         * doc/posix-functions/iswxdigit.texi: Update.
23222         * doc/posix-functions/towlower.texi: Update.
23223         * doc/posix-functions/towupper.texi: Update.
23224         * NEWS: Mention the change.
23225         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23226         * modules/mbchar (Dependencies): Likewise.
23227         * modules/mbswidth (Dependencies): Likewise.
23228         * modules/quotearg (Dependencies): Likewise.
23229         * modules/regex (Dependencies): Likewise.
23230         * modules/wcscasecmp (Dependencies): Likewise.
23231         * modules/wcsncasecmp (Dependencies): Likewise.
23232         * modules/wcwidth (Dependencies): Likewise.
23233
23234 2011-02-06  Bruno Haible  <bruno@clisp.org>
23235
23236         New module 'wcswidth'.
23237         * modules/wcswidth: New file.
23238         * lib/wchar.in.h (wcswidth): New declaration.
23239         * lib/wcswidth.c: New file.
23240         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23241         * m4/wcswidth.m4: New file.
23242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23244         REPLACE_WCSWIDTH.
23245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23246         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23247         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23248         * doc/posix-functions/wcswidth.texi: Mention the new module.
23249
23250 2011-02-06  Bruno Haible  <bruno@clisp.org>
23251
23252         New module 'wcstok'.
23253         * modules/wcstok: New file.
23254         * lib/wchar.in.h (wcstok): New declaration.
23255         * lib/wcstok.c: New file.
23256         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23257         * m4/wcstok.m4: New file.
23258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23261         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23262         * doc/posix-functions/wcstok.texi: Mention the new module.
23263
23264 2011-02-06  Bruno Haible  <bruno@clisp.org>
23265
23266         New module 'wcsstr'.
23267         * modules/wcsstr: New file.
23268         * lib/wchar.in.h (wcsstr): New declaration.
23269         * lib/wcsstr.c: New file.
23270         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23271         * m4/wcsstr.m4: New file.
23272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23274         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23275         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23276         * doc/posix-functions/wcsstr.texi: Mention the new module.
23277
23278 2011-02-06  Bruno Haible  <bruno@clisp.org>
23279
23280         New module 'wcspbrk'.
23281         * modules/wcspbrk: New file.
23282         * lib/wchar.in.h (wcspbrk): New declaration.
23283         * lib/wcspbrk.c: New file.
23284         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23285         * m4/wcspbrk.m4: New file.
23286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23289         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23290         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23291
23292 2011-02-06  Bruno Haible  <bruno@clisp.org>
23293
23294         New module 'wcsspn'.
23295         * modules/wcsspn: New file.
23296         * lib/wchar.in.h (wcsspn): New declaration.
23297         * lib/wcsspn.c: New file.
23298         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23299         * m4/wcsspn.m4: New file.
23300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23302         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23303         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23304         * doc/posix-functions/wcsspn.texi: Mention the new module.
23305
23306 2011-02-06  Bruno Haible  <bruno@clisp.org>
23307
23308         New module 'wcscspn'.
23309         * modules/wcscspn: New file.
23310         * lib/wchar.in.h (wcscspn): New declaration.
23311         * lib/wcscspn.c: New file.
23312         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23313         * m4/wcscspn.m4: New file.
23314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23317         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23318         * doc/posix-functions/wcscspn.texi: Mention the new module.
23319
23320 2011-02-06  Bruno Haible  <bruno@clisp.org>
23321
23322         New module 'wcsrchr'.
23323         * modules/wcsrchr: New file.
23324         * lib/wchar.in.h (wcsrchr): New declaration.
23325         * lib/wcsrchr.c: New file.
23326         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23327         * m4/wcsrchr.m4: New file.
23328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23331         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23332         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23333
23334 2011-02-06  Bruno Haible  <bruno@clisp.org>
23335
23336         New module 'wcschr'.
23337         * modules/wcschr: New file.
23338         * lib/wchar.in.h (wcschr): New declaration.
23339         * lib/wcschr.c: New file.
23340         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23341         * m4/wcschr.m4: New file.
23342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23345         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23346         * doc/posix-functions/wcschr.texi: Mention the new module.
23347
23348 2011-02-06  Bruno Haible  <bruno@clisp.org>
23349
23350         New module 'wcsdup'.
23351         * modules/wcsdup: New file.
23352         * lib/wchar.in.h (wcsdup): New declaration.
23353         * lib/wcsdup.c: New file.
23354         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23355         * m4/wcsdup.m4: New file.
23356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23359         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23360         * doc/posix-functions/wcsdup.texi: Mention the new module.
23361
23362 2011-02-06  Bruno Haible  <bruno@clisp.org>
23363
23364         New module 'wcsxfrm'.
23365         * modules/wcsxfrm: New file.
23366         * lib/wchar.in.h (wcsxfrm): New declaration.
23367         * lib/wcsxfrm.c: New file.
23368         * lib/wcsxfrm-impl.h: New file.
23369         * m4/wcsxfrm.m4: New file.
23370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23373         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23374         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23375
23376 2011-02-06  Bruno Haible  <bruno@clisp.org>
23377
23378         New module 'wcscoll'.
23379         * modules/wcscoll: New file.
23380         * lib/wchar.in.h (wcscoll): New declaration.
23381         * lib/wcscoll.c: New file.
23382         * lib/wcscoll-impl.h: New file.
23383         * m4/wcscoll.m4: New file.
23384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23387         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23388         * doc/posix-functions/wcscoll.texi: Mention the new module.
23389
23390 2011-02-06  Bruno Haible  <bruno@clisp.org>
23391
23392         New module 'wcsncasecmp'.
23393         * modules/wcsncasecmp: New file.
23394         * lib/wchar.in.h (wcsncasecmp): New declaration.
23395         * lib/wcsncasecmp.c: New file.
23396         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23397         * m4/wcsncasecmp.m4: New file.
23398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23401         HAVE_WCSNCASECMP.
23402         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23403         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23404
23405 2011-02-06  Bruno Haible  <bruno@clisp.org>
23406
23407         New module 'wcscasecmp'.
23408         * modules/wcscasecmp: New file.
23409         * lib/wchar.in.h (wcscasecmp): New declaration.
23410         * lib/wcscasecmp.c: New file.
23411         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23412         * m4/wcscasecmp.m4: New file.
23413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23416         HAVE_WCSCASECMP.
23417         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23418         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23419
23420 2011-02-05  Bruno Haible  <bruno@clisp.org>
23421
23422         New module 'wcsncmp'.
23423         * modules/wcsncmp: New file.
23424         * lib/wchar.in.h (wcsncmp): New declaration.
23425         * lib/wcsncmp.c: New file.
23426         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23427         * m4/wcsncmp.m4: New file.
23428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23431         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23432         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23433
23434 2011-02-05  Bruno Haible  <bruno@clisp.org>
23435
23436         New module 'wcscmp'.
23437         * modules/wcscmp: New file.
23438         * lib/wchar.in.h (wcscmp): New declaration.
23439         * lib/wcscmp.c: New file.
23440         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23441         * m4/wcscmp.m4: New file.
23442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23445         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23446         * doc/posix-functions/wcscmp.texi: Mention the new module.
23447
23448 2011-02-05  Bruno Haible  <bruno@clisp.org>
23449
23450         New module 'wcsncat'.
23451         * modules/wcsncat: New file.
23452         * lib/wchar.in.h (wcsncat): New declaration.
23453         * lib/wcsncat.c: New file.
23454         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23455         * m4/wcsncat.m4: New file.
23456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23459         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23460         * doc/posix-functions/wcsncat.texi: Mention the new module.
23461
23462 2011-02-05  Bruno Haible  <bruno@clisp.org>
23463
23464         New module 'wcscat'.
23465         * modules/wcscat: New file.
23466         * lib/wchar.in.h (wcscat): New declaration.
23467         * lib/wcscat.c: New file.
23468         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23469         * m4/wcscat.m4: New file.
23470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23473         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23474         * doc/posix-functions/wcscat.texi: Mention the new module.
23475
23476 2011-02-05  Bruno Haible  <bruno@clisp.org>
23477
23478         New module 'wcpncpy'.
23479         * modules/wcpncpy: New file.
23480         * lib/wchar.in.h (wcpncpy): New declaration.
23481         * lib/wcpncpy.c: New file.
23482         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23483         * m4/wcpncpy.m4: New file.
23484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23486         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23487         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23488         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23489
23490 2011-02-05  Bruno Haible  <bruno@clisp.org>
23491
23492         New module 'wcsncpy'.
23493         * modules/wcsncpy: New file.
23494         * lib/wchar.in.h (wcsncpy): New declaration.
23495         * lib/wcsncpy.c: New file.
23496         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23497         * m4/wcsncpy.m4: New file.
23498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23501         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23502         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23503
23504 2011-02-05  Bruno Haible  <bruno@clisp.org>
23505
23506         New module 'wcpcpy'.
23507         * modules/wcpcpy: New file.
23508         * lib/wchar.in.h (wcpcpy): New declaration.
23509         * lib/wcpcpy.c: New file.
23510         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23511         * m4/wcpcpy.m4: New file.
23512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23514         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23515         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23516         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23517
23518 2011-02-05  Bruno Haible  <bruno@clisp.org>
23519
23520         New module 'wcscpy'.
23521         * modules/wcscpy: New file.
23522         * lib/wchar.in.h (wcscpy): New declaration.
23523         * lib/wcscpy.c: New file.
23524         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23525         * m4/wcscpy.m4: New file.
23526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23529         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23530         * doc/posix-functions/wcscpy.texi: Mention the new module.
23531
23532 2011-02-05  Bruno Haible  <bruno@clisp.org>
23533
23534         New module 'wcsnlen'.
23535         * modules/wcsnlen: New file.
23536         * lib/wchar.in.h (wcsnlen): New declaration.
23537         * lib/wcsnlen.c: New file.
23538         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23539         * m4/wcsnlen.m4: New file.
23540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23543         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23544         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23545
23546 2011-02-05  Bruno Haible  <bruno@clisp.org>
23547
23548         New module 'wcslen'.
23549         * modules/wcslen: New file.
23550         * lib/wchar.in.h (wcslen): New declaration.
23551         * lib/wcslen.c: New file.
23552         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23553         * m4/wcslen.m4: New file.
23554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23557         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23558         * doc/posix-functions/wcslen.texi: Mention the new module.
23559
23560 2011-02-05  Bruno Haible  <bruno@clisp.org>
23561
23562         New module 'wmemset'.
23563         * modules/wmemset: New file.
23564         * lib/wchar.in.h (wmemset): New declaration.
23565         * lib/wmemset.c: New file.
23566         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23567         * m4/wmemset.m4: New file.
23568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23570         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23571         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23572         * doc/posix-functions/wmemset.texi: Mention the new module.
23573
23574 2011-02-05  Bruno Haible  <bruno@clisp.org>
23575
23576         New module 'wmemmove'.
23577         * modules/wmemmove: New file.
23578         * lib/wchar.in.h (wmemmove): New declaration.
23579         * lib/wmemmove.c: New file.
23580         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23581         * m4/wmemmove.m4: New file.
23582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23584         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23585         HAVE_WMEMMOVE.
23586         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23587         * doc/posix-functions/wmemmove.texi: Mention the new module.
23588
23589 2011-02-05  Bruno Haible  <bruno@clisp.org>
23590
23591         New module 'wmemcpy'.
23592         * modules/wmemcpy: New file.
23593         * lib/wchar.in.h (wmemcpy): New declaration.
23594         * lib/wmemcpy.c: New file.
23595         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23596         * m4/wmemcpy.m4: New file.
23597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23599         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23600         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23601         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23602
23603 2011-02-05  Bruno Haible  <bruno@clisp.org>
23604
23605         New module 'wmemcmp'.
23606         * modules/wmemcmp: New file.
23607         * lib/wchar.in.h (wmemcmp): New declaration.
23608         * lib/wmemcmp.c: New file.
23609         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23610         * m4/wmemcmp.m4: New file.
23611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23613         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23614         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23615         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23616
23617 2011-02-07  Jim Meyering  <meyering@redhat.com>
23618
23619         di-set, ino-map: new modules, from coreutils
23620         * lib/di-set.c: New file.
23621         * lib/di-set.h: Likewise.
23622         * lib/ino-map.c: Likewise.
23623         * lib/ino-map.h: Likewise.
23624         * modules/di-set: Likewise.
23625         * modules/di-set-tests: Likewise.
23626         * modules/ino-map: Likewise.
23627         * modules/ino-map-tests: Likewise.
23628         * tests/test-di-set.c: Likewise.
23629         * tests/test-ino-map.c: Likewise.
23630
23631 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23632
23633         getloadavg: merge minor changes from Emacs
23634
23635         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23636         (getloadavg): Use memset, not bzero.
23637
23638         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23639         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23640         clash (bug#86).
23641
23642 2010-11-14  Bruno Haible  <bruno@clisp.org>
23643
23644         Allow multiple gnulib generated replacements to coexist.
23645         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23646         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23647         * lib/langinfo.in.h (nl_item): Likewise.
23648         * lib/math.in.h (_NaN, NAN): Likewise.
23649         * lib/netdb.in.h (struct addrinfo): Likewise.
23650         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23651         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23652         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23653         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23654         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23655         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23656         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23657         pthread_mutexattr_init, pthread_mutexattr_settype,
23658         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23659         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23660         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23661         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23662         * lib/sched.in.h (struct sched_param): Likewise.
23663         * lib/se-selinux.in.h (security_class_t, security_context_t,
23664         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23665         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23666         lsetfilecon, fsetfilecon, security_check_context,
23667         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23668         Likewise.
23669         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23670         Likewise.
23671         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23672         _gl_function_taking_int_returning_void_t, union sigval,
23673         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23674         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23675         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23676         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23677         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23678         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23679         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23680         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23681         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23682         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23683         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23684         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23685         socklen_t, rpl_fd_isset): Likewise.
23686         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23687         * lib/sys_time.in.h (struct timeval): Likewise.
23688         * lib/sys_times.in.h (struct tms): Likewise.
23689         * lib/sys_utsname.in.h (struct utsname):
23690         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23691         * lib/unistd.in.h (getpagesize): Likewise.
23692         * lib/wchar.in.h (mbstate_t): Likewise.
23693         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23694         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23695         towlower, towupper): Likewise.
23696         Reported by Sam Steingold <sds@gnu.org>.
23697
23698 2011-02-05  Eric Blake  <eblake@redhat.com>
23699
23700         unsetenv: work around Haiku issues
23701         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23702         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23703
23704 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23705
23706         libposix: avoid calling error() within libposix
23707         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23708         is defined.
23709
23710 2011-02-05  Eric Blake  <eblake@redhat.com>
23711
23712         strerror_r-posix: port to cygwin
23713         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23714         implementation.
23715         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23716         * tests/test-strerror_r.c (main): Fix test.
23717         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23718         issue.
23719
23720 2011-02-05  Bruno Haible  <bruno@clisp.org>
23721
23722         New module 'wmemchr'.
23723         * modules/wmemchr: New file.
23724         * lib/wchar.in.h (wmemchr): New declaration.
23725         * lib/wmemchr.c: New file.
23726         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23727         * m4/wmemchr.m4: New file.
23728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23730         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23731         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23732         * doc/posix-functions/wmemchr.texi: Mention the new module.
23733
23734 2011-02-04  Eric Blake  <eblake@redhat.com>
23735
23736         fdopendir: detect FreeBSD bug
23737         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23738         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23739
23740 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23741
23742         stdbool: do not define HAVE_STDBOOL_H
23743         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23744         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23745         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23746         imported from the latest Autoconf git.  It was motivated by Emacs,
23747         which uses gnulib but does not need HAVE_STDBOOL_H.
23748
23749 2011-02-04  Bruno Haible  <bruno@clisp.org>
23750
23751         wcsnrtombs: Prepare for new module wwcsnrtombs.
23752         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23753         * lib/wcsnrtombs.c: Include it.
23754         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23755
23756         wcsrtombs: Prepare for new module wwcsrtombs.
23757         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23758         * lib/wcsrtombs.c: Include it.
23759         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23760
23761         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23762         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23763         * lib/mbsnrtowcs.c: Include it.
23764         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23765
23766         mbsrtowcs: Prepare for new module mbsrtowwcs.
23767         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23768         * lib/mbsrtowcs.c: Include it.
23769         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23770
23771 2011-02-04  Bruno Haible  <bruno@clisp.org>
23772
23773         vasnprintf: Reduce use of malloc for small format strings.
23774         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23775         (arguments): Add room for the first 7 arguments.
23776         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23777         (char_directives, u8_directives, u16_directives, u32_directives): Add
23778         room for the first 7 directives.
23779         * lib/printf-parse.c: Include <string.h>.
23780         (PRINTF_PARSE): Change memory handling code so that it uses the first
23781         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23782         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23783         Reported by Pádraig Brady <P@draigbrady.com>.
23784
23785 2011-01-31  Eric Blake  <eblake@redhat.com>
23786
23787         dup2: work around Haiku bug
23788         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23789         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23790         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23791         * tests/test-dup2.c (main): Enhance test.
23792
23793 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23794
23795         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23796         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23797         declared by eglibc 2.11.2.
23798         * lib/stdio.in.h: Likewise.
23799
23800 2011-01-31  Eric Blake  <eblake@redhat.com>
23801
23802         ignore-value: add missing test dependency
23803         * tests/test-ignore-value.c: Revert previous change; stdio.h
23804         provides off_t.
23805         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23806
23807 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         mktime: clarify long_int width checking
23810         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23811         the top level, to make it clearer that the assumption about
23812         long_int width is being checked.  See
23813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23814
23815 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23816
23817         ignore-value: Fix self-test.
23818         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23819
23820 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23821
23822         TYPE_MAXIMUM: avoid theoretically undefined behavior
23823         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23824         negative number, which the C Standard says has undefined behavior.
23825         In practice this is not a problem, but might as well do it by the book.
23826         Reported by Rich Felker and Eric Blake; see
23827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23828         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23829         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23831         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23832         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23833         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23834
23835         mktime: #undef mktime before #defining it
23836         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23837
23838         mktime: systematically normalize tm_isdst comparisons
23839         * lib/mktime.c (isdst_differ): New function.
23840         (__mktime_internal): Use it systematically for all isdst comparisons.
23841         This completes the fix for libc BZ #6723, and removes the need for
23842         normalizing tm_isdst.  See
23843         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23844         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23845
23846         mktime: fix some integer overflow issues and sidestep the rest
23847
23848         This was prompted by a bug report by Benjamin Lindner for MinGW
23849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23850         His bug is due to signed integer overflow (0 - INT_MIN), and I
23851         I scanned through mktime.c looking for other integer overflow
23852         problems, fixing all the bugs I found.
23853
23854         Although the C Standard says the resulting code is still not safe
23855         in the presence of integer overflow, in practice it should be good
23856         enough for all real-world two's-complement implementations, except
23857         for debugging environments that deliberately trap on integer
23858         overflow (e.g., gcc -ftrapv).
23859
23860         * lib/mktime.c (WRAPV): New macro.
23861         (SHR): Also check that long_int and time_t shift right in the
23862         usual way, before using the fast-but-unportable method.
23863         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23864         used.  The code already assumed two's complement, so there's
23865         no need to test for alternatives.  All uses removed.
23866         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23867         the C standard.  Problem reported by Rich Felker in
23868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23869         (twos_complement_arithmetic): Also check long_int and time_t.
23870         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23871         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23872         (__mktime_internal): Avoid integer overflow with unary subtraction
23873         in two instances where -1 - X is an adequate replacement for -X,
23874         since the calculations are approximate.
23875
23876 2011-01-29  Eric Blake  <eblake@redhat.com>
23877
23878         mktime: avoid infinite loop
23879         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23880         type; behavior is still undefined but portable to all known targets.
23881         Reported by Rich Felker.
23882
23883 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23884
23885         rename, unlink, same-inode: Relicense.
23886         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23887         * modules/unlink (License): Likewise.
23888         * modules/same-inode (License): Likewise.
23889
23890 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23891
23892         mktime: avoid problems on NetBSD 5 / i386
23893         * lib/mktime.c (long_int): New type.  This works around a problem
23894         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23895         but time_t is 64 bits, and where I expect the existing code is
23896         wrong in some cases.
23897         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23898         (ydhms_diff): Bring back the compile-time check for wide-enough
23899         year and yday.
23900
23901         mktime: fix misspelling in comment
23902         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23903         This merges all recent glibc changes of importance.
23904
23905 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23906
23907         move-if-change: cope with concurrent mv of identical file.
23908         * build-aux/move-if-change (CMPPROG): Accept environment
23909         variable as an override for `cmp'.
23910         (usage): Document CMPPROG.
23911         Adjust comparison to drop stdout.  Cope with failure of mv if
23912         the target file exists and is identical to the source, for
23913         parallel builds.
23914         Report from H.J. Lu against binutils in PR binutils/12283.
23915
23916 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23917
23918         * users.txt: Mention sharutils.
23919
23920 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23921
23922         * users.txt: Mention OATH Toolkit.
23923
23924 2011-01-27  Bruno Haible  <bruno@clisp.org>
23925
23926         Prepare for supporting FreeBSD 10.
23927         * build-aux/config.libpath: Remove handling of freebsd1*.
23928
23929 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23930
23931         Prepare for supporting FreeBSD 10.
23932         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23933         match FreeBSD 10.0.
23934
23935 2011-01-27  Bruno Haible  <bruno@clisp.org>
23936
23937         vma-iter, get-rusage-as: Add OpenBSD support.
23938         * modules/vma-iter (configure.ac): Test for mquery.
23939         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23940         * lib/vma-iter.c: Include <sys/mman.h>.
23941         (vma_iterate): Add an implementation based on mquery().
23942         * lib/resource-ext.h (get_rusage_as): Update comments.
23943         * lib/get-rusage-as.c: Likewise.
23944         * lib/get-rusage-data.c: Likewise.
23945
23946 2011-01-26  Karl Berry  <karl@gnu.org>
23947
23948         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23949         variables to make it easier to override the makeinfo program used.
23950
23951 2011-01-26  Eric Blake  <eblake@redhat.com>
23952
23953         fcntl: work around Haiku F_DUPFD bugs
23954         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23955         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23956         cloexec bit on duplication.
23957         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23958
23959 2011-01-26  Bruno Haible  <bruno@clisp.org>
23960
23961         Enable memory leak tests on AIX.
23962         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23963         * tests/test-fprintf-posix3.c (main): Likewise.
23964
23965 2011-01-26  Bruno Haible  <bruno@clisp.org>
23966
23967         Tests for module 'get-rusage-data'.
23968         * modules/get-rusage-data-tests: New file.
23969         * tests/test-get-rusage-data.c: New file.
23970
23971         New module 'get-rusage-data'.
23972         * lib/resource-ext.h (get_rusage_data): New declaration.
23973         * lib/get-rusage-data.c: New file.
23974         * modules/get-rusage-data: New file.
23975
23976 2011-01-25  Bruno Haible  <bruno@clisp.org>
23977
23978         get-rusage-as: Allow for easier testing.
23979         * lib/resource-ext.h (get_rusage_as): Add comment.
23980         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23981         (main): New function for interactive testing.
23982
23983 2011-01-25  Bruno Haible  <bruno@clisp.org>
23984
23985         vma-iter: Treat Haiku like BeOS.
23986         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23987         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23988
23989 2011-01-25  Eric Blake  <eblake@redhat.com>
23990
23991         c-stack: fix regression on cygwin when libsigsegv is present
23992         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23993
23994 2011-01-24  Bruno Haible  <bruno@clisp.org>
23995
23996         vma-iter: Avoid empty intervals.
23997         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23998         on an empty interval.
23999
24000 2011-01-24  Jim Meyering  <meyering@redhat.com>
24001
24002         u64: remove unnecessary #include
24003         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24004
24005 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24006
24007         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24008         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24009
24010 2011-01-23  Bruno Haible  <bruno@clisp.org>
24011
24012         New module 'vma-iter'.
24013         * lib/vma-iter.h: New file.
24014         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24015         * modules/vma-iter: New file.
24016         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24017         for get_rusage_as_via_iterator.
24018         (vma_iterate_callback): New function.
24019         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24020         * modules/get-rusage-as (Depends-on): Add vma-iter.
24021
24022 2011-01-23  Bruno Haible  <bruno@clisp.org>
24023
24024         uninorm: Tweak includes.
24025         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24026         Reported by Jim Meyering.
24027
24028 2011-01-23  Bruno Haible  <bruno@clisp.org>
24029
24030         get-rusage-as: Improve on NetBSD.
24031         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24032         /proc, like on FreeBSD.
24033
24034 2011-01-23  Jim Meyering  <meyering@redhat.com>
24035
24036         xreadlink.h: remove unnecessary #include
24037         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24038
24039         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24040         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24041
24042 2011-01-23  Bruno Haible  <bruno@clisp.org>
24043
24044         get-rusage-as: Fix bug.
24045         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24046         original limit when aborting the first loop.
24047
24048 2011-01-23  Bruno Haible  <bruno@clisp.org>
24049
24050         wctype: Ensure valid C syntax.
24051         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24052         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24053
24054 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24055
24056         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24058         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24059         as they are needed only for configure's test case.
24060         This removes two unnecessary symbols from config.h.
24061
24062         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24063         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24065         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24066         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24067         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24068         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24069         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24070         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24071         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24072         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24074         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24075         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24076         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24077         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24078         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24079         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24080
24081 2011-01-21  Eric Blake  <eblake@redhat.com>
24082
24083         maintainer-makefile: work with older git for submodule check
24084         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24085         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24086         Reported by Matthias Bolte.
24087
24088         bootstrap: minor portability fixes
24089         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24090         (usage): Omit leading capital and trailing . on help phrases, per
24091         GNU Coding Standards.
24092         (check_versions, top level): Prefix messages with script name.
24093
24094 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24095
24096         bootstrap: support --no-git option
24097         * build-aux/bootstrap: Add --no-git option, to be used when
24098         --gnulib-srcdir points to the exact desired checkout.
24099
24100 2011-01-21  Eric Blake  <eblake@redhat.com>
24101
24102         strerror_r-posix: work with glibc 2.13
24103         * lib/strerror_r.c (strerror_r): Fix return type.
24104
24105 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24106             Bruno Haible  <bruno@clisp.org>
24107
24108         uN_strstr: New unit tests.
24109         * modules/unistr/u8-strstr-tests: New file.
24110         * modules/unistr/u16-strstr-tests: New file.
24111         * modules/unistr/u32-strstr-tests: New file.
24112         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24113         * tests/unistr/test-u8-strstr.c: New file.
24114         * tests/unistr/test-u16-strstr.c: New file.
24115         * tests/unistr/test-u32-strstr.c: New file.
24116
24117 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24118             Bruno Haible  <bruno@clisp.org>
24119
24120         Make uN_strstr functions O(n) worst-case.
24121         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24122         16-bit and 32-bit unit cases, use the unibyte algorithm from
24123         lib/mbsstr.c.
24124         * lib/unistr/u8-strstr.c: Include <string.h>.
24125         (UNIT_IS_UINT8_T): New macro.
24126         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24127         (U_STRLEN, U_STRNLEN): New macros.
24128         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24129         (U_STRLEN, U_STRNLEN): New macros.
24130         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24131         (configure.ac): Update required libunistring version.
24132         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24133         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24134         malloca.
24135         (configure.ac): Update required libunistring version.
24136         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24137         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24138         malloca.
24139         (configure.ac): Update required libunistring version.
24140
24141 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24142             Bruno Haible  <bruno@clisp.org>
24143
24144         Prepare for faster uN_strstr functions.
24145         * lib/str-kmp.h: Support definable UNITs.
24146         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24147         needle_len argument.
24148         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24149         * lib/mbscasestr.c (mbscasestr): Likewise.
24150
24151 2011-01-21  Pádraig Brady <P@draigBrady.com>
24152
24153         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24154         * tests/test-malloca.c (main): Unset the environment variable
24155         to greatly speed up the test.
24156         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24157         * modules/malloca-tests: Depend on unsetenv.
24158
24159 2011-01-21  Pádraig Brady <P@draigBrady.com>
24160
24161         ignore-value: remove stdint dependency
24162         * lib/ignore-value.h: Remove <stdint.h>
24163         * modules/ignore-value: Remove stdint dependency.
24164
24165 2011-01-21  Jim Meyering  <meyering@redhat.com>
24166
24167         maint.mk: adjust variable name to be consistent with other gl_ vars
24168         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24169         to be lower case.
24170
24171 2011-01-20  Jim Meyering  <meyering@redhat.com>
24172
24173         maint.mk: make "check" depend on public-submodule-commit by default
24174         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24175
24176 2011-01-20  Bruno Haible  <bruno@clisp.org>
24177
24178         mbfile, mbiter: Complete change from 2008-12-21.
24179         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24180         * m4/mbiter.m4 (gl_MBITER): Likewise.
24181
24182 2011-01-20  Jim Meyering  <meyering@redhat.com>
24183
24184         init.sh: insert space between each function name and "()"
24185         * tests/init.sh: Make it a little easier to see that a function's
24186         name is "warn_", and not "warn" when looking at the first part of
24187         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24188
24189 2011-01-20  Jim Meyering  <meyering@redhat.com>
24190
24191         mountlist: clean up code formatting
24192         * lib/mountlist.c (read_file_system_list): Split a long line,
24193         correct bracing style, use NULL in place of "(struct statfs *)0",
24194         don't parenthesize return value, add spaces around "=" and after
24195         ";-in-for-stmt".
24196
24197 2011-01-14  Markus Duft <mduft@gentoo.org>
24198
24199         mountlist: add support for Interix
24200         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24201         Apply statvfs to all entries of /dev/fs.
24202         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24203         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24204
24205 2011-01-20  Jim Meyering  <meyering@redhat.com>
24206
24207         maint.mk: improve the public-submodule-commit rule
24208         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24209         to suppress printing of its commands... unless V=1.
24210         Add git submodule's --quiet option to suppress printing of e.g.,
24211         "Entering gnulib" output.
24212         "cd" into $(srcdir) before running git submodule.
24213
24214 2011-01-20  Bruno Haible  <bruno@clisp.org>
24215
24216         include_next: Fix bug introduced on 2011-01-18.
24217         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24218         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24219         ac_cv_header_... variable if the second argument is not 'check'.
24220         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24221         gl_NEXT_HEADERS_INTERNAL.
24222
24223 2011-01-20  Bruno Haible  <bruno@clisp.org>
24224
24225         Allow the user to avoid the GNULIB_TEST_* macros.
24226         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24227         Suggested by Paul Eggert.
24228
24229 2011-01-14  Jim Meyering  <meyering@redhat.com>
24230
24231         bootstrap: avoid failure when there is no .gitmodules file
24232         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24233         has been assigned to, even when its value is the empty string.
24234         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24235         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24236         Reported by John W. Eaton <jwe@gnu.org>.
24237
24238 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         assume <ctype.h>, ..., <time.h> exist
24241         For years gnulib has been assuming the existence of the headers
24242         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24243         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24244         them, since they don't appear to be needed.
24245         * README (Portability guidelines): Document this.
24246         * lib/flock.c: Assume <fcntl.h> exists.
24247         * lib/regex_internal.h: Assume <locale.h> exists.
24248         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24249         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24250         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24251         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24252         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24253         * m4/regex.m4 (gl_REGEX): Likewise.
24254         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24255         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24256         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24257         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24258         * tests/test-argp.c: Likewise.
24259         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24260
24261         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24262         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24263         AA_APPLE_UNIVERSAL_BUILD.  See
24264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24265         * NEWS: Document this.
24266
24267 2011-01-19  Eric Blake  <eblake@redhat.com>
24268
24269         c-stack: assume stack overflow if SA_SIGINFO unsupported
24270         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24271         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24272         sigaction will work.
24273         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24274         behavior match Linux.
24275         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24276
24277         stdbool-tests: accommodate Haiku
24278         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24279
24280         binary-io: fix O_TEXT on Haiku
24281         * modules/binary-io (Depends-on): Add fcntl-h.
24282         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24283         than blindly undefining O_TEXT.
24284         Reported by Scott McCreary.
24285
24286 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24287
24288         include_next: do not check for standard headers like stddef.h
24289
24290         I found this problem when modifying Emacs to use gnulib.
24291         I noticed that it added HAVE_STDDEF_H to config.h, even though
24292         gnulib always assumes <stddef.h> exists as per README and this
24293         symbol is unnecessary.
24294         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24295         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24296         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24297         faster for headers like stddef.h that are known to exist.
24298         (gl_CHECK_NEXT_HEADERS): Use it.
24299         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24300         rather than gl_CHECK_NEXT_HEADERS.
24301         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24302         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24303
24304 2011-01-18  Eric Blake  <eblake@redhat.com>
24305
24306         ansi-c++-opt: skip C++ dependency style if C++ is unused
24307         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24308         tests when we know C++ compilation is not desired.
24309         Reported by Scott McCreary.
24310
24311 2011-01-18  Bruno Haible  <bruno@clisp.org>
24312
24313         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24314         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24315         (main): Perform test also when getrlimit and setrlimit don't exist or
24316         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24317         limiting the address space size using setrlimit, compare the address
24318         space size before and after the the test.
24319         * tests/test-dprintf-posix2.c: Likewise.
24320         * tests/test-fprintf-posix3.sh: Update skip messages.
24321         * tests/test-dprintf-posix2.sh: Likewise.
24322         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24323         * modules/dprintf-posix-tests (Depends-on): Likewise.
24324         Reported by Bruce Korb <bkorb@gnu.org> and
24325         Gary V. Vaughan <gary@gnu.org>.
24326
24327 2011-01-18  Bruno Haible  <bruno@clisp.org>
24328
24329         get-rusage-as: Improvement for Cygwin.
24330         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24331         areas that are merely reserved.
24332
24333 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24334
24335         strftime: remove dependencies on multibyte modules
24336
24337         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24338         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24339         only if __osf__ is defined, and I suspect OSF doesn't need these
24340         other modules.  If my guess is wrong, we'll need to come up with a
24341         variant of strftime that doesn't need the multibyte modules.
24342
24343         I discovered this problem when attempting modify Emacs to use the
24344         strftime module.  With the previous gnulib, this caused Emacs to
24345         need 31 new files, ranging from lib/config.charset to
24346         m4/wint_t.m4.  This was overkill and I expect would be offputting
24347         to the Emacs maintainers.  After this change, only 6 new files are
24348         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24349         stdbool.m4, and tm_gmtoff.m4.
24350
24351         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24352         Suggested by Bruno Haible in
24353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24355         and do not check for wchar.h.
24356         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24357         (Depends-on): Remove mbrlen, mbsinit, wchar.
24358
24359 2011-01-18  Bruno Haible  <bruno@clisp.org>
24360
24361         Tests for module 'get-rusage-as'.
24362         * modules/get-rusage-as-tests: New file.
24363         * tests/test-get-rusage-as.c: New file.
24364
24365         New module 'get-rusage-as'.
24366         * modules/get-rusage-as: New file.
24367         * lib/resource-ext.h: New file.
24368         * lib/get-rusage-as.c: New file.
24369
24370 2011-01-17  Eric Blake  <eblake@redhat.com>
24371
24372         sigaction: relax license from LGPLv3+ to LGPLv2+
24373         * modules/sigaction (License): Relax to LGPLv2+.
24374
24375 2011-01-14  Bruno Haible  <bruno@clisp.org>
24376
24377         filemode: Make function declarations usable in C++ mode.
24378         * lib/filemode.h: Enclose function declarations in extern "C" block.
24379         Reported by John W. Eaton <jwe@gnu.org>.
24380
24381 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24382
24383         save-cwd: no longer include "xgetcwd.h"
24384         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24385         This avoids a compilation failure in projects that use save-cwd
24386         without also using the xgetcwd module.
24387
24388 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24391         This is so that a program like Emacs, which needs only dtoastr,
24392         does not have to bother with distributing and compiling ftoastr
24393         and ldtoastr.
24394         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24395         * modules/dtoastr, modules/ldtoastr: New files.
24396         * modules/ftoastr: Now works just for 'float'.
24397         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24398         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24399         dtoastr.c, ldtoastr.c.
24400
24401 2011-01-11  Jim Meyering  <meyering@redhat.com>
24402
24403         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24404         There is no need to work around the lack of the fchdir function,
24405         since gnulib can now provide a replacement when required.
24406         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24407         * modules/save-cwd (Depends-on): Add fchdir.
24408
24409 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24410
24411         openat, save-cwd: avoid xmalloc
24412
24413         This removes a direct (but undocumented) dependency of openat on
24414         xalloc, along with an indirect dependency via save-cwd.  It also
24415         removes a dependency of save-cwd on xgetcwd, and thereby
24416         indirectly on xalloc.  This change causes the openat substitute
24417         to fall back on save_cwd when memory is tight, and for save_cwd to
24418         fail instead of dying when memory is tight, but that's good enough.
24419         Problem and initial idea for fix reported by Bastien Roucaries in
24420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24421
24422         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24423         xalloc.h (for xmalloc).
24424         (openat_proc_name): Use malloc, not xmalloc.
24425         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24426         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24427
24428         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24429         This avoids heap allocation for file names whose lengths are in
24430         the range 512..1023, with the upper bound increasing to at most
24431         4031 depending on the platform's PATH_MAX.  (We do not want
24432         pathmax.h here as it might supply a non-constant PATH_MAX.)
24433         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24434         Perhaps they should be moved to malloca.h?
24435         (OPENAT_BUFFER_SIZE): Use them.
24436
24437 2011-01-10  Bruno Haible  <bruno@clisp.org>
24438
24439         doc: Update users.txt.
24440         * users.txt: Add recutils.
24441
24442 2011-01-09  Karl Berry  <karl@gnu.org>
24443
24444         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24445
24446         * doc/configmake.texi: New file.
24447         * doc/gnulib.texi: Include it.
24448         * modules/configmake: Move documentation from here.
24449
24450 2011-01-09  Bruno Haible  <bruno@clisp.org>
24451
24452         Update to Unicode 6.0.0.
24453         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24454         (get_lbp): Update for Unicode 6.0.0.
24455         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24456         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24457         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24458         U+11001, U+11038..U+11046. Remove U+06DE.
24459         (uc_width): Fix bounds of planes.
24460         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24461         lib/uniwidth/width.c.
24462         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24463         trailing whitespace removed.
24464         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24465         without comments, but with the original copyright notice.
24466         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24467         * lib/unicase/ignorable.h: Likewise.
24468         * lib/unicase/tocasefold.h: Likewise.
24469         * lib/unicase/tolower.h: Likewise.
24470         * lib/unicase/totitle.h: Likewise.
24471         * lib/unicase/toupper.h: Likewise.
24472         * lib/unictype/bidi_of.h: Likewise.
24473         * lib/unictype/blocks.h: Likewise.
24474         * lib/unictype/categ_C.h: Likewise.
24475         * lib/unictype/categ_Cn.h: Likewise.
24476         * lib/unictype/categ_L.h: Likewise.
24477         * lib/unictype/categ_Ll.h: Likewise.
24478         * lib/unictype/categ_Lm.h: Likewise.
24479         * lib/unictype/categ_Lo.h: Likewise.
24480         * lib/unictype/categ_Lu.h: Likewise.
24481         * lib/unictype/categ_M.h: Likewise.
24482         * lib/unictype/categ_Mc.h: Likewise.
24483         * lib/unictype/categ_Me.h: Likewise.
24484         * lib/unictype/categ_Mn.h: Likewise.
24485         * lib/unictype/categ_N.h: Likewise.
24486         * lib/unictype/categ_Nd.h: Likewise.
24487         * lib/unictype/categ_No.h: Likewise.
24488         * lib/unictype/categ_P.h: Likewise.
24489         * lib/unictype/categ_Po.h: Likewise.
24490         * lib/unictype/categ_S.h: Likewise.
24491         * lib/unictype/categ_Sc.h: Likewise.
24492         * lib/unictype/categ_Sk.h: Likewise.
24493         * lib/unictype/categ_Sm.h: Likewise.
24494         * lib/unictype/categ_So.h: Likewise.
24495         * lib/unictype/categ_of.h: Likewise.
24496         * lib/unictype/combining.h: Likewise.
24497         * lib/unictype/ctype_alnum.h: Likewise.
24498         * lib/unictype/ctype_alpha.h: Likewise.
24499         * lib/unictype/ctype_graph.h: Likewise.
24500         * lib/unictype/ctype_lower.h: Likewise.
24501         * lib/unictype/ctype_print.h: Likewise.
24502         * lib/unictype/ctype_punct.h: Likewise.
24503         * lib/unictype/ctype_upper.h: Likewise.
24504         * lib/unictype/decdigit.h: Likewise.
24505         * lib/unictype/digit.h: Likewise.
24506         * lib/unictype/numeric.h: Likewise.
24507         * lib/unictype/pr_alphabetic.h: Likewise.
24508         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24509         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24510         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24511         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24512         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24513         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24514         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24515         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24516         * lib/unictype/pr_case_ignorable.h: Likewise.
24517         * lib/unictype/pr_cased.h: Likewise.
24518         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24519         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24520         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24521         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24522         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24523         * lib/unictype/pr_combining.h: Likewise.
24524         * lib/unictype/pr_composite.h: Likewise.
24525         * lib/unictype/pr_currency_symbol.h: Likewise.
24526         * lib/unictype/pr_decimal_digit.h: Likewise.
24527         * lib/unictype/pr_deprecated.h: Likewise.
24528         * lib/unictype/pr_format_control.h: Likewise.
24529         * lib/unictype/pr_grapheme_base.h: Likewise.
24530         * lib/unictype/pr_grapheme_extend.h: Likewise.
24531         * lib/unictype/pr_grapheme_link.h: Likewise.
24532         * lib/unictype/pr_id_continue.h: Likewise.
24533         * lib/unictype/pr_id_start.h: Likewise.
24534         * lib/unictype/pr_ideographic.h: Likewise.
24535         * lib/unictype/pr_lowercase.h: Likewise.
24536         * lib/unictype/pr_math.h: Likewise.
24537         * lib/unictype/pr_numeric.h: Likewise.
24538         * lib/unictype/pr_other_alphabetic.h: Likewise.
24539         * lib/unictype/pr_other_id_continue.h: Likewise.
24540         * lib/unictype/pr_other_math.h: Likewise.
24541         * lib/unictype/pr_punctuation.h: Likewise.
24542         * lib/unictype/pr_sentence_terminal.h: Likewise.
24543         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24544         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24545         * lib/unictype/pr_unified_ideograph.h: Likewise.
24546         * lib/unictype/pr_uppercase.h: Likewise.
24547         * lib/unictype/pr_xid_continue.h: Likewise.
24548         * lib/unictype/pr_xid_start.h: Likewise.
24549         * lib/unictype/scripts.h: Likewise.
24550         * lib/unictype/scripts_byname.gperf: Likewise.
24551         * lib/unictype/sy_java_ident.h: Likewise.
24552         * lib/unigbrk/gbrkprop.h: Likewise.
24553         * lib/unilbrk/lbrkprop1.h: Likewise.
24554         * lib/unilbrk/lbrkprop2.h: Likewise.
24555         * lib/uninorm/decomposition-table2.h: Likewise.
24556         * lib/uniwbrk/wbrkprop.h: Likewise.
24557         * tests/unicase/test-cased.c: Likewise.
24558         * tests/unicase/test-ignorable.c: Likewise.
24559         * tests/unicase/test-uc_tolower.c: Likewise.
24560         * tests/unicase/test-uc_totitle.c: Likewise.
24561         * tests/unicase/test-uc_toupper.c: Likewise.
24562         * tests/unictype/test-categ_C.c: Likewise.
24563         * tests/unictype/test-categ_Cn.c: Likewise.
24564         * tests/unictype/test-categ_L.c: Likewise.
24565         * tests/unictype/test-categ_Ll.c: Likewise.
24566         * tests/unictype/test-categ_Lm.c: Likewise.
24567         * tests/unictype/test-categ_Lo.c: Likewise.
24568         * tests/unictype/test-categ_Lu.c: Likewise.
24569         * tests/unictype/test-categ_M.c: Likewise.
24570         * tests/unictype/test-categ_Mc.c: Likewise.
24571         * tests/unictype/test-categ_Me.c: Likewise.
24572         * tests/unictype/test-categ_Mn.c: Likewise.
24573         * tests/unictype/test-categ_N.c: Likewise.
24574         * tests/unictype/test-categ_Nd.c: Likewise.
24575         * tests/unictype/test-categ_No.c: Likewise.
24576         * tests/unictype/test-categ_P.c: Likewise.
24577         * tests/unictype/test-categ_Po.c: Likewise.
24578         * tests/unictype/test-categ_S.c: Likewise.
24579         * tests/unictype/test-categ_Sc.c: Likewise.
24580         * tests/unictype/test-categ_Sk.c: Likewise.
24581         * tests/unictype/test-categ_Sm.c: Likewise.
24582         * tests/unictype/test-categ_So.c: Likewise.
24583         * tests/unictype/test-ctype_alnum.c: Likewise.
24584         * tests/unictype/test-ctype_alpha.c: Likewise.
24585         * tests/unictype/test-ctype_graph.c: Likewise.
24586         * tests/unictype/test-ctype_lower.c: Likewise.
24587         * tests/unictype/test-ctype_print.c: Likewise.
24588         * tests/unictype/test-ctype_punct.c: Likewise.
24589         * tests/unictype/test-ctype_upper.c: Likewise.
24590         * tests/unictype/test-decdigit.h: Likewise.
24591         * tests/unictype/test-digit.h: Likewise.
24592         * tests/unictype/test-numeric.h: Likewise.
24593         * tests/unictype/test-pr_alphabetic.c: Likewise.
24594         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24595         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24596         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24597         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24598         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24599         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24600         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24601         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24602         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24603         * tests/unictype/test-pr_cased.c: Likewise.
24604         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24605         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24606         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24607         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24608         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24609         * tests/unictype/test-pr_combining.c: Likewise.
24610         * tests/unictype/test-pr_composite.c: Likewise.
24611         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24612         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24613         * tests/unictype/test-pr_deprecated.c: Likewise.
24614         * tests/unictype/test-pr_format_control.c: Likewise.
24615         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24616         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24617         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24618         * tests/unictype/test-pr_id_continue.c: Likewise.
24619         * tests/unictype/test-pr_id_start.c: Likewise.
24620         * tests/unictype/test-pr_ideographic.c: Likewise.
24621         * tests/unictype/test-pr_lowercase.c: Likewise.
24622         * tests/unictype/test-pr_math.c: Likewise.
24623         * tests/unictype/test-pr_numeric.c: Likewise.
24624         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24625         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24626         * tests/unictype/test-pr_other_math.c: Likewise.
24627         * tests/unictype/test-pr_punctuation.c: Likewise.
24628         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24629         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24630         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24631         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24632         * tests/unictype/test-pr_uppercase.c: Likewise.
24633         * tests/unictype/test-pr_xid_continue.c: Likewise.
24634         * tests/unictype/test-pr_xid_start.c: Likewise.
24635         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24636         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24637         changes.
24638         * lib/unictype/categ_Cc.h: Likewise.
24639         * lib/unictype/categ_Cf.h: Likewise.
24640         * lib/unictype/categ_Co.h: Likewise.
24641         * lib/unictype/categ_Cs.h: Likewise.
24642         * lib/unictype/categ_Lt.h: Likewise.
24643         * lib/unictype/categ_Nl.h: Likewise.
24644         * lib/unictype/categ_Pc.h: Likewise.
24645         * lib/unictype/categ_Pd.h: Likewise.
24646         * lib/unictype/categ_Pe.h: Likewise.
24647         * lib/unictype/categ_Pf.h: Likewise.
24648         * lib/unictype/categ_Pi.h: Likewise.
24649         * lib/unictype/categ_Ps.h: Likewise.
24650         * lib/unictype/categ_Z.h: Likewise.
24651         * lib/unictype/categ_Zl.h: Likewise.
24652         * lib/unictype/categ_Zp.h: Likewise.
24653         * lib/unictype/categ_Zs.h: Likewise.
24654         * lib/unictype/ctype_blank.h: Likewise.
24655         * lib/unictype/ctype_cntrl.h: Likewise.
24656         * lib/unictype/ctype_digit.h: Likewise.
24657         * lib/unictype/ctype_space.h: Likewise.
24658         * lib/unictype/ctype_xdigit.h: Likewise.
24659         * lib/unictype/mirror.h: Likewise.
24660         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24661         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24662         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24663         * lib/unictype/pr_bidi_control.h: Likewise.
24664         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24665         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24666         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24667         * lib/unictype/pr_bidi_pdf.h: Likewise.
24668         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24669         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24670         * lib/unictype/pr_dash.h: Likewise.
24671         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24672         * lib/unictype/pr_diacritic.h: Likewise.
24673         * lib/unictype/pr_extender.h: Likewise.
24674         * lib/unictype/pr_hex_digit.h: Likewise.
24675         * lib/unictype/pr_hyphen.h: Likewise.
24676         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24677         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24678         * lib/unictype/pr_ignorable_control.h: Likewise.
24679         * lib/unictype/pr_iso_control.h: Likewise.
24680         * lib/unictype/pr_join_control.h: Likewise.
24681         * lib/unictype/pr_left_of_pair.h: Likewise.
24682         * lib/unictype/pr_line_separator.h: Likewise.
24683         * lib/unictype/pr_logical_order_exception.h: Likewise.
24684         * lib/unictype/pr_non_break.h: Likewise.
24685         * lib/unictype/pr_not_a_character.h: Likewise.
24686         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24687         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24688         * lib/unictype/pr_other_id_start.h: Likewise.
24689         * lib/unictype/pr_other_lowercase.h: Likewise.
24690         * lib/unictype/pr_other_uppercase.h: Likewise.
24691         * lib/unictype/pr_paired_punctuation.h: Likewise.
24692         * lib/unictype/pr_paragraph_separator.h: Likewise.
24693         * lib/unictype/pr_pattern_syntax.h: Likewise.
24694         * lib/unictype/pr_pattern_white_space.h: Likewise.
24695         * lib/unictype/pr_private_use.h: Likewise.
24696         * lib/unictype/pr_quotation_mark.h: Likewise.
24697         * lib/unictype/pr_radical.h: Likewise.
24698         * lib/unictype/pr_soft_dotted.h: Likewise.
24699         * lib/unictype/pr_space.h: Likewise.
24700         * lib/unictype/pr_titlecase.h: Likewise.
24701         * lib/unictype/pr_variation_selector.h: Likewise.
24702         * lib/unictype/pr_white_space.h: Likewise.
24703         * lib/unictype/pr_zero_width.h: Likewise.
24704         * lib/unictype/sy_c_ident.h: Likewise.
24705         * lib/unictype/sy_c_whitespace.h: Likewise.
24706         * lib/unictype/sy_java_whitespace.h: Likewise.
24707         * lib/uninorm/composition-table.gperf: Likewise.
24708         * lib/uninorm/decomposition-table1.h: Likewise.
24709         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24710         LB8.
24711         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24712         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24713         * modules/unictype/*: Bump version number of expected libunistring
24714         version.
24715
24716 2011-01-09  Bruno Haible  <bruno@clisp.org>
24717
24718         Update to Unicode 5.2.0.
24719         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24720         trailing whitespace removed.
24721
24722 2011-01-09  Bruno Haible  <bruno@clisp.org>
24723
24724         New Unicode character properties, from Unicode 5.2.0.
24725         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24726         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24727         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24728         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24729         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24730         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24731         uc_is_property_cased, uc_is_property_case_ignorable,
24732         uc_is_property_changes_when_lowercased,
24733         uc_is_property_changes_when_uppercased,
24734         uc_is_property_changes_when_titlecased,
24735         uc_is_property_changes_when_casefolded,
24736         uc_is_property_changes_when_casemapped): New declarations.
24737         * lib/unictype/pr_byname.gperf: Add the new properties.
24738         * modules/unictype/property-byname (Depends-on): Depend on the new
24739         properties modules.
24740         * modules/unictype/property-all (Depends-on): Likewise.
24741         * MODULES.html.sh (Unicode string functions): Add
24742         unictype/property-case-ignorable, unictype/property-cased,
24743         unictype/property-changes-when-casefolded,
24744         unictype/property-changes-when-casemapped,
24745         unictype/property-changes-when-lowercased,
24746         unictype/property-changes-when-titlecased,
24747         unictype/property-changes-when-uppercased.
24748
24749         New module 'unictype/property-changes-when-casemapped'.
24750         * modules/unictype/property-changes-when-casemapped: New file.
24751         * lib/unictype/pr_changes_when_casemapped.c: New file.
24752         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24753         generated by gen-uni-tables.
24754         * modules/unictype/property-changes-when-casemapped-tests: New file.
24755         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24756         automatically generated by gen-uni-tables.
24757
24758         New module 'unictype/property-changes-when-casefolded'.
24759         * modules/unictype/property-changes-when-casefolded: New file.
24760         * lib/unictype/pr_changes_when_casefolded.c: New file.
24761         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24762         generated by gen-uni-tables.
24763         * modules/unictype/property-changes-when-casefolded-tests: New file.
24764         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24765         automatically generated by gen-uni-tables.
24766
24767         New module 'unictype/property-changes-when-titlecased'.
24768         * modules/unictype/property-changes-when-titlecased: New file.
24769         * lib/unictype/pr_changes_when_titlecased.c: New file.
24770         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24771         generated by gen-uni-tables.
24772         * modules/unictype/property-changes-when-titlecased-tests: New file.
24773         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24774         automatically generated by gen-uni-tables.
24775
24776         New module 'unictype/property-changes-when-uppercased'.
24777         * modules/unictype/property-changes-when-uppercased: New file.
24778         * lib/unictype/pr_changes_when_uppercased.c: New file.
24779         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24780         generated by gen-uni-tables.
24781         * modules/unictype/property-changes-when-uppercased-tests: New file.
24782         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24783         automatically generated by gen-uni-tables.
24784
24785         New module 'unictype/property-changes-when-lowercased'.
24786         * modules/unictype/property-changes-when-lowercased: New file.
24787         * lib/unictype/pr_changes_when_lowercased.c: New file.
24788         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24789         generated by gen-uni-tables.
24790         * modules/unictype/property-changes-when-lowercased-tests: New file.
24791         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24792         automatically generated by gen-uni-tables.
24793
24794         New module 'unictype/property-case-ignorable'.
24795         * modules/unictype/property-case-ignorable: New file.
24796         * lib/unictype/pr_case_ignorable.c: New file.
24797         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24798         by gen-uni-tables.
24799         * modules/unictype/property-case-ignorable-tests: New file.
24800         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24801         generated by gen-uni-tables.
24802
24803         New module 'unictype/property-cased'.
24804         * modules/unictype/property-cased: New file.
24805         * lib/unictype/pr_cased.c: New file.
24806         * lib/unictype/pr_cased.h: New file, automatically generated by
24807         gen-uni-tables.
24808         * modules/unictype/property-cased-tests: New file.
24809         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24810         gen-uni-tables.
24811
24812 2011-01-09  Bruno Haible  <bruno@clisp.org>
24813
24814         Update to Unicode 5.2.0.
24815         * lib/gen-uni-tables.c (output_predicate, output_category,
24816         output_combclass, output_bidi_category, output_decimal_digit_test,
24817         output_decimal_digit, output_digit_test, output_digit,
24818         output_numeric_test, output_numeric, output_mirror, output_scripts,
24819         output_scripts_byname, output_blocks, output_ident_category): Fix
24820         comment header.
24821         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24822         get_wbp.
24823         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24824         items.
24825         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24826         Changes_When_Lowercased, Changes_When_Uppercased,
24827         Changes_When_Titlecased, Changes_When_Casefolded,
24828         Changes_When_Casemapped.
24829         (is_property_alphabetic, is_property_default_ignorable_code_point):
24830         Update for Unicode 5.2.0.
24831         (is_property_cased, is_property_case_ignorable,
24832         is_property_changes_when_lowercased,
24833         is_property_changes_when_uppercased,
24834         is_property_changes_when_titlecased,
24835         is_property_changes_when_casefolded,
24836         is_property_changes_when_casemapped): New functions.
24837         (output_properties): Output also the properties cased, case_ignorable,
24838         changes_when_lowercased, changes_when_uppercased,
24839         changes_when_titlecased, changes_when_casefolded,
24840         changes_when_casemapped.
24841         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24842         Unicode TR#11 revision 17 -> 19.
24843         (LBP_CP): New enumeration value.
24844         (LBP_*): Adjust values accordingly.
24845         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24846         TR#14 revision 22 -> 24.
24847         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24848         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24849         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24850         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24851         is_WBP_MIDLETTER.
24852         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24853         the code1 and code2 of each composition rule.
24854         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24855         * lib/unicase/ignorable.h: Likewise.
24856         * lib/unicase/tocasefold.h: Likewise.
24857         * lib/unicase/tolower.h: Likewise.
24858         * lib/unicase/totitle.h: Likewise.
24859         * lib/unicase/toupper.h: Likewise.
24860         * lib/unictype/bidi_of.h: Likewise.
24861         * lib/unictype/blocks.h: Likewise.
24862         * lib/unictype/categ_C.h: Likewise.
24863         * lib/unictype/categ_Cf.h: Likewise.
24864         * lib/unictype/categ_Cn.h: Likewise.
24865         * lib/unictype/categ_L.h: Likewise.
24866         * lib/unictype/categ_Ll.h: Likewise.
24867         * lib/unictype/categ_Lm.h: Likewise.
24868         * lib/unictype/categ_Lo.h: Likewise.
24869         * lib/unictype/categ_Lu.h: Likewise.
24870         * lib/unictype/categ_M.h: Likewise.
24871         * lib/unictype/categ_Mc.h: Likewise.
24872         * lib/unictype/categ_Mn.h: Likewise.
24873         * lib/unictype/categ_N.h: Likewise.
24874         * lib/unictype/categ_Nd.h: Likewise.
24875         * lib/unictype/categ_Nl.h: Likewise.
24876         * lib/unictype/categ_No.h: Likewise.
24877         * lib/unictype/categ_P.h: Likewise.
24878         * lib/unictype/categ_Pd.h: Likewise.
24879         * lib/unictype/categ_Po.h: Likewise.
24880         * lib/unictype/categ_S.h: Likewise.
24881         * lib/unictype/categ_Sc.h: Likewise.
24882         * lib/unictype/categ_So.h: Likewise.
24883         * lib/unictype/categ_of.h: Likewise.
24884         * lib/unictype/combining.h: Likewise.
24885         * lib/unictype/ctype_alnum.h: Likewise.
24886         * lib/unictype/ctype_alpha.h: Likewise.
24887         * lib/unictype/ctype_graph.h: Likewise.
24888         * lib/unictype/ctype_lower.h: Likewise.
24889         * lib/unictype/ctype_print.h: Likewise.
24890         * lib/unictype/ctype_punct.h: Likewise.
24891         * lib/unictype/ctype_upper.h: Likewise.
24892         * lib/unictype/decdigit.h: Likewise.
24893         * lib/unictype/digit.h: Likewise.
24894         * lib/unictype/numeric.h: Likewise.
24895         * lib/unictype/pr_alphabetic.h: Likewise.
24896         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24897         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24898         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24899         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24900         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24901         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24902         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24903         * lib/unictype/pr_combining.h: Likewise.
24904         * lib/unictype/pr_composite.h: Likewise.
24905         * lib/unictype/pr_currency_symbol.h: Likewise.
24906         * lib/unictype/pr_dash.h: Likewise.
24907         * lib/unictype/pr_decimal_digit.h: Likewise.
24908         * lib/unictype/pr_deprecated.h: Likewise.
24909         * lib/unictype/pr_diacritic.h: Likewise.
24910         * lib/unictype/pr_extender.h: Likewise.
24911         * lib/unictype/pr_grapheme_base.h: Likewise.
24912         * lib/unictype/pr_grapheme_extend.h: Likewise.
24913         * lib/unictype/pr_grapheme_link.h: Likewise.
24914         * lib/unictype/pr_id_continue.h: Likewise.
24915         * lib/unictype/pr_id_start.h: Likewise.
24916         * lib/unictype/pr_ideographic.h: Likewise.
24917         * lib/unictype/pr_ignorable_control.h: Likewise.
24918         * lib/unictype/pr_logical_order_exception.h: Likewise.
24919         * lib/unictype/pr_lowercase.h: Likewise.
24920         * lib/unictype/pr_numeric.h: Likewise.
24921         * lib/unictype/pr_other_alphabetic.h: Likewise.
24922         * lib/unictype/pr_punctuation.h: Likewise.
24923         * lib/unictype/pr_sentence_terminal.h: Likewise.
24924         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24925         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24926         * lib/unictype/pr_unified_ideograph.h: Likewise.
24927         * lib/unictype/pr_uppercase.h: Likewise.
24928         * lib/unictype/pr_xid_continue.h: Likewise.
24929         * lib/unictype/pr_xid_start.h: Likewise.
24930         * lib/unictype/pr_zero_width.h: Likewise.
24931         * lib/unictype/scripts.h: Likewise.
24932         * lib/unictype/scripts_byname.gperf: Likewise.
24933         * lib/unictype/sy_java_ident.h: Likewise.
24934         * lib/unigbrk/gbrkprop.h: Likewise.
24935         * lib/unilbrk/lbrkprop1.h: Likewise.
24936         * lib/unilbrk/lbrkprop2.h: Likewise.
24937         * lib/unilbrk/lbrktables.h: Likewise.
24938         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24939         LBP_CP. Implement rule LB30.
24940         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24941         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24942         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24943         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24944         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24945         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24946         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24947         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24948         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24949         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24950         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24951         bits instead of 16 bits in the code1 and code2 of each composition
24952         rule.
24953         (uc_composition): Update for Unicode 5.2.0.
24954         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24955         * lib/uninorm/decomposition-table2.h: Likewise.
24956         * lib/uniwbrk/wbrkprop.h: Likewise.
24957         * tests/unicase/test-cased.c: Likewise.
24958         * tests/unicase/test-ignorable.c: Likewise.
24959         * tests/unicase/test-uc_tolower.c: Likewise.
24960         * tests/unicase/test-uc_totitle.c: Likewise.
24961         * tests/unicase/test-uc_toupper.c: Likewise.
24962         * tests/unictype/test-categ_C.c: Likewise.
24963         * tests/unictype/test-categ_Cf.c: Likewise.
24964         * tests/unictype/test-categ_Cn.c: Likewise.
24965         * tests/unictype/test-categ_L.c: Likewise.
24966         * tests/unictype/test-categ_Ll.c: Likewise.
24967         * tests/unictype/test-categ_Lm.c: Likewise.
24968         * tests/unictype/test-categ_Lo.c: Likewise.
24969         * tests/unictype/test-categ_Lu.c: Likewise.
24970         * tests/unictype/test-categ_M.c: Likewise.
24971         * tests/unictype/test-categ_Mc.c: Likewise.
24972         * tests/unictype/test-categ_Mn.c: Likewise.
24973         * tests/unictype/test-categ_N.c: Likewise.
24974         * tests/unictype/test-categ_Nd.c: Likewise.
24975         * tests/unictype/test-categ_Nl.c: Likewise.
24976         * tests/unictype/test-categ_No.c: Likewise.
24977         * tests/unictype/test-categ_P.c: Likewise.
24978         * tests/unictype/test-categ_Pd.c: Likewise.
24979         * tests/unictype/test-categ_Po.c: Likewise.
24980         * tests/unictype/test-categ_S.c: Likewise.
24981         * tests/unictype/test-categ_Sc.c: Likewise.
24982         * tests/unictype/test-categ_So.c: Likewise.
24983         * tests/unictype/test-ctype_alnum.c: Likewise.
24984         * tests/unictype/test-ctype_alpha.c: Likewise.
24985         * tests/unictype/test-ctype_graph.c: Likewise.
24986         * tests/unictype/test-ctype_lower.c: Likewise.
24987         * tests/unictype/test-ctype_print.c: Likewise.
24988         * tests/unictype/test-ctype_punct.c: Likewise.
24989         * tests/unictype/test-ctype_upper.c: Likewise.
24990         * tests/unictype/test-decdigit.h: Likewise.
24991         * tests/unictype/test-digit.h: Likewise.
24992         * tests/unictype/test-numeric.h: Likewise.
24993         * tests/unictype/test-pr_alphabetic.c: Likewise.
24994         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24995         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24996         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24997         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24998         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24999         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25000         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25001         * tests/unictype/test-pr_combining.c: Likewise.
25002         * tests/unictype/test-pr_composite.c: Likewise.
25003         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25004         * tests/unictype/test-pr_dash.c: Likewise.
25005         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25006         * tests/unictype/test-pr_deprecated.c: Likewise.
25007         * tests/unictype/test-pr_diacritic.c: Likewise.
25008         * tests/unictype/test-pr_extender.c: Likewise.
25009         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25010         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25011         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25012         * tests/unictype/test-pr_id_continue.c: Likewise.
25013         * tests/unictype/test-pr_id_start.c: Likewise.
25014         * tests/unictype/test-pr_ideographic.c: Likewise.
25015         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25016         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25017         * tests/unictype/test-pr_lowercase.c: Likewise.
25018         * tests/unictype/test-pr_numeric.c: Likewise.
25019         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25020         * tests/unictype/test-pr_punctuation.c: Likewise.
25021         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25022         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25023         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25024         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25025         * tests/unictype/test-pr_uppercase.c: Likewise.
25026         * tests/unictype/test-pr_xid_continue.c: Likewise.
25027         * tests/unictype/test-pr_xid_start.c: Likewise.
25028         * tests/unictype/test-pr_zero_width.c: Likewise.
25029         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25030         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25031         changed behaviour: line breaking is now disallowed between a letter
25032         or '=' and '('.
25033         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25034         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25035         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25036         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25037         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25038         lib/uniwidth/width.c.
25039         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25040         without comments, but with the original copyright notice.
25041         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25042         changes.
25043         * lib/unictype/categ_Cc.h: Likewise.
25044         * lib/unictype/categ_Co.h: Likewise.
25045         * lib/unictype/categ_Cs.h: Likewise.
25046         * lib/unictype/categ_Lt.h: Likewise.
25047         * lib/unictype/categ_Me.h: Likewise.
25048         * lib/unictype/categ_Pc.h: Likewise.
25049         * lib/unictype/categ_Pe.h: Likewise.
25050         * lib/unictype/categ_Pf.h: Likewise.
25051         * lib/unictype/categ_Pi.h: Likewise.
25052         * lib/unictype/categ_Ps.h: Likewise.
25053         * lib/unictype/categ_Sk.h: Likewise.
25054         * lib/unictype/categ_Sm.h: Likewise.
25055         * lib/unictype/categ_Z.h: Likewise.
25056         * lib/unictype/categ_Zl.h: Likewise.
25057         * lib/unictype/categ_Zp.h: Likewise.
25058         * lib/unictype/categ_Zs.h: Likewise.
25059         * lib/unictype/ctype_blank.h: Likewise.
25060         * lib/unictype/ctype_cntrl.h: Likewise.
25061         * lib/unictype/ctype_digit.h: Likewise.
25062         * lib/unictype/ctype_space.h: Likewise.
25063         * lib/unictype/ctype_xdigit.h: Likewise.
25064         * lib/unictype/mirror.h: Likewise.
25065         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25066         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25067         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25068         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25069         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25070         * lib/unictype/pr_bidi_control.h: Likewise.
25071         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25072         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25073         * lib/unictype/pr_bidi_pdf.h: Likewise.
25074         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25075         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25076         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25077         * lib/unictype/pr_format_control.h: Likewise.
25078         * lib/unictype/pr_hex_digit.h: Likewise.
25079         * lib/unictype/pr_hyphen.h: Likewise.
25080         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25081         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25082         * lib/unictype/pr_iso_control.h: Likewise.
25083         * lib/unictype/pr_join_control.h: Likewise.
25084         * lib/unictype/pr_left_of_pair.h: Likewise.
25085         * lib/unictype/pr_line_separator.h: Likewise.
25086         * lib/unictype/pr_math.h: Likewise.
25087         * lib/unictype/pr_non_break.h: Likewise.
25088         * lib/unictype/pr_not_a_character.h: Likewise.
25089         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25090         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25091         * lib/unictype/pr_other_id_continue.h: Likewise.
25092         * lib/unictype/pr_other_id_start.h: Likewise.
25093         * lib/unictype/pr_other_lowercase.h: Likewise.
25094         * lib/unictype/pr_other_math.h: Likewise.
25095         * lib/unictype/pr_other_uppercase.h: Likewise.
25096         * lib/unictype/pr_paired_punctuation.h: Likewise.
25097         * lib/unictype/pr_paragraph_separator.h: Likewise.
25098         * lib/unictype/pr_pattern_syntax.h: Likewise.
25099         * lib/unictype/pr_pattern_white_space.h: Likewise.
25100         * lib/unictype/pr_private_use.h: Likewise.
25101         * lib/unictype/pr_quotation_mark.h: Likewise.
25102         * lib/unictype/pr_radical.h: Likewise.
25103         * lib/unictype/pr_soft_dotted.h: Likewise.
25104         * lib/unictype/pr_space.h: Likewise.
25105         * lib/unictype/pr_titlecase.h: Likewise.
25106         * lib/unictype/pr_variation_selector.h: Likewise.
25107         * lib/unictype/pr_white_space.h: Likewise.
25108         * lib/unictype/sy_c_ident.h: Likewise.
25109         * lib/unictype/sy_c_whitespace.h: Likewise.
25110         * lib/unictype/sy_java_whitespace.h: Likewise.
25111         * modules/uni*/*: Bump version number of expected libunistring version.
25112         Reported by Simon Josefsson.
25113
25114 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25115
25116         useless-if-before-free: fix typo in --help and make the internal,
25117         automatic version date update process work once again.
25118         --help output contained a NUL character instead of the
25119         backslash-zero that was intended.  Also, the "must lie within
25120         the first 8 lines" line is on line 9, and hence not getting
25121         automatically updated.
25122         * build-aux/useless-if-before-free: Fix the former by adding a
25123         backslash, and the latter by condensing the three lines of what-it-does
25124         to a single line, leaving one line of slack for the future.
25125
25126 2011-01-09  Bruno Haible  <bruno@clisp.org>
25127
25128         uniwidth/width: Fix width of U+1D173..U+1D17A.
25129         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25130         symbolic_width, output_width_property_test): New functions.
25131         (main): Invoke output_nonspacing_property, output_width_property_test.
25132         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25133         U+1D173..U+1D17A.
25134         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25135         1.
25136         * modules/uniwidth/*: Bump version number of expected libunistring
25137         version.
25138         * modules/unilbrk/*: Likewise.
25139
25140 2011-01-08  Bruno Haible  <bruno@clisp.org>
25141
25142         uninorm tests: Preserve copyright of Unicode data file.
25143         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25144         Mention modifications.
25145
25146 2011-01-08  Bruno Haible  <bruno@clisp.org>
25147
25148         gen-uni-tables: Prepare for Unicode 5.2.0.
25149         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25150         (debug_output_lbp, output_lbp): Update.
25151
25152 2011-01-08  Bruno Haible  <bruno@clisp.org>
25153
25154         unilbrk: Clarify gen-uni-tables.c code.
25155         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25156         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25157         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25158
25159 2011-01-07  Bruno Haible  <bruno@clisp.org>
25160
25161         strtod: Restore errno when successfully parsing Infinity or NaN.
25162         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25163         restore the original errno.
25164
25165 2011-01-07  Bruno Haible  <bruno@clisp.org>
25166
25167         remove test: Avoid failure on HP-UX 11.
25168         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25169
25170 2011-01-07  Bruno Haible  <bruno@clisp.org>
25171
25172         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25173         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25174         error code.
25175
25176 2011-01-07  Pádraig Brady <P@draigBrady.com>
25177
25178         ignore-value: fixup comments, and add Eric Blake
25179         as an author since he rewrote the macros.
25180         * lib/ignore-value.h (ignore_value):  State that
25181         we now support aggregates.  Also specify exactly
25182         when the GCC warn_unused_result feature was added.
25183
25184 2011-01-06  Eric Blake  <eblake@redhat.com>
25185
25186         ignore-value: support aggregate types
25187         * lib/ignore-value.h (ignore_value): Provide separate gcc
25188         definition.
25189         * modules/ignore-value-tests: New test module.
25190         * tests/test-ignore-value.c: New test.
25191
25192         maint.mk: improve sc_prohibit_strcmp regex
25193         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25194         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25195         definition of STRNEQ.
25196
25197         signal: work around Haiku issue with SIGBUS
25198         * lib/siglist.h: Add comment.
25199         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25200         strsignal's favoring of SIGSEGV.
25201         * tests/test-signal.c (main): Avoid test failure.
25202         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25203         Reported by Scott McCreary.
25204
25205         maint.mk: add pre-release check to ensure submodule commits are public
25206         * top/maint.mk (public-submodule-commit): New rule.
25207         (submodule-checks): New variable.
25208         (alpha beta stable): Depend on the variable.
25209
25210 2011-01-05  Pádraig Brady <P@draigBrady.com>
25211         and Jim Meyering  <meyering@redhat.com>
25212
25213         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25214         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25215         (ATTRIBUTE_DEPRECATED): Define.
25216         (_ignore_case): New function.
25217         (ignore_value): New macro, to replace the old function.
25218         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25219         * modules/ignore-value (Depends-on): Add stdint.
25220
25221 2011-01-04  Eric Blake  <eblake@redhat.com>
25222
25223         doc: regenerate INSTALL
25224         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25225         @firstparagraphindent support, now that autoconf dropped it.
25226         (INSTALL_PRELUDE): Reinstate old macro.
25227         * doc/install.texi: Resync from autoconf.
25228         * doc/INSTALL: Reflect recent autoconf update.
25229         * doc/INSTALL.ISO: Likewise.
25230         * doc/INSTALL.UTF-8: Likewise.
25231         Reported by Karl Berry.
25232
25233 2011-01-04  Bruce Korb  <address@hidden>
25234
25235         git-version-gen: avoid a sub-shell
25236         * build-aux/git-version-gen: Redirect stderr in `...` via
25237         "exec 2>...", rather than via an added sub-shell.
25238
25239 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25240
25241         git-version-gen: use (...) rather than sh -c '...'
25242         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25243         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25244
25245 2011-01-03  Jim Meyering  <meyering@redhat.com>
25246
25247         git-version-gen: convert leading TABs to spaces
25248         * build-aux/git-version-gen: Expand leading TABs.
25249
25250         git-version-gen: handle failed "git rev-list"
25251         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25252         from git and proceeding as if it had succeeded but printed no SHA1
25253         checksums, suppress the diagnostic and handle the failure.
25254         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25255
25256         git-version-gen: include command name in one more diagnostic
25257         * build-aux/git-version-gen: When the required .tarball-version file
25258         was missing or unreadable, you might see the diagnostic from "cat",
25259         but no trace of the name of the invoking script.  Now, you still see
25260         the diagnostic from cat, but also get one from "git-version-gen: ".
25261         Inspired by a patch from Bruce Korb.
25262
25263         update-copyright: adjust test to match changed code
25264         * tests/test-update-copyright.sh: Change test's expected output
25265         to match new actual output.
25266
25267 2011-01-02  Bruno Haible  <bruno@clisp.org>
25268
25269         getlogin_r: Avoid test failure on HP-UX 11.
25270         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25271         ERANGE when the second argument is zero.
25272         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25273         portability problem.
25274
25275 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25276
25277         * build-aux/update-copyright: doc Simon's changes
25278
25279 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25280
25281         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25282         environment variable.
25283
25284 2011-01-02  Bruno Haible  <bruno@clisp.org>
25285
25286         unigbrk: Avoid gcc warnings.
25287         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25288         unused variable.
25289         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25290         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25291         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25292         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25293         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25294         Change type of first argument to 'const char *'.
25295         (main): Remove unused variable.
25296         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25297         type of first argument to 'const char *'.
25298         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25299         Likewise.
25300         (main): Change type of variable 's'.
25301         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25302         to 'int'.
25303
25304 2011-01-02  Bruno Haible  <bruno@clisp.org>
25305
25306         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25307         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25308         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25309         bug.
25310         * lib/pwrite.c: Undo 2010-12-31 patch.
25311         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25312
25313 2011-01-02  Bruno Haible  <bruno@clisp.org>
25314
25315         pread: Fix test whether it works.
25316         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25317
25318 2011-01-02  Bruno Haible  <bruno@clisp.org>
25319
25320         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25321         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25322         ends in "6". Don't require a specific month name. Try also the locale
25323         names found on HP-UX 11 and Solaris 7.
25324
25325 2011-01-02  Bruno Haible  <bruno@clisp.org>
25326
25327         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25328         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25329         C linkage.
25330         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25331
25332 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25333
25334         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25335         for consistency, since the "cluster" term is not used elsewhere.
25336         * lib/unigbrk.in.h: Update name.
25337         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25338         * lib/unigbrk/u16-grapheme-next.c: Update name.
25339         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25340         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25341         * lib/unigbrk/u32-grapheme-next.c: Update name.
25342         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25343         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25344         * lib/unigbrk/u8-grapheme-next.c: Update name.
25345         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25346         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25347         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25348         Suggested by Bruno Haible.
25349
25350 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25351
25352         Remove module 'u8-grapheme-len' as too redundant with
25353         'u8-grapheme-next'.
25354         * modules/unigbrk/u8-grapheme-len: Delete file.
25355         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25356         * lib/unigbrk.in.h: Remove prototype for deleted function.
25357         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25358         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25359
25360         Remove module 'u16-grapheme-len' as too redundant with
25361         'u16-grapheme-next'.
25362         * modules/unigbrk/u16-grapheme-len: Delete file.
25363         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25364         * lib/unigbrk.in.h: Remove prototype for deleted function.
25365         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25366         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25367
25368         Remove module 'u32-grapheme-len' as too redundant with
25369         'u32-grapheme-next'.
25370         * modules/unigbrk/u32-grapheme-len: Delete file.
25371         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25372         * lib/unigbrk.in.h: Remove prototype for deleted function.
25373         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25374         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25375
25376         Suggested by Bruno Haible.
25377
25378 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25379
25380         * unigbrk.in.h: Fix typo: "ben" => "been".
25381         Reported by Bruno Haible.
25382
25383 2011-01-01  Jim Meyering  <meyering@redhat.com>
25384
25385         maint: update almost all copyright ranges to include 2011
25386         Run the new "make update-copyright" rule.
25387
25388 2011-01-01  Jim Meyering  <meyering@redhat.com>
25389
25390         maint: update-copyright: exempt doc/INSTALL*
25391         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25392         since they are generated.  Suggested by Bruno Haible.
25393
25394 2011-01-01  Jim Meyering  <meyering@redhat.com>
25395
25396         maint: refine the update-copyright rule
25397         * Makefile (update-copyright): Also exclude any file that includes
25398         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25399         code that merely generates the comment.
25400
25401 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25402
25403         New module 'u8-grapheme-len'.
25404         * modules/unigbrk/u8-grapheme-len: New file.
25405         * modules/unigbrk/u8-grapheme-len-tests: New file.
25406         * lib/unigbrk.in.h: Add prototype for new function.
25407         * lib/unigbrk/u8-grapheme-len.c: New file.
25408         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25409
25410         New module 'u16-grapheme-len'.
25411         * modules/unigbrk/u16-grapheme-len: New file.
25412         * modules/unigbrk/u16-grapheme-len-tests: New file.
25413         * lib/unigbrk.in.h: Add prototype for new function.
25414         * lib/unigbrk/u16-grapheme-len.c: New file.
25415         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25416
25417         New module 'u32-grapheme-len'.
25418         * modules/unigbrk/u32-grapheme-len: New file.
25419         * modules/unigbrk/u32-grapheme-len-tests: New file.
25420         * lib/unigbrk.in.h: Add prototype for new function.
25421         * lib/unigbrk/u32-grapheme-len.c: New file.
25422         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25423
25424         New module 'u8-grapheme-next'.
25425         * modules/unigbrk/u8-grapheme-next: New file.
25426         * modules/unigbrk/u8-grapheme-next-tests: New file.
25427         * lib/unigbrk.in.h: Add prototype for new function.
25428         * lib/unigbrk/u8-grapheme-next.c: New file.
25429         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25430
25431         New module 'u16-grapheme-next'.
25432         * modules/unigbrk/u16-grapheme-next: New file.
25433         * modules/unigbrk/u16-grapheme-next-tests: New file.
25434         * lib/unigbrk.in.h: Add prototype for new function.
25435         * lib/unigbrk/u16-grapheme-next.c: New file.
25436         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25437
25438         New module 'u32-grapheme-next'.
25439         * modules/unigbrk/u32-grapheme-next: New file.
25440         * modules/unigbrk/u32-grapheme-next-tests: New file.
25441         * lib/unigbrk.in.h: Add prototype for new function.
25442         * lib/unigbrk/u32-grapheme-next.c: New file.
25443         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25444
25445         New module 'u8-grapheme-prev'.
25446         * modules/unigbrk/u8-grapheme-prev: New file.
25447         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25448         * lib/unigbrk.in.h: Add prototype for new function.
25449         * lib/unigbrk/u8-grapheme-prev.c: New file.
25450         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25451
25452         New module 'u16-grapheme-prev'.
25453         * modules/unigbrk/u16-grapheme-prev: New file.
25454         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25455         * lib/unigbrk.in.h: Add prototype for new function.
25456         * lib/unigbrk/u16-grapheme-prev.c: New file.
25457         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25458
25459         New module 'u32-grapheme-prev'.
25460         * modules/unigbrk/u32-grapheme-prev: New file.
25461         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25462         * lib/unigbrk.in.h: Add prototype for new function.
25463         * lib/unigbrk/u32-grapheme-prev.c: New file.
25464         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25465
25466         New module 'u8-grapheme-breaks'.
25467         * modules/unigbrk/u8-grapheme-breaks: New file.
25468         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25469         * lib/unigbrk.in.h: Add prototype for new function.
25470         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25471         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25472
25473         New module 'u16-grapheme-breaks'.
25474         * modules/unigbrk/u16-grapheme-breaks: New file.
25475         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25476         * lib/unigbrk.in.h: Add prototype for new function.
25477         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25478         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25479
25480         New module 'u32-grapheme-breaks'.
25481         * modules/unigbrk/u32-grapheme-breaks: New file.
25482         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25483         * lib/unigbrk.in.h: Add prototype for new function.
25484         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25485         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25486
25487         New module 'ulc-grapheme-breaks'.
25488         * modules/unigbrk/ulc-grapheme-breaks: New file.
25489         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25490         * m4/locale-ar.m4: New file.
25491         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25492         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25493         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25494
25495 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25496
25497         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25498         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25499         modified how this file was generated before I initially submitted
25500         the module, but failed to regenerate it.  This meant that several
25501         of the level2 entries were wrong.
25502         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25503         Remove the division-by-2 that is folded into the table now that
25504         gbrkprop.h has been regenerated properly.  Now -1 entries are
25505         handled correctly.
25506
25507         New module 'unigbrk/uc-gbrk-prop-tests'.
25508         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25509         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25510         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25511         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25512
25513 2011-01-01  Bruno Haible  <bruno@clisp.org>
25514
25515         Avoid use of hexadecimal escapes.
25516         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25517         instead of hexadecimal escapes.
25518
25519 2011-01-01  Jim Meyering  <meyering@redhat.com>
25520
25521         maint: new rule to update copyright year ranges
25522         * Makefile (update-copyright): New rule.
25523
25524         maint: indent with TABs in Makefile
25525         * Makefile: Expand leading sequences of spaces to TABs
25526
25527         version-etc: update the copyright year it reports
25528         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25529
25530 2010-12-31  Bruno Haible  <bruno@clisp.org>
25531
25532         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25533         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25534         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25535         zero.
25536
25537 2010-12-31  Bruno Haible  <bruno@clisp.org>
25538
25539         pwrite: Work around HP-UX 11.11 bug.
25540         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25541         works and set REPLACE_PWRITE if not.
25542         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25543         function.
25544         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25545
25546 2010-12-31  Bruno Haible  <bruno@clisp.org>
25547
25548         pread: Work around HP-UX 11 bugs.
25549         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25550         and set REPLACE_PREAD if not.
25551         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25552
25553 2010-12-31  Eric Blake  <eblake@redhat.com>
25554
25555         nl_langinfo: fix YESEXPR on Irix 6.5
25556         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25557         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25558         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25559         it.
25560
25561 2010-12-31  Bruno Haible  <bruno@clisp.org>
25562
25563         iconv: Document HP-UX 11 bug.
25564         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25565
25566 2010-12-31  Bruno Haible  <bruno@clisp.org>
25567
25568         ldexpl: Fix link error on HP-UX 11.
25569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25570         LDEXPL_LIBM, using $ISNANL_LIBM.
25571
25572 2010-12-31  Eric Blake  <eblake@redhat.com>
25573
25574         ftello: avoid compilation failure with SunStudio c89
25575         * lib/ftello.c (ftello): Use lseek, not llseek.
25576
25577         tests: avoid failing coreutils tests on cygwin
25578         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25579         (create_exe_shims_): Return 0 when skipping.
25580
25581 2010-12-31  Bruno Haible  <bruno@clisp.org>
25582
25583         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25584         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25585
25586 2010-12-31  Bruno Haible  <bruno@clisp.org>
25587
25588         waitpid: Fix link error in C++ mode.
25589         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25590
25591 2010-12-31  Bruno Haible  <bruno@clisp.org>
25592
25593         isnan: Use GCC built-ins when possible.
25594         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25595         __builtin_isnan.
25596         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25597         (isnan): Define using GCC built-ins for GCC >= 4.0.
25598
25599 2010-12-31  Bruno Haible  <bruno@clisp.org>
25600
25601         isnand: Fix mistake.
25602         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25603         __builtin_isnand.
25604
25605 2010-12-31  Bruno Haible  <bruno@clisp.org>
25606
25607         open: Avoid C++ error on HP-UX 11.
25608         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25609
25610 2010-12-31  Bruno Haible  <bruno@clisp.org>
25611
25612         time_r: Add missing declarations on HP-UX 11.
25613         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25614         instead of HAVE_LOCALTIME_R.
25615         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25616         HAVE_LOCALTIME_R always.
25617         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25618         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25619         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25620         HAVE_LOCALTIME_R.
25621         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25622         * doc/posix-functions/localtime_r.texi: Likewise.
25623
25624 2010-12-29  Eric Blake  <eblake@redhat.com>
25625
25626         mountlist: tweak previous commit
25627         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25628         Reported by Paul Eggert.
25629
25630         mountlist: fix local drive detection on cygwin
25631         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25632         that works for cygwin.
25633
25634 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25635
25636         ftoastr, snprintf: ftoastr + snprintf module
25637         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25638         since the snprintf module now should be good enough here.
25639         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25640         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25641         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25642         GNULIB_SNPRINTF only for the test directory, and the latter
25643         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25644         seems to suffice by itself.
25645
25646 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25647
25648         alloca: one step towards thread-safety
25649         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25650         need for a static variable.  All callers changed.  This does not
25651         make the alloca replacement thread-safe, but it's one step.
25652
25653         tests: minor indenting change
25654         * tests/init.sh: Sync from coreutils housekeeping patch
25655         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25656         to keep lines within 80 columns.
25657
25658 2010-12-28  Jim Meyering  <meyering@redhat.com>
25659
25660         regex: don't infloop on persistent failing calloc
25661         * lib/regexec.c (build_trtable): Return failure indication upon
25662         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25663         In glibc, this was fixed for version 2.13:
25664         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25665
25666 2010-12-28  Bruno Haible  <bruno@clisp.org>
25667             Paul Eggert <eggert@cs.ucla.edu>
25668
25669         linkat: Make implementation robust against system behaviour variations.
25670         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25671         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25672         way, and to -2 if it needs a generic runtime test.
25673         * lib/linkat.c (solaris_optimized_link_immediate,
25674         solaris_optimized_link_follow): New functions.
25675         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25676         (check_same_link): Use it.
25677
25678 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25679
25680         New module 'unigbrk/base'.
25681         * modules/unigbrk/base: New file.
25682         * lib/unigbrk.in.h: New file.
25683
25684         New module 'unigbrk/uc-gbrk-prop'.
25685         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25686         * modules/unigbrk/uc-gbrk-prop: New file.
25687         * lib/unigbrk/gbrkprop.h: New file.
25688         * lib/unigbrk/uc-gbrk-prop.c: New file.
25689
25690         New module 'unigbrk/uc-is-grapheme-break'.
25691         * modules/unigbrk/uc-is-grapheme-break: New file.
25692         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25693         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25694         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25695         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25696         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25697
25698         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25699
25700 2010-12-27  Bruno Haible  <bruno@clisp.org>
25701
25702         linkat test: Avoid failure on Solaris 11 2010-11.
25703         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25704
25705 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25706
25707         utimens: work around glibc rounding bug on more platforms
25708         * lib/utimens.c (fdutimens): Work around rounding bug even if
25709         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25710         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25711
25712 2010-12-27  Bruno Haible  <bruno@clisp.org>
25713
25714         select tests: Improve comments.
25715         * tests/test-select.c (do_select): Add comments.
25716
25717 2010-12-27  Bruno Haible  <bruno@clisp.org>
25718
25719         select tests: Safer way of handling timeout.
25720         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25721         at every invocation.
25722
25723 2010-12-27  Bruno Haible  <bruno@clisp.org>
25724
25725         select tests: Use 'bool' where appropriate.
25726         * tests/test-select.c (connect_to_socket): Change argument type to
25727         'bool'.
25728
25729 2010-12-27  Bruno Haible  <bruno@clisp.org>
25730
25731         select tests: Use existing modules.
25732         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25733         (configure.ac): Don't test for unistd.h.
25734         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25735         declared in <unistd.h>.
25736
25737 2010-12-27  Bruno Haible  <bruno@clisp.org>
25738
25739         mbrtowc: Work around a Solaris 7 bug.
25740         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25741         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25742         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25743         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25744         MBRTOWC_NULL_ARG1_BUG.
25745         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25746         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25747         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25748         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25749
25750 2010-12-27  Jim Meyering  <meyering@redhat.com>
25751
25752         read-file.c: tweak syntax
25753         * lib/read-file.c (fread_file): Remove space after "*" in function
25754         definitions.
25755
25756 2010-12-27  Bruno Haible  <bruno@clisp.org>
25757
25758         times test: Avoid gcc warnings on OSF/1.
25759         * tests/test-times.c (main): Cast printf arguments from clock_t to
25760         'long int'.
25761
25762 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25763
25764         utimens: work around glibc rounding bug on older Linux kernels
25765         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25766         on Linux with a glibc whose utimes might not work, then work
25767         around a longstanding glibc bug involving rounding rather than
25768         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25769         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25770
25771 2010-12-26  Bruno Haible  <bruno@clisp.org>
25772
25773         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25774         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25775         _GL_CXXALIAS_SYS.
25776         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25777
25778 2010-12-26  Bruno Haible  <bruno@clisp.org>
25779
25780         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25781         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25782         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25783         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25784         looking for the declaration.
25785         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25786         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25787         problem.
25788         * doc/posix-functions/inet_pton.texi: Likewise.
25789
25790 2010-12-26  Bruno Haible  <bruno@clisp.org>
25791
25792         arpa_inet: Use the common idioms with C++ support.
25793         * lib/arpa_inet.in.h: Include c++defs.h.
25794         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25795         support.
25796         * modules/arpa_inet (Depends-on): Add c++defs.
25797         (Makefile.am): Substitute the contents of c++defs.h.
25798         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25799         * modules/arpa_inet-c++-tests: New file.
25800         * tests/test-arpa_inet-c++.cc: New file.
25801
25802 2010-12-25  Bruno Haible  <bruno@clisp.org>
25803
25804         Fix more C++ link errors on Solaris 8.
25805         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25806         $(LIB_EACCESS).
25807         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25808         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25809         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25810         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25811         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25812
25813 2010-12-25  Bruno Haible  <bruno@clisp.org>
25814
25815         printf-posix: Fix link error when a non-GCC compiler is used.
25816         * lib/stdio.in.h (printf): When not using GCC, override printf
25817         correctly.
25818         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25819
25820 2010-12-25  Bruno Haible  <bruno@clisp.org>
25821
25822         strerror_r-posix: Update doc.
25823         * doc/posix-functions/strerror_r.texi: Update doc about the return
25824         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25825
25826 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25827
25828         utimens: simplify the logic of the previous change
25829         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25830         This should not affect whether the test succeeds or fails.
25831
25832         utimens: configure better on hosts with NFS clock skew
25833         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25834         uses the clock of the local host.  It might use the clock of the
25835         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25837
25838 2010-12-25  Bruno Haible  <bruno@clisp.org>
25839
25840         ptsname test: Avoid failure on Solaris.
25841         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25842         open a pseudo-terminal; don't use BSD-style ptys.
25843         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25844
25845 2010-12-25  Bruno Haible  <bruno@clisp.org>
25846
25847         ptsname: Avoid ERANGE failure on some systems.
25848         * lib/ptsname.c (buffer): Increase size.
25849
25850 2010-12-25  Bruno Haible  <bruno@clisp.org>
25851
25852         rename, renameat: Avoid test failures at NFS mounted locations.
25853         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25854         so that subsequent mkdir calls succeed.
25855
25856 2010-12-25  Bruno Haible  <bruno@clisp.org>
25857
25858         iswblank: Fix C++ link error on Solaris 8.
25859         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25860         _GL_FUNCDECL_SYS.
25861
25862 2010-12-25  Bruno Haible  <bruno@clisp.org>
25863
25864         unistd: Fix C++ link error on Solaris 8.
25865         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25866
25867 2010-12-25  Bruno Haible  <bruno@clisp.org>
25868
25869         readlink doc: Mention an old glibc bug.
25870         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25871
25872 2010-12-25  Bruno Haible  <bruno@clisp.org>
25873
25874         fcntl-h: Fix for use of C++ on glibc systems.
25875         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25876         also on glibc systems in C++ mode.
25877         Reported by Gary V. Vaughan <gary@gnu.org>.
25878
25879 2010-12-25  Bruno Haible  <bruno@clisp.org>
25880
25881         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25882         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25883
25884 2010-12-25  Bruno Haible  <bruno@clisp.org>
25885
25886         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25887         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25888         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25889         test whether truncl works according to ISO C 99 with IEC 60559.
25890         * m4/truncl-ieee.m4: New file.
25891         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25892         m4/signbit.m4.
25893         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25894
25895 2010-12-25  Bruno Haible  <bruno@clisp.org>
25896
25897         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25898         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25899         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25900         test whether ceill works according to ISO C 99 with IEC 60559.
25901         * m4/ceill-ieee.m4: New file.
25902         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25903         m4/signbit.m4.
25904         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25905
25906 2010-12-25  Bruno Haible  <bruno@clisp.org>
25907
25908         Ensure all prerequisites of <wchar.h> are included.
25909         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25910         before <wchar.h>.
25911         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25912         gl_MBRLEN_NUL_RETVAL): Likewise.
25913         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25914         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25915         AC_FUNC_MBRTOWC): Likewise.
25916         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25917         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25918         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25919         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25920         Likewise.
25921         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25922         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25923         (gl_WCHAR_H): Improve comments.
25924         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25925
25926 2010-12-25  Bruno Haible  <bruno@clisp.org>
25927
25928         strtok_r: Fix C syntax error in autoconf macro.
25929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25930         characters in test program.
25931
25932 2010-12-24  Bruno Haible  <bruno@clisp.org>
25933
25934         ceil, trunc, round: Fix gcc warnings.
25935         * lib/ceil.c (MIN): Undefine before redefining.
25936         * lib/trunc.c (MIN): Likewise.
25937         * lib/round.c (MIN): Likewise.
25938         Include <math.h> first.
25939
25940 2010-12-24  Bruno Haible  <bruno@clisp.org>
25941
25942         select tests: Avoid failures on OSF/1 5.1.
25943         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25944         failure of closing the last socket; it may fail with ECONNRESET.
25945
25946 2010-12-24  Eric Blake  <eblake@redhat.com>
25947
25948         stdint: avoid HP-UX 10.20 preprocessor bug
25949         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25950         than #if.
25951         * tests/test-floor2.c (main): Likewise.
25952         Reported by Peter O'Gorman.
25953
25954         pipe: make obsoletion transition easier
25955         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25956         * modules/pipe (Files): Include revived file.
25957         (Include): Drop reference, to mirror getdate's behavior.
25958
25959 2010-12-24  Bruno Haible  <bruno@clisp.org>
25960
25961         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25962         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25963         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25964         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25965
25966 2010-12-24  Bruno Haible  <bruno@clisp.org>
25967
25968         gethostname: Ensure declaration on NonStop Kernel.
25969         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25970         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25971
25972 2010-12-24  Bruno Haible  <bruno@clisp.org>
25973
25974         sys_select: Ensure all necessary types on NonStop Kernel.
25975         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25976         include <sys/time.h>.
25977         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25978         NonStop Kernel.
25979         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25980
25981 2010-12-24  Bruno Haible  <bruno@clisp.org>
25982
25983         sys_select: Remove unneeded include.
25984         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25985         have <sys/select.h>.
25986
25987 2010-12-24  Bruno Haible  <bruno@clisp.org>
25988
25989         gethostname: Provide a fallback for HOST_NAME_MAX.
25990         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25991         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25992         instead.
25993         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25994
25995 2010-12-24  Bruno Haible  <bruno@clisp.org>
25996
25997         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25998         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25999         (SA_RESTART): Likewise.
26000         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26001
26002 2010-12-24  Bruno Haible  <bruno@clisp.org>
26003
26004         signal: Define NSIG.
26005         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26006         * tests/test-signal.c (nsig): New variable.
26007         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26008
26009 2010-12-24  Bruno Haible  <bruno@clisp.org>
26010
26011         rename, renameat: Avoid test failures on OSF/1 5.1.
26012         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26013         alternative error codes.
26014         * tests/test-renameat.c (main): Likewise.
26015
26016 2010-12-24  Bruno Haible  <bruno@clisp.org>
26017
26018         *printf: Detect large precisions bug on Solaris 10/SPARC.
26019         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26020         by Paul Eggert.
26021         * tests/test-snprintf-posix.h (test_function): Add this test code here
26022         too.
26023         * tests/test-sprintf-posix.h (test_function): Likewise.
26024         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26025         * tests/test-vasprintf-posix.c (test_function): Likewise.
26026         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26027         around by gnulib.
26028         * doc/posix-functions/printf.texi: Likewise.
26029         * doc/posix-functions/snprintf.texi: Likewise.
26030         * doc/posix-functions/sprintf.texi: Likewise.
26031         * doc/posix-functions/vfprintf.texi: Likewise.
26032         * doc/posix-functions/vprintf.texi: Likewise.
26033         * doc/posix-functions/vsnprintf.texi: Likewise.
26034         * doc/posix-functions/vsprintf.texi: Likewise.
26035         * doc/posix-functions/dprintf.texi: Undo last commit.
26036         * doc/posix-functions/vdprintf.texi: Likewise.
26037
26038 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26039
26040         tests: port test-fdutimensat.c to Solaris 8
26041         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26042         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26043         On Solaris 8, it fails with errno == ENOSYS, because there is no
26044         futimens (so it can't use the fd), and there is no lutimens (so it
26045         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26046
26047         vsnprintf: make more consistent with snprintf; doc fixes
26048
26049         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26050         the byte count return problem was promoted from the snprintf-posix
26051         to the snprintf module.
26052         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26053         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26054         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26055         * tests/test-snprintf.c (main): Check the byte count returned.
26056         * tests/test-vsnprintf.c (main): Likewise.
26057
26058 2010-12-23  Eric Blake  <eblake@redhat.com>
26059
26060         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26061         * modules/sigpipe (License): Relax license.
26062
26063 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26064
26065         doc: document Solaris printf bug with large float precisions
26066         * doc/posix-functions/dprintf.texi (dprintf):
26067         * doc/posix-functions/fprintf.texi (fprintf):
26068         * doc/posix-functions/printf.texi (printf):
26069         * doc/posix-functions/snprintf.texi (snprintf):
26070         * doc/posix-functions/sprintf.texi (sprintf):
26071         * doc/posix-functions/vdprintf.texi (vdprintf):
26072         * doc/posix-functions/vfprintf.texi (vfprintf):
26073         * doc/posix-functions/vprintf.texi (vprintf):
26074         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26075         * doc/posix-functions/vsprintf.texi (vsprintf):
26076         Mention that these functions mishandle large floating point
26077         precisions on Solaris 10.  The same bug is also present in Solaris
26078         8, and I assume earlier.  This causes "cd gnulib-tests; make
26079         check" to fail on Solaris 8 (and I assume, later) when building
26080         the latest coreutils, in test-vasprintf-posix's call to
26081         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26082         the wide flavors (e.g., wprintf) so this patch just updates the
26083         documentation for the narrow ones.
26084
26085         test-posixtm.c: add two tests
26086         * tests/test-posixtm.c: Add two tests, to highlight the
26087         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26088         around this bug; this is merely to document it.
26089
26090 2010-12-22  Bruno Haible  <bruno@clisp.org>
26091
26092         getlogin_r: Work around portability problem on OSF/1.
26093         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26094         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26095         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26096         test for a truncated result.
26097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26098         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26099         * modules/getlogin_r (Depends-on): Add memchr.
26100         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26101
26102 2010-12-22  Bruno Haible  <bruno@clisp.org>
26103
26104         ptsname: Avoid test failure on OSF/1 5.1.
26105         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26106         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26107         (same_slave): New function.
26108         (main): Use it to compare ptsname's result with the expected file name.
26109
26110 2010-12-22  Bruno Haible  <bruno@clisp.org>
26111
26112         Port extended stdio modules to HP NonStop Kernel.
26113         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26114         macros.
26115         * lib/fbufmode.c: Update comments.
26116         * lib/fflush.c: Likewise.
26117         * lib/fpurge.c: Likewise.
26118         * lib/freadable.c: Likewise.
26119         * lib/freadahead.c: Likewise.
26120         * lib/freading.c: Likewise.
26121         * lib/freadptr.c: Likewise.
26122         * lib/freadseek.c: Likewise.
26123         * lib/fseeko.c: Likewise.
26124         * lib/fseterr.c: Likewise.
26125         * lib/fwritable.c: Likewise.
26126         * lib/fwriting.c: Likewise.
26127         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26128
26129 2010-12-22  Bruno Haible  <bruno@clisp.org>
26130
26131         ttyname_r: Work around bug on OSF/1 5.1.
26132         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26133         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26134         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26135         present.
26136         * lib/ttyname_r.c (ttyname_r): Update comments.
26137
26138 2010-12-22  Bruno Haible  <bruno@clisp.org>
26139
26140         round: Implement result sign according to IEEE 754.
26141         * lib/round.c (MIN, MINUS_ZERO): New macros.
26142         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26143         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26144         * tests/test-round-ieee.c (main): Likewise.
26145         * tests/test-roundl-ieee.c (main): Likewise.
26146
26147         trunc: Implement result sign according to IEEE 754.
26148         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26149         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26150         * tests/test-trunc2.c: Include minus-zero.h.
26151         (MINUS_ZERO): New macro.
26152         (trunc_reference): Keep in sync with lib/trunc.c.
26153         * tests/test-truncf2.c: Include minus-zero.h.
26154         (MINUS_ZERO): New macro.
26155         (truncf_reference): Keep in sync with lib/trunc.c.
26156         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26157         * tests/test-trunc-ieee.c (main): Likewise.
26158         * tests/test-truncl-ieee.c (main): Likewise.
26159
26160         ceil: Implement result sign according to IEEE 754.
26161         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26162         (FUNC): Return -0.0 for -1 < x < 0.
26163         * tests/test-ceil2.c: Include minus-zero.h.
26164         (MINUS_ZERO): New macro.
26165         (ceil_reference): Keep in sync with lib/ceil.c.
26166         * tests/test-ceilf2.c: Include minus-zero.h.
26167         (MINUS_ZERO): New macro.
26168         (ceilf_reference): Keep in sync with lib/ceil.c.
26169         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26170         * tests/test-ceil-ieee.c (main): Likewise.
26171         * tests/test-ceill-ieee.c (main): Likewise.
26172
26173         floor: Implement result sign according to IEEE 754.
26174         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26175         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26176         * tests/test-floorf2.c (floorf_reference): Likewise.
26177         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26178         * tests/test-floor-ieee.c (main): Likewise.
26179         * tests/test-floorl-ieee.c (main): Likewise.
26180
26181 2010-12-22  Bruno Haible  <bruno@clisp.org>
26182
26183         getaddrinfo: Update doc.
26184         * doc/posix-functions/gai_strerror.texi: Return type is also different
26185         on AIX and HP-UX.
26186
26187 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26188
26189         getaddrinfo, inet_ntop: Update doc for Solaris.
26190         * doc/posix-functions/gai_strerror.texi: Return type is also an
26191         issue on Solaris 9 and earlier.
26192         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26193         on Solaris 10 and earlier.
26194
26195 2010-12-21  Bruno Haible  <bruno@clisp.org>
26196
26197         New module 'roundl-ieee'.
26198         * modules/roundl-ieee: New file.
26199         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26200         test whether roundl works according to ISO C 99 with IEC 60559.
26201         * m4/roundl-ieee.m4: New file.
26202         * modules/roundl-ieee-tests: New file.
26203         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26204         * tests/test-roundl.c (main): Remove signbit tests.
26205         * modules/roundl-tests (Depends-on): Remove signbit.
26206         * doc/posix-functions/roundl.texi: Mention the new module.
26207
26208 2010-12-21  Bruno Haible  <bruno@clisp.org>
26209
26210         New module 'truncl-ieee'.
26211         * modules/truncl-ieee: New file.
26212         * modules/truncl-ieee-tests: New file.
26213         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26214         * tests/test-truncl.c (main): Remove signbit tests.
26215         * modules/truncl-tests (Depends-on): Remove signbit.
26216         * doc/posix-functions/truncl.texi: Mention the new module.
26217
26218 2010-12-21  Bruno Haible  <bruno@clisp.org>
26219
26220         New module 'ceill-ieee'.
26221         * modules/ceill-ieee: New file.
26222         * modules/ceill-ieee-tests: New file.
26223         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26224         * tests/test-ceill.c (main): Remove signbit tests.
26225         * modules/ceill-tests (Depends-on): Remove signbit.
26226         * doc/posix-functions/ceill.texi: Mention the new module.
26227
26228 2010-12-21  Bruno Haible  <bruno@clisp.org>
26229
26230         New module 'floorl-ieee'.
26231         * modules/floorl-ieee: New file.
26232         * modules/floorl-ieee-tests: New file.
26233         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26234         * tests/test-floorl.c (main): Remove signbit tests.
26235         * modules/floorl-tests (Depends-on): Remove signbit.
26236         * doc/posix-functions/floorl.texi: Mention the new module.
26237
26238 2010-12-21  Bruno Haible  <bruno@clisp.org>
26239
26240         New module 'round-ieee'.
26241         * modules/round-ieee: New file.
26242         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26243         whether round works according to ISO C 99 with IEC 60559.
26244         * m4/round-ieee.m4: New file.
26245         * modules/round-ieee-tests: New file.
26246         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26247         * tests/test-round1.c (main): Remove signbit tests.
26248         * modules/round-tests (Depends-on): Remove 'signbit'.
26249         * doc/posix-functions/round.texi: Mention the new module.
26250
26251 2010-12-21  Bruno Haible  <bruno@clisp.org>
26252
26253         New module 'trunc-ieee'.
26254         * modules/trunc-ieee: New file.
26255         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26256         whether trunc works according to ISO C 99 with IEC 60559.
26257         * m4/trunc-ieee.m4: New file.
26258         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26260         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26261         * modules/trunc-ieee-tests: New file.
26262         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26263         * tests/test-trunc1.c (main): Remove signbit tests.
26264         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26265         * doc/posix-functions/trunc.texi: Mention the new module.
26266
26267 2010-12-21  Bruno Haible  <bruno@clisp.org>
26268
26269         New module 'ceil-ieee'.
26270         * modules/ceil-ieee: New file.
26271         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26272         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26273         ISO C 99 with IEC 60559.
26274         * m4/ceil-ieee.m4: New file.
26275         * modules/ceil (Files): Add lib/ceil.c.
26276         (Depends-on): Add 'float'.
26277         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26278         * lib/math.in.h (ceil): New declaration.
26279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26280         REPLACE_CEIL.
26281         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26282         * modules/ceil-ieee-tests: New file.
26283         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26284         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26285         * doc/posix-functions/ceil.texi: Mention the new module.
26286
26287 2010-12-21  Bruno Haible  <bruno@clisp.org>
26288
26289         New module 'floor-ieee'.
26290         * modules/floor-ieee: New file.
26291         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26292         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26293         ISO C 99 with IEC 60559.
26294         * m4/floor-ieee.m4: New file.
26295         * modules/floor (Files): Add lib/floor.c.
26296         (Depends-on): Add 'float'.
26297         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26298         * lib/math.in.h (floor): New declaration.
26299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26300         REPLACE_FLOOR.
26301         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26302         * modules/floor-ieee-tests: New file.
26303         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26304         * tests/test-math-c++.cc: Check the signature of 'floor'.
26305         * doc/posix-functions/floor.texi: Mention the new module.
26306
26307 2010-12-21  Bruno Haible  <bruno@clisp.org>
26308
26309         New module 'roundf-ieee'.
26310         * modules/roundf-ieee: New file.
26311         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26312         test whether roundf works according to ISO C 99 with IEC 60559.
26313         * m4/roundf-ieee.m4: New file.
26314         * modules/roundf-ieee-tests: New file.
26315         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26316         * tests/test-roundf1.c (main): Remove signbit tests.
26317         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26318         * doc/posix-functions/roundf.texi: Mention the new module.
26319
26320 2010-12-21  Bruno Haible  <bruno@clisp.org>
26321
26322         New module 'truncf-ieee'.
26323         * modules/truncf-ieee: New file.
26324         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26325         test whether truncf works according to ISO C 99 with IEC 60559.
26326         * m4/truncf-ieee.m4: New file.
26327         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26329         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26330         * modules/truncf-ieee-tests: New file.
26331         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26332         * tests/test-truncf1.c (main): Remove signbit tests.
26333         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26334         * doc/posix-functions/truncf.texi: Mention the new module.
26335
26336 2010-12-21  Bruno Haible  <bruno@clisp.org>
26337
26338         New module 'ceilf-ieee'.
26339         * modules/ceilf-ieee: New file.
26340         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26341         test whether ceilf works according to ISO C 99 with IEC 60559.
26342         * m4/ceilf-ieee.m4: New file.
26343         * modules/ceilf-ieee-tests: New file.
26344         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26345         * tests/test-ceilf1.c (main): Remove signbit tests.
26346         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26347         * doc/posix-functions/ceilf.texi: Mention the new module.
26348
26349 2010-12-21  Bruno Haible  <bruno@clisp.org>
26350
26351         New module 'floorf-ieee'.
26352         * modules/floorf-ieee: New file.
26353         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26354         test whether floorf works according to ISO C 99 with IEC 60559.
26355         * m4/floorf-ieee.m4: New file.
26356         * modules/floorf-ieee-tests: New file.
26357         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26358         * tests/test-floorf1.c (main): Remove signbit tests.
26359         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26360         * doc/posix-functions/floorf.texi: Mention the new module.
26361
26362 2010-12-21  Bruno Haible  <bruno@clisp.org>
26363
26364         Support for minus zero in autoconf macros.
26365         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26366         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26367         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26368         * tests/minus-zero.h: Update comments.
26369
26370 2010-12-21  Bruno Haible  <bruno@clisp.org>
26371
26372         Tests for module 'ceil'.
26373         * modules/ceil-tests: New file.
26374         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26375         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26376
26377 2010-12-21  Bruno Haible  <bruno@clisp.org>
26378
26379         Tests for module 'floor'.
26380         * modules/floor-tests: New file.
26381         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26382         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26383
26384 2010-12-21  Bruno Haible  <bruno@clisp.org>
26385
26386         math: Fix indentation.
26387         * lib/math.in.h (floorf): Fix indentation.
26388
26389 2010-12-21  Bruno Haible  <bruno@clisp.org>
26390
26391         Fix cross-compilation guesses on Solaris.
26392         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26393         not match "solaris2.10".
26394         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26395         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26396         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26397
26398 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26399
26400         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26401         This fixes a problem observed with the latest coreutils snapshot
26402         that caused a test to fail on Solaris 8.  src/csplit.c's call
26403         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26404         earlier, instead of returning the number of bytes that would have
26405         been generated; this causes csplit to incorrectly report memory
26406         exhaustion.
26407         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26408         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26409         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26410         comments to match.
26411         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26412         Fix typo in matching older versions of Solaris: "solaris2.10"
26413         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26414         only for guessing while cross-compiling.
26415         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26416
26417 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26418
26419         ftoastr: fix comment again
26420         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26422         Also, simplify example a bit by using flags = 0.
26423
26424 2010-12-20  Bruno Haible  <bruno@clisp.org>
26425
26426         round*, trunc*: Update documentation regarding glibc.
26427         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26428         * doc/posix-functions/round.texi: Likewise.
26429         * doc/posix-functions/roundl.texi: Likewise.
26430         * doc/posix-functions/truncf.texi: Likewise.
26431         * doc/posix-functions/trunc.texi: Likewise.
26432         * doc/posix-functions/truncl.texi: Likewise.
26433
26434 2010-12-20  Bruno Haible  <bruno@clisp.org>
26435
26436         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26437         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26438         * doc/posix-functions/round.texi: Likewise.
26439         * doc/posix-functions/roundl.texi: Likewise.
26440
26441 2010-12-20  Bruno Haible  <bruno@clisp.org>
26442
26443         ttyname_r: Add missing declaration on HP-UX 11.
26444         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26445         HAVE_TTYNAME_R.
26446         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26447         declared. Set HAVE_TTYNAME_R always.
26448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26449         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26450         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26451         HAVE_TTYNAME_R.
26452         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26453
26454 2010-12-20  Bruno Haible  <bruno@clisp.org>
26455
26456         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26457         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26458         * doc/posix-functions/getlogin_r.texi: Likewise.
26459         * tests/test-getlogin.c: Include <errno.h>.
26460         (main): Avoid test failure on HP-UX 11.11.
26461         * tests/test-getlogin_r.c (main): Likewise.
26462
26463 2010-12-20  Bruno Haible  <bruno@clisp.org>
26464
26465         getlogin_r: Add missing declaration on HP-UX 11.
26466         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26467         declared also when it exists as a function.
26468         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26469
26470 2010-12-20  Bruno Haible  <bruno@clisp.org>
26471
26472         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26473         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26474         through wcrtomb.
26475
26476 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26477
26478         ftoastr: fix comment
26479         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26480         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26481
26482 2010-12-19  Bruno Haible  <bruno@clisp.org>
26483
26484         isnan: Ensure it is a macro.
26485         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26486         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26487         Solaris.
26488
26489 2010-12-19  Bruno Haible  <bruno@clisp.org>
26490
26491         ldexpl test: Fix link error on OSF/1 5.1.
26492         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26493
26494 2010-12-19  Bruno Haible  <bruno@clisp.org>
26495
26496         wctype: Make it work in C++ mode on OSF/1 5.1.
26497         * lib/wctype.in.h (iswblank): Declare but not define here.
26498         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26499         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26500         * modules/wctype (Files): Add lib/iswblank.c.
26501
26502 2010-12-19  Bruno Haible  <bruno@clisp.org>
26503
26504         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26505         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26506         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26507
26508 2010-12-19  Bruno Haible  <bruno@clisp.org>
26509
26510         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26512         _POSIX_PII_SOCKET.
26513         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26514         * doc/posix-functions/recvfrom.texi: Likewise.
26515         * doc/posix-functions/send.texi: Likewise.
26516         * doc/posix-functions/sendto.texi: Likewise.
26517
26518 2010-12-19  Bruno Haible  <bruno@clisp.org>
26519
26520         tcgetsid: Add missing declaration on OSF/1 5.1.
26521         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26522         HAVE_TCGETSID.
26523         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26524         Don't set HAVE_TCGETSID.
26525         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26526         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26527         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26528         HAVE_TCGETSID.
26529         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26530
26531 2010-12-19  Bruno Haible  <bruno@clisp.org>
26532
26533         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26534         * lib/stdio.in.h: During the include_next statement, let recursive
26535         includes of this file include only the system header file.
26536
26537 2010-12-19  Bruno Haible  <bruno@clisp.org>
26538
26539         iconv_open: Fix regression from 2010-12-04.
26540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26541         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26542
26543 2010-12-19  Bruno Haible  <bruno@clisp.org>
26544
26545         stdbool test: Avoid a gcc warning.
26546         * tests/test-stdbool.c (main): Fail if e1 is false.
26547         Reported by Jim Meyering.
26548
26549 2010-12-19  Jim Meyering  <meyering@redhat.com>
26550
26551         setenv: restore to working order
26552         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26553         mistakenly removed.
26554         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26555         HAVE_SETENV.
26556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26557         HAVE_SETENV.
26558
26559 2010-12-19  Bruno Haible  <bruno@clisp.org>
26560
26561         Document some different function declarations on OSF/1 5.1.
26562         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26563         * doc/posix-functions/inet_ntop.texi: Likewise.
26564         * doc/posix-functions/gethostname.texi: Likewise.
26565         * lib/unistd.in.h (gethostname): Update comment.
26566
26567 2010-12-19  Bruno Haible  <bruno@clisp.org>
26568
26569         doc: Mention vasprintf-posix module.
26570         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26571         the 'vasprintf-posix' module.
26572         * doc/glibc-functions/vasprintf.texi: Likewise.
26573
26574 2010-12-19  Bruno Haible  <bruno@clisp.org>
26575
26576         unsetenv: Add missing declaration on OSF/1 5.1.
26577         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26578         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26579         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26581         not HAVE_UNSETENV.
26582         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26583         HAVE_UNSETENV.
26584         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26585
26586 2010-12-19  Bruno Haible  <bruno@clisp.org>
26587
26588         setenv: Add missing declaration on OSF/1 5.1.
26589         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26591         declared. Don't set HAVE_SETENV.
26592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26593         not HAVE_SETENV.
26594         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26595         HAVE_SETENV.
26596         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26597
26598 2010-12-19  Bruno Haible  <bruno@clisp.org>
26599
26600         nl_langinfo tests: Avoid gcc warning.
26601         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26602
26603 2010-12-19  Bruno Haible  <bruno@clisp.org>
26604
26605         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26606         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26607         _GL_CXXALIAS_SYS.
26608
26609 2010-12-19  Bruno Haible  <bruno@clisp.org>
26610
26611         stdbool: Relax test.
26612         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26613         address to 'bool' work in static initializer, for compilers other than
26614         GCC.
26615
26616 2010-12-19  Bruno Haible  <bruno@clisp.org>
26617
26618         ftello: Add missing declaration on OSF/1 5.1.
26619         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26620         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26622         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26623         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26624
26625 2010-12-19  Bruno Haible  <bruno@clisp.org>
26626
26627         fseeko: Add missing declaration on OSF/1 5.1.
26628         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26631         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26632         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26633
26634 2010-12-19  Bruno Haible  <bruno@clisp.org>
26635
26636         fchdir: Add missing declaration on OSF/1 5.1.
26637         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26640         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26641         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26642
26643 2010-12-19  Bruno Haible  <bruno@clisp.org>
26644
26645         relocatable-prog-wrapper: Separate from relocatable-prog.
26646         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26647         uninstall-relocwrapper rule here.
26648         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26649         Reported by Ian Beckwith <ianb@erislabs.net>.
26650
26651 2010-12-19  Bruno Haible  <bruno@clisp.org>
26652
26653         unistr/u8-mbsnlen: Add missing dependency.
26654         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26655         Reported by Ian Beckwith <ianb@erislabs.net>.
26656
26657 2010-12-19  Bruno Haible  <bruno@clisp.org>
26658
26659         iconv: Make it possible again to use this module without 'iconv-h'.
26660         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26661         if it is not defined.
26662         Reported by Ian Beckwith <ianb@erislabs.net>.
26663
26664 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26665
26666         acl: port to Solaris 8 when copying from tmpfs to ufs
26667         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26668         error number.  Problem observed on Solaris 8 with latest
26669         coreutils, with "mv A B", where A is on a tmpfs file system and B
26670         is on a ufs file system.  This caused coreutils' mv/part-symlink
26671         test to fail.
26672
26673         tests: set fail=0 at start
26674         * tests/init.sh (setup_): Move fail=0 initialization here ...
26675         (mktempd_): ... from here, so that tests can rely on fail being
26676         set to 0 initially.  This fixes a problem in coreutils; see:
26677         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26678
26679 2010-12-18  Bruno Haible  <bruno@clisp.org>
26680
26681         memmem-simple: Stylistic changes.
26682         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26683         Fix preprocessor directive indentation.
26684
26685 2010-12-15  Pádraig Brady <P@draigBrady.com>
26686
26687         memmem, memmem-simple: reorganize and expand empty needle check
26688         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26689         functional checks to memmem-simple so that one has a fully functional
26690         memmem by using just this module.
26691         Restrict the performance only check to the memmem module.
26692         Also expand the empty needle check to ensure the correct
26693         pointer is returned, not just a non NULL pointer.
26694         * doc/glibc-functions/memmem.texi: Rearrange the portability
26695         documentation to correlate with the rearranged checks.
26696         Clarify exactly how the memmem and memmem-simple modules
26697         relate to each other.
26698
26699 2010-12-15  Pádraig Brady <P@draigBrady.com>
26700             Bruno Haible  <bruno@clisp.org>
26701
26702         Improve cross-compilation guesses for uClibc.
26703         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26704         that uClibc does not have the glibc bug.
26705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26706         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26707
26708 2010-12-14  Eric Blake  <eblake@redhat.com>
26709
26710         configmake: provide fallbacks for oldest supported autotools
26711         * m4/configmake.m4: New file.
26712         * modules/configmake (Files): Ship it.
26713         (configure.ac): Use it to guarantee fallbacks.
26714
26715 2010-12-13  Pádraig Brady <P@draigBrady.com>
26716
26717         read-file: Improve handling of large files
26718         * lib/read-file.c (fread_file): Minimize realloc()s
26719         for regular files, and better manage sizes around SIZE_MAX.
26720
26721 2010-12-13  Eric Blake  <eblake@redhat.com>
26722
26723         cloexec, fcntl: relax license
26724         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26725         consent from all contributors.
26726         * modules/fcntl (License): Likewise.
26727
26728 2010-12-10  Bruno Haible  <bruno@clisp.org>
26729
26730         Tests for module 'pipe-posix'.
26731         * modules/pipe-posix-tests: New file.
26732         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26733
26734 2010-12-10  Bruno Haible  <bruno@clisp.org>
26735
26736         pipe-posix: Make it work in C++ mode.
26737         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26738         (pipe): Use common idiom, not a macro definition.
26739         * lib/pipe.c: New file.
26740         * m4/pipe.m4: New file.
26741         * modules/pipe-posix (Description): Enhance.
26742         (Files): Add lib/pipe.c, m4/pipe.m4.
26743         (configure.ac): Invoke gl_FUNC_PIPE.
26744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26745         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26746         * tests/test-unistd-c++.cc: Check the signature of pipe.
26747
26748 2010-12-10  Bruno Haible  <bruno@clisp.org>
26749
26750         Rename module 'pipe' to 'spawn-pipe'.
26751         * modules/spawn-pipe: New file, renamed from modules/pipe.
26752         (Files, configure.ac, Makefile.am): Update.
26753         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26754         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26755         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26756         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26757         "spawn-pipe.h" instead of "pipe.h".
26758         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26759         to gl_SPAWN_PIPE.
26760         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26761         (Files, Makefile.am): Update.
26762         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26763         Update.
26764         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26765         Include "spawn-pipe.h" instead of "pipe.h".
26766         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26767         * lib/javacomp.c: Likewise.
26768         * lib/javaversion.c: Likewise.
26769         * lib/pipe-filter-gi.c: Likewise.
26770         * lib/pipe-filter-ii.c: Likewise.
26771         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26772         * modules/javacomp (Depends-on): Likewise.
26773         * modules/javaversion (Depends-on): Likewise.
26774         * modules/pipe-filter-gi (Depends-on): Likewise.
26775         * modules/pipe-filter-ii (Depends-on): Likewise.
26776         * MODULES.html.sh (Executing programs): Update.
26777         * NEWS: Mention the change.
26778
26779 2010-12-10  Eric Blake  <eblake@redhat.com>
26780
26781         pipe-posix: new module
26782         * modules/pipe-posix: New file.
26783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26784         (gl_UNISTD_H): Check for declaration.
26785         * modules/unistd (Makefile.am): Substitute it.
26786         * lib/unistd.in.h (pipe): Provide it for mingw.
26787         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26788         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26789
26790 2010-12-07  Bruno Haible  <bruno@clisp.org>
26791
26792         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26793         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26794         u8_strcmp_gnu.
26795         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26796
26797 2010-12-06  Bruno Haible  <bruno@clisp.org>
26798
26799         Update internal documentation.
26800         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26801
26802 2010-12-04  Bruno Haible  <bruno@clisp.org>
26803
26804         Put more information about failed tests into the test return codes.
26805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26806         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26807         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26809         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26811         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26812         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26813         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26816         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26817         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26818         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26819         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26820         returns a bit mask.
26821         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26822         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26823         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26824         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26825         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26826         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26829         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26830         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26831         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26832         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26833         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26835         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26836         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26837         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26838         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26839         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26840         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26842         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26844         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26845         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26846         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26847         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26848         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26849         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26850         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26851         gl_PRINTF_PRECISION): Likewise.
26852         * m4/regex.m4 (gl_REGEX): Likewise.
26853         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26854         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26855         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26856         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26859         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26860         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26861         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26862         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26863         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26864         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26865         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26866         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26867         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26868         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26869         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26870         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26872         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26873         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26874         enumerated value.
26875         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26876
26877 2010-12-04  Bruno Haible  <bruno@clisp.org>
26878
26879         Update for Solaris 11 2010-11.
26880         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26881         Express, released in November 2010.
26882
26883 2010-12-04  Bruno Haible  <bruno@clisp.org>
26884
26885         nproc: Relax license.
26886         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26887         and Paul Eggert.
26888         Requested by Ludovic Courtès <ludo@gnu.org>.
26889
26890 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         utimecmp: fine-grained src to nearby coarse-grained dest
26893
26894         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26895         and the source is on a file system with higher-resolution time
26896         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26897         not work, and the time stamps are close together, the algorithm to
26898         determine the exact resolution from the read-back mtime was buggy:
26899         it had a "!=" where it should have had an "==".  This bug has been
26900         in the code ever since it was introduced to gnulib.
26901         Problem reported by Dan Jacobson in
26902         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26903
26904 2010-11-30  Bruno Haible  <bruno@clisp.org>
26905
26906         strerror_r-posix: Fix autoconf test.
26907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26908
26909 2010-11-28  Bruno Haible  <bruno@clisp.org>
26910             Paul Eggert  <eggert@cs.ucla.edu>
26911
26912         Tests for module 'getdomainname'.
26913         * modules/getdomainname-tests: New file.
26914         * tests/test-getdomainname.c: New file, based on
26915         tests/test-gethostname.c.
26916
26917 2010-11-28  Bruno Haible  <bruno@clisp.org>
26918             Paul Eggert  <eggert@cs.ucla.edu>
26919
26920         getdomainname: Use the system function when possible.
26921         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26922         (getdomainname): Replace if needed. Provide the declaration if it is
26923         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26924         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26925         (getdomainname): When the system has getdomainname, call the system
26926         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26927         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26928         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26929         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26930         the function if its second argument is of type 'int' or if it is found
26931         in libnsl.
26932         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26933         <sys/systeminfo.h> and sysinfo().
26934         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26936         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26937         HAVE_GETDOMAINNAME.
26938         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26939         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26940         * doc/glibc-functions/getdomainname.texi: Document the problems with
26941         the getdomainname declaration.
26942
26943 2010-11-28  Bruno Haible  <bruno@clisp.org>
26944
26945         sys_socket: Ensure ss_family field on AIX.
26946         * lib/sys_socket.in.h (ss_family): New macro definition.
26947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26948         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26949         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26950         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26951         * modules/sys_socket (Makefile.am): Substitute
26952         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26953         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26954
26955 2010-11-27  Bruno Haible  <bruno@clisp.org>
26956
26957         readline: Improve configure output.
26958         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26959         "checking for readline..." result understandable.
26960
26961 2010-11-27  Bruno Haible  <bruno@clisp.org>
26962
26963         *printf-posix: Detect a bug on Solaris 10/x86.
26964         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26965         for floating-point output.
26966         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26967         directive.
26968         * tests/test-snprintf-posix.h (test_function): Likewise.
26969         * tests/test-sprintf-posix.h (test_function): Likewise.
26970         * tests/test-vasprintf-posix.c (test_function): Likewise.
26971         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26972         * doc/posix-functions/printf.texi: Likewise.
26973         * doc/posix-functions/snprintf.texi: Likewise.
26974         * doc/posix-functions/sprintf.texi: Likewise.
26975         * doc/posix-functions/vfprintf.texi: Likewise.
26976         * doc/posix-functions/vprintf.texi: Likewise.
26977         * doc/posix-functions/vsnprintf.texi: Likewise.
26978         * doc/posix-functions/vsprintf.texi: Likewise.
26979         * doc/glibc-functions/obstack_printf.texi: Likewise.
26980         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26981
26982 2010-11-27  Bruno Haible  <bruno@clisp.org>
26983
26984         Fix link error when module libunistring-optional is in use.
26985         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26986         * modules/striconveha-tests (Makefile.am): Likewise.
26987
26988 2010-11-27  Bruno Haible  <bruno@clisp.org>
26989
26990         regex: Mention link dependencies.
26991         * modules/regex (Link): New section.
26992         * modules/rpmatch (Link): Likewise.
26993         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26994
26995 2010-11-27  Bruno Haible  <bruno@clisp.org>
26996
26997         ftoastr: Fix compilation error on Solaris.
26998         * lib/ftoastr.c: Include <config.h>.
26999
27000 2010-11-27  Bruno Haible  <bruno@clisp.org>
27001
27002         getloadavg: Update documentation.
27003         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27004
27005 2010-11-27  Bruno Haible  <bruno@clisp.org>
27006
27007         sys_socket: Fix test whether the functions are declared.
27008         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27009         not <sys/select.h>.
27010
27011 2010-11-27  Bruno Haible  <bruno@clisp.org>
27012
27013         getpass: Make sure to get system declaration on some platforms.
27014         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27015         gl_USE_SYSTEM_EXTENSIONS.
27016         * modules/getpass (Depends-on): Add extensions.
27017
27018 2010-11-26  Bruno Haible  <bruno@clisp.org>
27019
27020         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27021         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27022         'iconv' module is present.
27023         (ICONV_CONST): New macro.
27024         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27025         ICONV_CONST.
27026         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27027         set ICONV_CONST.
27028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27029         here.
27030         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27031         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27032         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27033         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27034         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27035         present.
27036
27037 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27038
27039         ftoastr: comment fix
27040         * lib/ftoastr.c: "little" -> "little or no" in comment
27041
27042 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27043
27044         stdint: port to GCC 4.3 + OSX + Octave
27045         On this platform, stdint.h is buggy and defines int64_t to long
27046         long int.  The replacement defined it to long int, causing
27047         problems with C++ style name mangling.  Instead, trust the system
27048         definition if INT64_MAX is defined, and likewise for the unsigned
27049         variant.   Problem reported by Jarno Rajahalme in
27050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27051         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27052         and don't mess with int64_t and INT64_MAX in this case.
27053         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27054
27055 2010-11-24  Bruno Haible  <bruno@clisp.org>
27056
27057         doc: Corrections regarding MacOS X 10.4 and 10.5.
27058         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27059         MacOS X.
27060         Reported by Simon Josefsson.
27061
27062 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27063
27064         Uninstall ".bin" files installed by relocwrapper.
27065         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27066         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27067         unless it is already there.
27068
27069 2010-11-21  Bruno Haible  <bruno@clisp.org>
27070
27071         Update for NetBSD 5.0.
27072         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27073         NetBSD; the test fails on NetBSD 5.0.
27074         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27075         about NetBSD.
27076
27077 2010-11-21  Bruno Haible  <bruno@clisp.org>
27078
27079         Update for HP-UX 11.23 and HP-UX 11.31.
27080         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27081         HP-UX.
27082
27083 2010-11-21  Bruno Haible  <bruno@clisp.org>
27084
27085         Update for MacOS X 10.5.
27086         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27087         MacOS X; the test fails on MacOS X 10.5.8.
27088         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27089         about MacOS X.
27090
27091 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27092
27093         bootstrap: add bootstrap_sync option.
27094         See discussion at
27095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27097         * build-aux/bootstrap: Accept --bootstrap-sync to update
27098         bootstrap if it is not identical to the local gnulib's
27099         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27100         enable this by default.  Accept --no-bootstrap-sync to disable
27101         it.
27102
27103 2010-11-20  Bruno Haible  <bruno@clisp.org>
27104
27105         Ensure that <features.h> is included before __GLIBC__ is tested.
27106         * lib/printf-parse.h: Include <features.h>.
27107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27108         Reported by Mike Frysinger <vapier@gentoo.org>.
27109
27110         Ensure that <features.h> is included before __GLIBC__ is tested.
27111         * lib/wchar.in.h: Include <features.h>.
27112         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27113         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27114         Reported by Mike Frysinger <vapier@gentoo.org>.
27115
27116         Ensure that <features.h> is included before __GLIBC__ is tested.
27117         * lib/arpa_inet.in.h: Include <features.h>.
27118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27119         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27120         Reported by Mike Frysinger <vapier@gentoo.org>.
27121
27122         Ensure that <features.h> is included before __GLIBC__ is tested.
27123         * build-aux/link-warning.h: Include <features.h>.
27124         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27125         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27126         Reported by Mike Frysinger <vapier@gentoo.org>.
27127
27128         Ensure that <features.h> is included before __GLIBC__ is tested.
27129         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27130         Reported by Mike Frysinger <vapier@gentoo.org>.
27131
27132 2010-11-20  Bruno Haible  <bruno@clisp.org>
27133
27134         memmem: Fix autoconf test.
27135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27136
27137 2010-11-20  Bruno Haible  <bruno@clisp.org>
27138
27139         Port to uClibc.
27140         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27141         * lib/fcntl.in.h: Likewise.
27142         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27143         * lib/mbrtowc.c (mbrtowc): Likewise.
27144         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27145         * lib/strerror_r.c: Likewise.
27146         * lib/unistr/u8-strnlen.c: Likewise.
27147         * lib/vasnprintf.c (decimal_point_char): Likewise.
27148         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27151         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27152         * tests/test-sigaction.c (handler, main): Likewise.
27153         * lib/freading.h: Treat uClibc like a non-glibc platform.
27154         * lib/freading.c: Likewise.
27155         * lib/gettext.h: Likewise.
27156         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27157         Likewise.
27158         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27159         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27160         * lib/propername.c (proper_name_utf8): Likewise.
27161         * lib/spawn.in.h: Likewise.
27162         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27163         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27164         mem_cd_iconveh_internal): Likewise.
27165         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27166         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27167         strstr, strcasestr): Likewise.
27168         * lib/unicodeio.c (unicode_to_mb): Likewise.
27169         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27170         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27171         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27172         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27173         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27174         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27175         * lib/unistr/u8-stpncpy.c: Likewise.
27176         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27177         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27178         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27179         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27180         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27181         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27182         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27185         Likewise.
27186         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27187         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27188         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27190         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27191         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27192         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27193         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27194         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27195         * tests/test-striconveha.c (main): Likewise.
27196         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27197         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27198         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27199         * doc/posix-functions/getline.texi: Likewise.
27200         Reported by Mike Frysinger <vapier@gentoo.org>.
27201
27202 2010-11-20  Bruno Haible  <bruno@clisp.org>
27203
27204         nproc: Fix condition.
27205         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27206         HAVE_PTHREAD_AFFINITY_NP.
27207
27208 2010-11-20  Bruno Haible  <bruno@clisp.org>
27209
27210         Fix a comment.
27211         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27212
27213 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27214
27215         ftoastr: don't assume snprintf
27216         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27217         Implement a subset of snprintf here, by using sprintf safely.
27218         * modules/ftoastr (Depends-on): Remove snprintf.
27219
27220 2010-11-19  Jim Meyering  <meyering@redhat.com>
27221
27222         test-rename.h: fix compilation failure
27223         * tests/test-rename.h (test_rename): Add omitted "}".
27224
27225 2010-11-17  Jim Meyering  <meyering@redhat.com>
27226
27227         maint.mk: add a URL discussing the no-@acronym policy
27228         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27229
27230 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27231
27232         ftoastr: depend on snprintf, improve comments
27233         * lib/ftoastr.c: Also mention Loitsch's draft.
27234         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27235         needed in the current implementation, but it might simplify
27236         speeding up the code later.
27237         * modules/ftoastr: Depend on snprintf; this improves portability.
27238         Suggested by Bruno Haible in the same email.
27239
27240         ftoastr: port to hosts lacking strtof and strtold
27241         Problem reported by Bruno Haible in
27242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27243         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27244         environment and strtold (and presumably strtof) are not available.
27245         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27246         (configure.ac): Require gl_C99_STRTOLD.
27247
27248 2010-11-18  Bruno Haible  <bruno@clisp.org>
27249
27250         c-strtold: Avoid link error on AIX 7.
27251         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27252         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27253         (gl_C_STRTOLD): Test whether strtold_l exists.
27254         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27255
27256 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27257
27258         intprops: new macro INT_BITS_STRLEN_BOUND
27259         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27260         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27261         not exposed.  Also, it uses a slightly tighter bound than before;
27262         though this makes no practical difference, we might as well be as
27263         tight as we easily can.
27264
27265         ftoastr: new module, for lossless conversion of floats to short strings
27266         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27267         * modules/ftoastr: New files.
27268
27269 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27270
27271         bootstrap: port to Solaris sed
27272         * build-aux/bootstrap (get_version): Port to Solaris sed.
27273         See Ralf Wildenhues's note in
27274         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27275
27276 2010-11-14  Jim Meyering  <meyering@redhat.com>
27277
27278         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27279         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27280         and move definition closer to sole use.
27281
27282 2010-11-13  Jim Meyering  <meyering@redhat.com>
27283
27284         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27285         Now we require at least autoconf-2.59, which means the work-around
27286         is no longer needed.
27287         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27288         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27289         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27290         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27291         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27292
27293 2010-11-13  Bruno Haible  <bruno@clisp.org>
27294
27295         rename, renameat: Avoid test failures at NFS mounted locations.
27296         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27297         functions.
27298         (test_rename): Use assert_nonexistent.
27299         * tests/test-rename.c: Include <dirent.h>.
27300         * tests/test-renameat.c: Likewise.
27301         Reported by Gary V. Vaughan <gary@gnu.org>.
27302
27303         rename, renameat: Document Linux bug with NFS
27304         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27305         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27306         * doc/posix-functions/renameat.texi: Likewise.
27307         Suggested by Eric Blake.
27308
27309 2010-11-13  Bruno Haible  <bruno@clisp.org>
27310
27311         rename test: Add comments.
27312         * tests/test-rename.h (test_rename): Add structure and comments.
27313
27314 2010-11-13  Eric Blake  <eblake@redhat.com>
27315
27316         maintainer-makefile: cover a few more files
27317         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27318         scripts generated within C files, for libvirt.
27319
27320 2010-11-13  Bruno Haible  <bruno@clisp.org>
27321
27322         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27323         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27324         character, return the number of bytes that belong together, not always
27325         1.
27326         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27327         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27328         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27329         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27330         number of bytes of an invalid character.
27331         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27332         (main): Invoke it.
27333         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27334         results.
27335         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27336         malformed byte sequences.
27337         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27338         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27339         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27340         Reported by Ben Pfaff and Paolo Bonzini.
27341
27342 2010-11-13  Bruno Haible  <bruno@clisp.org>
27343
27344         openat: Work around glibc bug with fchownat() and empty file names.
27345         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27346         (gl_FUNC_FCHOWNAT): Invoke it.
27347         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27348         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27349         Reported by Gary V. Vaughan <gary@gnu.org>.
27350
27351 2010-11-13  Bruno Haible  <bruno@clisp.org>
27352
27353         openat: Ensure autoconf macro ordering.
27354         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27355         gl_USE_SYSTEM_EXTENSIONS.
27356         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27357
27358 2010-11-13  Bruno Haible  <bruno@clisp.org>
27359
27360         Update comments.
27361         * lib/unistr/u8-check.c: Update file name in comments.
27362         * lib/unistr/u8-mblen.c: Likewise.
27363         * lib/unistr/u8-prev.c: Likewise.
27364         * lib/unistr/u8-strmblen.c: Likewise.
27365         * lib/unistr/u8-strmbtouc.c: Likewise.
27366
27367 2010-11-13  Jim Meyering  <meyering@redhat.com>
27368
27369         tests: avoid test failure on Solaris 10 due to lack of PATH export
27370         * tests/test-update-copyright.sh: Don't forget to export PATH.
27371
27372         init.sh: ensure that IFS is defined, just in case...
27373         * tests/init.sh (setup_): Ensure that IFS is defined,
27374         so that saving and restoring it works as expected.  This
27375         appears to be useful at least for an old version of dash
27376         from a long time ago (RH 6).  See here for details:
27377         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27378
27379         maint.mk: tighten "test a == b" check
27380         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27381         test to files that contain something like #!/bin/sh.
27382         Without this, coreutils would get two false positives in
27383         the comments of C source files.
27384
27385 2010-11-12  Eric Blake  <eblake@redhat.com>
27386
27387         bootstrap: fix typo in previous attempt
27388         * build-aux/bootstrap (buildreq): Correct the grouping.
27389         Reported by Paul Eggert.
27390
27391         maintainer-makefile: prohibit test x == x
27392         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27393         Based on a report by Matthias Bolte.
27394
27395         bootstrap: allow FreeBSD gzip
27396         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27397         which has no '.' and goes to stderr.
27398         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27399         Reported by Matthias Bolte.
27400
27401         maintainer-makefile: check for i18n setup
27402         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27403         will likely work.
27404
27405 2010-11-12  Bruno Haible  <bruno@clisp.org>
27406
27407         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27408         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27409         * lib/nanosleep.c (nanosleep): Likewise.
27410
27411 2010-11-11  Bruno Haible  <bruno@clisp.org>
27412
27413         fcntl-h: Fix for use of C++ on glibc systems.
27414         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27415         also on glibc systems in C++ mode.
27416         Reported by Gary V. Vaughan <gary@gnu.org>.
27417
27418 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27419
27420         mknod: avoid false failure with dash
27421         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27422
27423 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27424
27425         unlink: Fix "is it should" typo in diagnostic.
27426         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27427         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27428
27429 2010-11-11  Bruno Haible  <bruno@clisp.org>
27430
27431         Tests for module 'strerror_r-posix'.
27432         * modules/strerror_r-posix-tests: New file.
27433         * tests/test-strerror_r.c: New file.
27434         * tests/test-string-c++.cc: Check the signature of strerror_r.
27435
27436         New module 'strerror_r-posix'.
27437         * lib/string.in.h (strerror_r): New declaration.
27438         * lib/strerror_r.c: New file.
27439         * m4/strerror_r.m4: New file.
27440         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27441         of strerror_r.
27442         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27443         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27444         * modules/strerror_r-posix: New file.
27445         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27446         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27447         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27448         portability problems.
27449
27450 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27451
27452         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27453         line is also considered for output. Quoted function name in shell
27454         command, so temporary files for functions like MyClass::operator()
27455         are removed correctly without errors.
27456
27457 2010-11-09  Bruno Haible  <bruno@clisp.org>
27458
27459         * doc/posix-functions/strerror.texi: List more failing platforms.
27460
27461         * doc/posix-functions/strerror.texi: Add a comment.
27462
27463 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27464
27465         fdopendir: fix bug on MacOS X when low on file descriptors
27466
27467         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27468         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27469         All callers changed.
27470         (fdopendir): Invoke save_cwd at the top level, not after using
27471         multiple dup() calls to use up file descriptors.  Then retry
27472         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27473         less than the maximum number of open file descriptors, because
27474         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27475         on Mac OS X 10.6.4 for tar 1.24
27476         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27477         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27478         and for tar 1.25
27479         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27480
27481 2010-11-07  Bruno Haible  <bruno@clisp.org>
27482
27483         vasnprintf: Support I flag on glibc systems.
27484         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27485         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27486         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27487         snprintf function.
27488         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27489         glibc systems.
27490         * tests/test-vasnprintf-posix3.c: New file.
27491         * modules/vasnprintf-posix-tests (Files): Add it.
27492         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27493
27494 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27495
27496         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27497         * MODULES.html.sh: For compiler warnings, use name
27498         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27499
27500 2010-11-05  Eric Blake  <eblake@redhat.com>
27501
27502         ceil, floor: avoid spurious failure with icc
27503         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27504         [denormals-as-zero] when optimizing without -mieee-fp option.
27505         * tests/test-floorf2.c (floorf_reference): Likewise.
27506         * tests/test-ceilf1.c (dummy): New function.
27507         (main): Use it to outsmart icc's optimization.
27508         * tests/test-floorf1.c (dummy, main): Likewise.
27509
27510         tests: require working signbit
27511         * modules/ceilf-tests (Depends-on): Add signbit.
27512         * modules/ceill-tests (Depends-on): Likewise.
27513         * modules/floorf-tests (Depends-on): Likewise.
27514         * modules/floorl-tests (Depends-on): Likewise.
27515         * modules/round-tests (Depends-on): Likewise.
27516         * modules/roundf-tests (Depends-on): Likewise.
27517         * modules/roundl-tests (Depends-on): Likewise.
27518         * modules/trunc-tests (Depends-on): Likewise.
27519         * modules/truncf-tests (Depends-on): Likewise.
27520         * modules/truncl-tests (Depends-on): Likewise.
27521
27522         strtod: work around icc bug
27523         * lib/strtod.c (minus_zero): Define to working value.
27524         (strtod): Use it to avoid icc bug.
27525
27526         copysign: enhance tests
27527         * modules/copysign-tests (Files): Add minus-zero.h.
27528         * tests/test-copysign.c (main): Also test zeros.
27529
27530 2010-11-04  Eric Blake  <eblake@redhat.com>
27531
27532         ceil, floor, round, trunc: enhance tests of -0
27533         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27534         * tests/test-ceill.c (main): Likewise.
27535         * tests/test-floorf1.c (main): Likewise.
27536         * tests/test-floorl.c (main): Likewise.
27537         * tests/test-round1.c (main): Likewise.
27538         * tests/test-roundf1.c (main): Likewise.
27539         * tests/test-roundl.c (main): Likewise.
27540         * tests/test-trunc1.c (main): Likewise.
27541         * tests/test-truncf1.c (main): Likewise.
27542         * tests/test-truncl.c (main): Likewise.
27543
27544 2010-11-04  Eric Blake  <eblake@redhat.com>
27545
27546         frexp, tests: work around ICC bug with -zero
27547         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27548         works with more compilers.
27549         * tests/minus-zero.h: New file.
27550         * modules/ceilf-tests (Files): Include it.
27551         * modules/ceill-tests (Files): Likewise.
27552         * modules/floorf-tests (Files): Likewise.
27553         * modules/floorl-tests (Files): Likewise.
27554         * modules/frexp-nolibm-tests (Files): Likewise.
27555         * modules/frexp-tests (Files): Likewise.
27556         * modules/frexpl-nolibm-tests (Files): Likewise.
27557         * modules/frexpl-tests (Files): Likewise.
27558         * modules/isnan-tests (Files): Likewise.
27559         * modules/isnand-nolibm-tests (Files): Likewise.
27560         * modules/isnand-tests (Files): Likewise.
27561         * modules/isnanf-nolibm-tests (Files): Likewise.
27562         * modules/isnanf-tests (Files): Likewise.
27563         * modules/isnanl-nolibm-tests (Files): Likewise.
27564         * modules/isnanl-tests (Files): Likewise.
27565         * modules/round-tests (Files): Likewise.
27566         * modules/roundf-tests (Files): Likewise.
27567         * modules/roundl-tests (Files): Likewise.
27568         * modules/ldexpl-tests (Files): Likewise.
27569         * modules/signbit-tests (Files): Likewise.
27570         * modules/snprintf-posix-tests (Files): Likewise.
27571         * modules/sprintf-posix-tests (Files): Likewise.
27572         * modules/strtod-tests (Files): Likewise.
27573         * modules/trunc-tests (Files): Likewise.
27574         * modules/truncf-tests (Files): Likewise.
27575         * modules/truncl-tests (Files): Likewise.
27576         * modules/vsnprintf-posix-tests (Files): Likewise.
27577         * modules/vsprintf-posix-tests (Files): Likewise.
27578         * modules/vasnprintf-posix-tests (Files): Likewise.
27579         * modules/vasprintf-posix-tests (Files): Likewise.
27580         * tests/test-ceilf1.c (main): Use it.
27581         * tests/test-ceill.c (main): Likewise.
27582         * tests/test-floorf1.c (main): Likewise.
27583         * tests/test-floorl.c (main): Likewise.
27584         * tests/test-frexp.c (main): Likewise.
27585         * tests/test-frexpl.c (main): Likewise.
27586         * tests/test-isnan.c (main): Likewise.
27587         * tests/test-isnand.h (main): Likewise.
27588         * tests/test-isnanf.h (main): Likewise.
27589         * tests/test-isnanl.h (main): Likewise.
27590         * tests/test-ldexpl.c (main): Likewise.
27591         * tests/test-round.c (main): Likewise.
27592         * tests/test-roundf.c (main): Likewise.
27593         * tests/test-roundl.c (main): Likewise.
27594         * tests/test-signbit.c (test_signbitf, test_signbitd)
27595         (test_signbitl): Likewise.
27596         * tests/test-snprintf-posix.h (test_function): Likewise.
27597         * tests/test-sprintf-posix.h (test_function): Likewise.
27598         * tests/test-strtod.c (main): Likewise.
27599         * tests/test-trunc1.c (main): Likewise.
27600         * tests/test-truncf1.c (main): Likewise.
27601         * tests/test-truncl.c (main): Likewise.
27602
27603         isnanl: work around icc bug
27604         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27605
27606 2010-11-03  Eric Blake  <eblake@redhat.com>
27607
27608         tests: fix compiler warnings
27609         * tests/test-getopt.h (test_getopt): Fix condition.
27610         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27611         * tests/test-pipe2.c (main): Likewise.
27612         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27613
27614         utimens: fix broken m4 test
27615         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27616
27617 2010-10-28  Bruno Haible  <bruno@clisp.org>
27618
27619         posix_spawn*, getdtablesize: Relax license.
27620         * modules/posix_spawn (License): Change to LGPLv2+.
27621         * modules/posix_spawnp (License): Likewise.
27622         * modules/posix_spawn-internal (License): Likewise.
27623         * modules/posix_spawnattr_init (License): Likewise.
27624         * modules/posix_spawnattr_getflags (License): Likewise.
27625         * modules/posix_spawnattr_setflags (License): Likewise.
27626         * modules/posix_spawnattr_getpgroup (License): Likewise.
27627         * modules/posix_spawnattr_setpgroup (License): Likewise.
27628         * modules/posix_spawnattr_getschedparam (License): Likewise.
27629         * modules/posix_spawnattr_setschedparam (License): Likewise.
27630         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27631         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27632         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27633         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27634         * modules/posix_spawnattr_getsigmask (License): Likewise.
27635         * modules/posix_spawnattr_setsigmask (License): Likewise.
27636         * modules/posix_spawnattr_destroy (License): Likewise.
27637         * modules/posix_spawn_file_actions_init (License): Likewise.
27638         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27639         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27640         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27641         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27642         * modules/getdtablesize (License): Likewise.
27643         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27644
27645 2010-10-26  Bruno Haible  <bruno@clisp.org>
27646
27647         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27648         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27649         Cygwin and mingw.
27650         Suggested by Eric Blake.
27651
27652 2010-10-26  Bruno Haible  <bruno@clisp.org>
27653
27654         stdio: Work around compilation error due to renameat() on Solaris 10.
27655         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27656         * lib/renameat.c: Don't include <unistd.h> here.
27657         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27658         Reported by Paul Eggert and Eric Blake.
27659
27660 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27661
27662         renameat: port to Solaris 10, which declares renameat in unistd.h
27663
27664         * lib/renameat.c: Include unistd.h before stdio.h, because
27665         Solaris 10 declares renameat in unistd.h.  Problem encountered
27666         when building GNU tar 1.24 on Solaris 10.
27667
27668 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27669
27670         fdopendir: fix C89 compilation
27671         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27672         compilers.
27673
27674 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27675
27676         inttostr: simplify by removing unnecessary redundancy
27677         * lib/anytostr.c: Don't include verify.h.
27678         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27679         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27680         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27681         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27682         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27683         Likewise.
27684         * modules/inttostr (Depends-on): Remove 'verify'.
27685
27686 2010-10-23  Bruno Haible  <bruno@clisp.org>
27687
27688         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27689         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27690         Reported by Eric Blake.
27691
27692 2010-10-23  Bruno Haible  <bruno@clisp.org>
27693
27694         Tests: Fix LOCALE_JA on MirBSD 10.
27695         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27696         to an UTF-8 locale.
27697         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27698         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27699         Reported by Eric Blake.
27700
27701 2010-10-21  Bruno Haible  <bruno@clisp.org>
27702
27703         nl_langinfo test: Avoid test failure on NetBSD 5.
27704         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27705         Reported by Eric Blake.
27706
27707 2010-10-21  Eric Blake  <eblake@redhat.com>
27708
27709         c-stack: work around libsigsegv 2.8 bug
27710         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27711         overflow on at least PowerPC64.
27712
27713 2010-10-17  Bruno Haible  <bruno@clisp.org>
27714
27715         userspec: Drop redundant file.
27716         * modules/userspec (Files): Remove lib/inttostr.h.
27717
27718 2010-10-17  Bruno Haible  <bruno@clisp.org>
27719
27720         nl_langinfo tests: Silence some warnings.
27721         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27722         Reported by Jim Meyering.
27723
27724 2010-10-17  Bruno Haible  <bruno@clisp.org>
27725
27726         Make use of GCC's attribute __alloc_size__.
27727         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27728         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27729         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27730         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27731         __alloc_size__.
27732         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27733         Suggested by Jim Meyering.
27734
27735 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27736
27737         bootstrap: anchor .gitignore entries.
27738         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27739         with...
27740         (insert_vc_ignore): ... this new function, which prepends `/' to
27741         all .gitignore entries before passing them to
27742         insert_sorted_if_absent.
27743
27744 2010-10-16  Bruno Haible  <bruno@clisp.org>
27745
27746         nextafter: Fix configure check.
27747         * modules/nextafter (configure.ac): Correct expected prototype.
27748
27749 2010-10-16  Bruno Haible  <bruno@clisp.org>
27750
27751         termios: Update documentation.
27752         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27753
27754 2010-10-16  Bruno Haible  <bruno@clisp.org>
27755
27756         tests: Make them compile with TinyCC.
27757         * tests/test-strstr.c (main): Remove parentheses around array
27758         initializer.
27759
27760 2010-10-15  Eric Blake  <eblake@redhat.com>
27761
27762         ignore-value: make header idempotent
27763         * lib/ignore-value.h: Add double-inclusion guards.
27764         Reported by Stefan Berger.
27765
27766 2010-10-15  Jim Meyering  <meyering@redhat.com>
27767
27768         GNUmakefile: handle "stable" target, not "major"
27769         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27770         lists in maint.mk and announce-gen.  Without this, "make stable"
27771         would fail to ensure that $(VERSION) is up to date.
27772
27773 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27774
27775         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27776         & co.
27777
27778 2010-10-14  Bruno Haible  <bruno@clisp.org>
27779
27780         vasnprintf: Don't set errno to 0.
27781         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27782         block that sets it to 0.
27783         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27784
27785 2010-10-14  Bruno Haible  <bruno@clisp.org>
27786
27787         socketlib: Fix.
27788         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27789         gl_PREREQ_SYS_H_WINSOCK2.
27790         Reported by Ian Beckwith <ianb@erislabs.net>.
27791
27792 2010-10-13  Jim Meyering  <meyering@redhat.com>
27793
27794         test-select-stdin.c: avoid warn_unused_result warnings
27795         * tests/test-select-stdin.c: Include "macros.h".
27796         ASSERT that read and fflush succeed.
27797
27798 2010-10-13  Jim Meyering  <meyering@redhat.com>
27799
27800         git-version-gen: do require git-VC'd files in cwd
27801         * build-aux/git-version-gen: Reject a git version string
27802         if there are no commits associated with the current directory.
27803         This avoids an unlikely false-positive (unrelated dir whose parent
27804         repository also contains a tag matching v*), as pointed out
27805         by Giuseppe Scrivano in
27806         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27807
27808 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27809
27810         argv-iter: omit nonconforming declaration
27811         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27812         enum arg_iter_err declaration, which doesn't conform to C99.
27813         Solaris 10 cc warns about this.
27814
27815 2010-10-13  Eric Blake  <eblake@redhat.com>
27816
27817         termios: fix compilation on mingw
27818         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27819         (gl_TERMIOS_H): Adjust it on mingw.
27820         * modules/termios (Makefile.am): Substitute new key.
27821         * lib/termios.in.h (includes): Make include_next conditional.
27822         * doc/posix-headers/termios.texi (termios.h): Update
27823         documentation.
27824         Reported by Daniel P. Berrange.
27825
27826 2010-10-13  Jim Meyering  <meyering@redhat.com>
27827
27828         git-version-gen: don't require that .git/ be in the current dir
27829         * build-aux/git-version-gen: Adjust this script so that it works
27830         when run from any working directory beneath the top-level .git/-
27831         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27832         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27833
27834         test-select: avoid warn_unused_result warnings
27835         * tests/test-select.c: Include "macros.h".
27836         ASSERT that each call to read, write, and pipe succeeds.
27837         While not technically required, also check each "close".
27838         * modules/select-tests (Files): Add tests/macros.h.
27839
27840         test-symlinkat: remove declaration of unused local
27841         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27842
27843         test-inttostr: avoid shadowing warnings
27844         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27845         and use malloc rather than the stack for the same reason as
27846         mentioned in the comment justifying the other allocation.
27847
27848 2010-10-11  Bruno Haible  <bruno@clisp.org>
27849
27850         stdlib: Allow multiple gnulib generated replacements to coexist.
27851         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27852         Reported by Sam Steingold <sds@gnu.org>.
27853
27854 2010-10-11  Jim Meyering  <meyering@redhat.com>
27855
27856         fix a documentation typo
27857         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27858
27859 2010-10-11  Eric Blake  <eblake@redhat.com>
27860
27861         futimens: work around Solaris 11 bug
27862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27863         * tests/test-futimens.h (test_futimens): Enhance, rather than
27864         weaken test.
27865         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27866
27867 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27868
27869         Indentation.
27870         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27871         higher-level operators more to the left.
27872
27873 2010-10-11  Jim Meyering  <meyering@redhat.com>
27874
27875         test-futimens: avoid unwarranted test failure on Solaris 5.11
27876         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27877         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27878         because it tries to dereference the NULL name argument.
27879
27880 2010-10-11  Bruno Haible  <bruno@clisp.org>
27881
27882         Indentation.
27883         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27884         indentation.
27885
27886 2010-10-11  Jim Meyering  <meyering@redhat.com>
27887
27888         spawn.in.h: make indentation consistent with parentheses
27889         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27890         Make indentation consistent with parentheses.
27891
27892 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27893
27894         Fix mismatched parens in previous commit
27895         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27896         parens.
27897
27898 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27899
27900         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27901
27902         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27903         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27904         * lib/malloca.c: Include "verify.h".
27905         (verify1): Remove, replacing with a verify call.
27906         * lib/relocwrapper.c (verify1): Likewise.
27907         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27908         Likewise.
27909         * modules/malloca (Depends-on): Add 'verify'.
27910         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27911         * modules/vasnprintf (Depends-on): Add 'verify'.
27912         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27913         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27914         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27915         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27916         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27917         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27918         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27919
27920         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27921
27922         Formerly the style was sometimes 2*X - 1, because the C standard
27923         was wrongly thought to disallow ?: in integral constant expressions.
27924         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27925         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27926         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27927         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27928         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27929         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27930         verify that time_t cannot be floating.
27931
27932 2010-10-08  Eric Blake  <eblake@redhat.com>
27933
27934         time: enforce recent POSIX ruling that time_t is integral
27935         * lib/time.in.h (__time_t_must_be_integral): Detect any
27936         problematic systems, allowing the rest of gnulib to assume POSIX.
27937
27938 2010-10-08  Jim Meyering  <meyering@redhat.com>
27939
27940         fdopendir: fix a bug on systems lacking openat and /proc support
27941         OpenBSD 4.7 is one such system.  The most noticeable effect was
27942         failure of any application making nontrivial use of fts: rm, du,
27943         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27944           ./rm: traversal failed: `a': Bad file descriptor
27945         Debugging that, you see that even though FD 6 was closed just
27946         prior to the opendir call in fd_clone_opendir, its resulting
27947         dir->dd_fd was 8, rather than the expected value of 6:
27948
27949         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27950         93                close (fd);
27951         (gdb) n
27952         94                dir = fd_clone_opendir (dupfd);
27953         (gdb) n
27954         95                saved_errno = errno;
27955         (gdb) p dir->dd_fd
27956         $11 = 8
27957
27958         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27959         The problem is that on OpenBSD, fd_clone_opendir has to resort
27960         to using the old-style save/restore CWD mechanism, due to its
27961         lack of openat/proc support, and *that* would steal the FD (6)
27962         that opendir was supposed to use.
27963
27964         The fix is to squirrel away the desired FD so that save_cwd uses a
27965         different one, and then free the dest FD right before calling opendir.
27966         That guarantees opendir will use the required file descriptor.
27967
27968         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27969
27970 2010-10-08  Bruno Haible  <bruno@clisp.org>
27971
27972         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27973         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27974
27975 2010-10-08  Bruno Haible  <bruno@clisp.org>
27976
27977         nanosleep: Make replacement POSIX compliant.
27978         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27979         is out of range.
27980         Reported by Jim Meyering.
27981
27982 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         bootstrap: add hook for altering gnulib.mk, for Bison
27985         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27986         the Bison bootstrapping process can rewrite file names and variables
27987         in this file before later parts of 'bootstrap' use the file.
27988         Bison wants to include lib/gnulib.mk from the top-level makefile,
27989         so it needs the file names in this file to be relative to the top
27990         level, not relative to lib; plus it needs variable names to be
27991         rewritten.
27992         (slurp): Use the new function.
27993
27994         bootstrap: reformat for readability
27995         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27996
27997 2010-10-08  Eric Blake  <eblake@redhat.com>
27998
27999         docs: update cygwin progress
28000         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28001         1.7.7.
28002         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28003         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28004         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28005         * doc/posix-functions/carg.texi (carg): Likewise.
28006         * doc/posix-functions/cargf.texi (cargf): Likewise.
28007         * doc/posix-functions/casin.texi (casin): Likewise.
28008         * doc/posix-functions/casinf.texi (casinf): Likewise.
28009         * doc/posix-functions/casinh.texi (casinh): Likewise.
28010         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28011         * doc/posix-functions/catan.texi (catan): Likewise.
28012         * doc/posix-functions/catanf.texi (catanf): Likewise.
28013         * doc/posix-functions/catanh.texi (catanh): Likewise.
28014         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28015         * doc/posix-functions/ccos.texi (ccos): Likewise.
28016         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28017         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28018         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28019         * doc/posix-functions/cexp.texi (cexp): Likewise.
28020         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28021         * doc/posix-functions/cimag.texi (cimag): Likewise.
28022         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28023         * doc/posix-functions/clog.texi (clog): Likewise.
28024         * doc/posix-functions/clogf.texi (clogf): Likewise.
28025         * doc/posix-functions/conj.texi (conj): Likewise.
28026         * doc/posix-functions/conjf.texi (conjf): Likewise.
28027         * doc/posix-functions/cpow.texi (cpow): Likewise.
28028         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28029         * doc/posix-functions/cproj.texi (cproj): Likewise.
28030         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28031         * doc/posix-functions/creal.texi (creal): Likewise.
28032         * doc/posix-functions/crealf.texi (crealf): Likewise.
28033         * doc/posix-functions/csin.texi (csin): Likewise.
28034         * doc/posix-functions/csinf.texi (csinf): Likewise.
28035         * doc/posix-functions/csinh.texi (csinh): Likewise.
28036         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28037         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28038         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28039         * doc/posix-functions/ctan.texi (ctan): Likewise.
28040         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28041         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28042         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28043         * doc/posix-headers/complex.texi (complex.h): Likewise.
28044
28045 2010-10-07  Jim Meyering  <meyering@redhat.com>
28046
28047         parse-datetime: avoid compilation failure on OpenBSD 4.7
28048         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28049         This works around a compilation failure on OpenBSD 4.7:
28050         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28051
28052 2010-10-07  Eric Blake  <eblake@redhat.com>
28053
28054         docs: update cygwin progress
28055         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28056         1.7.6.
28057         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28058         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28059         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28060         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28061         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28062         Likewise.
28063         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28064         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28065         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28066         Likewise.
28067         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28068         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28069         Likewise.
28070         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28071         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28072         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28073         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28074         Likewise.
28075         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28076         Likewise.
28077         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28078
28079         docs: update parse-datetime history
28080         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28081         documentation of this function's history and alternatives.
28082
28083         cygwin: use more robust version check
28084         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28085         exclude an eventual cygwin 1.9.1.
28086         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28087         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28088         (gl_FUNC_STRCASESTR): Likewise.
28089         Reported by Bruno Haible.
28090
28091 2010-10-06  Bruno Haible  <bruno@clisp.org>
28092
28093         string, sys_select: Avoid #including large headers unless necessary.
28094         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28095         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28096         OSF/1, BeOS, Haiku.
28097         Reported by Jim Meyering.
28098
28099 2010-10-05  Eric Blake  <eblake@redhat.com>
28100
28101         memmem, strstr, strcasestr: fix bug with long periodic needle
28102         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28103         periodic needle having false positive.
28104         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28105         and cygwin 1.7.7.
28106         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28108         (gl_FUNC_STRCASESTR): Likewise.
28109         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28110         * tests/test-memmem.c (main): Expose the bug.
28111         * tests/test-strcasestr.c (main): Likewise.
28112         * tests/test-strstr.c (main): Likewise.
28113         * tests/test-c-strcasestr.c (main): Likewise.
28114         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28115         * doc/posix-functions/strstr.texi (strstr): Likewise.
28116         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28117         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28118
28119 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28120
28121         parse-datetime: do some more renaming
28122         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28123         parse_datetime, not get_date.  Mention the renaming.
28124         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28125         in comments.
28126         * m4/bison.m4: Likewise.
28127
28128 2010-10-05  Eric Blake  <eblake@redhat.com>
28129
28130         parse-datetime: better name than get_date
28131         * NEWS: Reword the deprecation notice.
28132         * modules/get_date: Rename to modules/parse-datetime.
28133         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28134         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28135         * lib/get_date.y: Rename to lib/parse-datetime.y.
28136         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28137         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28138         * doc/getdate.texi: Provide fallback wrapper.
28139         * lib/getdate.h: Move guts, and wrap...
28140         * lib/parse-datetime.h: ...new file.
28141         * lib/parse-datetime.y (get_date): Rename...
28142         (parse_datetime): ...to this.
28143         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28144         (gl_PARSE_DATETIME): ...to this.
28145         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28146         documentation.
28147         * modules/getdate (Files): Provide fallback docs and header.
28148         (Notice, Depends-on): Update references.
28149         * tests/test-parse-datetime.c: Likewise.
28150         * DEPENDENCIES: Likewise.
28151         * MODULES.html.sh (Date and time <time.h>): Likewise.
28152         * doc/parse-datetime.texi (Date input formats)
28153         (Authors of parse_datetime): Likewise.
28154         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28155         (Include): Likewise.
28156         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28157         * gnulib-tool: Likewise.
28158         * m4/bison.m4 (gl_BISON): Likewise.
28159         Suggested by Bruno Haible.
28160
28161 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28162
28163         more ports to Solaris tr, which needs [] around ranges
28164         * gnulib-tool: Solaris tr needs [] around ranges.
28165         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28166         * tests/test-pipe-filter-gi1.c (main): Likewise.
28167         * tests/test-pipe-filter-ii1.c (main): Likewise.
28168
28169 2010-10-05  Eric Blake  <eblake@redhat.com>
28170
28171         bootstrap: fix Solaris regression
28172         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28173         around ranges.
28174         Reported by Pádraig Brady.
28175
28176         bootstrap: work with pkg-config
28177         * build-aux/bootstrap (check_versions): Also transliterate - in
28178         prerequisite name.
28179         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28180         prerequisites that were already found, to avoid confusion.
28181         Reported by Justin Clift.
28182
28183         faccessat: remove unused wrappers
28184         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28185         presence of these wrappers dragged in -lgen on Solaris.
28186         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28187
28188 2010-10-05  Jim Meyering  <meyering@redhat.com>
28189
28190         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28191         * Makefile (sc_pragma_columns): New syntax-check rule.
28192
28193 2010-10-04  Bruno Haible  <bruno@clisp.org>
28194
28195         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28196         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28197         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28198         Reported by Bruce Korb and Eric Blake.
28199
28200 2010-10-04  Bruno Haible  <bruno@clisp.org>
28201
28202         threadlib: Make option --with-libpth-prefix work.
28203         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28204         use $LIBPTH, not just -lpth.
28205
28206 2010-10-04  Bruno Haible  <bruno@clisp.org>
28207
28208         Avoid line length limitation from HP NonStop system header files.
28209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28210         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28211         * lib/ctype.in.h: Likewise.
28212         * lib/dirent.in.h: Likewise.
28213         * lib/errno.in.h: Likewise.
28214         * lib/fcntl.in.h: Likewise.
28215         * lib/float.in.h: Likewise.
28216         * lib/getopt.in.h: Likewise.
28217         * lib/iconv.in.h: Likewise.
28218         * lib/inttypes.in.h: Likewise.
28219         * lib/langinfo.in.h: Likewise.
28220         * lib/locale.in.h: Likewise.
28221         * lib/math.in.h: Likewise.
28222         * lib/netdb.in.h: Likewise.
28223         * lib/netinet_in.in.h: Likewise.
28224         * lib/poll.in.h: Likewise.
28225         * lib/pthread.in.h: Likewise.
28226         * lib/pty.in.h: Likewise.
28227         * lib/sched.in.h: Likewise.
28228         * lib/se-selinux.in.h: Likewise.
28229         * lib/search.in.h: Likewise.
28230         * lib/signal.in.h: Likewise.
28231         * lib/spawn.in.h: Likewise.
28232         * lib/stdarg.in.h: Likewise.
28233         * lib/stddef.in.h: Likewise.
28234         * lib/stdint.in.h: Likewise.
28235         * lib/stdio.in.h: Likewise.
28236         * lib/stdlib.in.h: Likewise.
28237         * lib/string.in.h: Likewise.
28238         * lib/strings.in.h: Likewise.
28239         * lib/sys_file.in.h: Likewise.
28240         * lib/sys_ioctl.in.h: Likewise.
28241         * lib/sys_select.in.h: Likewise.
28242         * lib/sys_socket.in.h: Likewise.
28243         * lib/sys_stat.in.h: Likewise.
28244         * lib/sys_time.in.h: Likewise.
28245         * lib/sys_times.in.h: Likewise.
28246         * lib/sys_utsname.in.h: Likewise.
28247         * lib/sys_wait.in.h: Likewise.
28248         * lib/sysexits.in.h: Likewise.
28249         * lib/termios.in.h: Likewise.
28250         * lib/time.in.h: Likewise.
28251         * lib/unistd.in.h: Likewise.
28252         * lib/wchar.in.h: Likewise.
28253         * lib/wctype.in.h: Likewise.
28254         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28255         * modules/ctype (Makefile.am): Likewise.
28256         * modules/dirent (Makefile.am): Likewise.
28257         * modules/errno (Makefile.am): Likewise.
28258         * modules/fcntl-h (Makefile.am): Likewise.
28259         * modules/float (Makefile.am): Likewise.
28260         * modules/getopt-posix (Makefile.am): Likewise.
28261         * modules/iconv-h (Makefile.am): Likewise.
28262         * modules/inttypes (Makefile.am): Likewise.
28263         * modules/langinfo (Makefile.am): Likewise.
28264         * modules/locale (Makefile.am): Likewise.
28265         * modules/math (Makefile.am): Likewise.
28266         * modules/netdb (Makefile.am): Likewise.
28267         * modules/netinet_in (Makefile.am): Likewise.
28268         * modules/poll-h (Makefile.am): Likewise.
28269         * modules/pthread (Makefile.am): Likewise.
28270         * modules/pty (Makefile.am): Likewise.
28271         * modules/sched (Makefile.am): Likewise.
28272         * modules/search (Makefile.am): Likewise.
28273         * modules/selinux-h (Makefile.am): Likewise.
28274         * modules/signal (Makefile.am): Likewise.
28275         * modules/spawn (Makefile.am): Likewise.
28276         * modules/stdarg (Makefile.am): Likewise.
28277         * modules/stddef (Makefile.am): Likewise.
28278         * modules/stdint (Makefile.am): Likewise.
28279         * modules/stdio (Makefile.am): Likewise.
28280         * modules/stdlib (Makefile.am): Likewise.
28281         * modules/string (Makefile.am): Likewise.
28282         * modules/strings (Makefile.am): Likewise.
28283         * modules/sys_file (Makefile.am): Likewise.
28284         * modules/sys_ioctl (Makefile.am): Likewise.
28285         * modules/sys_select (Makefile.am): Likewise.
28286         * modules/sys_socket (Makefile.am): Likewise.
28287         * modules/sys_stat (Makefile.am): Likewise.
28288         * modules/sys_time (Makefile.am): Likewise.
28289         * modules/sys_times (Makefile.am): Likewise.
28290         * modules/sys_utsname (Makefile.am): Likewise.
28291         * modules/sys_wait (Makefile.am): Likewise.
28292         * modules/sysexits (Makefile.am): Likewise.
28293         * modules/termios (Makefile.am): Likewise.
28294         * modules/time (Makefile.am): Likewise.
28295         * modules/unistd (Makefile.am): Likewise.
28296         * modules/wchar (Makefile.am): Likewise.
28297         * modules/wctype (Makefile.am): Likewise.
28298
28299 2010-10-04  Bruno Haible  <bruno@clisp.org>
28300
28301         read-file tests: Avoid a test failure on NonStop Kernel.
28302         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28303         a regular file.
28304         Reported by Joachim Schmitz <schmitz@hp.com>.
28305
28306 2010-10-03  Bruno Haible  <bruno@clisp.org>
28307
28308         gnulib-tool: Fixes for --create-testdir with --libtool.
28309         * gnulib-tool (func_get_automake_snippet): Don't augment
28310         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28311         an executable.
28312         (func_create_testdir): Handle module 'alloca' like func_import.
28313         Reported by Bruce Korb <bruce.korb@gmail.com>.
28314
28315 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28316
28317         Avoid some lines longer than 80 characters.
28318         * lib/stdint.in.h: Break long comment lines.
28319         * lib/math.in.h: Likewise.
28320         (_GL_NUM_UINT_WORDS): New macro, for readability.
28321         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28322         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28323         * lib/stdlib.in.h: Likewise.
28324         * lib/spawn.in.h: Likewise.
28325         * lib/sys_socket.in.h: Update an URL.
28326         * lib/sys_stat.in.h: Break long line.
28327
28328 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28329
28330         Improve pmccabe2html.
28331         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28332         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28333         when the sources change. Remove the line in the HTML about "Used
28334         ranges" (which implied that there might be other unused ranges),
28335         rename "Resume" to "Summary" (easier to understand for more users).
28336         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28337         styles, and some unnecessary blank lines.
28338
28339 2010-10-03  Bruno Haible  <bruno@clisp.org>
28340             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28341
28342         acl: Add support for ACLs on NonStop Kernel.
28343         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28344         Check whether the function aclsort() exists.
28345         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28346         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28347         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28348         (acl_nontrivial [HAVE_ACLSORT]: New function.
28349         (file_has_acl): Implement for NonStop Kernel.
28350         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28351         (qset_acl): Implement for NonStop Kernel.
28352         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28353         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28354         (main): Implement for NonStop Kernel.
28355         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28356         Kernel. Handle this flavor.
28357         * tests/test-set-mode-acl.sh: Likewise.
28358         * tests/test-copy-acl.sh: Likewise.
28359         * tests/test-copy-file.sh: Likewise.
28360
28361 2010-10-03  Bruno Haible  <bruno@clisp.org>
28362
28363         Info about ACLs on NonStop Kernel.
28364         * doc/acl-resources.txt: Add info about NonStop Kernel.
28365         References by Joachim Schmitz <schmitz@hp.com>.
28366
28367 2010-10-02  Bruno Haible  <bruno@clisp.org>
28368
28369         Define missing EDQUOT on NonStop Kernel.
28370         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28371         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28372         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28373         missing.
28374         * doc/posix-headers/errno.texi: Mention the NSK bug.
28375         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28376         Reported by Joachim Schmitz <schmitz@hp.com>.
28377
28378 2010-10-02  Bruno Haible  <bruno@clisp.org>
28379
28380         Update doc for POSIX:2008.
28381         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28382         Update URL of POSIX specification.
28383
28384 2010-10-02  Bruno Haible  <bruno@clisp.org>
28385
28386         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28387         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28388         from gnulib, not from Automake.
28389
28390 2010-10-02  Bruno Haible  <bruno@clisp.org>
28391
28392         New module 'system-posix'.
28393         * modules/system-posix: New file.
28394         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28395         module is present.
28396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28397         GNULIB_SYSTEM_POSIX.
28398         * modules/stdlib (Depends-on): Remove sys_wait.
28399         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28400         * doc/posix-functions/system.texi: Mention the new module.
28401         * doc/posix-headers/stdlib.texi: Likewise.
28402         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28403         define test_sys_wait_macros to a no-op.
28404         Reported by Sam Steingold <sds@gnu.org>.
28405
28406 2010-09-30  Bruno Haible  <bruno@clisp.org>
28407
28408         More renaming from 'getdate' to 'get_date'.
28409         * doc/get_date.texi: Renamed from doc/getdate.texi.
28410         * modules/get_date (Files): Update.
28411         * MODULES.html.sh (Date and time <time.h>): Update.
28412         * DEPENDENCIES: Update.
28413         * gnulib-tool: Update comment.
28414         * m4/bison.m4 (gl_BISON): Likewise.
28415         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28416
28417 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28418
28419         bootstrap: support ACLOCAL_FLAGS during aclocal
28420         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28421         can add additional -I dir for third-party .m4 files.
28422
28423 2010-09-30  Eric Blake  <eblake@redhat.com>
28424
28425         bootstrap: use glibtoolize on MacOS
28426         * build-aux/bootstrap (check_versions): Convert libtool into
28427         libtoolize.
28428         (tool search): Move libtool check earlier, and look for
28429         glibtoolize for MacOS.
28430         (gnulib_tool_options): Auto-add --libtool when appropriate.
28431         Reported by Justin Clift.
28432
28433         poll: fix typo that broke test on MacOS
28434         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28435         Reported by Justin Clift.
28436
28437         getdate: rename to get_date
28438         Note: getdate.h is not renamed, to minimize client impact.
28439         * modules/getdate: Mark obsolete.  Move old contents...
28440         * modules/get_date: ...to new module name.
28441         * modules/getdate-tests: Move...
28442         * modules/get_date-tests: ...here.
28443         * m4/getdate.m4: Move...
28444         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28445         * lib/getdate.y: Move...
28446         * lib/get_date.y: ...here.
28447         * tests/test-getdate.c: Move...
28448         * tests/test-get_date.c: ...here.
28449         * doc/posix-functions/getdate.texi (getdate): Update name.
28450         * NEWS: Mention the change.
28451
28452 2010-09-29  Bruno Haible  <bruno@clisp.org>
28453
28454         Separate the module 'waitpid' from the module 'sys_wait'.
28455         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28456         present.
28457         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28458         gl_MODULE_INDICATOR_FOR_TESTS.
28459         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28460         * modules/sys_wait (Depends-on): Remove waitpid.
28461         (Makefile.am): Substitute GNULIB_WAITPID.
28462         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28463         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28464         signature only if the 'waitpid' module is present.
28465         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28466         * NEWS: Mention the change.
28467         * modules/grantpt (Depends-on): Add waitpid.
28468         * modules/wait-process (Depends-on): Likewise.
28469
28470 2010-09-29  Bruno Haible  <bruno@clisp.org>
28471
28472         More tests for module 'sys_wait'.
28473         * modules/sys_wait-c++-tests: New file.
28474         * tests/test-sys_wait-c++.cc: New file.
28475         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28476         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28477
28478 2010-09-29  Bruno Haible  <bruno@clisp.org>
28479
28480         New module 'waitpid'.
28481         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28482         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28483         Don't include <process.h>.
28484         (waitpid): Declare only, using modern idiom.
28485         * m4/waitpid.m4: New file.
28486         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28487         * modules/waitpid: New file.
28488         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28489         (Makefile.am): Update.
28490         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28491
28492 2010-09-28  Bruno Haible  <bruno@clisp.org>
28493
28494         poll: Assume ANSI C.
28495         * lib/poll.c (poll): Use an ANSI C declaration.
28496
28497 2010-09-28  Bruno Haible  <bruno@clisp.org>
28498
28499         poll-h: Create poll.h on all platforms.
28500         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28501         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28502         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28503         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28504         (gl_REPLACE_POLL_H): Don't set POLL_H.
28505         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28506         * modules/poll-h (Depends-on): Add include_next.
28507         (Makefile.am): Create poll.h unconditionally. Substitute also
28508         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28509
28510 2010-09-28  Bruno Haible  <bruno@clisp.org>
28511
28512         Tests for module 'poll-h'.
28513         * modules/poll-h-c++-tests: New file.
28514         * tests/test-poll-h-c++.cc: New file.
28515
28516         Tests for module 'poll-h'.
28517         * modules/poll-h-tests: New file.
28518         * tests/test-poll-h.c: New file.
28519
28520 2010-09-28  Bruno Haible  <bruno@clisp.org>
28521
28522         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28523         * modules/poll-h (Depends-on): Add 'extensions'.
28524
28525 2010-09-28  Bruno Haible  <bruno@clisp.org>
28526
28527         New module 'poll-h'.
28528         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28529         (poll): Use modern idiom.
28530         * modules/poll-h: New file.
28531         * modules/poll (Files): Remove lib/poll.in.h.
28532         (Depends-on): Add poll-h.
28533         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28534         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28535         * m4/poll_h.m4: New file.
28536         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28537         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28538         and invoke gl_REPLACE_POLL_H.
28539         * lib/poll.c: Use common idiom.
28540         * tests/test-poll.c: Likewise.
28541         * doc/posix-headers/poll.texi: Mention the poll-h module.
28542         Suggested by Eric Blake.
28543
28544 2010-09-26  Bruno Haible  <bruno@clisp.org>
28545
28546         sys_wait: Implement WSTOPSIG.
28547         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28548         Reported by Simon Josefsson.
28549
28550 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28551
28552         stdlib, sys_wait: Avoid compilation error on mingw.
28553         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28554
28555 2010-09-26  Bruno Haible  <bruno@clisp.org>
28556
28557         stdlib tests: Avoid code duplication.
28558         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28559         * modules/sys_wait-tests (Files): Likewise.
28560         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28561         * tests/test-stdlib.c: Include test-sys_wait.h.
28562         (main): Invoke test_sys_wait_macros.
28563         * tests/test-sys_wait.c: Include test-sys_wait.h.
28564         (main): Invoke test_sys_wait_macros.
28565
28566 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28567
28568         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28569         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28570         sure Windows sockets are working before calling getaddrinfo.
28571         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28572         * doc/gnulib.texi (Windows sockets): Fix typo.
28573
28574 2010-09-25  Bruno Haible  <bruno@clisp.org>
28575
28576         Tests for module 'regex-quote'.
28577         * modules/regex-quote-tests: New file.
28578         * tests/test-regex-quote.c: New file.
28579
28580         New module 'regex-quote'.
28581         * lib/regex-quote.h: New file.
28582         * lib/regex-quote.c: New file.
28583         * modules/regex-quote: New file.
28584         Suggested by Reuben Thomas <rrt@sc3d.org>.
28585
28586 2010-09-24  Bruno Haible  <bruno@clisp.org>
28587
28588         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28589         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28590
28591 2010-09-23  Bruno Haible  <bruno@clisp.org>
28592
28593         setenv: Relax license.
28594         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28595         Blake.
28596         Requested by Eric Blake.
28597
28598 2010-09-22  Bruno Haible  <bruno@clisp.org>
28599
28600         termios: Relax license.
28601         * modules/termios (License): Change to LGPLv2+.
28602         Requested by Eric Blake.
28603
28604 2010-09-22  Bruno Haible  <bruno@clisp.org>
28605
28606         threadlib: Allow the package to change the default to 'no'.
28607         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28608         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28609         Reported by Paul Eggert.
28610
28611 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28612             Bruno Haible  <bruno@clisp.org>
28613
28614         Fix endless loop in mbmemcasecoll.
28615         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28616         byte.
28617         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28618
28619 2010-09-22  Bruno Haible  <bruno@clisp.org>
28620
28621         Tests for module 'memcoll'.
28622         * modules/memcoll-tests: New file.
28623         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28624
28625         memcoll, xmemcoll: Clarify size vs. length.
28626         * modules/memcoll.c (memcoll0): Clarify specification.
28627         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28628         passed to collate_error.
28629
28630 2010-09-22  Bruno Haible  <bruno@clisp.org>
28631
28632         Tests for module 'memcasecmp'.
28633         * modules/memcasecmp-tests: New file.
28634         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28635
28636 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28637
28638         * lib/pthread.in.h: Add split double-inclusion guard, and include
28639         system <pthread.h> if there is one.  Use @@-style as in other
28640         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28641         pthread.h doesn't.
28642         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28643         (pthread_mutexattr_settype, pthread_mutex_trylock):
28644         New static inline functions, if there's no system <pthread.h>.
28645         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28646         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28647         Approximate with mutexes if the system lacks spinlocks, as in
28648         MacOS.
28649         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28650         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28651         @@-style.  Check for spinlocks separately.
28652         (gl_PTHREAD_DEFAULTS): New macro.
28653         * modules/pthread: Redo to use a more typical style for in.h files.
28654
28655 2010-09-21  Eric Blake  <eblake@redhat.com>
28656
28657         net_if: enhance tests
28658         * tests/test-net_if.c (main): Move signature checks earlier.
28659         Print failures to stderr.
28660         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28661         Document the bug that we do not yet fix.
28662
28663 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28664
28665         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28666         about gnulib, not GSS.
28667
28668 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28669
28670         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28671         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28672         for Emacs.
28673         * build-aux/pmccabe2html: Make Makefile.am example code more
28674         cut-and-paste friendly.
28675
28676 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28677
28678         * tests/test-net_if.c: New file.
28679         * modules/net_if-tests: New file.
28680
28681 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28682
28683         pthread: add pthread_spin_destroy
28684         * lib/pthread.in.h (pthread_spin_destroy): New function.
28685
28686 2010-09-19  Bruno Haible  <bruno@clisp.org>
28687
28688         gnulib-tool: Fix --help output.
28689         * gnulib-tool (func_usage): Fix help message.
28690         Reported by Reuben Thomas <rrt@sc3d.org>.
28691
28692 2010-09-18  Jim Meyering  <meyering@redhat.com>
28693
28694         maint.mk: avoid unexpanded \n in two diagnostics
28695         * top/maint.mk (sc_prohibit_always_true_header_tests):
28696         Don't use a literal \n in a halt=... assignment.  It would not be
28697         expanded, and the two \n bytes would appear in the diagnostic output
28698         rather than the desired newline.  Use halt=$$(printf ... instead.
28699         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28700
28701 2010-09-18  Bruno Haible  <bruno@clisp.org>
28702
28703         netinet_in: Doc tweak.
28704         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28705         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28706
28707 2010-09-18  Jim Meyering  <meyering@redhat.com>
28708
28709         init.sh: correct an outdated comment
28710         * tests/init.sh (create_exe_shims_):  s/function/alias/
28711
28712         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28713         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28714         a file named "*.exe" is removed between the glob expansion and the
28715         processing of that oddly named file.
28716
28717 2010-09-17  Eric Blake  <eblake@redhat.com>
28718
28719         mirbsd: add some more support
28720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28721         in BSD family.
28722         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28723         devices as OpenBSD.
28724         * m4/host-os.m4 (mirbsd): Add MirBSD.
28725
28726         tests: fix unportable assumption on sys/wait.h
28727         * tests/test-sys_wait.c (main): Relax test.
28728         * tests/test-stdlib.c (main): Likewise.
28729
28730         init.sh: accommodate directory with no .exes
28731         * tests/init.sh: Accomodate directory containing only scripts.
28732
28733         tests: avoid compiler warning
28734         * tests/test-stdlib.c (main): Use the variable.
28735
28736         fdutimens, fdutimensat: update signature, again
28737         * lib/utimens.h (gl_futimens): Delete, and move signature...
28738         (fdutimens): ...here.
28739         (fdutimensat): Rearrange signature.
28740         (lutimensat): Rename variable for clarity.
28741         * lib/fdutimensat.c (fdutimensat): Update signature.
28742         * lib/utimens.c (fdutimens): Likewise.
28743         (gl_futimens): Delete.
28744         (utimens, lutimens): Update callers.
28745         * lib/futimens.c (futimens): Likewise.
28746         * tests/test-fdutimensat.c: Likewise.
28747         * tests/test-utimens.c: Likewise.
28748         * tests/test-futimens.h: Update comment.
28749         * NEWS: Mention this.
28750         Suggested by Paul Eggert.
28751
28752 2010-09-17  Bruno Haible  <bruno@clisp.org>
28753
28754         Take over the maintenance of some older macros from Autoconf.
28755         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28756         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28757         GNU Autoconf.
28758         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28759         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28760
28761 2010-09-17  Eric Blake  <eblake@redhat.com>
28762
28763         fdutimensat: drop atflag validation
28764         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28765         with valid fd, to close a race scenario where futimens is
28766         unsupported and FILE was replaced by a symlink.
28767         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28768         accordingly.
28769         Suggested by Paul Eggert.
28770
28771 2010-09-16  Bruno Haible  <bruno@clisp.org>
28772
28773         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28774         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28775
28776 2010-09-16  Bruno Haible  <bruno@clisp.org>
28777
28778         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28779         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28780         login_tty exists.
28781         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28782
28783 2010-09-16  Bruno Haible  <bruno@clisp.org>
28784
28785         login_tty: Make the replacement code work on BSD systems.
28786         * lib/login_tty.c: Include <sys/ioctl.h>.
28787         (login_tty): Use ioctl TIOCSCTTY when available.
28788         * modules/login_tty (Depends-on): Add sys_ioctl.
28789         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28790
28791 2010-09-16  Bruno Haible  <bruno@clisp.org>
28792
28793         login_tty: Stricter unit test.
28794         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28795         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28796         and tcgetsid() after login_tty.
28797         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28798
28799 2010-09-16  Bruno Haible  <bruno@clisp.org>
28800
28801         New module 'tcgetsid'.
28802         * lib/tcgetsid.c: New file.
28803         * m4/tcgetsid.m4: New file.
28804         * modules/tcgetsid: New file.
28805         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28806         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28807         GNULIB_TCGETSID, HAVE_TCGETSID.
28808         * lib/termios.in.h: Include <sys/types.h>.
28809         (tcgetsid): New declaration.
28810         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28811         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28812         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28813         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28814
28815 2010-09-16  Bruno Haible  <bruno@clisp.org>
28816
28817         Tests for module 'termios'.
28818         * modules/termios-c++-tests: New file.
28819         * modules/termios-tests: New file.
28820         * tests/test-termios-c++.cc: New file.
28821         * tests/test-termios.c: New file.
28822
28823         New module 'termios'.
28824         * modules/termios: New file.
28825         * lib/termios.in.h: New file.
28826         * m4/termios_h.m4: New file.
28827         * doc/posix-headers/termios.texi: Mention the new module.
28828
28829 2010-09-16  Eric Blake  <eblake@redhat.com>
28830
28831         fdutimensat: add an atflag parameter
28832         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28833         * lib/utimens.h (fdutimensat): Update prototype.
28834         * tests/test-fdutimensat.c: Adjust test to match.
28835         * NEWS: Document the change.
28836         Suggested by Paul Eggert.
28837
28838 2010-09-16  Bruno Haible  <bruno@clisp.org>
28839
28840         Fix typos in comments.
28841         * lib/striconveh.h: Fix typo in comment.
28842         * lib/login_tty.c (login_tty): Likewise.
28843
28844 2010-09-15  Bruno Haible  <bruno@clisp.org>
28845
28846         stdlib: clarify MirBSD WEXITSTATUS bug
28847         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28848         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28849
28850 2010-09-15  Eric Blake  <eblake@redhat.com>
28851
28852         stdlib: work around MirBSD WEXITSTATUS bug
28853         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28854         * modules/stdlib (Depends-on): Add sys_wait.
28855         * tests/test-sys_wait.c (main): Enhance test.
28856         * tests/test-stdlib.c (main): Likewise.
28857         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28858
28859         docs: mention MacOS issue with WEXITSTATUS(constant)
28860         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28861         issue.
28862         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28863
28864         strnlen: add tests
28865         * modules/strnlen-tests: New file.
28866         * tests/test-strnlen.c: Likewise.
28867
28868 2010-09-14  Bruno Haible  <bruno@clisp.org>
28869
28870         unistr/base: Avoid link errors when module 'libunistring' is also used.
28871         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28872         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28873         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28874         Declare also when HAVE_LIBUNISTRING is set.
28875         Reported by Pádraig Brady <P@draigbrady.com>.
28876
28877 2010-09-14  Eric Blake  <eblake@redhat.com>
28878
28879         test-rawmemchr: make more robust
28880         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28881         (Depends-on, configure.ac): Add needed prerequisites to use it.
28882         * modules/memchr-tests (Files, Depends-on, configure.ac):
28883         Likewise, to avoid implicit reliance on memchr module prereqs.
28884         * tests/test-memchr.c (main): Ensure proper masking.
28885         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28886         reads.
28887
28888         memchr: detect glibc Alpha bug
28889         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28890         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28891         Alpha.
28892         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28893         * tests/test-memchr.c (main): Enhance test.
28894         Reported by Nelson H. F. Beebe.
28895
28896 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28897
28898         fts, getcwd, glob: audit for dirfd returning -1
28899         * lib/fts.c (opendir): Remove #define; no longer used.
28900         (opendirat): New arg PDIR_FD.  All callers changed.
28901         (fts_build, _opendir2): Use new opendirat to avoid the need for
28902         dirfd, or for checking whether dirfd returns a negative value.
28903         Don't use opendir; always use openat followed by fdopendir.
28904         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28905         it.
28906         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28907         returns -1 here.
28908         * modules/fts (Depends-on): Remove dirfd.
28909         * modules/getcwd (Depends-on): Likewise.
28910
28911 2010-09-13  Eric Blake  <eblake@redhat.com>
28912
28913         float: fix broken MirBSD header
28914         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28915         * doc/posix-headers/float.texi (float.h): Document it.
28916
28917 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28918
28919         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28920         * lib/fts.c (opendirat): New arg extra_flags.
28921         (__opendir2): Use it to avoid following symlinks when opening
28922         a directory, if symlinks are not supposed to be followed.  See
28923         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28924
28925         fdopendir: preserve argument fd before returning
28926         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28927         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28928         (fdopendir): Use them, arranging for FD to be open to the same
28929         directory that it was when it started.  (It might be temporarily
28930         closed while fdopendir is running, so this not thread- or
28931         signal-safe.)  Be careful to do the right thing even when file
28932         descriptors are scarce and dup fails with errno == EMFILE.  See
28933         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28934
28935 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28936
28937         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28938         * NEWS: Document change.
28939         * m4/regex.m4: Disable test for regoff_t size.
28940
28941 2010-09-13  Jim Meyering  <meyering@redhat.com>
28942
28943         fts: don't operate on an invalid file descriptor after failed dup
28944         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28945         negative file descriptor.
28946
28947 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28948
28949         savedir: add streamsavedir, deprecate fdsavedir
28950         * NEWS: Mention deprecation of fdsavedir.
28951         * lib/savedir.c (streamsavedir): New extern function, whose name
28952         ends in "savedir" to be consistent with the others.  This differs
28953         from savedirstream in that it doesn't close its argument.  The
28954         next version of GNU tar will use this instead of fdsavedir, to
28955         avoid some race conditions and conserve file descriptors.
28956         (savedirstream): Reimplement as a wrapper around streamsavedir.
28957         (fdsavedir): Add a comment deprecating this function.  As far as
28958         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28959         * lib/savedir.h (streamsavedir): New decl.
28960         (fdsavedir): Add a comment deprecating this.
28961
28962 2010-09-10  Bruno Haible  <bruno@clisp.org>
28963
28964         langinfo: Fix last commit.
28965         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28966         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28968
28969 2010-09-10  Bruno Haible  <bruno@clisp.org>
28970
28971         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28972         * lib/progreloc.c (O_EXEC): Define fallback.
28973
28974 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28975
28976         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28977         * NEWS: Document recent changes to fcntl-h.
28978         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28979         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28980         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28981         Similarly for O_SEARCH; this last was already true, but not documented.
28982         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28983         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28984         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28985         Likewise.
28986         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28987         is zero, not whether it is defined.
28988         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28989         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28990         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28991
28992 2010-09-10  Bruno Haible  <bruno@clisp.org>
28993
28994         langinfo, nl_langinfo: Fix for IRIX 5.3.
28995         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28996         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28997         HAVE_LANGINFO_YESEXPR.
28998         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28999         HAVE_LANGINFO_YESEXPR.
29000         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29001         HAVE_LANGINFO_T_FMT_AMPM is 0.
29002         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29003         HAVE_LANGINFO_YESEXPR is 0.
29004         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29005         NOEXPR.
29006         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29007         * doc/posix-functions/nl_langinfo.texi: Likewise.
29008         Reported by Eric Blake.
29009
29010 2010-09-10  Bruno Haible  <bruno@clisp.org>
29011
29012         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29013         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29014         on FreeBSD 8.0 and OpenBSD 4.6.
29015         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29016         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29017         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29018         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29019         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29020         ac_includes_default.
29021         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29022
29023 2010-09-09  Eric Blake  <eblake@redhat.com>
29024
29025         strsignal: work around NetBSD bug
29026         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29027         * lib/string.in.h (includes): Likewise.
29028         * doc/posix-functions/strsignal.texi (strsignal): Document the
29029         bug.
29030         Reported by Nelson H. F. Beebe.
29031
29032         gnulib-tool: work with NetBSD /bin/sh
29033         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29034         (func_get_description, func_get_comment, func_get_status)
29035         (func_get_notice, func_get_applicability, func_get_filelist)
29036         (func_get_dependencies, func_get_autoconf_early_snippet)
29037         (func_get_autoconf_snippet, func_get_automake_snippet)
29038         (func_get_include_directive, func_get_link_directive)
29039         (func_get_license, func_get_maintainer, func_import): Avoid
29040         shell syntax errors from parsing syntax extensions.
29041
29042 2010-09-09  Bruno Haible  <bruno@clisp.org>
29043
29044         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29045         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29046         a reliable way to determine whether the 'alias' command works.
29047
29048 2010-09-08  Jim Meyering  <meyering@redhat.com>
29049
29050         init.sh: penalize a set-x-impaired shell; don't disqualify it
29051         * tests/init.sh: Too many shells corrupt application stderr when
29052         you set -x, so we can't afford to disqualify them, since at least
29053         on Irix-6.5, that would disqualify all bourne shells.
29054         Instead, use a two-pass approach.
29055         On the first pass, try to find a shell that meets the stricter
29056         condition that set -x does not corrupt stderr.
29057         If no shell meets the stricter condition, retest each candidate
29058         shell, but without that extra condition.  Finally, when
29059         VERBOSE=yes is requested and set -x might cause trouble, simply
29060         issue a warning and refrain from enabling debug output.
29061
29062 2010-09-08  Eric Blake  <eblake@redhat.com>
29063
29064         unsetenv: fix OpenBSD bug
29065         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29066         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29067         documentation.
29068         Reported by Jim Meyering.
29069
29070         strtod: work around IRIX 6.5 bug
29071         * lib/strtod.c (strtod): Reparse number on shorter string if
29072         exponent parse was invalid.
29073         * tests/test-strtod.c (main): Add check for "0x1p 2".
29074         Reported by Tom G. Christensen.
29075
29076         getopt: optimize previous patch
29077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29078         empty variable.  Speed up awk script.
29079         Reported by Paolo Bonzini.
29080
29081 2010-09-08  Jim Meyering  <meyering@redhat.com>
29082
29083         test.sh: disqualify shells for which set -x corrupts stderr
29084         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29085         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29086         appear in stderr output.  For example, this command:
29087             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29088         prints "P=1" on those two systems:
29089
29090 2010-09-08  Bruno Haible  <bruno@clisp.org>
29091
29092         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29093         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29094         commands, because some shells ignore redirections when there is an
29095         error in the command lookup.
29096         Reported by Eric Blake.
29097
29098 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29099
29100         * lib/regex.h: Fix a mention of `regex_compile' (should be
29101         `re_compile_pattern').
29102         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29103         (re_set_registers): Correct name of parameter in comment.
29104
29105         * doc/regex.texi: Add documentation for missing syntax flags.
29106         Remove commented-out documentation of defunct syntax option
29107         RE_NO_EMPTY_ALTS.
29108         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29109         Add documentation of re_set_registers.
29110         Document trick to re-use a pattern buffer by setting fastmap manually.
29111         Update documentation of struct re_pattern_buffer per public members.
29112         Uncomment documentation of equivalence class operators and
29113         collating symbol operators, since they are now implemented,
29114         Explain leftmost-longest matching in relation to alternatives.
29115         Tidy documentation of substring matching.
29116         Remove POSIX documentation, which is done better in
29117         glibc, and refer the reader there. Keep BSD API documentation, as
29118         that is not readily available elsewhere.
29119
29120 2010-09-07  Eric Blake  <eblake@redhat.com>
29121
29122         getopt: handle POSIXLY_CORRECT set but not exported
29123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29124         export state of POSIXLY_CORRECT, due to bash set -o posix.
29125         Reported by Dustin J. Mitchell.
29126
29127 2010-09-05  Bruno Haible  <bruno@clisp.org>
29128
29129         gnulib-tool: Highlight the changed options.
29130         * gnulib-tool (func_usage): Display the --import, --add-import,
29131         --remove-import explanations in bold font.
29132
29133 2010-09-06  Karl Berry  <karl@gnu.org>
29134
29135         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29136
29137 2010-09-05  Bruno Haible  <bruno@clisp.org>
29138
29139         uniwidth/width: Update comment.
29140         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29141         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29142
29143 2010-09-05  Bruno Haible  <bruno@clisp.org>
29144
29145         isinf, isnan: Relax license.
29146         * modules/isinf (License): Change from GPL to LGPL, with consent from
29147         Ben Pfaff.
29148         * modules/isnan (License): Likewise.
29149         Requested by Ludovic Courtès.
29150
29151 2010-09-04  Bruno Haible  <bruno@clisp.org>
29152
29153         gnulib-tool: Help migration from --import to --add-import or --update.
29154         * gnulib-tool: Emit a verbose error message when --import is used
29155         without any module name.
29156
29157 2010-09-04  Bruno Haible  <bruno@clisp.org>
29158
29159         Update doc about gnulib-tool.
29160         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29161         'gnulib-tool --update' in more detail.
29162         Reported by Eric Blake.
29163
29164 2010-09-04  Bruno Haible  <bruno@clisp.org>
29165
29166         gnulib-tool: Change --import. New options --add/remove-import.
29167         * gnulib-tool: New options --add-import, --remove-import.
29168         (func_usage): Document them.
29169         (have_associative): Define always.
29170         (func_import): In import mode, don't merge the specified settings with
29171         the cached settings. Implement remove-import mode.
29172         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29173         Explain when to use them versus --import.
29174         (Simple update): Use --add-import instead of --import.
29175         * NEWS: Mention the change.
29176
29177 2010-09-04  Bruno Haible  <bruno@clisp.org>
29178
29179         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29180         separate gnulib.mk.
29181
29182 2010-09-04  Bruno Haible  <bruno@clisp.org>
29183
29184         gnulib-tool: Don't talk about CVS any more.
29185         * gnulib-tool (func_usage, func_import): Write "version control"
29186         instead of CVS.
29187
29188 2010-09-04  Jim Meyering  <meyering@redhat.com>
29189
29190         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29191         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29192         false positives (whose names may be ill-chosen) when searching
29193         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29194         would cause a false-positive.
29195
29196         avoid coreutils "make distcheck" failure
29197         Coreutils tests with an absolute build directory name that contains
29198         a space.  Not quoting this directory name caused a failure.
29199         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29200         * tests/test-vc-list-files-cvs.sh: Likewise.
29201
29202 2010-09-04  Bruno Haible  <bruno@clisp.org>
29203
29204         gnulib-tool: Avoid error when run in a package without Makefile.am.
29205         * gnulib-tool: When collecting the m4dirs in a package that does not
29206         have a Makefile.am, eliminate those directories that contain no
29207         gnulib-cache.m4. Fix expression that counts these directories.
29208
29209 2010-09-04  Bruno Haible  <bruno@clisp.org>
29210
29211         update-copyright test: Improve output when perl is missing or too old.
29212         * tests/test-update-copyright.sh: Move test of Perl version down after
29213         the test whether Perl exists. Provide an explanation relating Perl's
29214         error message to Automake's SKIP: message.
29215
29216 2010-09-04  Bruno Haible  <bruno@clisp.org>
29217
29218         Don't augment PATH in TESTS_ENVIRONMENT.
29219         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29220         set abs_aux_dir instead of augmenting PATH.
29221         * modules/vc-list-files-tests (Makefile.am): Likewise.
29222         * tests/test-update-copyright.sh: Augment PATH here.
29223         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29224         path_prepend_.
29225         * tests/test-vc-list-files-git.sh: Likewise.
29226
29227 2010-09-04  Jim Meyering  <meyering@redhat.com>
29228
29229         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29230         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29231
29232 2010-09-04  Bruno Haible  <bruno@clisp.org>
29233
29234         strdup: Fix compilation error in C++ mode.
29235         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29236         the macro.
29237
29238 2010-09-04  Bruno Haible  <bruno@clisp.org>
29239
29240         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29241         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29242         macro into a function.
29243         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29244
29245 2010-09-04  Bruno Haible  <bruno@clisp.org>
29246
29247         Set PATH_SEPARATOR the same way autoconf does.
29248         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29249         the value of PATH_SEPARATOR the same way autoconf-generated configure
29250         scripts do.
29251         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29252         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29253
29254 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29255
29256         Set PATH_SEPARATOR the same way autoconf does.
29257         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29258         the same way autoconf-generated configure scripts do.
29259         * posix-modules: Likewise.
29260
29261 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29262
29263         hash: fix safe_hasher const typo
29264         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29265         const; otherwise, there is a type error later.
29266
29267 2010-09-02  Jim Meyering  <meyering@redhat.com>
29268
29269         test-update-copyright.sh: require perl 5.8.0
29270         * tests/test-update-copyright.sh: Require 5.8.0,
29271         which Tom G. Christensen has confirmed is adequate,
29272         while 5.6.1 is not.
29273
29274 2010-09-02  Eric Blake  <eblake@redhat.com>
29275
29276         tests: init.sh improvements for re-exec'ing with zsh
29277         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29278         -vx through shell re-exec.
29279         Reported by Tom G. Christensen.
29280
29281         wctype: fix typo in previous commit
29282         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29283         Reported by Ludovic Courtès.
29284
29285 2010-09-02  Jim Meyering  <meyering@redhat.com>
29286
29287         test-update-copyright.sh: skip test if Perl is too old
29288         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29289         Reported by Tom G. Christensen.
29290
29291 2010-09-02  Bruno Haible  <bruno@clisp.org>
29292
29293         wctype: Avoid compilation error on IRIX 6.5.30.
29294         * lib/wctype.in.h (iswblank): Declare with a replacement if
29295         REPLACE_ISWBLANK is set.
29296         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29297         declared. Set REPLACE_ISWBLANK.
29298         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29299         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29300         * doc/posix-headers/wctype.texi: Likewise.
29301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29302
29303 2010-09-01  Bruno Haible  <bruno@clisp.org>
29304
29305         New module 'socketlib'.
29306         * modules/socketlib: New file.
29307         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29308         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29309         * modules/sockets (Depends-on): Add socketlib.
29310         Suggested by Sam Steingold <sds@gnu.org>.
29311
29312 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29313
29314         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29315
29316         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29317         when one needs search access to a directory but not read access.
29318         On systems where it is available, it works in some cases where
29319         O_RDONLY does not, namely on directories that are searchable but
29320         not readable, and which need only to be searchable.  If O_SEARCH
29321         is not available, fall back to the traditional method of using
29322         O_RDONLY.
29323
29324         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29325         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29326         when opening a directory that needs only to be searchable.
29327         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29328         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29329         * lib/openat-proc.c (openat_proc_name): Likewise.
29330         * lib/openat.c (openat_needs_fchdir): Likewise.
29331         * lib/save-cwd.c (save_cwd): Likewise.
29332         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29333
29334 2010-08-28  Bruno Haible  <bruno@clisp.org>
29335
29336         New module 'host-cpu-c-abi'.
29337         * modules/host-cpu-c-abi: New file.
29338         * m4/host-cpu-c-abi.m4: New file, based on part of
29339         clisp/src/m4/general.m4.
29340         Requested by Sam Steingold <sds@gnu.org>.
29341
29342 2010-08-31  Eric Blake  <eblake@redhat.com>
29343         and Jim Meyering  <meyering@redhat.com>
29344
29345         hash: factor, and guard against misbehaving hasher function
29346         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29347         of table->hasher's return value.  Also protect against a hash value
29348         so large that adding it to table->bucket results in a NULL pointer.
29349         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29350         Use it in place of open-coded check-and-abort.
29351
29352 2010-08-30  Bruno Haible  <bruno@clisp.org>
29353
29354         hash: silence spurious clang warning
29355         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29356         Reported by Eric Blake.
29357
29358 2010-08-30  Eric Blake  <eblake@redhat.com>
29359
29360         strstr, memmem, strcasestr: avoid leaked shell message
29361         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29362         FreeBSD.
29363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29365
29366         tests: silence clang warning
29367         * tests/test-malloca.c (do_allocation): Avoid dead store.
29368
29369 2010-08-29  Bruno Haible  <bruno@clisp.org>
29370
29371         gettext: Fix recent mistake.
29372         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29373
29374 2010-08-29  Bruno Haible  <bruno@clisp.org>
29375
29376         selinux-h: Offer a --without-selinux option.
29377         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29378         --without-selinux was specified, skip all tests and define
29379         HAVE_SELINUX_SELINUX_H to 0.
29380         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29381         set LIB_SELINUX to empty.
29382         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29383         gl_LIBSELINUX. If --without-selinux was specified, replace
29384         selinux/context.h.
29385         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29386
29387 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29388             Bruno Haible  <bruno@clisp.org>
29389
29390         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29391         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29392         of HAVE_REALLOC.
29393         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29394         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29395         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29396         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29397
29398 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29399             Bruno Haible  <bruno@clisp.org>
29400
29401         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29402         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29403         HAVE_CALLOC.
29404         * lib/xmalloc.c: Update accordingly.
29405         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29406         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29407         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29408
29409 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29410             Bruno Haible  <bruno@clisp.org>
29411
29412         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29413         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29414         HAVE_MALLOC.
29415         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29416         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29417         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29418
29419 2010-08-29  Bruno Haible  <bruno@clisp.org>
29420
29421         Update modules list.
29422         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29423         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29424         (String handling <string.h>): Add astrxfrm.
29425         (File system functions): Add readlinkat.
29426
29427 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29428
29429         Tests for module 'realloc-gnu'.
29430         * modules/realloc-gnu-tests: New file.
29431         * tests/test-realloc-gnu.c: New file.
29432
29433         Tests for module 'calloc-gnu'.
29434         * modules/calloc-gnu-tests: New file.
29435         * tests/test-calloc-gnu.c: New file.
29436
29437         Tests for module 'malloc-gnu'.
29438         * modules/malloc-gnu-tests: New file.
29439         * tests/test-malloc-gnu.c: New file.
29440
29441 2010-08-28  Bruno Haible  <bruno@clisp.org>
29442
29443         Rename module 'realloc' -> 'realloc-gnu'.
29444         * modules/realloc-gnu: New file, copied from modules/realloc.
29445         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29446         obsolete.
29447         * modules/mgetgroups (Depends-on): Update.
29448         * doc/posix-functions/realloc.texi: Update.
29449         * NEWS: Mention the change.
29450
29451         Rename module 'calloc' -> 'calloc-gnu'.
29452         * modules/calloc-gnu: New file, copied from modules/calloc.
29453         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29454         obsolete.
29455         * doc/posix-functions/calloc.texi: Update.
29456         * NEWS: Mention the change.
29457
29458         Rename module 'malloc' -> 'malloc-gnu'.
29459         * modules/malloc-gnu: New file, copied from modules/malloc.
29460         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29461         obsolete.
29462         * modules/argp (Depends-on): Update.
29463         * modules/regex (Depends-on): Update.
29464         * doc/posix-functions/malloc.texi: Update.
29465         * NEWS: Mention the change.
29466
29467 2010-08-28  Eric Blake  <eblake@redhat.com>
29468
29469         pread, pwrite: add missing dependency
29470         * modules/pread (Depends-on): Add extensions.
29471         * modules/pwrite (Depends-on): Likewise.
29472
29473 2010-08-28  Bruno Haible  <bruno@clisp.org>
29474
29475         unistr/u*-strchr: Fix tests dependencies.
29476         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29477         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29478         Reported by Ian Beckwith <ianb@erislabs.net>.
29479
29480 2010-08-28  Bruno Haible  <bruno@clisp.org>
29481
29482         read-file: Don't occupy too much unused memory.
29483         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29484
29485 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29486             Eric Blake  <eblake@redhat.com>
29487             Bruno Haible  <bruno@clisp.org>
29488
29489         read-file: Avoid memory reallocations with regular files.
29490         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29491         (fread_file): With regular files, use the remaining length as the
29492         initial buffer size.  Check against overflow.
29493         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29494         sys_stat.
29495
29496 2010-08-28  Bruno Haible  <bruno@clisp.org>
29497
29498         ftello: Relax license.
29499         * modules/ftello (License): Relax to LGPLv2+.
29500         Reported by Eric Blake.
29501
29502 2010-08-28  Bruno Haible  <bruno@clisp.org>
29503
29504         Avoid relocwrapper link errors due to gnulib replacement functions.
29505         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29506         function.
29507         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29508
29509 2010-08-28  Bruno Haible  <bruno@clisp.org>
29510
29511         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29512         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29513         defined.
29514         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29515         Suggested by Eric Blake.
29516
29517 2010-08-28  Bruno Haible  <bruno@clisp.org>
29518
29519         sys_socket, netdb: Ensure socklen_t gets defined.
29520         * modules/sys_socket (Depends-on): Add socklen.
29521         * modules/netdb (Depends-on): Likewise.
29522         * modules/getaddrinfo (Depends-on): Remove socklen.
29523         * modules/getsockopt (Depends-on): Likewise.
29524         * modules/setsockopt (Depends-on): Likewise.
29525         * tests/test-sys_socket.c: Check that socklen_t is defined.
29526         * tests/test-netdb.c: Likewise.
29527         * m4/socklen.m4: Update comments.
29528         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29529
29530 2010-08-27  Eric Blake  <eblake@redhat.com>
29531
29532         login_tty: add missing dependency
29533         * modules/login_tty (Depends-on): Add pty.
29534
29535 2010-08-26  Eric Blake  <eblake@redhat.com>
29536
29537         lib-symbol-versions: fix m4 quoting
29538         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29539         format for AC_LINK_IFELSE.
29540
29541         glob: fix compile test
29542         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29543
29544         btowc: fix missing file
29545         * modules/btowc (Files): Also ship locale-fr.m4.
29546
29547         lseek: fix link test
29548         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29549         AC_LINK_IFELSE.
29550
29551         include_next: silence autoconf 2.68 warning
29552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29553         AC_COMPILE_IFELSE as special.
29554         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29555         autoconf < 2.68.
29556
29557         acl: fix compilation test
29558         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29559         AC_COMPILE_IFELSE.
29560
29561 2010-08-26  Bruno Haible  <bruno@clisp.org>
29562
29563         Modernize AC_TRY_RUN invocations.
29564         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29565         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29566         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29567         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29568         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29569         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29572         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29573         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29574         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29575         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29576         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29577         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29579         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29580         gl_MBRLEN_NUL_RETVAL): Likewise.
29581         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29582         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29583         Likewise.
29584         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29585         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29586         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29587         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29588         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29589         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29590         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29591         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29592         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29593         Likewise.
29594         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29595         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29597         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29598         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29599         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29600         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29601         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29602         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29604
29605 2010-08-26  Bruno Haible  <bruno@clisp.org>
29606
29607         Modernize AC_TRY_LINK invocations.
29608         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29609         AC_TRY_LINK.
29610         * m4/argp.m4 (gl_ARGP): Likewise.
29611         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29612         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29613         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29614         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29615         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29616         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29617         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29618         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29619         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29620         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29621         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29622         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29623         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29624         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29625         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29626         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29627         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29628         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29629         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29630         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29631         Likewise.
29632         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29633         Likewise.
29634         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29635         Likewise.
29636         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29638         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29639         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29640         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29641         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29642         * m4/servent.m4 (gl_SERVENT): Likewise.
29643         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29644         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29645         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29646         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29647         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29648         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29649         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29651         * modules/tsearch-tests (configure.ac): Likewise.
29652
29653 2010-08-26  Bruno Haible  <bruno@clisp.org>
29654
29655         Modernize AC_TRY_COMPILE invocations.
29656         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29657         AC_TRY_COMPILE.
29658         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29659         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29660         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29661         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29662         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29663         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29664         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29665         * m4/lock.m4 (gl_LOCK): Likewise.
29666         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29667         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29668         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29669         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29670         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29671         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29672         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29674         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29675         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29676         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29677         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29678         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29679         extraneous semicolon.
29680
29681 2010-08-26  Jim Meyering  <meyering@redhat.com>
29682
29683         stat-time: relax license LGPL
29684         * modules/stat-time (License): Change from GPL to LGPL,
29685         with consent from all contributors, for use in libguile.
29686         Requested by Ludovic Courtès.
29687
29688 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29689
29690         poll: return immediately on POLLHUP.
29691         * lib/poll.c (poll): Always set timeout before wait_timeout is
29692         computed.
29693
29694 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29695
29696         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29697         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29698         rmdir ("dir/.//"), unlinkat.
29699
29700 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29701
29702         stdbool: avoid spurious failure with modern xlc
29703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29704
29705 2010-08-24  Bruno Haible  <bruno@clisp.org>
29706
29707         getloadavg: simplify code
29708         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29709         gl_have_func. Update comments.
29710
29711 2010-08-24  Eric Blake  <eblake@redhat.com>
29712
29713         getloadavg: don't define SVR4 on cygwin
29714         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29715         only define SVR4 when -lkvm is required.
29716         Reported by Yaakov Selkowitz.
29717
29718 2010-08-24  Bruno Haible  <bruno@clisp.org>
29719
29720         priv-set: fix comment
29721         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29722
29723 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29724
29725         priv-set: fix comments
29726         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29727         to match code, as suggested by David Bartley in:
29728         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29729
29730 2010-08-23  Eric Blake  <eblake@redhat.com>
29731
29732         stdbool: avoid rejecting clang
29733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29734         * tests/test-stdbool.c: Enable more tests if using the system
29735         <stdbool.h> instead of the gnulib replacement.
29736         (main): Move xlc bug test to a runtime test for all compilers.
29737         Reported by Anders Kaseorg.
29738
29739         argz: fix shell quoting issue
29740         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29741         Reported by Charles Wilson.
29742
29743 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29744             Erik Faye-Lund <kusmabite@gmail.com>
29745
29746         poll, select: handle ERROR_BROKEN_PIPE.
29747         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29748         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29749         * lib/select.c (win32_compute_revents): Do not mark a pipe
29750         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29751
29752 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29753
29754         fts: allow compilation with C++
29755         * lib/fts_.h: Specify extern "C" linkage with C++.
29756
29757 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29758
29759         Fix gnulib-tool sed script de-commentation for AIX sed.
29760         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29761         sed.
29762
29763 2010-08-17  Eric Blake  <eblake@redhat.com>
29764
29765         test-stddef: test for (some) offsetof bugs
29766         * tests/test-stddef.c: Enhance test to ensure correct type of
29767         offsetof.
29768         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29769         that we are not fixing at this time.
29770
29771 2010-08-15  Bruno Haible  <bruno@clisp.org>
29772
29773         stpncpy: Allow stpncpy to be defined as a macro.
29774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29775         if it's already correctly declared.
29776         * lib/string.in.h (stpncpy): Undefine before redefining.
29777         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29778
29779 2010-08-14  Bruno Haible  <bruno@clisp.org>
29780
29781         Rename module 'memxfrm' to 'amemxfrm'.
29782         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29783         (amemxfrm): Renamed from memxfrm.
29784         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29785         (amemxfrm): Renamed from memxfrm.
29786         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29787         * NEWS: Mention the change.
29788         * MODULES.html.sh (String handling <string.h>): Update.
29789         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29790         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29791         * lib/unicase/u16-casexfrm.c: Likewise.
29792         * lib/unicase/u32-casexfrm.c: Likewise.
29793         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29794         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29795         * lib/uninorm/u16-normxfrm.c: Likewise.
29796         * lib/uninorm/u32-normxfrm.c: Likewise.
29797         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29798         memxfrm.
29799         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29800         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29801         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29802         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29803         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29804         Suggested by Paul Eggert.
29805
29806 2010-08-14  Bruno Haible  <bruno@clisp.org>
29807
29808         Tests for module 'astrxfrm'.
29809         * modules/astrxfrm-tests: New file.
29810         * tests/test-astrxfrm.c: New file.
29811
29812         New module 'astrxfrm'.
29813         * lib/astrxfrm.h: New file.
29814         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29815         * modules/astrxfrm: New file.
29816
29817 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29818
29819         regex: Tweak doc.
29820         * doc/regex.texi (Overview): Don't mention regex.c.
29821         (GNU Regular Expression Compiling): Likewise.
29822         (Match-end-of-line Operator): Mention 'not_eol'.
29823
29824 2010-08-14  Brian Gough  <bjg@gnu.org>
29825             Bruno Haible  <bruno@clisp.org>
29826
29827         git-merge-changelog: add doc relating to use with bzr and hg.
29828         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29829
29830 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29831
29832         pthread: fix pthread.h creation for srcdir != builddir
29833         * modules/pthread (Makefile.am): Fix the rule to work also in a
29834         non-srcdir build.
29835
29836 2010-08-13  Karl Berry  <karl@gnu.org>
29837
29838         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29839         * doc/posix-*/*: force line break before @url of POSIX
29840         specifications.
29841         Suggested by Werner Lemberg.
29842
29843 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29844
29845         strtod: fix const diagnostic
29846         * lib/strtod.c (strtod): Don't assign const char * to char *,
29847         as this elicits a warning from GCC when warnings are enabled.
29848
29849 2010-08-10  Pádraig Brady <P@draigbrady.com>
29850         and Eric Blake  <eblake@redhat.com>
29851
29852         copy-acl: ignore ENOTSUP on HP-UX
29853         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29854         so that it is available for HP-UX.
29855         * lib/copy-acl.c (qcopy_acl): Use it.
29856         Reported by Patrick M. Callahan.
29857
29858 2010-08-10  Eric Blake  <eblake@redhat.com>
29859
29860         open, chown: relax license
29861         * modules/open (License): Change to LGPLv2+, with consent by all
29862         authors, for use in augeas.
29863         * modules/chown (License): Likewise.
29864         * modules/lchown (Likewise): Likewise.
29865         Requested by Adam Stokes.
29866
29867 2010-08-09  Karl Berry  <karl@gnu.org>
29868
29869         * build-aux/ar-lib: new file, import from Automake.
29870         * config/srclist.txt: autocheck for updates.
29871
29872 2010-08-09  Eric Blake  <eblake@redhat.com>
29873
29874         readlinkat: adjust client modules
29875         * modules/areadlinkat (Depends-on): Use readlinkat, not
29876         symlinkat.
29877         * modules/areadlinkat-with-size (Depends-on): Likewise.
29878
29879         mknod: be more vocal about danger of running tests as root
29880         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29881         root, since that is just asking for problems.
29882         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29883
29884         readlinkat: split into its own module
29885         * modules/symlinkat: Split readlinkat...
29886         * modules/readlinkat: ...into separate module.
29887         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29888         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29889         * lib/symlinkat.c (readlinkat): Move...
29890         * lib/readlinkat.c: ...into new file.
29891         * modules/symlinkat-tests: Split readlinkat test...
29892         * modules/readlinkat-tests: ...into separate module.
29893         * tests/test-symlinkat.c: Split...
29894         * tests/test-readlinkat.c: ...into new file.
29895         * NEWS: Document the split.
29896         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29897         * lib/unistd.in.h (readlinkat): Likewise.
29898         Suggested by Bruno Haible.
29899
29900 2010-08-08  Bruno Haible  <bruno@clisp.org>
29901
29902         memxfrm: Speed up.
29903         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29904         that usually only one call to strxfrm is necessary for each string
29905         part.
29906         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29907
29908 2010-08-07  Karl Berry  <karl@gnu.org>
29909
29910         * doc/posix-headers/limits.texi,
29911         * doc/posix-functions/malloc.texi,
29912         * doc/posix-functions/strsignal.texi: missing @item.
29913         * doc/ld-version-script.texi: spurious leading i.
29914         * doc/regex.texi (Interval Operators): no commas inside @var.
29915
29916 2010-08-01  Bruno Haible  <bruno@clisp.org>
29917
29918         Integrate the regex documentation.
29919         * doc/gnulib.texi: Define 'cn' index.
29920         (Regular expressions): New a chapter that includes regex.texi and
29921         regexprops-generic.texi.
29922         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29923         syntax.
29924
29925         Whitespace cleanup.
29926         * doc/regex.texi: Remove trailing spaces.
29927
29928         Add regex documentation.
29929         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29930         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29931         Written by Kathy A. Hargreaves and Karl Berry.
29932
29933 2010-08-01  Bruno Haible  <bruno@clisp.org>
29934
29935         link: Update documentation.
29936         * doc/posix-functions/link.texi: Update regarding Solaris.
29937
29938 2010-07-31  Bruno Haible  <bruno@clisp.org>
29939
29940         Update modules list.
29941         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29942         (String handling <string.h>): Add memcmp2, memxfrm.
29943         (Container data structures): Add xlist, xsublist, xoset.
29944         (Core language properties): Add alignof, unused-parameter.
29945         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29946         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29947         (Unibyte characters <ctype.h>): New section.
29948         (String handling <string.h>): New section.
29949         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29950         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29951         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29952         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29953         tan, tanh, tanl, y0, y1, yn.
29954         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29955         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29956         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29957         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29958         unlockpt, vdprintf, vdprintf-posix.
29959         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29960         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29961         xconcat-filename.
29962         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29963         getdtablesize, pipe2, pipe2-safer.
29964         (Security): New section.
29965         (Networking functions): Add accept4.
29966         (Signal handling): Add sigpipe.
29967         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29968         mbmemcasecoll.
29969         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29970         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29971         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29972         pipe-filter-ii.
29973         (Misc): Add argp-version-etc, login_tty, parse-duration.
29974
29975 2010-07-31  Bruno Haible  <bruno@clisp.org>
29976
29977         Improve doc in MODULES.html.
29978         * modules/linkat (Description): Add the word "function".
29979         * modules/mkfifo (Description): Likewise.
29980         * modules/mknod (Description): Likewise.
29981         * modules/remove (Description): Likewise.
29982         * modules/renameat (Description): Likewise.
29983         * modules/stat (Description): Likewise.
29984         * modules/symlink (Description): Likewise.
29985         * modules/unlink (Description): Likewise.
29986
29987 2010-07-31  Bruno Haible  <bruno@clisp.org>
29988
29989         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29990         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29991         option --enable/disable-c++ instead of --enable/disable-cxx.
29992         * NEWS: Mention the change.
29993
29994 2010-07-31  Bruno Haible  <bruno@clisp.org>
29995
29996         readlink, areadlink: Relax test a bit.
29997         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29998         alternative to ENOTDIR.
29999         * tests/test-areadlink.h (test_areadlink): Likewise.
30000         Reported by Rainer Tammer.
30001
30002 2010-07-31  Bruno Haible  <bruno@clisp.org>
30003
30004         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30005         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30006         character, perform the search using U_STRCHR.
30007         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30008         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30009         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30010         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30011         Suggested by Paolo Bonzini.
30012
30013 2010-07-31  Bruno Haible  <bruno@clisp.org>
30014
30015         unistr/u*-strstr: Fix dependencies.
30016         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30017         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30018         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30019
30020 2010-07-31  Bruno Haible  <bruno@clisp.org>
30021
30022         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30023         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30024         the beginning of the loop.
30025         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30026         cases in 'switch' statement.
30027
30028         unistr/u8-strchr: Fix several bugs.
30029         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30030         the string. When not found, return NULL, not a pointer near the end.
30031
30032         More tests for unistr/u8-strchr.
30033         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30034         that the function does not read past the first occurrence of the byte
30035         being searched.
30036         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30037         * tests/unistr/test-u16-strchr.c (main): New function.
30038         * tests/unistr/test-u32-strchr.c (main): New function.
30039
30040 2010-07-31  Bruno Haible  <bruno@clisp.org>
30041
30042         posix-modules: Ignore backup files of documentation files.
30043         * posix-modules: grep only through files named *.texi.
30044
30045 2010-07-31  Bruno Haible  <bruno@clisp.org>
30046
30047         symlinkat: Fix documentation.
30048         * doc/posix-functions/readlinkat.texi: Fix module name.
30049
30050 2010-07-31  Bruno Haible  <bruno@clisp.org>
30051
30052         fchownat: Replace also when chown has the trailing slash bug.
30053         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30054         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30055         introduced on 2010-04-10.
30056         Reported by Rainer Tammer.
30057
30058 2010-07-31  Bruno Haible  <bruno@clisp.org>
30059
30060         linkat: Work around AIX 7.1 bug.
30061         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30062         whether linkat handles trailing slash correctly. If not, replace linkat
30063         and define LINKAT_TRAILING_SLASH_BUG.
30064         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30065         check whether (fd1,file1) points to a directory if file1 or file2 ends
30066         in a slash. Code taken from lib/link.c.
30067         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30068         Reported by Rainer Tammer.
30069
30070 2010-07-31  Bruno Haible  <bruno@clisp.org>
30071
30072         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30073         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30074         This disables an xlc optimization that was causing wrong test results.
30075         Reported by Rainer Tammer.
30076
30077 2010-07-31  Bruno Haible  <bruno@clisp.org>
30078
30079         iconv: Work around AIX 6.1..7.1 bug.
30080         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30081         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30082         cross-compiling, guess no on all versions of AIX.
30083         Reported by Rainer Tammer.
30084
30085 2010-07-31  Bruno Haible  <bruno@clisp.org>
30086
30087         readlink: Relax test a bit.
30088         * tests/test-readlink.h (test_readlink): Allow different errno value
30089         when readlink is called with a file name that ends in / and refers to
30090         a file.
30091         Suggested by Eric Blake.
30092         Reported by Rainer Tammer.
30093
30094 2010-07-31  Bruno Haible  <bruno@clisp.org>
30095
30096         copysign: Does not require -lm on glibc systems.
30097         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30098         gl_COMMON_DOUBLE_MATHFUNC.
30099         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30100
30101 2010-07-31  Bruno Haible  <bruno@clisp.org>
30102
30103         duplocale: Work around AIX 7.1 bug.
30104         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30105         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30106         * lib/duplocale.c (rpl_duplocale): Update comment.
30107         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30108         Reported by Rainer Tammer.
30109
30110 2010-07-30  Bruno Haible  <bruno@clisp.org>
30111
30112         dirfd: Avoid link error on AIX 7.1.
30113         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30114         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30115         exist, set REPLACE_DIRFD.
30116         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30117         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30118         * doc/posix-functions/dirfd.texi: Update.
30119         Reported by Rainer Tammer.
30120
30121 2010-07-30  Eric Blake  <eblake@redhat.com>
30122
30123         strtod: next round of AIX fixes
30124         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30125         exponent.
30126         * tests/test-strtod.c (main): Enhance tests.
30127         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30128         Reported by Rainer Tammer.
30129
30130         futimens: fix configure check
30131         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30132         Reported by Bruno Haible.
30133
30134 2010-07-30  Bruno Haible  <bruno@clisp.org>
30135
30136         getline: Update regarding AIX.
30137         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30138         Reported by Rainer Tammer.
30139
30140 2010-07-30  Bruno Haible  <bruno@clisp.org>
30141
30142         wcwidth: Drop replacement on AIX 7.
30143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30144         AIX 7.
30145         Reported by Rainer Tammer.
30146
30147 2010-07-30  Bruno Haible  <bruno@clisp.org>
30148
30149         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30150         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30151         a 'char *'.
30152         Reported by Rainer Tammer.
30153
30154 2010-07-30  Bruno Haible  <bruno@clisp.org>
30155
30156         unlink: Update regarding AIX.
30157         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30158         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30159         Reported by Rainer Tammer.
30160
30161 2010-07-30  Bruno Haible  <bruno@clisp.org>
30162
30163         symlink: Update regarding AIX.
30164         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30165         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30166         Reported by Rainer Tammer.
30167
30168 2010-07-30  Bruno Haible  <bruno@clisp.org>
30169
30170         strndup: Update regarding AIX.
30171         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30172         AIX 7.
30173         Reported by Rainer Tammer.
30174
30175 2010-07-30  Bruno Haible  <bruno@clisp.org>
30176
30177         stat: Update regarding AIX.
30178         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30179         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30180         Reported by Rainer Tammer.
30181
30182 2010-07-30  Bruno Haible  <bruno@clisp.org>
30183
30184         truncl: Fix autoconf test.
30185         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30186         whether truncl works.
30187         Reported by Rainer Tammer.
30188
30189 2010-07-30  Bruno Haible  <bruno@clisp.org>
30190
30191         round: Update regarding AIX.
30192         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30193         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30194         Reported by Rainer Tammer.
30195
30196 2010-07-30  Bruno Haible  <bruno@clisp.org>
30197
30198         rename: Update regarding AIX.
30199         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30200         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30201         Reported by Rainer Tammer.
30202
30203 2010-07-30  Bruno Haible  <bruno@clisp.org>
30204
30205         printf.m4: Update regarding AIX.
30206         * m4/printf.m4: Update comments regarding AIX.
30207         Reported by Rainer Tammer.
30208
30209 2010-07-30  Bruno Haible  <bruno@clisp.org>
30210
30211         iconv: Update regarding AIX.
30212         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30213         AIX 7.
30214         Reported by Rainer Tammer.
30215
30216 2010-07-30  Bruno Haible  <bruno@clisp.org>
30217
30218         getopt: Update regarding AIX.
30219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30220         no on AIX.
30221         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30222         Reported by Rainer Tammer.
30223
30224 2010-07-30  Bruno Haible  <bruno@clisp.org>
30225
30226         ldexpl; Update regarding AIX.
30227         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30228         on AIX 7.
30229         Reported by Rainer Tammer.
30230
30231 2010-07-30  Bruno Haible  <bruno@clisp.org>
30232
30233         frexpl: Update regarding AIX.
30234         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30235         on AIX 7.
30236         Reported by Rainer Tammer.
30237
30238 2010-07-30  Bruno Haible  <bruno@clisp.org>
30239
30240         open, fopen: Update regarding AIX.
30241         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30242         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30243         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30244         * doc/posix-functions/fopen.texi: Likewise.
30245         Reported by Rainer Tammer.
30246
30247 2010-07-30  Bruno Haible  <bruno@clisp.org>
30248
30249         chown: Update doc regarding AIX.
30250         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30251         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30252         Reported by Rainer Tammer.
30253
30254 2010-07-30  Eric Blake  <eblake@redhat.com>
30255
30256         strtod: fix bug in replacement function on AIX
30257         * lib/strtod.c (strtod): Special case broken "0x" parse in
30258         underlying strtod.
30259         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30260         * doc/posix-functions/strtod.texi (strtod): Likewise.
30261         Reported by Rainer Tammer.
30262
30263 2010-07-30  Bruno Haible  <bruno@clisp.org>
30264
30265         mbrlen: Fix cross-compilation guess for AIX.
30266         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30267         guess. Leftover from 2008-12-22.
30268
30269 2010-07-30  Bruno Haible  <bruno@clisp.org>
30270
30271         mbrtowc: Fix cross-compilation guess for AIX.
30272         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30273         guess. Leftover from 2008-12-21.
30274
30275 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30276
30277         init.sh: work around trap limitation of some shells
30278         * tests/init.sh (setup_): Move exit trap outside of shell function.
30279
30280 2010-07-29  Eric Blake  <eblake@redhat.com>
30281
30282         strtod: aid debugging
30283         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30284         understanding why strtod is rejected.
30285
30286 2010-07-28  Bruno Haible  <bruno@clisp.org>
30287
30288         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30289         * lib/unistr/u8-chr.c: Include <string.h>.
30290         * tests/unistr/test-u8-chr.c: Likewise.
30291         * tests/unistr/test-u16-chr.c: Likewise.
30292         * tests/unistr/test-u32-chr.c: Likewise.
30293         * tests/unistr/test-u8-strchr.c: Likewise.
30294         * tests/unistr/test-u16-strchr.c: Likewise.
30295         * tests/unistr/test-u32-strchr.c: Likewise.
30296         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30297         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30298         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30299         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30300
30301 2010-07-28  Bruno Haible  <bruno@clisp.org>
30302
30303         Use spaces for indentation, not tabs.
30304         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30305
30306 2010-07-27  Bruno Haible  <bruno@clisp.org>
30307
30308         mbspcasecmp: Fix function specification.
30309         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30310         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30311         Reported by Eric Blake <eblake@redhat.com>.
30312
30313 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30314
30315         timespec: use cast and not conditional, as truncation isn't possible
30316         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30317         instead of a conditional.  Comment about the situation in more detail.
30318         This undoes most of the 2009-10-29 patch.
30319
30320 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30321
30322         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30323         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30324         * lib/unistr/u8-strchr.c: Likewise.
30325         * modules/unistr/u8-chr: Depend on memchr.
30326
30327         unistr/u*-strchr: add tests
30328         * modules/unistr/u8-strchr-tests: New file.
30329         * modules/unistr/u16-strchr-tests: New file.
30330         * modules/unistr/u32-strchr-tests: New file.
30331         * tests/unistr/test-strchr.h: New file.
30332         * tests/unistr/test-u8-strchr.c: New file.
30333         * tests/unistr/test-u16-strchr.c: New file.
30334         * tests/unistr/test-u32-strchr.c: New file.
30335
30336         unistr/u*-chr: test multibyte sequences more
30337         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30338         test vector.
30339         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30340         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30341         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30342
30343         unistr/u*-chr: test multibyte sequences
30344         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30345
30346         unistr/u*-chr: prepare for multibyte tests
30347         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30348         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30349         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30350         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30351         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30352         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30353
30354 2010-07-18  Bruno Haible  <bruno@clisp.org>
30355
30356         unistr/u8-strchr: Optimize non-ASCII argument case.
30357         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30358         because the first byte often matches anyway.
30359         Reported by Pádraig Brady <P@draigbrady.com>.
30360
30361 2010-07-15  Karl Berry  <karl@gnu.org>
30362
30363         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30364
30365 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30366
30367         getcwd: on Solaris, work better if ancestors are inaccessible
30368         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30369         buffer and size, try again with a large buffer.  This works better
30370         on Solaris, since its getcwd succeeds even if the path to the root
30371         is inaccessible, and this is helpful in common cases such as .zfs
30372         hidden directories.  Problem reported by J Chapman Flack in
30373         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30374         Use system getcwd if it's declared, not merely if it's partly
30375         working; use the partly-working test only to avoid needless effort
30376         if the system getcwd fails.
30377         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30378         comment that was already obsolete and is now even more obsolete.
30379         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30380         now might call strdup.
30381
30382 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30383
30384         pthread: Add enough so that coreutils/src/sort.c compiles.
30385         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30386         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30387         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30388         Include <sys/types.h>, in case it defines pthread_t.
30389         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30390         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30391         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30392         (pthread_rwlockattr_t, pthread_spinlock_t):
30393         New typedefs, if HAVE_PTHREAD_T is not defined.
30394         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30395         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30396         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30397         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30398         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30399         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30400         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30401         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30402         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30403         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30404         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30405         New macros.
30406         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30407         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30408         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30409         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30410         (pthread_spin_unlock): New dummy functions.
30411         (pthread_create): Return EAGAIN; don't set errno.
30412         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30413         require AC_C_INLINE.
30414         * modules/pthread (Depends-on): Add sched, time.
30415         (pthread.h): Use AM_V_GEN.
30416
30417 2010-07-13  Bruno Haible  <bruno@clisp.org>
30418
30419         striconveh: Don't malloc memory if the result buffer is sufficient.
30420         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30421         buffer if its size is sufficient.
30422         Reported by Ludovic Courtès <ludo@gnu.org>.
30423
30424 2010-07-13  Bruno Haible  <bruno@clisp.org>
30425
30426         strtod: Add safety check.
30427         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30428
30429 2010-07-12  Bruno Haible  <bruno@clisp.org>
30430
30431         Unify tests that set gl_cv_func_ldexpl_no_libm.
30432         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30433         gl_FUNC_LDEXPL.
30434         (gl_FUNC_LDEXPL): Invoke it.
30435         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30436
30437 2010-07-12  Bruno Haible  <bruno@clisp.org>
30438
30439         Unify tests that set gl_cv_func_ldexp_no_libm.
30440         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30441         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30442         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30443         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30444         * modules/strtod (Files): Add m4/ldexp.m4.
30445
30446 2010-07-12  Bruno Haible  <bruno@clisp.org>
30447
30448         Unify tests that set gl_cv_func_frexpl_no_libm.
30449         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30450         gl_FUNC_FREXPL_NO_LIBM.
30451         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30452         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30453
30454 2010-07-12  Bruno Haible  <bruno@clisp.org>
30455
30456         Unify tests that set gl_cv_func_frexp_no_libm.
30457         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30458         gl_FUNC_FREXP_NO_LIBM.
30459         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30460         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30461
30462 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30463
30464         memcoll: clarify sizes versus lengths, document better, and tweak perf
30465         * lib/memcoll.c (strcoll_loop, memcoll0):
30466         Improve quality of descriptive comments.  Name variables
30467         consistently as to whether they are lengths (which do not include
30468         terminating null) versus sizes (which do).
30469         * lib/xmemcoll.c (xmemcoll0): Likewise.
30470         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30471         returned when s1size == 0; this is easier to compile and saves
30472         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30473
30474 2010-07-12  Bruno Haible  <bruno@clisp.org>
30475
30476         Tests for module '_Exit'.
30477         * modules/_Exit-tests: New file.
30478         * tests/test-_Exit.sh: New file.
30479         * tests/test-_Exit.c: New file.
30480
30481         New module '_Exit'.
30482         * lib/stdlib.in.h (__attribute__): New macro.
30483         (_Exit): New declaration.
30484         * lib/_Exit.c: New file.
30485         * m4/_Exit.m4: New file.
30486         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30487         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30488         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30489         * modules/_Exit: New file.
30490         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30491         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30492
30493 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30494
30495         strtod: make it more-accurate typically, and don't require libm
30496         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30497         Include limits.h.  Don't include string.h.
30498         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30499         (locale_isspace): New function, so that no casts are needed to
30500         check whether *s is a space.
30501         (ldexp): Provide an unused dummy if not available.
30502         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30503         (strtod): Use them.  This implementation prefers to use the
30504         underlying strtod if available, falling back on our own code
30505         only to fix known bugs.  This is more likely to produce an
30506         accurate result.  Also, it avoids the use of libm functions.
30507         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30508         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30509         was absent, but it caused a test failure with coreutils.
30510         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30511         with libm.
30512         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30513         * modules/strtod-tests (Makefile.am): Likewise.
30514
30515 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30516             Bruno Haible  <bruno@clisp.org>
30517
30518         unistr/u8-strchr: Optimize ASCII argument case.
30519         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30520
30521 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30522
30523         (x)memcoll: minor tweaks
30524         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30525         is after the type that it qualifies.
30526         (memcoll0): Likewise.
30527         * lib/memcoll.h (memcoll0): Likewise.
30528         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30529         * lib/xmemcoll.h (xmemcoll0): Likewise.
30530         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30531         differs from memcoll in that the NUL byte is part of the argument.
30532         Omit the abort-checks, as performance is a real issue here.  Plus,
30533         the checks were wrong anyway (an off-by-one error).  Omit local
30534         variable 'diff', as it's a bit clearer that way.
30535         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30536         no longer needed.
30537
30538 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30539
30540         (x)memcoll: speedup when input is known to be NUL delimited
30541         * lib/memcoll.c: Include stdlib.
30542         (memcoll0): New function.
30543         (strcoll_loop): New function, refactored for use in both memcoll
30544         and memcoll0.
30545         * lib/memcoll.h (memcoll0): Add prototype.
30546         * lib/xmemcoll.c (xmemcoll0): New function.
30547         (collate_error): New function, refactored for use in both xmemcoll
30548         and xmemcoll0.
30549         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30550         * m4/memcoll.m4: add inline invocation.
30551
30552 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30553
30554         * build-aux/bootstrap: Remove any local translations
30555         from the translation project synchronization directory,
30556         so that local only translations are not distributed.
30557
30558 2010-07-04  Bruno Haible  <bruno@clisp.org>
30559
30560         fsusage: Clarify which code applies to which platforms.
30561         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30562         platform.
30563         * lib/fsusage.c (get_fs_usage): Likewise.
30564
30565 2010-07-04  Bruno Haible  <bruno@clisp.org>
30566
30567         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30568         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30569         Reported by Martin Lambers <marlam@marlam.de>.
30570
30571 2010-07-04  Jim Meyering  <meyering@redhat.com>
30572
30573         hash: once again explicitly disallow insertion of NULL
30574         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30575         inserting a NULL pointer cannot work with these functions.
30576         Add a comment with details.
30577         This reverts part of the 2010-07-01 commit, 5bef1a35
30578         "hash: extend module to deal with non-pointer keys".
30579
30580 2010-07-01  Bruno Haible  <bruno@clisp.org>
30581
30582         stdbool: Update doc.
30583         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30584         Info from Christian Weisgerber <naddy@mips.inka.de>.
30585
30586 2010-07-01  Jim Meyering  <meyering@redhat.com>
30587
30588         hash: extend module to deal with non-pointer keys
30589         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30590         but that allows insertion of non-pointer entries.
30591         Do not disallow an ENTRY value of NULL.
30592         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30593         * lib/hash.h (hash_insert0): Declare.
30594
30595 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30596
30597         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30598         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30599         not present (i.e. with autoconf 2.59 and when using gettextize, not
30600         gnulib), require AC_GNU_SOURCE instead.
30601
30602 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30603
30604         idpriv-drop: Fix tests.
30605         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30606         not to the test-idpriv-droptemp program.
30607
30608 2010-06-29  Bruno Haible  <bruno@clisp.org>
30609
30610         string: Fix syntax error with g++ 2.96.
30611         * lib/string.in.h (__pure__): Remove definition.
30612         (_GL_ATTRIBUTE_PURE): New macro.
30613         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30614         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30615         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30616
30617 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30618
30619         unitypes: Fix bug introduced on 2010-05-18.
30620         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30621
30622 2010-06-22  Eric Blake  <eblake@redhat.com>
30623
30624         memmem: slight optimization
30625         * lib/str-two-way.h (critical_factorization): Update comments.
30626         Reduce work during factorization phase.
30627         Reported by Carlos Bueno <carlos@bueno.org>.
30628
30629 2010-06-21  Bruno Haible  <bruno@clisp.org>
30630
30631         Fix HAVE_CALLOC_POSIX misnomer.
30632         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30633         !HAVE_CALLOC_POSIX.
30634         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30635         HAVE_CALLOC_POSIX.
30636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30637         instead of HAVE_CALLOC_POSIX.
30638         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30639         HAVE_CALLOC_POSIX.
30640
30641         Use modern idiom for calloc() replacement.
30642         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30643         AC_FUNC_CALLOC.
30644         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30645         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30646         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30647         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30648         (gl_REPLACE_CALLOC): New macro.
30649
30650 2010-06-21  Bruno Haible  <bruno@clisp.org>
30651
30652         Fix HAVE_REALLOC_POSIX misnomer.
30653         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30654         !HAVE_REALLOC_POSIX.
30655         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30656         HAVE_REALLOC_POSIX.
30657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30658         instead of HAVE_REALLOC_POSIX.
30659         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30660         HAVE_REALLOC_POSIX.
30661
30662         Use modern idiom for realloc() replacement.
30663         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30664         AC_FUNC_REALLOC.
30665         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30666         Autoconf's AC_FUNC_REALLOC.
30667         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30668         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30669         (gl_REPLACE_REALLOC): New macro.
30670         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30671
30672 2010-06-21  Bruno Haible  <bruno@clisp.org>
30673
30674         Fix HAVE_MALLOC_POSIX misnomer.
30675         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30676         !HAVE_MALLOC_POSIX.
30677         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30678         HAVE_MALLOC_POSIX.
30679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30680         instead of HAVE_MALLOC_POSIX.
30681         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30682         HAVE_MALLOC_POSIX.
30683
30684         Use modern idiom for malloc() replacement.
30685         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30686         AC_FUNC_MALLOC.
30687         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30688         Autoconf's AC_FUNC_MALLOC.
30689         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30690         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30691         (gl_REPLACE_MALLOC): New macro.
30692         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30693
30694 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30695
30696         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30697         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30698         This macro takes 3 arguments, not 4.
30699
30700 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30701
30702         ipv6: fix detection under mingw
30703         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30704         in6_addr.
30705
30706 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30707
30708         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30709         that strtod() works when cross-compiling to a glibc version known
30710         to work.
30711
30712 2010-06-15  Bruno Haible  <bruno@clisp.org>
30713
30714         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30715
30716 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30717
30718         select: Correct timeout.
30719         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30720
30721 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30722
30723         git-version-gen: init shell var to avoid env var influence
30724         * build-aux/git-version-gen (v): Init shell var to empty.
30725
30726 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30727
30728         priv-set: Don't assume that priv.h exists merely because getppriv does.
30729         See Jan Andersen's bug report about AIX 5L in
30730         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30731         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30732         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30733         * lib/priv-set.h: Likewise.
30734         * tests/test-priv-set.c: Likewise.
30735
30736 2010-06-13  Bruno Haible  <bruno@clisp.org>
30737
30738         relocatable: Make it easier to test whether to install wrappers.
30739         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30740         RELOCATABLE_VIA_WRAPPER.
30741
30742 2010-06-13  Bruno Haible  <bruno@clisp.org>
30743
30744         gnulib-tool: Display specified modules and dependencies differently.
30745         * gnulib-tool (func_show_module_list): New function.
30746         (func_import, func_create_testdir): Invoke it.
30747         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30748
30749 2010-06-13  Bruno Haible  <bruno@clisp.org>
30750
30751         gnulib-tool: Align code of func_import and func_create_testdir.
30752         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30753         specified_modules.
30754
30755 2010-06-12  Jim Meyering  <meyering@redhat.com>
30756
30757         test-inttostr: avoid spurious failure on Solaris 9
30758         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30759         to accept "%ju".  Reported by Bruno Haible.
30760
30761 2010-06-11  Jim Meyering  <meyering@redhat.com>
30762
30763         test-sys_socket: mark variables as used more readably
30764         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30765         as "used" explicitly via (void) statement casts.  This is more
30766         readable than using them in an artificial return expression.
30767         Suggestion from Bruno Haible.
30768
30769 2010-06-11  Bruno Haible  <bruno@clisp.org>
30770
30771         Avoid some more warnings from "gcc -Wwrite-strings".
30772         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30773         to 'const char *'.
30774         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30775         * tests/test-c-strcasestr.c (main): Likewise.
30776         * tests/test-mbscasestr1.c (main): Likewise.
30777         * tests/test-mbscasestr2.c (main): Likewise.
30778         * tests/test-memmem.c (main): Likewise.
30779         * tests/test-strstr.c (main): Likewise.
30780         * tests/test-strcasestr.c (main): Likewise.
30781
30782 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30783
30784         init.sh: change framework_failure_ to fail with status 99, not 1
30785         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30786         automake's parallel-tests rule that this is an unexpected failure,
30787         even if the test is listed in XFAIL_TESTS.
30788
30789 2010-06-11  Jim Meyering  <meyering@redhat.com>
30790
30791         test-inttostr: avoid warnings about 4-6KB literal strings
30792         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30793         Include "macros.h", for its definition of ASSERT.
30794         (CK): s/assert/ASSERT/
30795         * modules/inttostr-tests (Files): Add macros.h.
30796
30797         init.sh: don't use $ME_ or skip_ before they are defined
30798         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30799         their first uses.  Also hoist their companions: warn_, fail_,
30800         framework_failure_, $stderr_fileno.  Prompted by a patch from
30801         Stefano Lattarini.
30802
30803         test-sys_socket: avoid set-but-not-used warnings from gcc
30804         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30805         avoid warning about set-but-not-used variables.
30806
30807         test-xvasprintf: avoid 'const' discard warnings
30808         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30809         "const" when assigning from literal strings.
30810         (test_xasprintf): Add "void" in function argument list to placate
30811         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30812
30813         tests: avoid compilation warnings in argmatch and exclude tests...
30814         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30815         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30816         Since it always exits, declare with the "noreturn" attribute.
30817         * tests/test-argmatch.c: Likewise.
30818
30819         tests: avoid 'const' discard warnings in mbsstr tests
30820         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30821         * tests/test-mbsstr2.c (main): Likewise.
30822
30823         test-verify: avoid warning from gcc's -Wmissing-declarations
30824         * tests/test-verify.c (function): Declare to be static.
30825
30826         test-inttostr.c: include <string.h> for use of strcmp
30827         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30828
30829         test-linkat: avoid failed assertion on "other" architectures
30830         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30831         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30832         sparc: https://bugs.launchpad.net/bugs/591968
30833
30834 2010-06-11  Jim Meyering  <meyering@redhat.com>
30835
30836         printf.m4: avoid autoconf's "Expanded Before Required" warning
30837         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30838         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30839         autoconf warning.
30840
30841 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30842
30843         Replacement header templates are now named with ".in", not "_".
30844         * doc/gnulib-intro.texi: Correct.
30845
30846 2010-06-10  Jim Meyering  <meyering@redhat.com>
30847
30848         inttostr-tests: depend on snprintf, not snprintf-posix
30849         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30850         snprintf-posix, to avoid this aclocal failure:
30851           missing file gnulib-tests/vasnprintf.c
30852           configure.ac:45: error: expected source file, required through \
30853           AC_LIBSOURCES, not found
30854
30855 2010-06-10  Jim Meyering  <meyering@redhat.com>
30856
30857         inttostr: add a new function, inttostr, and tests
30858         The namesake function was not available.  The existence of the
30859         template file, inttostr.c makes its addition nontrivial.
30860         * lib/anytostr.c: Rename from inttostr.c.
30861         (anytostr): Rename from inttostr.
30862         * lib/inttostr.c: New file.
30863         * modules/inttostr (Files): Add anytostr.c.
30864         (Makefile.am): Set lib_SOURCES instead of ...
30865         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30866         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30867         * lib/offtostr.c: Likewise.
30868         * lib/uinttostr.c: Likewise.
30869         * lib/umaxtostr.c: Likewise.
30870         * modules/inttostr-tests: New file.
30871         * tests/test-inttostr.c: New file.  Test these functions.
30872
30873 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30874             Bruno Haible  <bruno@clisp.org>
30875
30876         Add "Extending Gnulib" chapter to manual.
30877         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30878         chapter.
30879         (Extending Gnulib): New chapter.
30880         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30881         chapter.
30882
30883 2010-06-09  Bruno Haible  <bruno@clisp.org>
30884
30885         Avoid relocwrapper link errors due to gnulib replacement functions.
30886         * lib/areadlink.c: Use the system's malloc, realloc functions.
30887         (areadlink): Set errno to ENOMEM explicitly.
30888         * modules/areadlink (Depends-on): Remove malloc-posix.
30889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30890
30891 2010-06-09  Bruno Haible  <bruno@clisp.org>
30892
30893         Avoid relocwrapper link errors due to gnulib replacement functions.
30894         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30895         * lib/malloca.c: Likewise.
30896         * lib/relocatable.c: Likewise.
30897         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30898         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30899         * lib/setenv.c: Use the system's malloc, realloc functions.
30900         * lib/strerror.c: Use the system's sprintf function.
30901         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30902
30903 2010-06-04  Bruno Haible  <bruno@clisp.org>
30904
30905         Prefer documented low-level autoconf macro names.
30906         * m4/lib-link.m4: Use m4_translit instead of translit.
30907         * m4/environ.m4: Likewise.
30908         * m4/mathfunc.m4: Likewise.
30909         * m4/onceonly.m4: Likewise.
30910         * m4/stdint.m4: Likewise.
30911         Suggested by Eric Blake.
30912
30913 2010-06-04  Martin Lambers  <marlam@marlam.de>
30914             Bruno Haible  <bruno@clisp.org>
30915
30916         havelib: Allow library names with '+' characters.
30917         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30918         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30919
30920 2010-06-09  Bruno Haible  <bruno@clisp.org>
30921
30922         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30923         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30924         realloc failed.
30925
30926 2010-06-08  Peter Simons  <simons@cryp.to>
30927
30928         maint.mk: make the news-check rule more configurable
30929         * top/maint.mk (news-check-lines-spec): New variable.
30930         (news-check): Use "sed -n 1,10p" in place of "head".
30931
30932 2010-06-07  Jim Meyering  <meyering@redhat.com>
30933
30934         do-release-commit-and-tag: fix typo in --help
30935         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30936
30937         regex: avoid new dead-code warning with gcc-4.6.0
30938         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30939         if-block containing a while-loop.  It's been unused for at least
30940         5 years.
30941
30942 2010-06-05  Bruno Haible  <bruno@clisp.org>
30943
30944         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30945         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30946
30947 2010-06-04  Bruno Haible  <bruno@clisp.org>
30948
30949         Update to GNU gettext 0.18.1.
30950         * modules/gettext (configure.ac): Require gettext infrastructure from
30951         version 0.18.1.
30952
30953 2010-06-03  Bruno Haible  <bruno@clisp.org>
30954
30955         Don't use AC_LIBOBJ with file names in subdirectories.
30956         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30957         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30958         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30959         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30960         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30961         gl_LIBUNISTRING_LIBSOURCE.
30962         (Makefile.am): Augment lib_SOURCES here, conditionally.
30963         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30964
30965 2010-06-03  Bruno Haible  <bruno@clisp.org>
30966
30967         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30968         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30969         expansion does not end with a newline.
30970         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30971         unnecessary newline.
30972
30973 2010-06-03  Bruno Haible  <bruno@clisp.org>
30974
30975         Reduce dependencies.
30976         * tests/test-quotearg.h: New file, extracted from
30977         tests/test-quotearg.c.
30978         * tests/test-quotearg-simple.c: New file, extracted from
30979         tests/test-quotearg.c.
30980         * tests/test-quotearg.c: Don't include <ctype.h>.
30981         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30982         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30983         use_quote_double_quotes, use_quotearg_colon): Moved to
30984         tests/test-quotearg.h.
30985         (results_g, flag_results, custom_quotes, custom_results): Moved
30986         to tests/test-quotearg-simple.c.
30987         (main): Moved the part that does not depend on gettext to
30988         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30989         performed.
30990         * modules/quotearg-simple: New file.
30991         * modules/quotearg-simple-tests: New file.
30992         * modules/quotearg (Depends-on): Add quotearg-simple.
30993         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30994         (Files): Add tests/test-quotearg.h.
30995         Reported by Paolo Bonzini.
30996
30997 2010-06-03  Bruno Haible  <bruno@clisp.org>
30998
30999         Reduce dependencies.
31000         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31001
31002 2010-06-03  Bruno Haible  <bruno@clisp.org>
31003
31004         time: Undefine more broken macros.
31005         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31006         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31007         Reported by Eric Blake.
31008
31009 2010-06-03  Bruno Haible  <bruno@clisp.org>
31010
31011         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31012         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31013         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31014         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31015         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31016         Reported by Ludovic Courtès <ludo@gnu.org>.
31017
31018 2010-06-02  Eric Blake  <eblake@redhat.com>
31019
31020         time: work with mingw + pthreads-win32 library
31021         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31022         if timespec is defined only in pthread.h.
31023         * modules/time (Makefile.am): Substitute it.
31024         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31025         <pthread.h>, when needed.
31026         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31027         from the library.
31028
31029 2010-05-31  Bruno Haible  <bruno@clisp.org>
31030
31031         Avoid expanding two macros in the wrong order.
31032         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31033         gl_LIBUNISTRING if it is defined.
31034         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31035         autoconf >= 2.64.
31036         Reported by Ludovic Courtès <ludo@gnu.org>.
31037
31038 2010-05-27  Jim Meyering  <meyering@redhat.com>
31039
31040         maint.mk: also prohibit "#undef" of always-defined symbols
31041         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31042         Allow more than one space before the symbol name.
31043         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31044         the regexp uses alternation.
31045
31046 2010-05-26  Eric Blake  <eblake@redhat.com>
31047
31048         maint.mk: avoid echo -e
31049         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31050         Convert all uses of echo -* to printf.
31051         Reported by Matthias Bolte.
31052
31053 2010-05-25  Bruno Haible  <bruno@clisp.org>
31054
31055         Update to GNU gettext 0.18, part 2.
31056         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31057         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31058
31059 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31060
31061         Add missing include in test-pwrite.c.
31062         * tests/test-pwrite.c: Include string.h, for strcmp.
31063
31064 2010-05-24  Bruno Haible  <bruno@clisp.org>
31065
31066         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31067
31068 2010-05-24  Bruno Haible  <bruno@clisp.org>
31069
31070         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31071         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31072         iconveh_error argument.
31073         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31074         U_STRCONV_TO_LOCALE.
31075         * lib/unistr/u16-strcoll.c: Likewise.
31076         * lib/unistr/u32-strcoll.c: Likewise.
31077         * modules/unistr/u8-strcoll (Depends-on): Add
31078         uniconv/u8-strconv-to-enc, localcharset. Remove
31079         uniconv/u8-strconv-to-locale.
31080         (configure.ac): Bump version number.
31081         * modules/unistr/u16-strcoll (Depends-on): Add
31082         uniconv/u16-strconv-to-enc, localcharset. Remove
31083         uniconv/u16-strconv-to-locale.
31084         (configure.ac): Bump version number.
31085         * modules/unistr/u32-strcoll (Depends-on): Add
31086         uniconv/u32-strconv-to-enc, localcharset. Remove
31087         uniconv/u32-strconv-to-locale.
31088         (configure.ac): Bump version number.
31089
31090 2010-05-24  Bruno Haible  <bruno@clisp.org>
31091
31092         Avoid a test failure on NetBSD 5.0.
31093         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31094         an iconv() bug.
31095
31096 2010-05-24  Bruno Haible  <bruno@clisp.org>
31097
31098         Adjust #include directive style.
31099         * modules/regex (Includes): Recommend to write <regex.h>.
31100
31101 2010-05-24  Bruno Haible  <bruno@clisp.org>
31102
31103         regex: Don't require alloca.
31104         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31105         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31106         only inside if (0).
31107
31108 2010-05-23  Jim Meyering  <meyering@redhat.com>
31109
31110         test-renameat.c: include <sys/stat.h>
31111         * tests/test-renameat.c: Include <sys/stat.h>; required for
31112         definition of S_IS* macros.
31113
31114 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31115
31116         Update maintainer documentation for 'relocatable-prog' module.
31117         * doc/relocatable-maint.texi: Update.
31118         Comments by Bruno Haible.
31119
31120 2010-05-23  Bruno Haible  <bruno@clisp.org>
31121
31122         git-merge-changelog: Enable --split-merged-entry by default.
31123         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31124         (usage): Don't mention this option any more.
31125         Reported by Ralf Wildenhues.
31126
31127 2010-05-23  Jim Meyering  <meyering@redhat.com>
31128
31129         test-pwrite: do not leave behind a test file named "out"
31130         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31131         The trivial-looking use of init.sh is really necessary.
31132         It ensures that the temporary file, "out", is created in
31133         a temporary directory, and removed upon termination.
31134         * tests/test-pwrite.sh: Re-add file.
31135         * modules/pwrite-tests: Reference it.
31136
31137 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31138
31139         Fix output redirection buglet in init.sh.
31140         * tests/init.sh: Fix redirection of stderr.
31141
31142 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31143
31144         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31145
31146 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31147
31148         * modules/valgrind-tests: New file.
31149         * m4/valgrind-tests.m4: New file.
31150         * doc/valgrind-tests.texi: New file.
31151         * doc/gnulib.texi (Running self-tests under valgrind): New
31152         section.
31153
31154 2010-05-19  Bruno Haible  <bruno@clisp.org>
31155
31156         Clean up dead code in recent commit.
31157         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31158         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31159         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31160         Suggested by Paolo Bonzini.
31161
31162 2010-05-19  Bruno Haible  <bruno@clisp.org>
31163
31164         Avoid valgrind error reports from libunistring.
31165         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31166         * modules/libunistring (Files): Add it.
31167         * modules/libunistring-optional (Files): Likewise.
31168
31169 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31170             Bruno Haible  <bruno@clisp.org>
31171
31172         New module 'libunistring-optional'.
31173         * modules/libunistring-optional: New file.
31174         * m4/libunistring-base.m4: New file.
31175         * m4/libunistring-optional.m4: New file.
31176         * lib/unicase.in.h: Renamed from lib/unicase.h.
31177         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31178         * lib/unictype.in.h: Renamed from lib/unictype.h.
31179         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31180         * lib/uniname.in.h: Renamed from lib/uniname.h.
31181         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31182         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31183         * lib/unistr.in.h: Renamed from lib/unistr.h.
31184         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31185         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31186         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31187         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31188         gl_LIBUNISTRING. If the library was found, determine the installed
31189         version and set LIBUNISTRING_VERSION.
31190         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31191         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31192         handle a configuration option --with-included-libunistring.
31193         * modules/libunistring (Files): Add m4/absolute-header.m4.
31194         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31195         Add m4/libunistring-base.m4.
31196         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31197         (Makefile.am): Build unicase.h from unicase.in.h.
31198         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31199         Add m4/libunistring-base.m4.
31200         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31201         (Makefile.am): Build uniconv.h from uniconv.in.h.
31202         * modules/unictype/base (Files): Use unictype.in.h instead of
31203         unictype.h. Add m4/libunistring-base.m4.
31204         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31205         (Makefile.am): Build unictype.h from unictype.in.h.
31206         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31207         Add m4/libunistring-base.m4.
31208         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31209         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31210         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31211         Add m4/libunistring-base.m4.
31212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31213         (Makefile.am): Build uniname.h from uniname.in.h.
31214         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31215         Add m4/libunistring-base.m4.
31216         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31217         (Makefile.am): Build uninorm.h from uninorm.in.h.
31218         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31219         unistdio.h. Add m4/libunistring-base.m4.
31220         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31221         (Makefile.am): Build unistdio.h from unistdio.in.h.
31222         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31223         Add m4/libunistring-base.m4.
31224         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31225         (Makefile.am): Build unistr.h from unistr.in.h.
31226         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31227         Add m4/libunistring-base.m4.
31228         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31229         (Makefile.am): Build unitypes.h from unitypes.in.h.
31230         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31231         Add m4/libunistring-base.m4.
31232         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31233         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31234         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31235         uniwidth.h. Add m4/libunistring-base.m4.
31236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31237         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31238         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31239         instead of augmenting lib_SOURCES.
31240         * modules/unicase/empty-suffix-context: Likewise.
31241         * modules/unicase/locale-language: Likewise.
31242         * modules/unicase/tolower: Likewise.
31243         * modules/unicase/totitle: Likewise.
31244         * modules/unicase/toupper: Likewise.
31245         * modules/unicase/u8-casecmp: Likewise.
31246         * modules/unicase/u8-casecoll: Likewise.
31247         * modules/unicase/u8-casefold: Likewise.
31248         * modules/unicase/u8-casexfrm: Likewise.
31249         * modules/unicase/u8-ct-casefold: Likewise.
31250         * modules/unicase/u8-ct-tolower: Likewise.
31251         * modules/unicase/u8-ct-totitle: Likewise.
31252         * modules/unicase/u8-ct-toupper: Likewise.
31253         * modules/unicase/u8-is-cased: Likewise.
31254         * modules/unicase/u8-is-casefolded: Likewise.
31255         * modules/unicase/u8-is-lowercase: Likewise.
31256         * modules/unicase/u8-is-titlecase: Likewise.
31257         * modules/unicase/u8-is-uppercase: Likewise.
31258         * modules/unicase/u8-prefix-context: Likewise.
31259         * modules/unicase/u8-suffix-context: Likewise.
31260         * modules/unicase/u8-tolower: Likewise.
31261         * modules/unicase/u8-totitle: Likewise.
31262         * modules/unicase/u8-toupper: Likewise.
31263         * modules/unicase/u16-casecmp: Likewise.
31264         * modules/unicase/u16-casecoll: Likewise.
31265         * modules/unicase/u16-casefold: Likewise.
31266         * modules/unicase/u16-casexfrm: Likewise.
31267         * modules/unicase/u16-ct-casefold: Likewise.
31268         * modules/unicase/u16-ct-tolower: Likewise.
31269         * modules/unicase/u16-ct-totitle: Likewise.
31270         * modules/unicase/u16-ct-toupper: Likewise.
31271         * modules/unicase/u16-is-cased: Likewise.
31272         * modules/unicase/u16-is-casefolded: Likewise.
31273         * modules/unicase/u16-is-lowercase: Likewise.
31274         * modules/unicase/u16-is-titlecase: Likewise.
31275         * modules/unicase/u16-is-uppercase: Likewise.
31276         * modules/unicase/u16-prefix-context: Likewise.
31277         * modules/unicase/u16-suffix-context: Likewise.
31278         * modules/unicase/u16-tolower: Likewise.
31279         * modules/unicase/u16-totitle: Likewise.
31280         * modules/unicase/u16-toupper: Likewise.
31281         * modules/unicase/u32-casecmp: Likewise.
31282         * modules/unicase/u32-casecoll: Likewise.
31283         * modules/unicase/u32-casefold: Likewise.
31284         * modules/unicase/u32-casexfrm: Likewise.
31285         * modules/unicase/u32-ct-casefold: Likewise.
31286         * modules/unicase/u32-ct-tolower: Likewise.
31287         * modules/unicase/u32-ct-totitle: Likewise.
31288         * modules/unicase/u32-ct-toupper: Likewise.
31289         * modules/unicase/u32-is-cased: Likewise.
31290         * modules/unicase/u32-is-casefolded: Likewise.
31291         * modules/unicase/u32-is-lowercase: Likewise.
31292         * modules/unicase/u32-is-titlecase: Likewise.
31293         * modules/unicase/u32-is-uppercase: Likewise.
31294         * modules/unicase/u32-prefix-context: Likewise.
31295         * modules/unicase/u32-suffix-context: Likewise.
31296         * modules/unicase/u32-tolower: Likewise.
31297         * modules/unicase/u32-totitle: Likewise.
31298         * modules/unicase/u32-toupper: Likewise.
31299         * modules/unicase/ulc-casecmp: Likewise.
31300         * modules/unicase/ulc-casecoll: Likewise.
31301         * modules/unicase/ulc-casexfrm: Likewise.
31302         * modules/uniconv/u8-conv-from-enc: Likewise.
31303         * modules/uniconv/u8-conv-to-enc: Likewise.
31304         * modules/uniconv/u8-strconv-from-enc: Likewise.
31305         * modules/uniconv/u8-strconv-from-locale: Likewise.
31306         * modules/uniconv/u8-strconv-to-enc: Likewise.
31307         * modules/uniconv/u8-strconv-to-locale: Likewise.
31308         * modules/uniconv/u16-conv-from-enc: Likewise.
31309         * modules/uniconv/u16-conv-to-enc: Likewise.
31310         * modules/uniconv/u16-strconv-from-enc: Likewise.
31311         * modules/uniconv/u16-strconv-from-locale: Likewise.
31312         * modules/uniconv/u16-strconv-to-enc: Likewise.
31313         * modules/uniconv/u16-strconv-to-locale: Likewise.
31314         * modules/uniconv/u32-conv-from-enc: Likewise.
31315         * modules/uniconv/u32-conv-to-enc: Likewise.
31316         * modules/uniconv/u32-strconv-from-enc: Likewise.
31317         * modules/uniconv/u32-strconv-from-locale: Likewise.
31318         * modules/uniconv/u32-strconv-to-enc: Likewise.
31319         * modules/uniconv/u32-strconv-to-locale: Likewise.
31320         * modules/unictype/bidicategory-byname: Likewise.
31321         * modules/unictype/bidicategory-name: Likewise.
31322         * modules/unictype/bidicategory-of: Likewise.
31323         * modules/unictype/bidicategory-test: Likewise.
31324         * modules/unictype/block-list: Likewise.
31325         * modules/unictype/block-test: Likewise.
31326         * modules/unictype/category-C: Likewise.
31327         * modules/unictype/category-Cc: Likewise.
31328         * modules/unictype/category-Cf: Likewise.
31329         * modules/unictype/category-Cn: Likewise.
31330         * modules/unictype/category-Co: Likewise.
31331         * modules/unictype/category-Cs: Likewise.
31332         * modules/unictype/category-L: Likewise.
31333         * modules/unictype/category-Ll: Likewise.
31334         * modules/unictype/category-Lm: Likewise.
31335         * modules/unictype/category-Lo: Likewise.
31336         * modules/unictype/category-Lt: Likewise.
31337         * modules/unictype/category-Lu: Likewise.
31338         * modules/unictype/category-M: Likewise.
31339         * modules/unictype/category-Mc: Likewise.
31340         * modules/unictype/category-Me: Likewise.
31341         * modules/unictype/category-Mn: Likewise.
31342         * modules/unictype/category-N: Likewise.
31343         * modules/unictype/category-Nd: Likewise.
31344         * modules/unictype/category-Nl: Likewise.
31345         * modules/unictype/category-No: Likewise.
31346         * modules/unictype/category-P: Likewise.
31347         * modules/unictype/category-Pc: Likewise.
31348         * modules/unictype/category-Pd: Likewise.
31349         * modules/unictype/category-Pe: Likewise.
31350         * modules/unictype/category-Pf: Likewise.
31351         * modules/unictype/category-Pi: Likewise.
31352         * modules/unictype/category-Po: Likewise.
31353         * modules/unictype/category-Ps: Likewise.
31354         * modules/unictype/category-S: Likewise.
31355         * modules/unictype/category-Sc: Likewise.
31356         * modules/unictype/category-Sk: Likewise.
31357         * modules/unictype/category-Sm: Likewise.
31358         * modules/unictype/category-So: Likewise.
31359         * modules/unictype/category-Z: Likewise.
31360         * modules/unictype/category-Zl: Likewise.
31361         * modules/unictype/category-Zp: Likewise.
31362         * modules/unictype/category-Zs: Likewise.
31363         * modules/unictype/category-and: Likewise.
31364         * modules/unictype/category-and-not: Likewise.
31365         * modules/unictype/category-byname: Likewise.
31366         * modules/unictype/category-name: Likewise.
31367         * modules/unictype/category-none: Likewise.
31368         * modules/unictype/category-of: Likewise.
31369         * modules/unictype/category-or: Likewise.
31370         * modules/unictype/category-test: Likewise.
31371         * modules/unictype/combining-class: Likewise.
31372         * modules/unictype/ctype-alnum: Likewise.
31373         * modules/unictype/ctype-alpha: Likewise.
31374         * modules/unictype/ctype-blank: Likewise.
31375         * modules/unictype/ctype-cntrl: Likewise.
31376         * modules/unictype/ctype-digit: Likewise.
31377         * modules/unictype/ctype-graph: Likewise.
31378         * modules/unictype/ctype-lower: Likewise.
31379         * modules/unictype/ctype-print: Likewise.
31380         * modules/unictype/ctype-punct: Likewise.
31381         * modules/unictype/ctype-space: Likewise.
31382         * modules/unictype/ctype-upper: Likewise.
31383         * modules/unictype/ctype-xdigit: Likewise.
31384         * modules/unictype/decimal-digit: Likewise.
31385         * modules/unictype/digit: Likewise.
31386         * modules/unictype/mirror: Likewise.
31387         * modules/unictype/numeric: Likewise.
31388         * modules/unictype/property-alphabetic: Likewise.
31389         * modules/unictype/property-ascii-hex-digit: Likewise.
31390         * modules/unictype/property-bidi-arabic-digit: Likewise.
31391         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31392         * modules/unictype/property-bidi-block-separator: Likewise.
31393         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31394         * modules/unictype/property-bidi-common-separator: Likewise.
31395         * modules/unictype/property-bidi-control: Likewise.
31396         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31397         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31398         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31399         * modules/unictype/property-bidi-european-digit: Likewise.
31400         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31401         * modules/unictype/property-bidi-left-to-right: Likewise.
31402         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31403         * modules/unictype/property-bidi-other-neutral: Likewise.
31404         * modules/unictype/property-bidi-pdf: Likewise.
31405         * modules/unictype/property-bidi-segment-separator: Likewise.
31406         * modules/unictype/property-bidi-whitespace: Likewise.
31407         * modules/unictype/property-byname: Likewise.
31408         * modules/unictype/property-combining: Likewise.
31409         * modules/unictype/property-composite: Likewise.
31410         * modules/unictype/property-currency-symbol: Likewise.
31411         * modules/unictype/property-dash: Likewise.
31412         * modules/unictype/property-decimal-digit: Likewise.
31413         * modules/unictype/property-default-ignorable-code-point: Likewise.
31414         * modules/unictype/property-deprecated: Likewise.
31415         * modules/unictype/property-diacritic: Likewise.
31416         * modules/unictype/property-extender: Likewise.
31417         * modules/unictype/property-format-control: Likewise.
31418         * modules/unictype/property-grapheme-base: Likewise.
31419         * modules/unictype/property-grapheme-extend: Likewise.
31420         * modules/unictype/property-grapheme-link: Likewise.
31421         * modules/unictype/property-hex-digit: Likewise.
31422         * modules/unictype/property-hyphen: Likewise.
31423         * modules/unictype/property-id-continue: Likewise.
31424         * modules/unictype/property-id-start: Likewise.
31425         * modules/unictype/property-ideographic: Likewise.
31426         * modules/unictype/property-ids-binary-operator: Likewise.
31427         * modules/unictype/property-ids-trinary-operator: Likewise.
31428         * modules/unictype/property-ignorable-control: Likewise.
31429         * modules/unictype/property-iso-control: Likewise.
31430         * modules/unictype/property-join-control: Likewise.
31431         * modules/unictype/property-left-of-pair: Likewise.
31432         * modules/unictype/property-line-separator: Likewise.
31433         * modules/unictype/property-logical-order-exception: Likewise.
31434         * modules/unictype/property-lowercase: Likewise.
31435         * modules/unictype/property-math: Likewise.
31436         * modules/unictype/property-non-break: Likewise.
31437         * modules/unictype/property-not-a-character: Likewise.
31438         * modules/unictype/property-numeric: Likewise.
31439         * modules/unictype/property-other-alphabetic: Likewise.
31440         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31441         * modules/unictype/property-other-grapheme-extend: Likewise.
31442         * modules/unictype/property-other-id-continue: Likewise.
31443         * modules/unictype/property-other-id-start: Likewise.
31444         * modules/unictype/property-other-lowercase: Likewise.
31445         * modules/unictype/property-other-math: Likewise.
31446         * modules/unictype/property-other-uppercase: Likewise.
31447         * modules/unictype/property-paired-punctuation: Likewise.
31448         * modules/unictype/property-paragraph-separator: Likewise.
31449         * modules/unictype/property-pattern-syntax: Likewise.
31450         * modules/unictype/property-pattern-white-space: Likewise.
31451         * modules/unictype/property-private-use: Likewise.
31452         * modules/unictype/property-punctuation: Likewise.
31453         * modules/unictype/property-quotation-mark: Likewise.
31454         * modules/unictype/property-radical: Likewise.
31455         * modules/unictype/property-sentence-terminal: Likewise.
31456         * modules/unictype/property-soft-dotted: Likewise.
31457         * modules/unictype/property-space: Likewise.
31458         * modules/unictype/property-terminal-punctuation: Likewise.
31459         * modules/unictype/property-test: Likewise.
31460         * modules/unictype/property-titlecase: Likewise.
31461         * modules/unictype/property-unassigned-code-value: Likewise.
31462         * modules/unictype/property-unified-ideograph: Likewise.
31463         * modules/unictype/property-uppercase: Likewise.
31464         * modules/unictype/property-variation-selector: Likewise.
31465         * modules/unictype/property-white-space: Likewise.
31466         * modules/unictype/property-xid-continue: Likewise.
31467         * modules/unictype/property-xid-start: Likewise.
31468         * modules/unictype/property-zero-width: Likewise.
31469         * modules/unictype/scripts: Likewise.
31470         * modules/unictype/syntax-c-ident: Likewise.
31471         * modules/unictype/syntax-c-whitespace: Likewise.
31472         * modules/unictype/syntax-java-ident: Likewise.
31473         * modules/unictype/syntax-java-whitespace: Likewise.
31474         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31475         * modules/unilbrk/u8-width-linebreaks: Likewise.
31476         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31477         * modules/unilbrk/u16-width-linebreaks: Likewise.
31478         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31479         * modules/unilbrk/u32-width-linebreaks: Likewise.
31480         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31481         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31482         * modules/uniname/uniname: Likewise.
31483         * modules/uninorm/canonical-decomposition: Likewise.
31484         * modules/uninorm/composition: Likewise.
31485         * modules/uninorm/decomposing-form: Likewise.
31486         * modules/uninorm/decomposition: Likewise.
31487         * modules/uninorm/filter: Likewise.
31488         * modules/uninorm/nfc: Likewise.
31489         * modules/uninorm/nfd: Likewise.
31490         * modules/uninorm/nfkc: Likewise.
31491         * modules/uninorm/nfkd: Likewise.
31492         * modules/uninorm/u8-normalize: Likewise.
31493         * modules/uninorm/u8-normcmp: Likewise.
31494         * modules/uninorm/u8-normcoll: Likewise.
31495         * modules/uninorm/u8-normxfrm: Likewise.
31496         * modules/uninorm/u16-normalize: Likewise.
31497         * modules/uninorm/u16-normcmp: Likewise.
31498         * modules/uninorm/u16-normcoll: Likewise.
31499         * modules/uninorm/u16-normxfrm: Likewise.
31500         * modules/uninorm/u32-normalize: Likewise.
31501         * modules/uninorm/u32-normcmp: Likewise.
31502         * modules/uninorm/u32-normcoll: Likewise.
31503         * modules/uninorm/u32-normxfrm: Likewise.
31504         * modules/unistdio/u8-asnprintf: Likewise.
31505         * modules/unistdio/u8-asprintf: Likewise.
31506         * modules/unistdio/u8-snprintf: Likewise.
31507         * modules/unistdio/u8-sprintf: Likewise.
31508         * modules/unistdio/u8-u8-asnprintf: Likewise.
31509         * modules/unistdio/u8-u8-asprintf: Likewise.
31510         * modules/unistdio/u8-u8-snprintf: Likewise.
31511         * modules/unistdio/u8-u8-sprintf: Likewise.
31512         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31513         * modules/unistdio/u8-u8-vasprintf: Likewise.
31514         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31515         * modules/unistdio/u8-u8-vsprintf: Likewise.
31516         * modules/unistdio/u8-vasnprintf: Likewise.
31517         * modules/unistdio/u8-vasprintf: Likewise.
31518         * modules/unistdio/u8-vsnprintf: Likewise.
31519         * modules/unistdio/u8-vsprintf: Likewise.
31520         * modules/unistdio/u16-asnprintf: Likewise.
31521         * modules/unistdio/u16-asprintf: Likewise.
31522         * modules/unistdio/u16-snprintf: Likewise.
31523         * modules/unistdio/u16-sprintf: Likewise.
31524         * modules/unistdio/u16-u16-asnprintf: Likewise.
31525         * modules/unistdio/u16-u16-asprintf: Likewise.
31526         * modules/unistdio/u16-u16-snprintf: Likewise.
31527         * modules/unistdio/u16-u16-sprintf: Likewise.
31528         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31529         * modules/unistdio/u16-u16-vasprintf: Likewise.
31530         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31531         * modules/unistdio/u16-u16-vsprintf: Likewise.
31532         * modules/unistdio/u16-vasnprintf: Likewise.
31533         * modules/unistdio/u16-vasprintf: Likewise.
31534         * modules/unistdio/u16-vsnprintf: Likewise.
31535         * modules/unistdio/u16-vsprintf: Likewise.
31536         * modules/unistdio/u32-asnprintf: Likewise.
31537         * modules/unistdio/u32-asprintf: Likewise.
31538         * modules/unistdio/u32-snprintf: Likewise.
31539         * modules/unistdio/u32-sprintf: Likewise.
31540         * modules/unistdio/u32-u32-asnprintf: Likewise.
31541         * modules/unistdio/u32-u32-asprintf: Likewise.
31542         * modules/unistdio/u32-u32-snprintf: Likewise.
31543         * modules/unistdio/u32-u32-sprintf: Likewise.
31544         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31545         * modules/unistdio/u32-u32-vasprintf: Likewise.
31546         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31547         * modules/unistdio/u32-u32-vsprintf: Likewise.
31548         * modules/unistdio/u32-vasnprintf: Likewise.
31549         * modules/unistdio/u32-vasprintf: Likewise.
31550         * modules/unistdio/u32-vsnprintf: Likewise.
31551         * modules/unistdio/u32-vsprintf: Likewise.
31552         * modules/unistdio/ulc-asnprintf: Likewise.
31553         * modules/unistdio/ulc-asprintf: Likewise.
31554         * modules/unistdio/ulc-fprintf: Likewise.
31555         * modules/unistdio/ulc-snprintf: Likewise.
31556         * modules/unistdio/ulc-sprintf: Likewise.
31557         * modules/unistdio/ulc-vasnprintf: Likewise.
31558         * modules/unistdio/ulc-vasprintf: Likewise.
31559         * modules/unistdio/ulc-vfprintf: Likewise.
31560         * modules/unistdio/ulc-vsnprintf: Likewise.
31561         * modules/unistdio/ulc-vsprintf: Likewise.
31562         * modules/unistr/u8-check: Likewise.
31563         * modules/unistr/u8-chr: Likewise.
31564         * modules/unistr/u8-cmp: Likewise.
31565         * modules/unistr/u8-cmp2: Likewise.
31566         * modules/unistr/u8-cpy: Likewise.
31567         * modules/unistr/u8-cpy-alloc: Likewise.
31568         * modules/unistr/u8-endswith: Likewise.
31569         * modules/unistr/u8-mblen: Likewise.
31570         * modules/unistr/u8-mbsnlen: Likewise.
31571         * modules/unistr/u8-mbtouc: Likewise.
31572         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31573         * modules/unistr/u8-mbtoucr: Likewise.
31574         * modules/unistr/u8-move: Likewise.
31575         * modules/unistr/u8-next: Likewise.
31576         * modules/unistr/u8-prev: Likewise.
31577         * modules/unistr/u8-set: Likewise.
31578         * modules/unistr/u8-startswith: Likewise.
31579         * modules/unistr/u8-stpcpy: Likewise.
31580         * modules/unistr/u8-stpncpy: Likewise.
31581         * modules/unistr/u8-strcat: Likewise.
31582         * modules/unistr/u8-strchr: Likewise.
31583         * modules/unistr/u8-strcmp: Likewise.
31584         * modules/unistr/u8-strcoll: Likewise.
31585         * modules/unistr/u8-strcpy: Likewise.
31586         * modules/unistr/u8-strcspn: Likewise.
31587         * modules/unistr/u8-strdup: Likewise.
31588         * modules/unistr/u8-strlen: Likewise.
31589         * modules/unistr/u8-strmblen: Likewise.
31590         * modules/unistr/u8-strmbtouc: Likewise.
31591         * modules/unistr/u8-strncat: Likewise.
31592         * modules/unistr/u8-strncmp: Likewise.
31593         * modules/unistr/u8-strncpy: Likewise.
31594         * modules/unistr/u8-strnlen: Likewise.
31595         * modules/unistr/u8-strpbrk: Likewise.
31596         * modules/unistr/u8-strrchr: Likewise.
31597         * modules/unistr/u8-strspn: Likewise.
31598         * modules/unistr/u8-strstr: Likewise.
31599         * modules/unistr/u8-strtok: Likewise.
31600         * modules/unistr/u8-to-u16: Likewise.
31601         * modules/unistr/u8-to-u32: Likewise.
31602         * modules/unistr/u8-uctomb: Likewise.
31603         * modules/unistr/u16-check: Likewise.
31604         * modules/unistr/u16-chr: Likewise.
31605         * modules/unistr/u16-cmp: Likewise.
31606         * modules/unistr/u16-cmp2: Likewise.
31607         * modules/unistr/u16-cpy: Likewise.
31608         * modules/unistr/u16-cpy-alloc: Likewise.
31609         * modules/unistr/u16-endswith: Likewise.
31610         * modules/unistr/u16-mblen: Likewise.
31611         * modules/unistr/u16-mbsnlen: Likewise.
31612         * modules/unistr/u16-mbtouc: Likewise.
31613         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31614         * modules/unistr/u16-mbtoucr: Likewise.
31615         * modules/unistr/u16-move: Likewise.
31616         * modules/unistr/u16-next: Likewise.
31617         * modules/unistr/u16-prev: Likewise.
31618         * modules/unistr/u16-set: Likewise.
31619         * modules/unistr/u16-startswith: Likewise.
31620         * modules/unistr/u16-stpcpy: Likewise.
31621         * modules/unistr/u16-stpncpy: Likewise.
31622         * modules/unistr/u16-strcat: Likewise.
31623         * modules/unistr/u16-strchr: Likewise.
31624         * modules/unistr/u16-strcmp: Likewise.
31625         * modules/unistr/u16-strcoll: Likewise.
31626         * modules/unistr/u16-strcpy: Likewise.
31627         * modules/unistr/u16-strcspn: Likewise.
31628         * modules/unistr/u16-strdup: Likewise.
31629         * modules/unistr/u16-strlen: Likewise.
31630         * modules/unistr/u16-strmblen: Likewise.
31631         * modules/unistr/u16-strmbtouc: Likewise.
31632         * modules/unistr/u16-strncat: Likewise.
31633         * modules/unistr/u16-strncmp: Likewise.
31634         * modules/unistr/u16-strncpy: Likewise.
31635         * modules/unistr/u16-strnlen: Likewise.
31636         * modules/unistr/u16-strpbrk: Likewise.
31637         * modules/unistr/u16-strrchr: Likewise.
31638         * modules/unistr/u16-strspn: Likewise.
31639         * modules/unistr/u16-strstr: Likewise.
31640         * modules/unistr/u16-strtok: Likewise.
31641         * modules/unistr/u16-to-u32: Likewise.
31642         * modules/unistr/u16-to-u8: Likewise.
31643         * modules/unistr/u16-uctomb: Likewise.
31644         * modules/unistr/u32-check: Likewise.
31645         * modules/unistr/u32-chr: Likewise.
31646         * modules/unistr/u32-cmp: Likewise.
31647         * modules/unistr/u32-cmp2: Likewise.
31648         * modules/unistr/u32-cpy: Likewise.
31649         * modules/unistr/u32-cpy-alloc: Likewise.
31650         * modules/unistr/u32-endswith: Likewise.
31651         * modules/unistr/u32-mblen: Likewise.
31652         * modules/unistr/u32-mbsnlen: Likewise.
31653         * modules/unistr/u32-mbtouc: Likewise.
31654         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31655         * modules/unistr/u32-mbtoucr: Likewise.
31656         * modules/unistr/u32-move: Likewise.
31657         * modules/unistr/u32-next: Likewise.
31658         * modules/unistr/u32-prev: Likewise.
31659         * modules/unistr/u32-set: Likewise.
31660         * modules/unistr/u32-startswith: Likewise.
31661         * modules/unistr/u32-stpcpy: Likewise.
31662         * modules/unistr/u32-stpncpy: Likewise.
31663         * modules/unistr/u32-strcat: Likewise.
31664         * modules/unistr/u32-strchr: Likewise.
31665         * modules/unistr/u32-strcmp: Likewise.
31666         * modules/unistr/u32-strcoll: Likewise.
31667         * modules/unistr/u32-strcpy: Likewise.
31668         * modules/unistr/u32-strcspn: Likewise.
31669         * modules/unistr/u32-strdup: Likewise.
31670         * modules/unistr/u32-strlen: Likewise.
31671         * modules/unistr/u32-strmblen: Likewise.
31672         * modules/unistr/u32-strmbtouc: Likewise.
31673         * modules/unistr/u32-strncat: Likewise.
31674         * modules/unistr/u32-strncmp: Likewise.
31675         * modules/unistr/u32-strncpy: Likewise.
31676         * modules/unistr/u32-strnlen: Likewise.
31677         * modules/unistr/u32-strpbrk: Likewise.
31678         * modules/unistr/u32-strrchr: Likewise.
31679         * modules/unistr/u32-strspn: Likewise.
31680         * modules/unistr/u32-strstr: Likewise.
31681         * modules/unistr/u32-strtok: Likewise.
31682         * modules/unistr/u32-to-u16: Likewise.
31683         * modules/unistr/u32-to-u8: Likewise.
31684         * modules/unistr/u32-uctomb: Likewise.
31685         * modules/uniwbrk/u8-wordbreaks: Likewise.
31686         * modules/uniwbrk/u16-wordbreaks: Likewise.
31687         * modules/uniwbrk/u32-wordbreaks: Likewise.
31688         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31689         * modules/uniwbrk/wordbreak-property: Likewise.
31690         * modules/uniwidth/u8-strwidth: Likewise.
31691         * modules/uniwidth/u8-width: Likewise.
31692         * modules/uniwidth/u16-strwidth: Likewise.
31693         * modules/uniwidth/u16-width: Likewise.
31694         * modules/uniwidth/u32-strwidth: Likewise.
31695         * modules/uniwidth/u32-width: Likewise.
31696         * modules/uniwidth/width: Likewise.
31697         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31698         with $(LIBUNISTRING).
31699         * modules/unicase/ignorable-tests: Likewise.
31700         * modules/unicase/locale-language-tests: Likewise.
31701         * modules/unicase/tolower-tests: Likewise.
31702         * modules/unicase/totitle-tests: Likewise.
31703         * modules/unicase/toupper-tests: Likewise.
31704         * modules/unicase/u8-casecmp-tests: Likewise.
31705         * modules/unicase/u8-casecoll-tests: Likewise.
31706         * modules/unicase/u8-casefold-tests: Likewise.
31707         * modules/unicase/u8-is-cased-tests: Likewise.
31708         * modules/unicase/u8-is-casefolded-tests: Likewise.
31709         * modules/unicase/u8-is-lowercase-tests: Likewise.
31710         * modules/unicase/u8-is-titlecase-tests: Likewise.
31711         * modules/unicase/u8-is-uppercase-tests: Likewise.
31712         * modules/unicase/u8-tolower-tests: Likewise.
31713         * modules/unicase/u8-totitle-tests: Likewise.
31714         * modules/unicase/u8-toupper-tests: Likewise.
31715         * modules/unicase/u16-casecmp-tests: Likewise.
31716         * modules/unicase/u16-casecoll-tests: Likewise.
31717         * modules/unicase/u16-casefold-tests: Likewise.
31718         * modules/unicase/u16-is-cased-tests: Likewise.
31719         * modules/unicase/u16-is-casefolded-tests: Likewise.
31720         * modules/unicase/u16-is-lowercase-tests: Likewise.
31721         * modules/unicase/u16-is-titlecase-tests: Likewise.
31722         * modules/unicase/u16-is-uppercase-tests: Likewise.
31723         * modules/unicase/u16-tolower-tests: Likewise.
31724         * modules/unicase/u16-totitle-tests: Likewise.
31725         * modules/unicase/u16-toupper-tests: Likewise.
31726         * modules/unicase/u32-casecmp-tests: Likewise.
31727         * modules/unicase/u32-casecoll-tests: Likewise.
31728         * modules/unicase/u32-casefold-tests: Likewise.
31729         * modules/unicase/u32-is-cased-tests: Likewise.
31730         * modules/unicase/u32-is-casefolded-tests: Likewise.
31731         * modules/unicase/u32-is-lowercase-tests: Likewise.
31732         * modules/unicase/u32-is-titlecase-tests: Likewise.
31733         * modules/unicase/u32-is-uppercase-tests: Likewise.
31734         * modules/unicase/u32-tolower-tests: Likewise.
31735         * modules/unicase/u32-totitle-tests: Likewise.
31736         * modules/unicase/u32-toupper-tests: Likewise.
31737         * modules/unicase/ulc-casecmp-tests: Likewise.
31738         * modules/unicase/ulc-casecoll-tests: Likewise.
31739         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31740         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31741         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31742         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31743         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31744         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31745         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31746         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31747         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31748         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31749         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31750         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31751         * modules/unictype/bidicategory-byname-tests: Likewise.
31752         * modules/unictype/bidicategory-name-tests: Likewise.
31753         * modules/unictype/bidicategory-of-tests: Likewise.
31754         * modules/unictype/bidicategory-test-tests: Likewise.
31755         * modules/unictype/block-list-tests: Likewise.
31756         * modules/unictype/block-of-tests: Likewise.
31757         * modules/unictype/block-test-tests: Likewise.
31758         * modules/unictype/category-C-tests: Likewise.
31759         * modules/unictype/category-Cc-tests: Likewise.
31760         * modules/unictype/category-Cf-tests: Likewise.
31761         * modules/unictype/category-Cn-tests: Likewise.
31762         * modules/unictype/category-Co-tests: Likewise.
31763         * modules/unictype/category-Cs-tests: Likewise.
31764         * modules/unictype/category-L-tests: Likewise.
31765         * modules/unictype/category-Ll-tests: Likewise.
31766         * modules/unictype/category-Lm-tests: Likewise.
31767         * modules/unictype/category-Lo-tests: Likewise.
31768         * modules/unictype/category-Lt-tests: Likewise.
31769         * modules/unictype/category-Lu-tests: Likewise.
31770         * modules/unictype/category-M-tests: Likewise.
31771         * modules/unictype/category-Mc-tests: Likewise.
31772         * modules/unictype/category-Me-tests: Likewise.
31773         * modules/unictype/category-Mn-tests: Likewise.
31774         * modules/unictype/category-N-tests: Likewise.
31775         * modules/unictype/category-Nd-tests: Likewise.
31776         * modules/unictype/category-Nl-tests: Likewise.
31777         * modules/unictype/category-No-tests: Likewise.
31778         * modules/unictype/category-P-tests: Likewise.
31779         * modules/unictype/category-Pc-tests: Likewise.
31780         * modules/unictype/category-Pd-tests: Likewise.
31781         * modules/unictype/category-Pe-tests: Likewise.
31782         * modules/unictype/category-Pf-tests: Likewise.
31783         * modules/unictype/category-Pi-tests: Likewise.
31784         * modules/unictype/category-Po-tests: Likewise.
31785         * modules/unictype/category-Ps-tests: Likewise.
31786         * modules/unictype/category-S-tests: Likewise.
31787         * modules/unictype/category-Sc-tests: Likewise.
31788         * modules/unictype/category-Sk-tests: Likewise.
31789         * modules/unictype/category-Sm-tests: Likewise.
31790         * modules/unictype/category-So-tests: Likewise.
31791         * modules/unictype/category-Z-tests: Likewise.
31792         * modules/unictype/category-Zl-tests: Likewise.
31793         * modules/unictype/category-Zp-tests: Likewise.
31794         * modules/unictype/category-Zs-tests: Likewise.
31795         * modules/unictype/category-and-not-tests: Likewise.
31796         * modules/unictype/category-and-tests: Likewise.
31797         * modules/unictype/category-byname-tests: Likewise.
31798         * modules/unictype/category-name-tests: Likewise.
31799         * modules/unictype/category-none-tests: Likewise.
31800         * modules/unictype/category-of-tests: Likewise.
31801         * modules/unictype/category-or-tests: Likewise.
31802         * modules/unictype/category-test-withtable-tests: Likewise.
31803         * modules/unictype/combining-class-tests: Likewise.
31804         * modules/unictype/ctype-alnum-tests: Likewise.
31805         * modules/unictype/ctype-alpha-tests: Likewise.
31806         * modules/unictype/ctype-blank-tests: Likewise.
31807         * modules/unictype/ctype-cntrl-tests: Likewise.
31808         * modules/unictype/ctype-digit-tests: Likewise.
31809         * modules/unictype/ctype-graph-tests: Likewise.
31810         * modules/unictype/ctype-lower-tests: Likewise.
31811         * modules/unictype/ctype-print-tests: Likewise.
31812         * modules/unictype/ctype-punct-tests: Likewise.
31813         * modules/unictype/ctype-space-tests: Likewise.
31814         * modules/unictype/ctype-upper-tests: Likewise.
31815         * modules/unictype/ctype-xdigit-tests: Likewise.
31816         * modules/unictype/decimal-digit-tests: Likewise.
31817         * modules/unictype/digit-tests: Likewise.
31818         * modules/unictype/mirror-tests: Likewise.
31819         * modules/unictype/numeric-tests: Likewise.
31820         * modules/unictype/property-alphabetic-tests: Likewise.
31821         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31822         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31823         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31824         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31825         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31826         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31827         * modules/unictype/property-bidi-control-tests: Likewise.
31828         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31829         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31830         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31831         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31832         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31833         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31834         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31835         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31836         * modules/unictype/property-bidi-pdf-tests: Likewise.
31837         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31838         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31839         * modules/unictype/property-byname-tests: Likewise.
31840         * modules/unictype/property-combining-tests: Likewise.
31841         * modules/unictype/property-composite-tests: Likewise.
31842         * modules/unictype/property-currency-symbol-tests: Likewise.
31843         * modules/unictype/property-dash-tests: Likewise.
31844         * modules/unictype/property-decimal-digit-tests: Likewise.
31845         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31846         * modules/unictype/property-deprecated-tests: Likewise.
31847         * modules/unictype/property-diacritic-tests: Likewise.
31848         * modules/unictype/property-extender-tests: Likewise.
31849         * modules/unictype/property-format-control-tests: Likewise.
31850         * modules/unictype/property-grapheme-base-tests: Likewise.
31851         * modules/unictype/property-grapheme-extend-tests: Likewise.
31852         * modules/unictype/property-grapheme-link-tests: Likewise.
31853         * modules/unictype/property-hex-digit-tests: Likewise.
31854         * modules/unictype/property-hyphen-tests: Likewise.
31855         * modules/unictype/property-id-continue-tests: Likewise.
31856         * modules/unictype/property-id-start-tests: Likewise.
31857         * modules/unictype/property-ideographic-tests: Likewise.
31858         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31859         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31860         * modules/unictype/property-ignorable-control-tests: Likewise.
31861         * modules/unictype/property-iso-control-tests: Likewise.
31862         * modules/unictype/property-join-control-tests: Likewise.
31863         * modules/unictype/property-left-of-pair-tests: Likewise.
31864         * modules/unictype/property-line-separator-tests: Likewise.
31865         * modules/unictype/property-logical-order-exception-tests: Likewise.
31866         * modules/unictype/property-lowercase-tests: Likewise.
31867         * modules/unictype/property-math-tests: Likewise.
31868         * modules/unictype/property-non-break-tests: Likewise.
31869         * modules/unictype/property-not-a-character-tests: Likewise.
31870         * modules/unictype/property-numeric-tests: Likewise.
31871         * modules/unictype/property-other-alphabetic-tests: Likewise.
31872         * modules/unictype/property-other-default-ignorable-code-point-tests:
31873         Likewise.
31874         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31875         * modules/unictype/property-other-id-continue-tests: Likewise.
31876         * modules/unictype/property-other-id-start-tests: Likewise.
31877         * modules/unictype/property-other-lowercase-tests: Likewise.
31878         * modules/unictype/property-other-math-tests: Likewise.
31879         * modules/unictype/property-other-uppercase-tests: Likewise.
31880         * modules/unictype/property-paired-punctuation-tests: Likewise.
31881         * modules/unictype/property-paragraph-separator-tests: Likewise.
31882         * modules/unictype/property-pattern-syntax-tests: Likewise.
31883         * modules/unictype/property-pattern-white-space-tests: Likewise.
31884         * modules/unictype/property-private-use-tests: Likewise.
31885         * modules/unictype/property-punctuation-tests: Likewise.
31886         * modules/unictype/property-quotation-mark-tests: Likewise.
31887         * modules/unictype/property-radical-tests: Likewise.
31888         * modules/unictype/property-sentence-terminal-tests: Likewise.
31889         * modules/unictype/property-soft-dotted-tests: Likewise.
31890         * modules/unictype/property-space-tests: Likewise.
31891         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31892         * modules/unictype/property-test-tests: Likewise.
31893         * modules/unictype/property-titlecase-tests: Likewise.
31894         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31895         * modules/unictype/property-unified-ideograph-tests: Likewise.
31896         * modules/unictype/property-uppercase-tests: Likewise.
31897         * modules/unictype/property-variation-selector-tests: Likewise.
31898         * modules/unictype/property-white-space-tests: Likewise.
31899         * modules/unictype/property-xid-continue-tests: Likewise.
31900         * modules/unictype/property-xid-start-tests: Likewise.
31901         * modules/unictype/property-zero-width-tests: Likewise.
31902         * modules/unictype/scripts-tests: Likewise.
31903         * modules/unictype/syntax-c-ident-tests: Likewise.
31904         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31905         * modules/unictype/syntax-java-ident-tests: Likewise.
31906         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31907         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31908         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31909         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31910         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31911         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31912         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31913         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31914         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31915         * modules/uniname/uniname-tests: Likewise.
31916         * modules/uninorm/canonical-decomposition-tests: Likewise.
31917         * modules/uninorm/compat-decomposition-tests: Likewise.
31918         * modules/uninorm/composition-tests: Likewise.
31919         * modules/uninorm/decomposing-form-tests: Likewise.
31920         * modules/uninorm/decomposition-tests: Likewise.
31921         * modules/uninorm/filter-tests: Likewise.
31922         * modules/uninorm/nfc-tests: Likewise.
31923         * modules/uninorm/nfd-tests: Likewise.
31924         * modules/uninorm/nfkc-tests: Likewise.
31925         * modules/uninorm/nfkd-tests: Likewise.
31926         * modules/uninorm/u8-normcmp-tests: Likewise.
31927         * modules/uninorm/u8-normcoll-tests: Likewise.
31928         * modules/uninorm/u16-normcmp-tests: Likewise.
31929         * modules/uninorm/u16-normcoll-tests: Likewise.
31930         * modules/uninorm/u32-normcmp-tests: Likewise.
31931         * modules/uninorm/u32-normcoll-tests: Likewise.
31932         * modules/unistdio/u8-asnprintf-tests: Likewise.
31933         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31934         * modules/unistdio/u8-vasprintf-tests: Likewise.
31935         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31936         * modules/unistdio/u8-vsprintf-tests: Likewise.
31937         * modules/unistdio/u16-asnprintf-tests: Likewise.
31938         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31939         * modules/unistdio/u16-vasprintf-tests: Likewise.
31940         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31941         * modules/unistdio/u16-vsprintf-tests: Likewise.
31942         * modules/unistdio/u32-asnprintf-tests: Likewise.
31943         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31944         * modules/unistdio/u32-vasprintf-tests: Likewise.
31945         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31946         * modules/unistdio/u32-vsprintf-tests: Likewise.
31947         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31948         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31949         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31950         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31951         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31952         * modules/unistr/u8-check-tests: Likewise.
31953         * modules/unistr/u8-chr-tests: Likewise.
31954         * modules/unistr/u8-cmp-tests: Likewise.
31955         * modules/unistr/u8-cmp2-tests: Likewise.
31956         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31957         * modules/unistr/u8-cpy-tests: Likewise.
31958         * modules/unistr/u8-mblen-tests: Likewise.
31959         * modules/unistr/u8-mbsnlen-tests: Likewise.
31960         * modules/unistr/u8-mbtouc-tests: Likewise.
31961         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31962         * modules/unistr/u8-mbtoucr-tests: Likewise.
31963         * modules/unistr/u8-move-tests: Likewise.
31964         * modules/unistr/u8-next-tests: Likewise.
31965         * modules/unistr/u8-prev-tests: Likewise.
31966         * modules/unistr/u8-set-tests: Likewise.
31967         * modules/unistr/u8-stpcpy-tests: Likewise.
31968         * modules/unistr/u8-stpncpy-tests: Likewise.
31969         * modules/unistr/u8-strcat-tests: Likewise.
31970         * modules/unistr/u8-strcmp-tests: Likewise.
31971         * modules/unistr/u8-strcoll-tests: Likewise.
31972         * modules/unistr/u8-strcpy-tests: Likewise.
31973         * modules/unistr/u8-strdup-tests: Likewise.
31974         * modules/unistr/u8-strlen-tests: Likewise.
31975         * modules/unistr/u8-strmblen-tests: Likewise.
31976         * modules/unistr/u8-strmbtouc-tests: Likewise.
31977         * modules/unistr/u8-strncat-tests: Likewise.
31978         * modules/unistr/u8-strncmp-tests: Likewise.
31979         * modules/unistr/u8-strncpy-tests: Likewise.
31980         * modules/unistr/u8-strnlen-tests: Likewise.
31981         * modules/unistr/u8-to-u16-tests: Likewise.
31982         * modules/unistr/u8-to-u32-tests: Likewise.
31983         * modules/unistr/u8-uctomb-tests: Likewise.
31984         * modules/unistr/u16-check-tests: Likewise.
31985         * modules/unistr/u16-chr-tests: Likewise.
31986         * modules/unistr/u16-cmp-tests: Likewise.
31987         * modules/unistr/u16-cmp2-tests: Likewise.
31988         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31989         * modules/unistr/u16-cpy-tests: Likewise.
31990         * modules/unistr/u16-mblen-tests: Likewise.
31991         * modules/unistr/u16-mbsnlen-tests: Likewise.
31992         * modules/unistr/u16-mbtouc-tests: Likewise.
31993         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31994         * modules/unistr/u16-mbtoucr-tests: Likewise.
31995         * modules/unistr/u16-move-tests: Likewise.
31996         * modules/unistr/u16-next-tests: Likewise.
31997         * modules/unistr/u16-prev-tests: Likewise.
31998         * modules/unistr/u16-set-tests: Likewise.
31999         * modules/unistr/u16-stpcpy-tests: Likewise.
32000         * modules/unistr/u16-stpncpy-tests: Likewise.
32001         * modules/unistr/u16-strcat-tests: Likewise.
32002         * modules/unistr/u16-strcmp-tests: Likewise.
32003         * modules/unistr/u16-strcoll-tests: Likewise.
32004         * modules/unistr/u16-strcpy-tests: Likewise.
32005         * modules/unistr/u16-strdup-tests: Likewise.
32006         * modules/unistr/u16-strlen-tests: Likewise.
32007         * modules/unistr/u16-strmblen-tests: Likewise.
32008         * modules/unistr/u16-strmbtouc-tests: Likewise.
32009         * modules/unistr/u16-strncat-tests: Likewise.
32010         * modules/unistr/u16-strncmp-tests: Likewise.
32011         * modules/unistr/u16-strncpy-tests: Likewise.
32012         * modules/unistr/u16-strnlen-tests: Likewise.
32013         * modules/unistr/u16-to-u32-tests: Likewise.
32014         * modules/unistr/u16-to-u8-tests: Likewise.
32015         * modules/unistr/u16-uctomb-tests: Likewise.
32016         * modules/unistr/u32-check-tests: Likewise.
32017         * modules/unistr/u32-chr-tests: Likewise.
32018         * modules/unistr/u32-cmp-tests: Likewise.
32019         * modules/unistr/u32-cmp2-tests: Likewise.
32020         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32021         * modules/unistr/u32-cpy-tests: Likewise.
32022         * modules/unistr/u32-mblen-tests: Likewise.
32023         * modules/unistr/u32-mbsnlen-tests: Likewise.
32024         * modules/unistr/u32-mbtouc-tests: Likewise.
32025         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32026         * modules/unistr/u32-mbtoucr-tests: Likewise.
32027         * modules/unistr/u32-move-tests: Likewise.
32028         * modules/unistr/u32-next-tests: Likewise.
32029         * modules/unistr/u32-prev-tests: Likewise.
32030         * modules/unistr/u32-set-tests: Likewise.
32031         * modules/unistr/u32-stpcpy-tests: Likewise.
32032         * modules/unistr/u32-stpncpy-tests: Likewise.
32033         * modules/unistr/u32-strcat-tests: Likewise.
32034         * modules/unistr/u32-strcmp-tests: Likewise.
32035         * modules/unistr/u32-strcoll-tests: Likewise.
32036         * modules/unistr/u32-strcpy-tests: Likewise.
32037         * modules/unistr/u32-strdup-tests: Likewise.
32038         * modules/unistr/u32-strlen-tests: Likewise.
32039         * modules/unistr/u32-strmblen-tests: Likewise.
32040         * modules/unistr/u32-strmbtouc-tests: Likewise.
32041         * modules/unistr/u32-strncat-tests: Likewise.
32042         * modules/unistr/u32-strncmp-tests: Likewise.
32043         * modules/unistr/u32-strncpy-tests: Likewise.
32044         * modules/unistr/u32-strnlen-tests: Likewise.
32045         * modules/unistr/u32-to-u16-tests: Likewise.
32046         * modules/unistr/u32-to-u8-tests: Likewise.
32047         * modules/unistr/u32-uctomb-tests: Likewise.
32048         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32049         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32050         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32051         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32052         * modules/uniwidth/u8-strwidth-tests: Likewise.
32053         * modules/uniwidth/u8-width-tests: Likewise.
32054         * modules/uniwidth/u16-strwidth-tests: Likewise.
32055         * modules/uniwidth/u16-width-tests: Likewise.
32056         * modules/uniwidth/u32-strwidth-tests: Likewise.
32057         * modules/uniwidth/u32-width-tests: Likewise.
32058         * modules/uniwidth/width-tests: Likewise.
32059
32060 2010-05-18  Richard Jones  <rjones@redhat.com>
32061
32062         doc: users.txt: list hivex
32063         * users.txt: Add hivex.
32064
32065 2010-05-18  Richard Jones  <rjones@redhat.com>
32066
32067         doc: users.txt: list febootstrap
32068         * users.txt: Add febootstrap.
32069
32070 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32071
32072         bootstrap: fix an error when gnulib is not used as a git submodule
32073         * build-aux/bootstrap (gnulib_path): If its length is zero then
32074         assign "gnulib" to it.
32075         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32076
32077 2010-05-16  Bruno Haible  <bruno@clisp.org>
32078
32079         Avoid autoconf warnings about AM_ICONV.
32080         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32081         2.64.
32082
32083 2010-05-16  Bruno Haible  <bruno@clisp.org>
32084
32085         absolute-header: Make the macro usable in more situations.
32086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32087         from gl_ABSOLUTE_HEADER.
32088         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32089
32090 2010-05-16  James Youngman  <jay@gnu.org>
32091
32092         doc: update users.txt
32093         * users.txt: Add CSSC.
32094
32095 2010-05-16  Jim Meyering  <meyering@redhat.com>
32096
32097         init.sh: fix an error in the previous change; add more comments
32098         * tests/init.sh: Compare exit code in loop against 9, not 2.
32099         Patch by Bruno Haible.
32100         Make the two tests more similar by adding an empty "then" clause.
32101         Add comments.
32102
32103         init.sh: avoid unnecessary shell re-exec
32104         * tests/init.sh: Improve the re-exec-required check to first test the
32105         current shell.  If it passes the test, do not search for a shell that
32106         does pass, and do not re-exec.  This test is particularly contorted to
32107         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32108         of $(...) evokes a syntax error and causes immediate shell exit with
32109         status 2.  Bruno Haible reported that the re-exec made it impossible
32110         to single-step through any init.sh-using script.
32111
32112 2010-05-16  Bruno Haible  <bruno@clisp.org>
32113
32114         Fix collision between gnulib's and libintl's printf replacements.
32115         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32116         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32117         (printf): When using GNU C, map the __printf__ function to rpl_printf
32118         via __asm__. When not using GNU C, define rpl_printf instead of
32119         __printf__.
32120         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32121         commit.
32122         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32123         commit.
32124         * m4/asm-underscore.m4: New file.
32125         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32126         * modules/stdio (Files): Add m4/asm-underscore.m4.
32127         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32128         Reported by Ben Pfaff.
32129
32130 2010-05-16  Bruno Haible  <bruno@clisp.org>
32131
32132         verify: Avoid skipping the test on openSUSE 11.0.
32133         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32134
32135 2010-05-13  Bruno Haible  <bruno@clisp.org>
32136
32137         Avoid useless warnings from G++.
32138         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32139         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32140         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32141
32142 2010-05-11  Jim Meyering  <meyering@redhat.com>
32143
32144         maint.mk: tweak preceding change
32145         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32146         regexps tighter by anchoring at EOL, and make the new group "shy"
32147         for slightly decreased overhead.
32148
32149 2010-05-11  Eric Blake  <eblake@redhat.com>
32150
32151         maint.mk: gnulib doesn't guarantee NSIG
32152         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32153
32154 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32155
32156         test-pwrite.c: Remove unused variable declaration.
32157         * tests/test-pwrite.c (main): Remove read_buf declaration.
32158
32159         Remove useless test-pwrite.sh file.
32160         * tests/test-pwrite.sh: Delete file.
32161         * modules/pwrite-tests: Remove references.
32162         Reported by Bruno Haible.
32163
32164 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32165
32166         init.sh: fix a typo
32167         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32168
32169 2010-05-10  Jim Meyering  <meyering@redhat.com>
32170
32171         maint.mk: avoid using a temporary file in the always-defined-macros check
32172         * top/maint.mk (.re-defmac): Remove rule.
32173         (gl_trap_): Remove definition.
32174         (sc_prohibit_always-defined_macros): Rewrite not to create and
32175         depend on a temporary file.  Instead, depend on GNU grep's ability
32176         to read a list of regular expressions from stdin when given "-f -".
32177
32178 2010-05-09  Bruno Haible  <bruno@clisp.org>
32179
32180         Update to GNU gettext 0.18, part 1.
32181         * m4/gettext.m4: Update to GNU gettext 0.18.
32182         * m4/intl.m4: Likewise.
32183         * m4/po.m4: Likewise.
32184         * modules/gettext (Files): Add m4/fcntl-o.m4.
32185         (configure.ac): Require gettext infrastructure from version 0.18.
32186
32187 2010-05-09  Jim Meyering  <meyering@redhat.com>
32188
32189         init.sh: enable MALLOC_PERTURB_
32190         * tests/init.sh: Enable glibc's malloc-perturbing option.
32191
32192         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32193         With my recent change in init.sh from the two-line form:
32194             -#   : ${srcdir=.}
32195             -#   . "$srcdir/init.sh"; path_prepend_ .
32196             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32197         I noticed that using the one-line form would cause this test
32198         to fail with a false-positive, or to stop working altogether,
32199         depending on whether help-version changed or all the tests did.
32200         * top/maint.mk (_hv_regex): Remove this definition.
32201         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32202         (_hv_regex_strong): Use a stronger regex to check for conformance.
32203         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32204         Give a separate diagnostic for lack of conforming use.
32205
32206         maint.mk: prohibit definition of symbols defined by gnulib
32207         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32208         definition of symbols defined by gnulib.
32209
32210 2010-05-09  Bruno Haible  <bruno@clisp.org>
32211
32212         acl: Avoid test failure on Cygwin-hosted mingw.
32213         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32214
32215 2010-05-09  Bruno Haible  <bruno@clisp.org>
32216
32217         error: Use system's fcntl function.
32218         * lib/error.c (fcntl): Undefine.
32219
32220 2010-05-09  Jim Meyering  <meyering@redhat.com>
32221
32222         verify: adjust formatting to be more consistent
32223         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32224         argument-list '('s, and after one comma.
32225
32226 2010-05-09  Bruno Haible  <bruno@clisp.org>
32227
32228         error: More reliable output on mingw.
32229         * lib/error.c: Include <windows.h>.
32230         (is_open): New function.
32231         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32232         defined.
32233
32234 2010-05-09  Bruno Haible  <bruno@clisp.org>
32235
32236         vasnprintf: Fix syntax errors in libintl build on mingw.
32237         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32238         pad_ourselves and prec_ourselves after use.
32239
32240 2010-05-08  Bruno Haible  <bruno@clisp.org>
32241
32242         * lib/config.charset: Update comments for Cygwin 1.7.
32243         * lib/localcharset.c: Likewise.
32244
32245 2010-05-07  Jim Meyering  <meyering@redhat.com>
32246
32247         init.sh: improve comments
32248         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32249         . "${srcdir=.}/init.sh"; path_prepend_ .
32250         Add a note about path_prepend_ and the alternative of using
32251         TESTS_ENVIRONMENT.
32252
32253 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32254
32255         exclude: Unescape hashed patterns in wildcard mode.
32256         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32257         to the hash list.
32258         * tests/test-exclude8.sh: New test case.
32259         * modules/exclude-tests: Add new test.
32260
32261 2010-05-05  Eric Blake  <eblake@redhat.com>
32262
32263         verify: automate tests
32264         * modules/verify-tests: New module.
32265         * tests/test-verify.sh: New file.
32266         * tests/test-verify.c: Guard each negative test with a unique id.
32267         Also avoid warning about unused left hand of comma expressions.
32268
32269 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32270
32271         Further improvements to verify.h, suggested by Eric Blake.
32272         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32273         the GL_* versions, to avoid collision with OpenGL.
32274         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32275         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32276         than testing merely whether it's defined.
32277
32278         Modify verify.h to pacify gcc -Wredundant_decls.
32279         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32280         These use the prefix "GL_" since they're likely to be useful elsewhere.
32281         We may need to break them out into a different .h file.
32282         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32283         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32284         of verify_function__.
32285
32286 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32287
32288         Tests for module pwrite.
32289         * modules/pwrite-tests: New file.
32290         * tests/test-pwrite.sh: New file.
32291         * tests/test-pwrite.c: New file.
32292
32293         New module pwrite.
32294         * lib/unistd.in.h (pwrite): New declaration.
32295         * lib/pwrite.c: New file, from glibc with modifications.
32296         * m4/pwrite.m4: New file.
32297         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32298         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32299         REPLACE_PWRITE.
32300         * modules/pwrite: New file.
32301         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32302         REPLACE_PWRITE.
32303         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32304         * doc/posix-functions/pwrite.texi: Mention the new module.
32305
32306 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32307
32308         pread: Update documentation.
32309         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32310
32311 2010-05-04  Eric Blake  <eblake@redhat.com>
32312
32313         docs: update cygwin progress
32314         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32315         this bug.
32316         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32317         Added in cygwin 1.7.2.
32318         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32319         Likewise.
32320         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32321         Likewise.
32322         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32323         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32324         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32325         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32326         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32327         Mention nproc module.
32328         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32329         bug in cygwin 1.7.5 addition.
32330         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32331         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32332         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32333         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32334         1.7.5.
32335         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32336         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32337         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32338         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32339         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32340         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32341         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32342         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32343         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32344         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32345         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32346         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32347         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32348         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32349         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32350         Likewise.
32351         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32352         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32353         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32354         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32355         Likewise.
32356         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32357         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32358         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32359         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32360         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32361         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32362         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32363         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32364         Likewise.
32365         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32366         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32367         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32368         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32369         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32370         Likewise.
32371         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32372         Likewise.
32373         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32374         Likewise.
32375         * doc/glibc-functions/xdrrec_endofrecord.texi
32376         (xdrrec_endofrecord): Likewise.
32377         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32378         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32379         Likewise.
32380         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32381         Likewise.
32382
32383 2010-05-04  Jim Meyering  <meyering@redhat.com>
32384
32385         gendocs.sh: make its "-s FILE" option more useful
32386         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32387         $PACKAGE to reflect the probably-different basename of "FILE".
32388
32389 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32390
32391         bootstrap: don't ignore download_po_files failure
32392         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32393         failure.
32394
32395 2010-05-03  Jim Meyering  <meyering@redhat.com>
32396
32397         maint.mk: allow to pass options to gendocs.sh
32398         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32399         (gendocs_options_): New overridable variable.
32400
32401         gnu-web-doc-update: don't ignore configure or build failure
32402         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32403
32404         announce-gen: backslash-escape '@'s in --help output
32405         * build-aux/announce-gen: Fix syntax errors.
32406
32407         maint.mk, announce-gen: allow project-specific announcement mail headers
32408         * top/maint.mk (translation_project_): Define default.
32409         (announcement_Cc_, announcement_mail_headers_): Likewise.
32410         (announcement): Invoke announce-gen with new --mail-headers option.
32411         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32412
32413         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32414         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32415         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32416         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32417         line in the "err2" output file when running "make check" in verbose
32418         mode (i.e., with set -x enabled).
32419
32420 2010-05-03  Bruno Haible  <bruno@clisp.org>
32421
32422         wctob: Fix for weird platforms.
32423         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32424         argument value.
32425
32426 2010-05-03  Jim Meyering  <meyering@redhat.com>
32427
32428         maint.mk: prohibit unwarranted use of <strings.h>
32429         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32430         strings.h in a file that does not also use strcasecmp, strncasecmp,
32431         ffs or ffsll.
32432
32433         maint.mk: remove obsolete comments
32434         * top/maint.mk: Remove stale, commented-out rules.
32435
32436 2010-05-02  Bruno Haible  <bruno@clisp.org>
32437
32438         wcwidth: Declare also when it's aliased.
32439         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32440         macro.
32441
32442 2010-05-02  Bruno Haible  <bruno@clisp.org>
32443
32444         Fix regression from 2010-04-25.
32445         * gnulib-tool (func_modules_transitive_closure): Check the status of
32446         all modules, not only of the tests that are of the form foo-tests where
32447         foo is a module.
32448
32449 2010-05-02  Bruno Haible  <bruno@clisp.org>
32450
32451         wctob: Work around nasty Cygwin 1.7.2 bug.
32452         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32453         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32454
32455 2010-05-01  Bruno Haible  <bruno@clisp.org>
32456
32457         fpurge: Sharper test.
32458         * tests/test-fpurge.c (main): Add one more ftell check.
32459         * modules/fpurge-tests (Depends-on): Add ftell.
32460         Suggested by Eric Blake.
32461
32462 2010-05-01  Bruno Haible  <bruno@clisp.org>
32463
32464         ftello: Another test.
32465         * tests/test-ftello3.c: New file.
32466         * modules/ftello-tests (Files): Add it.
32467         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32468         MOSTLYCLEANFILES.
32469
32470         ftell: Another test.
32471         * tests/test-ftell3.c: New file.
32472         * modules/ftell-tests (Files): Add it.
32473         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32474         MOSTLYCLEANFILES.
32475
32476 2010-05-01  Bruno Haible  <bruno@clisp.org>
32477
32478         ftell, ftello: Work around Solaris bug.
32479         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32480         * lib/ftello.c: Include stdio-impl.h.
32481         (ftello): On Solaris, when _IOWRT is set, compute the result without
32482         looking at _IOREAD.
32483         * modules/ftello (Files): Add lib/stdio-impl.h.
32484         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32485         * doc/posix-functions/ftello.texi: Likewise.
32486         Reported by Eric Blake.
32487
32488 2010-05-01  Bruno Haible  <bruno@clisp.org>
32489
32490         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32491         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32492         the _IOWRT flag is also set.
32493
32494 2010-05-01  Bruno Haible  <bruno@clisp.org>
32495
32496         Fix doc about a HP-UX stdio bug.
32497         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32498         * doc/posix-functions/ftello.texi: Likewise.
32499
32500 2010-05-01  Bruno Haible  <bruno@clisp.org>
32501
32502         lseek test: Fix failure on Solaris.
32503         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32504         output.
32505
32506 2010-04-30  Jim Meyering  <meyering@redhat.com>
32507
32508         bootstrap: don't ignore failure to generate po*/Makevars
32509         * build-aux/bootstrap (with_gettext): Don't ignore failure
32510         to create po/Makevars or runtime-po/Makevars.
32511
32512 2010-04-29  Eric Blake  <eblake@redhat.com>
32513
32514         headers: relax license to LGPLv2+
32515         * modules/fcntl-h (License): Relax license.
32516         * modules/getopt-posix (License): Likewise.
32517         * modules/locale (License): Likewise.
32518         * modules/math (License): Likewise.
32519         * modules/pty (License): Likewise.
32520         * modules/sched (License): Likewise.
32521         * modules/search (License): Likewise.
32522         * modules/spawn (License): Likewise.
32523         * modules/stdarg (License): Likewise.
32524         * modules/sysexits (License): Likewise.
32525
32526 2010-04-29  Jim Meyering  <meyering@redhat.com>
32527
32528         inttypes: relax license to LGPLv2+
32529         * modules/inttypes (License): Relax license.
32530
32531 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32532
32533         * top/maint.mk (indent): Run twice to produce idempotent results.
32534
32535 2010-04-28  Bruno Haible  <bruno@clisp.org>
32536
32537         getdate: Generate getdate.c in the source directory.
32538         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32539         MOSTLYCLEANFILES.
32540         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32541
32542 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32543
32544         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32545         is not declared as a const *; avoid warnings in that case.
32546
32547 2010-04-28  Eric Blake  <eblake@redhat.com>
32548
32549         canonicalize-lgpl: avoid compiler warning
32550         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32551         declaration' / 'extraneous semicolon' warning with some compilers.
32552         Reported by Andreas Gruenbacher.
32553
32554 2010-04-28  Jim Meyering  <meyering@redhat.com>
32555
32556         init.sh: ensure a more reliable exit status when exiting via trap
32557         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32558         Inspired by patches from Dmitry V. Levin.
32559         Also trap on signal 3 (SIGQUIT).
32560
32561 2010-04-27  Bruno Haible  <bruno@clisp.org>
32562
32563         Update doc about utimes().
32564         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32565         'utimens' module.
32566         Reported by Andreas Gruenbacher <agruen@suse.de>.
32567
32568 2010-04-27  Eric Blake  <eblake@redhat.com>
32569
32570         full-read, full-write: relax license
32571         * modules/full-read (License): Drop to LGPLv2+.
32572         * modules/full-write (License): Likewise.
32573         * modules/safe-read (License): Likewise.
32574         * modules/safe-write (License): Likewise.
32575
32576         pthread: mention library for linking
32577         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32578
32579 2010-04-27  Jim Meyering  <meyering@redhat.com>
32580
32581         maint.mk: fix a bug introduced in last change
32582         * top/maint.mk (gl_assured_headers_): Now that all names are on
32583         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32584         is not anchored to end of word, it should be adequate.
32585
32586         maint.mk: avoid side-effect in latest syntax-check
32587         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32588         to run commands via $(shell...), and hence to incur cost only when
32589         the new rule is actually run.
32590
32591         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32592         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32593         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32594         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32595         (gl_assured_headers_, az_, AZ_): Define.
32596         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32597
32598 2010-04-26  Jim Meyering  <jim@meyering.net>
32599             Bruno Haible  <bruno@clisp.org>
32600
32601         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32602         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32603         Prompted by an exchange with Gilles Espinasse.
32604
32605 2010-04-26  Jim Meyering  <meyering@redhat.com>
32606
32607         git-version-gen: aesthetic tweak
32608         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32609         so that the command remains on a single line.
32610
32611 2010-04-26  Eric Blake  <eblake@redhat.com>
32612
32613         git-version-gen: allow use on EBCDIC hosts
32614         * build-aux/git-version-gen (dirty): Use literal rather than tying
32615         ourselves to ascii.
32616         Reported by Steve Goetze.
32617
32618 2010-04-25  Bruno Haible  <bruno@clisp.org>
32619
32620         netdb: Add support for GNULIB_POSIXCHECK.
32621         * lib/netdb.in.h: Include warn-on-use.h.
32622         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32623         functions are used when GNULIB_POSIXCHECK is defined and the
32624         getaddrinfo module is not in use.
32625         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32626         freeaddrinfo, gai_strerror, getnameinfo are declared.
32627         * modules/netdb (Depends-on): Add warn-on-use.
32628         (Makefile.am): Include warn-on-use.h in netdb.h.
32629
32630 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32631
32632         build: avoid "make check" failure without .git/ directory
32633         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32634         there is no .git/ directory.
32635
32636 2010-04-25  Bruno Haible  <bruno@clisp.org>
32637
32638         ptsname: Fix misuse of ttyname_r.
32639         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32640         of errno.
32641
32642 2010-04-25  Bruno Haible  <bruno@clisp.org>
32643
32644         ttyname_r: Make it work on Solaris 10.
32645         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32646         if the system function has the POSIX declaration. Test whether the
32647         function fails if the buffer is less than 128 bytes large.
32648         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32649         system's ttyname_r function. Provide a reasonably large buffer.
32650         * modules/ttyname_r (Depends-on): Add extensions.
32651         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32652
32653 2010-04-25  Bruno Haible  <bruno@clisp.org>
32654
32655         Use the 'extensions' module for some more functions on Solaris.
32656         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32657         module.
32658         * doc/posix-functions/ctime_r.texi: Likewise.
32659         * doc/posix-functions/getgrgid_r.texi: Likewise.
32660         * doc/posix-functions/getgrnam_r.texi: Likewise.
32661         * doc/posix-functions/getpwnam_r.texi: Likewise.
32662         * doc/posix-functions/getpwuid_r.texi: Likewise.
32663         * doc/posix-functions/readdir_r.texi: Likewise.
32664         * doc/posix-functions/sigwait.texi: Likewise.
32665         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32666         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32667
32668 2010-04-25  Bruno Haible  <bruno@clisp.org>
32669
32670         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32671         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32672         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32673         * lib/ttyname_r.c: Include <limits.h>.
32674         (ttyname_r): Define using the system's ttyname_r function, if it exists
32675         and not on Solaris.
32676         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32677         set.
32678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32679         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32680         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32681         Reported by Simon Josefsson.
32682
32683 2010-04-25  Bruno Haible  <bruno@clisp.org>
32684
32685         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32686         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32687         * doc/posix-functions/ctime_r.texi: Likewise.
32688         * doc/posix-functions/getgrgid_r.texi: Likewise.
32689         * doc/posix-functions/getgrnam_r.texi: Likewise.
32690         * doc/posix-functions/getlogin_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         * doc/posix-functions/ttyname_r.texi: Likewise.
32696         Reported by Simon Josefsson.
32697
32698 2010-04-25  Bruno Haible  <bruno@clisp.org>
32699
32700         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32701         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32702         also to --create-testdir.
32703         (func_acceptable): Don't consider the status of *-tests modules here.
32704         (func_modules_transitive_closure): Consider it here, before including a
32705         test module.
32706         (func_import, func_create_testdir): Set inc_all_direct_tests,
32707         inc_all_indirect_tests.
32708         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32709         --create-testdir and --create-megatestdir.
32710
32711 2010-04-25  Bruno Haible  <bruno@clisp.org>
32712
32713         gnulib-tool: Add --without-*-tests options.
32714         * gnulib-tool (func_usage): Document the --without-*-tests options.
32715         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32716         excl_unportable_tests): New variables.
32717         Fail if they are specified with --import or --update.
32718         (func_acceptable): Respect the excl_*_tests variables.
32719         (func_import): Set the excl_*_tests variables to empty.
32720
32721 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32722             Bruno Haible  <bruno@clisp.org>
32723
32724         Work around a MacOS X 10.4 bug with openpty.
32725         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32726         * tests/test-openpty.c (main): Close the master side explicitly.
32727
32728 2010-04-25  Bruno Haible  <bruno@clisp.org>
32729
32730         strnlen: Fix a C++ test error on MacOS X and Solaris.
32731         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32732         the function is not declared.
32733         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32734         Simon Josefsson.
32735
32736 2010-04-24  Bruno Haible  <bruno@clisp.org>
32737
32738         Avoid a gcc warning.
32739         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32740         of correct type for %08lx directive.
32741         Reported by Eric Blake.
32742
32743 2010-04-24  Bruno Haible  <bruno@clisp.org>
32744
32745         vasnprintf: Correct errno value in case of out-of-memory.
32746         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32747         or sprintf. Use the errno value from SNPRINTF or sprintf.
32748         Reported by Ian Beckwith <ianb@erislabs.net>.
32749
32750 2010-04-24  Bruno Haible  <bruno@clisp.org>
32751
32752         ansi-c++-opt: Find correct compiler when cross-compiling.
32753         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32754         AC_CHECK_PROGS.
32755         Reported by Simon Josefsson.
32756
32757 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32758
32759         vc-list-files: Add support for subversion
32760         * build-aux/vc-list-files: Use "svn list" to generate the list of
32761         files controlled by subversion.
32762
32763 2010-04-23  Jim Meyering  <meyering@redhat.com>
32764
32765         vc-list-files tests: convert to use init.sh
32766         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32767         path_prepend_.
32768         Use Exit, not exit.
32769         Use skip_ rather than open coding it.
32770         Remove trap set-up and compare definitions.
32771         * tests/test-vc-list-files-git.sh: Likewise.
32772         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32773
32774 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32775
32776         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32777         backup files.
32778
32779 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32780
32781         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32782
32783 2010-04-20  Eric Blake  <eblake@redhat.com>
32784
32785         tests: be robust to ignored SIGPIPE
32786         * tests/test-select-in.sh: Consume all output.
32787         * tests/test-lseek.sh: Check correct exit status, while avoiding
32788         EPIPE.
32789
32790 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32791             Bruno Haible  <bruno@clisp.org>
32792
32793         visibility: Don't use -fvisibility if it leads to a warning.
32794         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32795         yes, don't pretend that visibility works if it leads to a warning.
32796         Reported by Mike Gran <spk121@yahoo.com>.
32797
32798 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32799
32800         * build-aux/bootstrap: Use "git -h" for testing for supported options
32801         instead of "git --help".  The short-form option only shows a summary,
32802         and doesn't layout the full man page.  Grep for the full option name
32803         in the summary, too.
32804
32805 2010-04-19  Bruno Haible  <bruno@clisp.org>
32806
32807         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32808         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32809         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32810         mention of RELOCATABLE_STRIP.
32811         Reported by Sylvain Beucler <beuc@beuc.net>.
32812
32813 2010-04-19  Bruno Haible  <bruno@clisp.org>
32814
32815         * lib/diffseq.h: Fix typo in comment.
32816         Reported by Eric Blake.
32817
32818 2010-04-19  Bruno Haible  <bruno@clisp.org>
32819
32820         ioctl: Move autoconf macro to a .m4 file.
32821         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32822         * modules/ioctl (Files): Add it.
32823         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32824         Reported by Ian Beckwith <ianb@erislabs.net>.
32825
32826 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32827             Bruno Haible  <bruno@clisp.org>
32828
32829         diffseq: Accommodate use-case with abstract arrays.
32830         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32831         is not defined.
32832         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32833         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32834
32835 2010-04-18  Bruno Haible  <bruno@clisp.org>
32836
32837         * doc/posix-headers/stdbool.texi: More precise wording.
32838
32839 2010-04-17  Jim Meyering  <meyering@redhat.com>
32840
32841         maint.mk: use gnu-style indentation in an embedded perl script
32842         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32843         Rename variable: s/two/last_two_bytes/
32844
32845 2010-04-16  Eric Blake  <eblake@redhat.com>
32846
32847         test-stdbool: skip test that fails with Solaris CC
32848         * tests/test-stdbool.c (f): Skip test that causes compilation
32849         error under buggy C++ compiler.
32850         * lib/stdbool.in.h: Document the limitation.
32851         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32852
32853         setenv: allow compilation with C++
32854         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32855         register keyword.
32856
32857         stdint: allow test to pass with C++
32858         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32859
32860         getopt: allow compilation with C++
32861         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32862         struct.
32863         * lib/getopt.c (_getopt_internal_r): Use correct type.
32864         Reported by Dagobert Michelson, via Joel E. Denny.
32865
32866 2010-04-16  Bruno Haible  <bruno@clisp.org>
32867
32868         Override netdb.h always.
32869         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32870         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32871         Reported by Ludovic Courtès <ludo@gnu.org>.
32872
32873 2010-04-15  Bruno Haible  <bruno@clisp.org>
32874
32875         openpty: Fix mistake from 2010-03-21.
32876         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32877         Reported by Simon Josefsson.
32878
32879 2010-04-15  Eric Blake  <eblake@redhat.com>
32880
32881         test-forkpty: fix expected signature
32882         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32883         Reported by Simon Josefsson.
32884
32885 2010-04-15  Jim Meyering  <meyering@redhat.com>
32886
32887         maint.mk: texinfo_suffix_re_: correct the default regexp
32888         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32889
32890         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32891         make it configurable via texinfo_suffix_re_.
32892
32893 2010-04-14  Eric Blake  <eblake@redhat.com>
32894
32895         strtok_r: relax license to LGPLv2+
32896         * modules/strtok_r (License): Relax license.
32897         Reported by Matthias Bolte.
32898
32899 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32900
32901         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32902         version 1.4.4 by default instead of requiring the libgcrypt
32903         version used during build.  This makes it possible to use the
32904         application with older but still binary compatible libgcrypt
32905         versions.
32906
32907 2010-04-13  Eric Blake  <eblake@redhat.com>
32908
32909         getopt-gnu: match recent glibc fixes and posix ruling
32910         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32911         '+' handling, when requesting extensions.
32912         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32913         'W;' handling.
32914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32915         * doc/posix-functions/getopt.texi (getopt): Document this.
32916         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32917         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32918         Likewise.
32919
32920         getopt: merge bug fixes from glibc
32921         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32922         diagnostics.  Honor '+:' correctly.  Reject ';'.
32923
32924         getopt-posix: detect MacOS bug
32925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32926         optind when missing a required argument.
32927         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32928         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32929         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32930         Likewise.
32931
32932         getopt-posix: avoid spurious failure on Solaris
32933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32934         an indicator that setting optind=1 is sufficient for reset.
32935
32936         getopt-posix: avoid spurious failure on FreeBSD
32937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32938         in POSIX mode, since the m4 test uses it.
32939
32940         gnulib-tool: silence warning on BSD sh
32941         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32942
32943 2010-04-13  Jim Meyering  <meyering@redhat.com>
32944
32945         doc: users.txt: GNU patch now uses gnulib
32946         * users.txt: Add patch.
32947
32948 2010-04-12  Jim Meyering  <meyering@redhat.com>
32949
32950         maint.mk: generate more concise timing data for syntax-check rules
32951         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32952         " done" from each line that reports a syntax-check test duration.
32953
32954 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32955
32956         git-version-gen: use "git update-index..." rather than "git status"
32957         * build-aux/git-version-gen: Use git update-index --refresh, not
32958         "git status".  With some versions of git, "git status" would fail
32959         to update the index and result in an unwarranted "-dirty" suffix.
32960
32961 2010-04-11  Jim Meyering  <meyering@redhat.com>
32962
32963         openat: correct formatting (no semantic change)
32964         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32965         Suggested by Bruno Haible.
32966
32967 2010-04-11  Bruno Haible  <bruno@clisp.org>
32968
32969         Stricter declaration checking in testdirs.
32970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32971         If for_tests is true, augment AM_CPPFLAGS to define
32972         GNULIB_STRICT_CHECKING.
32973         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32974         GNULIB_STRICT_CHECKING is defined, verify that the function is
32975         declared.
32976
32977 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32978             Bruno Haible  <bruno@clisp.org>
32979
32980         libunistring: Improve configure output.
32981         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32982         Don't say "consider installing GNU libunistring" when checking again
32983         with libiconv.
32984
32985 2010-04-11  Bruno Haible  <bruno@clisp.org>
32986
32987         libunistring: Correct value of $LTLIBUNISTRING.
32988         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32989         correct the value of $LTLIBUNISTRING.
32990
32991 2010-04-11  Bruno Haible  <bruno@clisp.org>
32992
32993         havelib: Add static libraries to LIBS in the right order.
32994         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32995         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32996
32997 2010-04-11  Bruno Haible  <bruno@clisp.org>
32998
32999         libunistring: Detect libunistring also when it depends on libiconv.
33000         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33001         the second AC_LIB_HAVE_LINKFLAGS invocation.
33002
33003 2010-04-11  James Youngman  <jay@gnu.org>
33004
33005         close-stream: declare local scalars to be "const"
33006         * lib/close-stream.c (close_stream): Make boolean variables const
33007         to document the fact that we set but do not change them.
33008
33009 2010-04-11  Bruno Haible  <bruno@clisp.org>
33010
33011         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33012
33013 2010-04-11  Jim Meyering  <meyering@redhat.com>
33014
33015         maint.mk: don't include dist-check.mk
33016         * top/maint.mk: Remove bogus include directive.
33017
33018         maint.mk: improve empty-line-at-EOF check
33019         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33020         solution, rather than tail+Perl-based one.  The latter would read
33021         a few kilobytes from the end of each file, and did not handle empty
33022         files properly.
33023
33024         maint.mk: print the elapsed time for each syntax-check rule
33025         * top/maint.mk (sc_m_rules_): Save start time in a file.
33026         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33027         (local-check): Interpose the .z rules
33028
33029 2010-04-11  Jim Meyering  <meyering@redhat.com>
33030
33031         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33032         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33033         empty file with one that ends in an empty line.
33034
33035 2010-04-10  Bruno Haible  <bruno@clisp.org>
33036
33037         mkdir: Make it work on mingw64.
33038         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33039         * lib/mkdir.c: Update comment.
33040         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33041
33042 2010-04-10  Bruno Haible  <bruno@clisp.org>
33043
33044         Don't override improved macro from newer autoconf.
33045         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33046         autoconf >= 2.62.
33047         Reported by Joel E. Denny <jdenny@clemson.edu>.
33048
33049 2010-04-10  Jim Meyering  <meyering@redhat.com>
33050
33051         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33052         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33053
33054         maint.mk: correct a diagnostic
33055         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33056         in diagnostic; now use $prohibit.
33057
33058 2010-04-10  Bruno Haible  <address@hidden>
33059
33060         fchownat: Fix a C++ test error on Solaris 8.
33061         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33062         the function does not exist.
33063
33064 2010-04-10  Bruno Haible  <bruno@clisp.org>
33065
33066         vasnprintf: Add more tests.
33067         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33068         (test_function): Test converting an invalid wide string.
33069
33070         vasnprintf: Correct handling of unconvertible wide string arguments.
33071         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33072         VASNPRINTF.
33073         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33074         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33075         smaller than the expected maximum need for the directive. Set errno to
33076         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33077         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33079         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33080         * modules/vasnprintf (Files): Add m4/printf.m4.
33081         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33082
33083 2010-04-10  Bruno Haible  <bruno@clisp.org>
33084
33085         vasnprintf: Fix crash in %ls directive.
33086         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33087         string is passed as argument to %ls, with no precision and no width.
33088         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33089
33090 2010-04-10  Bruno Haible  <bruno@clisp.org>
33091
33092         vasnprintf: Fix multiple test failures on mingw.
33093         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33094         _snprintf, or snwprintf, not _snwprintf.
33095
33096 2010-04-10  Bruno Haible  <bruno@clisp.org>
33097
33098         write: Fix a C++ test error on mingw.
33099         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33100
33101 2010-04-10  Bruno Haible  <bruno@clisp.org>
33102
33103         vasnprintf test: Reduce code duplication.
33104         * tests/test-vasnprintf.c (test_function): New function, extracted from
33105         test_vasnprintf.
33106         (test_vasnprintf, test_asnprintf): Invoke it.
33107
33108 2010-04-10  Bruno Haible  <bruno@clisp.org>
33109
33110         strnlen: Fix warning in C++ mode on MacOS X.
33111         * lib/string.in.h (strnlen): Use the modern idiom.
33112         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33113         defining strnlen as a macro already in <config.h>.
33114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33115         REPLACE_STRNLEN.
33116         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33117         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33118
33119 2010-04-08  James Youngman  <jay@gnu.org>
33120
33121         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33122         the example.
33123
33124 2010-04-09  Jim Meyering  <meyering@redhat.com>
33125
33126         maint.mk: print better diagnostic when there is no $(_hv_file)
33127         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33128         announce that when $(_hv_file) (aka help-version) does not exist.
33129
33130         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33131         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33132         not try to interpret its random input bytes.  Jarno Rajahalme reported
33133         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33134         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33135         (mktempd_): Likewise, just in case.
33136
33137         ftruncate: add two years to projected module removal date: 2012
33138         * m4/ftruncate.m4: Adjust comments.
33139
33140         ftruncate: mark module as obsolete; even MinGW provides it, now
33141         * modules/ftruncate (Status): Obsolete.
33142         (Notice): Say that.
33143         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33144         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33145
33146 2010-04-08  Bruno Haible  <bruno@clisp.org>
33147
33148         Fix side effects from tests-related modules.
33149         * modules/dprintf-posix (Comment): New section.
33150         * modules/fprintf-posix (Comment): Likewise.
33151         * modules/obstack-printf-posix (Comment): Likewise.
33152         * modules/printf-posix (Comment): Likewise.
33153         * modules/snprintf-posix (Comment): Likewise.
33154         * modules/sprintf-posix (Comment): Likewise.
33155         * modules/vasnprintf-posix (Comment): Likewise.
33156         * modules/vasprintf-posix (Comment): Likewise.
33157         * modules/vdprintf-posix (Comment): Likewise.
33158         * modules/vfprintf-posix (Comment): Likewise.
33159         * modules/vprintf-posix (Comment): Likewise.
33160         * modules/vsnprintf-posix (Comment): Likewise.
33161         * modules/vsprintf-posix (Comment): Likewise.
33162         * modules/xprintf-posix (Comment): Likewise.
33163         * modules/xvasprintf-posix (Comment): Likewise.
33164         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33165         * modules/floorf-tests (Depends-on): Likewise.
33166         * modules/round-tests (Depends-on): Likewise.
33167         * modules/roundf-tests (Depends-on): Likewise.
33168         * modules/trunc-tests (Depends-on): Likewise.
33169         * modules/truncf-tests (Depends-on): Likewise.
33170         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33171         'fprintf-posix' module is not present.
33172         * tests/test-floorf2.c (check): Likewise.
33173         * tests/test-trunc2.c (check): Likewise.
33174         * tests/test-truncf2.c (check): Likewise.
33175         * tests/test-round2.c (equal): Likewise.
33176         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33177
33178 2010-04-07  Karl Berry  <karl@gnu.org>
33179
33180         * config/srclist.txt,
33181         * config/srclistvars.sh,
33182         * config/srclist-update: doc fixes.
33183
33184 2010-04-07  Jim Meyering  <meyering@redhat.com>
33185
33186         maint.mk: add a PATH crosschecking syntax-check rule
33187         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33188         Useful if you use a test like the one in help-version (coreutils,
33189         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33190         printed by prog --version.
33191
33192 2010-04-06  Bruno Haible  <bruno@clisp.org>
33193
33194         Fix link error on mingw.
33195         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33196         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33197
33198 2010-04-06  Bruno Haible  <bruno@clisp.org>
33199
33200         Assume rmdir exists.
33201         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33202
33203 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33204
33205         doc: update users.txt
33206         * users.txt: Add gcal.
33207
33208 2010-04-06  Jim Meyering  <meyering@redhat.com>
33209
33210         init.sh: simply unset TMPDIR rather than risking env -i
33211         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33212         although it probably works fine on all Unix-based systems, some
33213         systems (Cygwin?) cannot tolerate a totally cleared environment.
33214         Suggestion from Eric Blake.
33215
33216 2010-04-06  Jim Meyering  <meyering@redhat.com>
33217
33218         init.sh: portability fix: use env's POSIX-specified -i option not -u
33219         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33220         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33221
33222 2010-04-05  Bruno Haible  <bruno@clisp.org>
33223
33224         btowc: Work around Cygwin 1.7.2 bug.
33225         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33226         does not map NUL to 0.
33227         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33228
33229 2010-04-05  Bruno Haible  <bruno@clisp.org>
33230
33231         Make the multithread modules work on Cygwin 1.7.2.
33232         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33233         imported symbols can be declared weak, so that it returns "no" on
33234         Cygwin 1.7.2.
33235
33236 2010-04-05  Bruno Haible  <bruno@clisp.org>
33237
33238         Use the module 'strncat'.
33239         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33240
33241         Tests for module 'strncat'.
33242         * modules/strncat-tests: New file.
33243         * tests/test-strncat.c: New file.
33244
33245         New module 'strncat'.
33246         * lib/string.in.h (strncat): New declaration.
33247         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33248         * m4/strncat.m4: New file, based on m4/memchr.m4.
33249         * modules/strncat: New file.
33250         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33251         is declared.
33252         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33253         REPLACE_STRNCAT.
33254         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33255         REPLACE_STRNCAT.
33256         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33257         module.
33258         * tests/test-string-c++.cc: Check signature of strncat.
33259
33260 2010-04-05  Jim Meyering  <meyering@redhat.com>
33261
33262         xstrtoumax-tests: convert to use init.sh
33263         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33264         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33265         Use Exit, not exit.
33266         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33267
33268         xstrtoimax-tests: convert to use init.sh
33269         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33270         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33271         Use Exit, not exit.
33272         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33273
33274 2010-04-05  Bruno Haible  <bruno@clisp.org>
33275
33276         sys_socket: Avoid #define replacements in C++ mode.
33277         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33278         warning to the function if possible, rather than #defining the symbol
33279         to a dysfunctional alias.
33280
33281 2010-04-05  Bruno Haible  <bruno@clisp.org>
33282
33283         fseeko: Fix C++ test error on mingw.
33284         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33285         gl_FUNC_FSEEKO.
33286         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33287         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33288         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33289         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33290
33291 2010-04-05  Bruno Haible  <bruno@clisp.org>
33292
33293         duplocale: Improve test output.
33294         * tests/test-duplocale.c (main): Print reason for skipped test.
33295
33296 2010-04-05  Bruno Haible  <bruno@clisp.org>
33297
33298         Assume rmdir exists.
33299         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33300         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33301
33302 2010-04-05  Bruno Haible  <bruno@clisp.org>
33303
33304         Fix link error on Solaris 8 with cc.
33305         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33306
33307 2010-04-05  Bruno Haible  <bruno@clisp.org>
33308
33309         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33310         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33311
33312 2010-04-05  Bruno Haible  <bruno@clisp.org>
33313
33314         vasprintf: Update documentation.
33315         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33316
33317 2010-04-05  Bruno Haible  <bruno@clisp.org>
33318
33319         ptsname: Improve test.
33320         * tests/test-ptsname.c (main): Also try the various master names of BSD
33321         systems.
33322
33323 2010-04-05  Bruno Haible  <bruno@clisp.org>
33324
33325         memchr: Avoid a possible C++ test error.
33326         * lib/string.in.h (memchr): Provide declaration if function is missing.
33327         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33328         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33330         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33331
33332 2010-04-05  Bruno Haible  <bruno@clisp.org>
33333
33334         strtok_r: Improve idiom.
33335         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33336         AC_LIBOBJ is used.
33337
33338 2010-04-05  Bruno Haible  <bruno@clisp.org>
33339
33340         strdup: Improve idiom.
33341         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33342         AC_LIBOBJ is used.
33343         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33344         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33345         when AC_LIBOBJ is used.
33346
33347 2010-04-05  Bruno Haible  <bruno@clisp.org>
33348
33349         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33350         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33351         don't set REPLACE_MBSINIT to 1.
33352         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33353         don't set REPLACE_MBRTOWC to 1.
33354         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33355         exist, don't set REPLACE_MBSRTOWCS to 1.
33356         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33357         exist, don't set REPLACE_MBSNRTOWCS to 1.
33358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33359         don't set REPLACE_WCRTOMB to 1.
33360         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33361         exist, don't set REPLACE_WCSRTOMBS to 1.
33362         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33363         exist, don't set REPLACE_WCSNRTOMBS to 1.
33364
33365 2010-04-05  Bruno Haible  <bruno@clisp.org>
33366
33367         ldexpl: Improve idiom.
33368         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33369         make sure to set HAVE_DECL_LDEXPL to 0.
33370
33371 2010-04-05  Jim Meyering  <meyering@redhat.com>
33372
33373         xstrtol-tests: convert to use init.sh
33374         * modules/xstrtol-tests (Files): Add tests/init.sh.
33375         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33376         Use Exit, not exit.
33377         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33378
33379         atexit-tests: convert to use init.sh
33380         * modules/atexit-tests (Files): Add tests/init.sh.
33381         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33382         Use Exit, not exit.
33383         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33384
33385         init.sh: fix typo
33386         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33387
33388         init.sh: make it easier for a test script to write to the tty, ...
33389         when using automake's parallel-tests mode.
33390         * tests/init.sh (stderr_fileno_): Define overridable variable.
33391         (warn_): New function, to use it.
33392         (fail_, skip_, framework_failure_): Use warn_.
33393
33394 2010-04-04  Bruno Haible  <bruno@clisp.org>
33395
33396         btowc: Avoid warning.
33397         * lib/btowc.c: Include <stdlib.h>.
33398         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33399
33400 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33401             Bruno Haible  <bruno@clisp.org>
33402
33403         wchar: Port to NetBSD 1.5.
33404         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33405         * lib/wctype.in.h (WEOF): Likewise.
33406
33407 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33408             Bruno Haible  <bruno@clisp.org>
33409
33410         Port extended stdio to NetBSD 1.5.
33411         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33412         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33413         older.
33414
33415 2010-04-04  Bruno Haible  <bruno@clisp.org>
33416
33417         string: Remove unused substitution.
33418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33419         HAVE_DECL_STRERROR.
33420         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33421
33422 2010-04-04  Bruno Haible  <bruno@clisp.org>
33423
33424         strtod: Avoid a possible C++ test error.
33425         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33426         set REPLACE_STRTOD.
33427
33428 2010-04-04  Bruno Haible  <bruno@clisp.org>
33429
33430         strerror: Update documentation.
33431         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33432
33433 2010-04-04  Bruno Haible  <bruno@clisp.org>
33434
33435         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33436         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33437         _GL_CXXALIAS_SYS_CAST.
33438
33439 2010-04-04  Bruno Haible  <bruno@clisp.org>
33440
33441         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33442         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33443         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33444         REPLACE_FREXPL to 1.
33445         * doc/posix-functions/frexpl.texi: Update documentation.
33446
33447 2010-04-04  Bruno Haible  <bruno@clisp.org>
33448
33449         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33450         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33451
33452 2010-04-04  Bruno Haible  <bruno@clisp.org>
33453
33454         Implement nanosleep for native Windows.
33455         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33456
33457 2010-04-04  Bruno Haible  <bruno@clisp.org>
33458
33459         math: Fix some C++ test errors on Solaris 8.
33460         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33461
33462 2010-04-04  Bruno Haible  <bruno@clisp.org>
33463
33464         math: Fix some C++ test errors on Cygwin.
33465         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33466         truncl): Provide declaration if the system does not have it.
33467         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33468         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33469         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33470         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33471         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33472         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33473         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33474         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33475         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33476         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33477         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33478         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33479         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33480         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33481         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33482         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33484         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33485         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33486         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33487         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33488         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33489
33490 2010-04-04  Bruno Haible  <bruno@clisp.org>
33491
33492         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33493         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33494         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33495         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33496         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33497         * m4/isinf.m4 (gl_ISINF): Likewise.
33498         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33499
33500 2010-04-04  Bruno Haible  <bruno@clisp.org>
33501
33502         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33503         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33504
33505 2010-04-04  Bruno Haible  <bruno@clisp.org>
33506
33507         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33508         * modules/tmpfile (configure.ac): Update.
33509
33510         tmpfile: Fix C++ test error on mingw.
33511         * lib/stdio.in.h (tmpfile): New declaration.
33512         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33513         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33514         * modules/tmpfile (Depends-on): Add stdio.
33515         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33516         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33517         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33518         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33519         REPLACE_TMPFILE.
33520         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33521
33522 2010-04-04  Bruno Haible  <bruno@clisp.org>
33523
33524         ioctl: Fix C++ test error on mingw.
33525         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33526         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33527         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33528
33529 2010-04-03  Bruno Haible  <bruno@clisp.org>
33530
33531         wcwidth: Fix C++ test error on mingw.
33532         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33534         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33535
33536 2010-04-03  Bruno Haible  <bruno@clisp.org>
33537
33538         nanosleep: Fix C++ test error on mingw.
33539         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33540         * lib/time.in.h (nanosleep): Use modern idiom.
33541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33542         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33543         REPLACE_NANOSLEEP to 1.
33544         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33545         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33546
33547 2010-04-03  Bruno Haible  <bruno@clisp.org>
33548
33549         strptime: Fix C++ test error on mingw.
33550         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33551         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33552         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33553         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33554         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33555         not REPLACE_STRPTIME.
33556         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33557         REPLACE_STRPTIME.
33558
33559 2010-04-03  Bruno Haible  <bruno@clisp.org>
33560
33561         timegm: Fix C++ test error on mingw.
33562         * lib/time.in.h (timegm): Use modern idiom.
33563         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33564         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33565         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33566         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33567
33568 2010-04-03  Bruno Haible  <bruno@clisp.org>
33569
33570         timegm: Assume declaration if function exists.
33571         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33572         if it exists. Don't clobber ac_cv_func_timegm.
33573
33574 2010-04-03  Bruno Haible  <bruno@clisp.org>
33575
33576         time_r: Fix C++ test error on mingw.
33577         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33578         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33579         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33580         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33581         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33582
33583 2010-04-03  Bruno Haible  <bruno@clisp.org>
33584
33585         time_r: Minor updates.
33586         * modules/time_r (Description): Mention the provided functions.
33587         * lib/time_r.c: Don't include <string.h>.
33588         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33589         * doc/posix-functions/localtime_r.texi: Likewise.
33590
33591 2010-04-03  Bruno Haible  <bruno@clisp.org>
33592
33593         time: Fix regression introduced on 2010-03-08.
33594         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33595         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33596
33597 2010-04-03  Jim Meyering  <meyering@redhat.com>
33598
33599         maint.mk: don't silently disable project-specific syntax-check rules
33600         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33601         that they need to convert their project-specific syntax-check rules
33602         to use the new _sc_search_regexp.
33603
33604 2010-04-03  Bruno Haible  <bruno@clisp.org>
33605
33606         fchdir: Fix regression introduced on 2010-03-08.
33607         * lib/unistd.in.h (fchdir): Fix declaration.
33608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33610         REPLACE_FCHDIR.
33611         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33612         REPLACE_FCHDIR.
33613
33614 2010-04-03  Bruno Haible  <bruno@clisp.org>
33615
33616         getpagesize: Fix C++ test error on mingw.
33617         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33618         system does not declare the function.
33619         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33620         declared.
33621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33622         HAVE_DECL_GETPAGESIZE.
33623         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33624
33625 2010-04-03  Bruno Haible  <bruno@clisp.org>
33626
33627         stdio: Make C++ tests work on mingw.
33628         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33629         does not declare the function.
33630
33631 2010-04-03  Bruno Haible  <bruno@clisp.org>
33632
33633         ftello: Fix C++ test error on mingw.
33634         * lib/stdio.in.h (ftello): Use modern idiom.
33635         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33636         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33637         is missing and that it needs to be replaced.
33638         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33640         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33641
33642 2010-04-03  Bruno Haible  <bruno@clisp.org>
33643
33644         fseeko: Fix C++ test error on mingw.
33645         * lib/stdio.in.h (fseeko): Use modern idiom.
33646         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33647         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33648         is missing and that it needs to be replaced.
33649         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33651         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33652
33653 2010-04-03  Bruno Haible  <bruno@clisp.org>
33654
33655         mkstemp: Fix C++ test error on mingw.
33656         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33658         function is missing and that it needs to be replaced.
33659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33660         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33661
33662 2010-04-03  Bruno Haible  <bruno@clisp.org>
33663
33664         stpncpy: Fix C++ test error on mingw.
33665         * lib/string.in.h (stpncpy): Use modern idiom.
33666         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33667         function is missing and that it needs to be replaced.
33668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33669         REPLACE_STPNCPY.
33670         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33671
33672 2010-04-03  Bruno Haible  <bruno@clisp.org>
33673
33674         sys_stat: Fix C++ test error on mingw.
33675         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33676         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33677
33678 2010-04-03  Bruno Haible  <bruno@clisp.org>
33679
33680         pty: Update doc.
33681         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33682
33683 2010-04-03  Bruno Haible  <bruno@clisp.org>
33684
33685         unistd: Fix C++ test error on mingw.
33686         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33687
33688 2010-04-03  Bruno Haible  <bruno@clisp.org>
33689
33690         Update doc regarding mingw.
33691         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33692         * doc/glibc-functions/login_tty.texi: Likewise.
33693         * doc/glibc-functions/forkpty.texi: Likewise.
33694
33695 2010-04-03  Bruno Haible  <bruno@clisp.org>
33696
33697         stdlib: Avoid compilation failure of c-strtold on mingw.
33698         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33699
33700 2010-04-03  Bruno Haible  <bruno@clisp.org>
33701
33702         locale: Make C++ tests work on Cygwin and mingw.
33703         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33704         cannot provide the function.
33705         Reported by Simon Josefsson.
33706
33707 2010-04-03  Bruno Haible  <bruno@clisp.org>
33708
33709         localename: Port to MacOS X 10.6.
33710         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33711         memory layout of the locales in MacOS X 10.6 as well.
33712         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33713
33714 2010-04-02  Bruno Haible  <bruno@clisp.org>
33715
33716         gnulib-tool: Ensure that long-running tests are executed last.
33717         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33718         running tests after the one for the other tests.
33719
33720 2010-04-02  Bruno Haible  <bruno@clisp.org>
33721
33722         gnulib-tool: Ensure the tests in the main directory are executed first.
33723         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33724         start with the current directory.
33725
33726 2010-04-02  Bruno Haible  <bruno@clisp.org>
33727
33728         Tests for module 'havelib', moved here from GNU gettext.
33729         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33730         modifications.
33731         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33732         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33733         with modifications.
33734         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33735         modifications.
33736         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33737         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33738         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33739         with modifications.
33740         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33741         with modifications.
33742         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33743         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33744         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33745         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33746         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33747         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33748         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33749         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33750         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33751         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33752         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33753         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33754         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33755         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33756         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33757         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33758         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33759         with modifications.
33760         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33761         with modifications.
33762         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33763         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33764         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33765         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33766         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33767         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33768         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33769         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33770         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33771         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33772         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33773         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33774         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33775         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33776         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33777         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33778         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33779         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33780         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33781         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33782         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33783         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33784         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33785         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33786         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33787         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33788         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33789         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33790         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33791         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33792         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33793         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33794         * tests/havelib/rpathx/rpathx.c: New file, from
33795         gettext/autoconf-lib-link.
33796         * tests/havelib/rpathx/Makefile.am: New file, from
33797         gettext/autoconf-lib-link.
33798         * tests/havelib/rpathx/configure.ac: New file, from
33799         gettext/autoconf-lib-link with modifications.
33800         * tests/havelib/rpathy/rpathy.c: New file, from
33801         gettext/autoconf-lib-link.
33802         * tests/havelib/rpathy/Makefile.am: New file, from
33803         gettext/autoconf-lib-link.
33804         * tests/havelib/rpathy/configure.ac: New file, from
33805         gettext/autoconf-lib-link with modifications.
33806         * tests/havelib/rpathz/rpathz.c: New file, from
33807         gettext/autoconf-lib-link.
33808         * tests/havelib/rpathz/Makefile.am: New file, from
33809         gettext/autoconf-lib-link.
33810         * tests/havelib/rpathz/configure.ac: New file, from
33811         gettext/autoconf-lib-link with modifications.
33812         * tests/havelib/rpathlx/usex.c: New file, from
33813         gettext/autoconf-lib-link.
33814         * tests/havelib/rpathlx/Makefile.am: New file, from
33815         gettext/autoconf-lib-link.
33816         * tests/havelib/rpathlx/configure.ac: New file, from
33817         gettext/autoconf-lib-link with modifications.
33818         * tests/havelib/rpathly/usey.c: New file, from
33819         gettext/autoconf-lib-link.
33820         * tests/havelib/rpathly/Makefile.am: New file, from
33821         gettext/autoconf-lib-link.
33822         * tests/havelib/rpathly/configure.ac: New file, from
33823         gettext/autoconf-lib-link with modifications.
33824         * tests/havelib/rpathlz/usez.c: New file, from
33825         gettext/autoconf-lib-link.
33826         * tests/havelib/rpathlz/Makefile.am: New file, from
33827         gettext/autoconf-lib-link.
33828         * tests/havelib/rpathlz/configure.ac: New file, from
33829         gettext/autoconf-lib-link with modifications.
33830         * tests/havelib/rpathlyx/usey.c: New file, from
33831         gettext/autoconf-lib-link.
33832         * tests/havelib/rpathlyx/Makefile.am: New file, from
33833         gettext/autoconf-lib-link.
33834         * tests/havelib/rpathlyx/configure.ac: New file, from
33835         gettext/autoconf-lib-link with modifications.
33836         * tests/havelib/rpathlzyx/usez.c: New file, from
33837         gettext/autoconf-lib-link.
33838         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33839         gettext/autoconf-lib-link.
33840         * tests/havelib/rpathlzyx/configure.ac: New file, from
33841         gettext/autoconf-lib-link with modifications.
33842         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33843         with modifications.
33844
33845 2010-04-02  Bruno Haible  <bruno@clisp.org>
33846
33847         gnulib-tool: Create distributed built sources also for the tests.
33848         * gnulib-tool (func_create_testdir): Also generate distributed built
33849         sources in the tests directory.
33850
33851 2010-04-02  Bruno Haible  <bruno@clisp.org>
33852
33853         gnulib-tool: Obey user's environment variables.
33854         * gnulib-tool (func_create_testdir): When creating built sources,
33855         respect the environment variables for autoconf, automake, etc. given by
33856         the user.
33857
33858 2010-04-02  Bruno Haible  <bruno@clisp.org>
33859
33860         gnulib-tool: Provide the value of --m4-base to modules.
33861         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33862         of gl_m4_base.
33863
33864 2010-04-02  Eric Blake  <eblake@redhat.com>
33865
33866         maint.mk: fix some fallout
33867         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33868         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33869
33870 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33871
33872         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33873         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33874         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33875         (sc_cast_of_x_alloc_return_value): Likewise.
33876         (sc_cast_of_alloca_return_value): Likewise.
33877         (sc_space_tab): Likewise.
33878         (sc_prohibit_atoi_atof): Likewise.
33879         (sc_prohibit_magic_number_exit): Likewise.
33880         (sc_error_exit_success): Likewise.
33881         (sc_file_system): Likewise.
33882         (sc_prohibit_have_config_h): Likewise.
33883         (sc_require_config_h): Likewise.
33884         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33885         (sc_obsolete_symbols): Likewise.
33886         (sc_changelog): Likewise.
33887         (sc_program_name): Likewise.
33888         (sc_the_the): Likewise.
33889         (sc_trailing_blank): Likewise.
33890         (sc_two_space_separator_in_usage): Likewise.
33891         (sc_useless_cpp_parens): Likewise.
33892         (sc_GPL_version): Likewise.
33893         (sc_GFDL_version): Likewise.
33894         (sc_texinfo_acronym): Likewise.
33895         (sc_prohibit_cvs_keyword): Likewise.
33896         (sc_prohibit_stat_st_blocks): Likewise.
33897         (sc_prohibit_S_IS_definition): Likewise.
33898         (sc_redundant_const): Likewise.
33899         (sc_makefile_TAB_only_indentation): Likewise.
33900         (sc_m4_quote_check): Likewise.
33901         (sc_makefile_path_separator_check): Likewise.
33902         (sc_copyright_check): Likewise.
33903         (sc_Wundef_boolean): Likewise.
33904         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33905
33906         maint.mk: match 0 or more whitespace-before-function-call '('
33907         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33908         that have zero or two-and-more spaces between the function name
33909         and the open parenthesis.
33910         (sc_error_message_warn_fatal): Likewise.
33911         (sc_error_message_uppercase): Likewise.
33912         (sc_error_message_period): Likewise.
33913
33914 2010-03-31  Eric Blake  <eblake@redhat.com>
33915
33916         maint.mk: check for [ as well as test
33917         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33918         Based on a libvirt report by Matthias Bolte.
33919
33920         gnumakefile: don't squelch _version output
33921         * top/GNUmakefile (_version): Create one-shot dependency rather
33922         than using $(shell) when version must be regenerated.
33923         (_autoreconf): Run verbosely, by default.
33924
33925         sys_time: avoid compiler warnings
33926         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33927         unconditional, fixing regression from 2010-03-29.
33928         Reported by Simon Josefsson.
33929
33930 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33931
33932         maint.mk: s/_header_without_use/_sc_header_without_use/
33933         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33934         (sc_prohibit_assert_without_use): Use the new name.
33935         (sc_prohibit_close_stream_without_use): Likewise.
33936         (sc_prohibit_getopt_without_use): Likewise.
33937         (sc_prohibit_quotearg_without_use): Likewise.
33938         (sc_prohibit_quote_without_use): Likewise.
33939         (sc_prohibit_long_options_without_use): Likewise.
33940         (sc_prohibit_inttostr_without_use): Likewise.
33941         (sc_prohibit_ignore_value_without_use): Likewise.
33942         (sc_prohibit_error_without_use): Likewise.
33943         (sc_prohibit_xalloc_without_use): Likewise.
33944         (sc_prohibit_hash_without_use): Likewise.
33945         (sc_prohibit_hash_pjw_without_use): Likewise.
33946         (sc_prohibit_safe_read_without_use): Likewise.
33947         (sc_prohibit_argmatch_without_use): Likewise.
33948         (sc_prohibit_canonicalize_without_use): Likewise.
33949         (sc_prohibit_root_dev_ino_without_use): Likewise.
33950         (sc_prohibit_openat_without_use): Likewise.
33951         (sc_prohibit_c_ctype_without_use): Likewise.
33952         (sc_prohibit_signal_without_use): Likewise.
33953         (sc_prohibit_intprops_without_use): Likewise.
33954
33955 2010-03-30  Eric Blake  <eblake@redhat.com>
33956
33957         maint: improve module indicators
33958         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33959         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33960         columns, and avoid extra macro expansion.
33961
33962         fdopendir: work around FreeBSD bug
33963         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33964         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33965         * modules/dirent (Makefile.am): Substitute it.
33966         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33967         declaration.
33968         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33969         fix.
33970         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33971
33972 2010-03-29  Bruno Haible  <bruno@clisp.org>
33973
33974         Emit #pragma system_header after the inclusion guard, not before.
33975         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33976         guard that spans the entire file, not before. This enables an
33977         optimization in GCC's preprocessor.
33978         * lib/ctype.in.h: Likewise.
33979         * lib/dirent.in.h: Likewise.
33980         * lib/errno.in.h: Likewise.
33981         * lib/float.in.h: Likewise.
33982         * lib/getopt.in.h: Likewise.
33983         * lib/iconv.in.h: Likewise.
33984         * lib/langinfo.in.h: Likewise.
33985         * lib/locale.in.h: Likewise.
33986         * lib/math.in.h: Likewise.
33987         * lib/netdb.in.h: Likewise.
33988         * lib/netinet_in.in.h: Likewise.
33989         * lib/pty.in.h: Likewise.
33990         * lib/sched.in.h: Likewise.
33991         * lib/se-selinux.in.h: Likewise.
33992         * lib/search.in.h: Likewise.
33993         * lib/spawn.in.h: Likewise.
33994         * lib/stdarg.in.h: Likewise.
33995         * lib/stdint.in.h: Likewise.
33996         * lib/string.in.h: Likewise.
33997         * lib/strings.in.h: Likewise.
33998         * lib/sys_file.in.h: Likewise.
33999         * lib/sys_ioctl.in.h: Likewise.
34000         * lib/sys_time.in.h: Likewise.
34001         * lib/sys_times.in.h: Likewise.
34002         * lib/sys_utsname.in.h: Likewise.
34003         * lib/sys_wait.in.h: Likewise.
34004         * lib/sysexits.in.h: Likewise.
34005         * lib/wctype.in.h: Likewise.
34006
34007 2010-03-28  James Youngman  <jay@gnu.org>
34008
34009         save-cwd: don't leak a file descriptor when the caller execs.
34010         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34011         saved file descriptor.
34012         * modules/save-cwd (Depends-on): Depend on cloexec.
34013
34014 2010-03-29  Bruno Haible  <bruno@clisp.org>
34015
34016         Remove vestiges of fts-lgpl module.
34017         * lib/fts_.h: Assume GNULIB_FTS is 1.
34018         * lib/fts.c: Likewise.
34019         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34020
34021 2010-03-28  Bruno Haible  <bruno@clisp.org>
34022
34023         Fix definition of tests witness macro.
34024         * gnulib-tool (func_import): Fix definition of witness macro.
34025
34026 2010-03-28  Bruno Haible  <bruno@clisp.org>
34027
34028         Fix ioctl's protoype on glibc systems.
34029         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34030         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34031         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34032         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34033         signature. If not, arrange to replace the ioctl function.
34034         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34035         REPLACE_IOCTL.
34036         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34037         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34038         Reported by Ludovic Courtès <ludo@gnu.org>.
34039
34040 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34041
34042         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34043         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34044         made it so grep -r --include=GLOB* ... did not work.
34045
34046 2010-03-26  Jim Meyering  <meyering@redhat.com>
34047             Eric Blake  <eblake@redhat.com>
34048
34049         maint.mk: prohibit use of test's -o and -a operators
34050         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34051
34052 2010-03-28  Bruno Haible  <bruno@clisp.org>
34053
34054         Remove unused GNULIB_XYZ macro definitions.
34055         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34056         invocation.
34057
34058 2010-03-28  Bruno Haible  <bruno@clisp.org>
34059
34060         Mark privileged tests modules.
34061         * modules/idpriv-drop-tests (Status): New section.
34062         * modules/idpriv-droptemp-tests (Status): New section.
34063
34064 2010-03-28  Bruno Haible  <bruno@clisp.org>
34065
34066         Split C++ tests into separate tests modules.
34067         * modules/dirent-c++-tests: New file, extracted from
34068         modules/dirent-tests.
34069         * modules/dirent-tests: Depend on it.
34070         * modules/fcntl-h-c++-tests: New file, extracted from
34071         modules/fcntl-h-tests.
34072         * modules/fcntl-h-tests: Depend on it.
34073         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34074         * modules/glob-tests: Depend on it.
34075         * modules/iconv-h-c++-tests: New file, extracted from
34076         modules/iconv-h-tests.
34077         * modules/iconv-h-tests: Depend on it.
34078         * modules/langinfo-c++-tests: New file, extracted from
34079         modules/langinfo-tests.
34080         * modules/langinfo-tests: Depend on it.
34081         * modules/locale-c++-tests: New file, extracted from
34082         modules/locale-tests.
34083         * modules/locale-tests: Depend on it.
34084         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34085         * modules/math-tests: Depend on it.
34086         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34087         * modules/pty-tests: Depend on it.
34088         * modules/search-c++-tests: New file, extracted from
34089         modules/search-tests.
34090         * modules/search-tests: Depend on it.
34091         * modules/signal-c++-tests: New file, extracted from
34092         modules/signal-tests.
34093         * modules/signal-tests: Depend on it.
34094         * modules/spawn-c++-tests: New file, extracted from
34095         modules/spawn-tests.
34096         * modules/spawn-tests: Depend on it.
34097         * modules/stdio-c++-tests: New file, extracted from
34098         modules/stdio-tests.
34099         * modules/stdio-tests: Depend on it.
34100         * modules/stdlib-c++-tests: New file, extracted from
34101         modules/stdlib-tests.
34102         * modules/stdlib-tests: Depend on it.
34103         * modules/string-c++-tests: New file, extracted from
34104         modules/string-tests.
34105         * modules/string-tests: Depend on it.
34106         * modules/sys_ioctl-c++-tests: New file, extracted from
34107         modules/sys_ioctl-tests.
34108         * modules/sys_ioctl-tests: Depend on it.
34109         * modules/sys_select-c++-tests: New file, extracted from
34110         modules/sys_select-tests.
34111         * modules/sys_select-tests: Depend on it.
34112         * modules/sys_socket-c++-tests: New file, extracted from
34113         modules/sys_socket-tests.
34114         * modules/sys_socket-tests: Depend on it.
34115         * modules/sys_stat-c++-tests: New file, extracted from
34116         modules/sys_stat-tests.
34117         * modules/sys_stat-tests: Depend on it.
34118         * modules/sys_time-c++-tests: New file, extracted from
34119         modules/sys_time-tests.
34120         * modules/sys_time-tests: Depend on it.
34121         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34122         * modules/time-tests: Depend on it.
34123         * modules/unistd-c++-tests: New file, extracted from
34124         modules/unistd-tests.
34125         * modules/unistd-tests: Depend on it.
34126         * modules/wchar-c++-tests: New file, extracted from
34127         modules/wchar-tests.
34128         * modules/wchar-tests: Depend on it.
34129         * modules/wctype-c++-tests: New file, extracted from
34130         modules/wctype-tests.
34131         * modules/wctype-tests: Depend on it.
34132         Reported by Simon Josefsson.
34133
34134 2010-03-28  Bruno Haible  <bruno@clisp.org>
34135
34136         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34137         * gnulib-tool (func_exists_module): New function, extracted from
34138         func_verify_module.
34139         (func_verify_module): Use it.
34140         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34141         'foo' only if 'foo' exists.
34142         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34143         module.
34144
34145 2010-03-28  Bruno Haible  <bruno@clisp.org>
34146
34147         gnulib-tool: Add support for special categories of tests.
34148         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34149         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34150         (func_usage): Document them.
34151         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34152         inc_unportable_tests, inc_all_tests): New variables.
34153         (func_acceptable): Consider these variables.
34154         (func_modules_transitive_closure): Make it work when the 'Status' field
34155         consists of multiple words.
34156         (func_import): Store and restore the values of inc_cxx_tests,
34157         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34158         inc_all_tests in gnulib-comp.m4.
34159         (func_create_testdir): Set inc_all_tests to true.
34160         * doc/gnulib.texi (Extra tests modules): New section.
34161         Suggested by Jim Meyering.
34162
34163 2010-03-28  Bruno Haible  <bruno@clisp.org>
34164
34165         ansi-c++-opt: Allow turning off the C++ build by default.
34166         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34167         gl_CXX_CHOICE_DEFAULT_NO is defined.
34168         Requested by Eric Blake.
34169
34170 2010-03-28  Bruno Haible  <bruno@clisp.org>
34171
34172         unistd: Avoid #define replacements in C++ mode.
34173         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34174         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34175         setsockopt, shutdown, select): In C++, attach a warning to the function
34176         if possible, rather than #defining the symbol to a dysfunctional alias.
34177         Reported by John W. Eaton <jwe@gnu.org>.
34178
34179 2010-03-28  Bruno Haible  <bruno@clisp.org>
34180
34181         Fix link errors on mingw.
34182         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34183         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34184         $(LIBSOCKET).
34185         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34186         $(LIBSOCKET).
34187
34188 2010-03-28  Bruno Haible  <bruno@clisp.org>
34189             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34190
34191         lib-ignore: Determine different options for different compilers.
34192         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34193         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34194         Add comments.
34195         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34196         * NEWS: Mention the change.
34197
34198 2010-03-27  Bruno Haible  <bruno@clisp.org>
34199
34200         Remove unused GNULIB_XYZ macro definitions.
34201         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34202         * modules/fseek (configure.ac): Likewise.
34203         * modules/ioctl (configure.ac): Likewise.
34204         * modules/open (configure.ac): Likewise.
34205         * modules/stdlib-safer (configure.ac): Likewise.
34206
34207 2010-03-27  Bruno Haible  <bruno@clisp.org>
34208
34209         Add a remark about certain modules.
34210         * modules/malloc (Comment): New section.
34211         * modules/realloc (Comment): Likewise.
34212         * modules/sigpipe (Comment): Likewise.
34213
34214 2010-03-27  Bruno Haible  <bruno@clisp.org>
34215
34216         Resolve conflict between the two kinds of module indicators.
34217         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34218         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34219         * modules/canonicalize (configure.ac): Invoke
34220         gl_MODULE_INDICATOR_FOR_TESTS.
34221         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34222         GNULIB_XYZ.
34223         * tests/test-dirent-c++.cc: Likewise.
34224         * tests/test-dirent-safer.c: Likewise.
34225         * tests/test-dup2.c: Likewise.
34226         * tests/test-fchdir.c: Likewise.
34227         * tests/test-fcntl-h-c++.cc: Likewise.
34228         * tests/test-getopt.c: Likewise.
34229         * tests/test-getopt.h: Likewise.
34230         * tests/test-langinfo-c++.cc: Likewise.
34231         * tests/test-locale-c++.cc: Likewise.
34232         * tests/test-math-c++.cc: Likewise.
34233         * tests/test-pty-c++.cc: Likewise.
34234         * tests/test-search-c++.cc: Likewise.
34235         * tests/test-signal-c++.cc: Likewise.
34236         * tests/test-spawn-c++.cc: Likewise.
34237         * tests/test-stdio-c++.cc: Likewise.
34238         * tests/test-stdlib-c++.cc: Likewise.
34239         * tests/test-string-c++.cc: Likewise.
34240         * tests/test-sys_ioctl-c++.cc: Likewise.
34241         * tests/test-sys_select-c++.cc: Likewise.
34242         * tests/test-sys_socket-c++.cc: Likewise.
34243         * tests/test-sys_stat-c++.cc: Likewise.
34244         * tests/test-sys_time-c++.cc: Likewise.
34245         * tests/test-time-c++.cc: Likewise.
34246         * tests/test-unistd-c++.cc: Likewise.
34247         * tests/test-wchar-c++.cc: Likewise.
34248         * tests/uninorm/test-u8-nfc.c: Likewise.
34249         * tests/uninorm/test-u8-nfd.c: Likewise.
34250         * tests/uninorm/test-u8-nfkc.c: Likewise.
34251         * tests/uninorm/test-u8-nfkd.c: Likewise.
34252         * tests/uninorm/test-u16-nfc.c: Likewise.
34253         * tests/uninorm/test-u16-nfd.c: Likewise.
34254         * tests/uninorm/test-u16-nfkc.c: Likewise.
34255         * tests/uninorm/test-u16-nfkd.c: Likewise.
34256         * tests/uninorm/test-u32-nfc.c: Likewise.
34257         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34258         * tests/uninorm/test-u32-nfd.c: Likewise.
34259         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34260         * tests/uninorm/test-u32-nfkc.c: Likewise.
34261         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34262         * tests/uninorm/test-u32-nfkd.c: Likewise.
34263         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34264         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34265
34266 2010-03-27  Bruno Haible  <bruno@clisp.org>
34267
34268         Distinguish two kinds of module indicators.
34269         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34270         gl_MODULE_INDICATOR.
34271         (gl_MODULE_INDICATOR): New macro.
34272         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34273         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34274         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34275         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34276         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34277         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34278         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34279         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34280         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34281         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34282         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34283         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34286         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34287         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34288         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34289         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34290         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34291         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34292         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34293         * modules/cloexec (configure.ac): Likewise.
34294         * modules/getopt-gnu (configure.ac): Likewise.
34295         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34296         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34297         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34298         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34299
34300 2010-03-27  Bruno Haible  <bruno@clisp.org>
34301
34302         New module description field 'Comment'.
34303         * gnulib-tool: New option --extract-comment.
34304         (func_usage): Document it.
34305         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34306         (func_get_comment): New function.
34307         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34308
34309 2010-03-27  Bruno Haible  <bruno@clisp.org>
34310
34311         Addendum to 2010-02-07 commit.
34312         * gnulib-tool (func_usage): Document --extract-applicability option.
34313
34314 2010-03-27  Bruno Haible  <bruno@clisp.org>
34315
34316         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34317         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34318         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34319         rather than link errors.
34320
34321 2010-03-27  Bruno Haible  <bruno@clisp.org>
34322
34323         Avoid side effects from tests-related modules on the compilation of lib.
34324         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34325         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34326         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34327         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34328         macro.
34329         (func_import): Define a witness macro. Assign it a value that depends
34330         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34331         tests-related modules.
34332         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34333         Reported by Jim Meyering.
34334
34335 2010-03-27  Bruno Haible  <bruno@clisp.org>
34336
34337         Factorize common .m4 code.
34338         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34339         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34340         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34341         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34342         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34343         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34344         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34345         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34346         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34347         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34348         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34349         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34350         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34351         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34352         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34353         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34354         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34355         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34357         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34358         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34359         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34360         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34361         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34362         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34363         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34364         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34365         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34366         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34367         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34368         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34369         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34370
34371 2010-03-27  Bruno Haible  <bruno@clisp.org>
34372
34373         Fix a compilation error on Cygwin with g++ >= 4.3.
34374         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34375         if it is undefined or if we alias it to chmod.
34376         (lstat): Don't warn about the use of this function if it is undefined
34377         or if we alias it to stat.
34378         Reported by Simon Josefsson.
34379
34380 2010-03-27  Bruno Haible  <bruno@clisp.org>
34381
34382         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34383         * modules/getlogin (configure.ac): Update.
34384
34385         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34386         * modules/getlogin_r (configure.ac): Update.
34387
34388         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34390         * modules/inet_ntop (configure.ac): Update.
34391
34392         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34393         * modules/inet_pton (configure.ac): Update.
34394
34395         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34396         * modules/mbslen (configure.ac): Update.
34397
34398         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34399         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34400         * modules/forkpty (configure.ac): Update.
34401         * modules/openpty (configure.ac): Update.
34402
34403 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34404
34405         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34406         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34407
34408 2010-03-25  Eric Blake  <eblake@redhat.com>
34409
34410         maint: use pragma consistently across replacement headers
34411         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34412         * lib/dirent.in.h (system_header): Likewise.
34413         * lib/errno.in.h (system_header): Likewise.
34414         * lib/float.in.h (system_header): Likewise.
34415         * lib/getopt.in.h (system_header): Likewise.
34416         * lib/iconv.in.h (system_header): Likewise.
34417         * lib/inttypes.in.h (system_header): Likewise.
34418         * lib/langinfo.in.h (system_header): Likewise.
34419         * lib/locale.in.h (system_header): Likewise.
34420         * lib/math.in.h (system_header): Likewise.
34421         * lib/netdb.in.h (system_header): Likewise.
34422         * lib/netinet_in.in.h (system_header): Likewise.
34423         * lib/pty.in.h (system_header): Likewise.
34424         * lib/sched.in.h (system_header): Likewise.
34425         * lib/se-selinux.in.h (system_header): Likewise.
34426         * lib/search.in.h (system_header): Likewise.
34427         * lib/spawn.in.h (system_header): Likewise.
34428         * lib/stdarg.in.h (system_header): Likewise.
34429         * lib/stdint.in.h (system_header): Likewise.
34430         * lib/string.in.h (system_header): Likewise.
34431         * lib/strings.in.h (system_header): Likewise.
34432         * lib/sys_file.in.h (system_header): Likewise.
34433         * lib/sys_ioctl.in.h (system_header): Likewise.
34434         * lib/sys_socket.in.h (system_header): Likewise.
34435         * lib/sys_times.in.h (system_header): Likewise.
34436         * lib/sys_utsname.in.h (system_header): Likewise.
34437         * lib/sys_wait.in.h (system_header): Likewise.
34438         * lib/sysexits.in.h (system_header): Likewise.
34439         * lib/unistd.in.h (system_header): Likewise.
34440         * lib/wctype.in.h (system_header): Likewise.
34441
34442         arpa/inet: fix mingw compilation warning
34443         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34444         Reported by Matthew Bolte.
34445
34446 2010-03-25  Bruno Haible  <bruno@clisp.org>
34447
34448         Avoid collision between gnulib wrapper and libintl wrapper.
34449         * lib/printf.c (printf): Don't define if a printf wrapper is already
34450         defined in intl/printf.c.
34451         Reported by Michel Boaventura <michel@michelboaventura.com>.
34452
34453 2010-03-25  Bruno Haible  <bruno@clisp.org>
34454
34455         Use ANSI C.
34456         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34457
34458 2010-03-25  Bruno Haible  <bruno@clisp.org>
34459
34460         Minor formatting changes.
34461         * lib/acosl.c: Insert space before function argument list.
34462         * lib/argz.c: Likewise.
34463         * lib/asinl.c: Likewise.
34464         * lib/expl.c: Likewise.
34465         * lib/gen-uni-tables.c: Likewise.
34466         * lib/gettext.h: Likewise.
34467         * lib/glthread/lock.h: Likewise.
34468         * lib/tanl.c: Likewise.
34469         * lib/uniname/uniname.c: Likewise.
34470         * tests/test-idpriv-drop.c: Likewise.
34471         * tests/test-idpriv-droptemp.c: Likewise.
34472         * tests/test-lock.c: Likewise.
34473         * tests/test-tls.c: Likewise.
34474         * lib/argp-help.c: Insert space before function-like macro argument
34475         list.
34476         * lib/memcmp.c: Likewise.
34477         * tests/test-base64.c: Likewise.
34478         * lib/localename.c: Insert space before sizeof's argument list.
34479         * lib/safe-alloc.h: Likewise.
34480         * lib/file-set.h: Insert space before macro argument list.
34481         * tests/test-argp.c: Likewise.
34482         * lib/argp-namefrob.h: Insert space before function parameter list.
34483         * lib/getaddrinfo.c: Likewise.
34484         * lib/netdb.in.h: Likewise.
34485         * lib/parse-duration.h: Likewise.
34486         * lib/parse-duration.c: Likewise.
34487         * lib/poll.c: Likewise.
34488         * lib/select.c: Likewise.
34489         * lib/trim.h: Likewise.
34490         * tests/test-usleep.c: Likewise.
34491         * lib/ldexpl.c: Insert space before function parameter list and before
34492         function argument list.
34493         * lib/logl.c: Likewise.
34494         * lib/sqrtl.c: Likewise.
34495         * lib/trim.c: Likewise.
34496         * lib/cosl.c: Use GNU style indentation. Insert space before function
34497         argument list.
34498         * lib/sinl.c: Likewise.
34499         * lib/tsearch.c: Insert space after 'for'.
34500         Reported by Jim Meyering.
34501
34502 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34503
34504         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34505         config header before grepping, as it's not present before
34506         autoreconf/configure are run.  Reported by Simon Josefsson.
34507
34508 2010-03-23  Bruno Haible  <bruno@clisp.org>
34509
34510         pt_chown: Make it work with automake < 1.11.
34511         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34512         Reported by Simon Josefsson.
34513
34514 2010-03-23  Bruno Haible  <bruno@clisp.org>
34515
34516         pt_chown: Don't depend on GPLed modules.
34517         * lib/pt_chown.c: Don't include idpriv.h.
34518         (main): Don't drop privileges.
34519         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34520         Reported by Simon Josefsson.
34521
34522 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34523
34524         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34525         suggestions from karl@freefriends.org (Karl Berry).
34526
34527 2010-03-22  Eric Blake  <eblake@redhat.com>
34528
34529         gethostname: further tweaks
34530         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34531         are overriding gethostname.
34532         Suggested by Bruno Haible.
34533
34534 2010-03-21  Bruno Haible  <bruno@clisp.org>
34535
34536         Fix comments.
34537         * lib/forkpty.c (rpl_forkpty): Fix comment.
34538         * lib/openpty.c (rpl_openpty): Likewise.
34539         Reported by Eric Blake.
34540
34541 2010-03-22  Eric Blake  <eblake@redhat.com>
34542
34543         gethostname: fix build on mingw
34544         * lib/unistd.in.h (includes): Work around fact that mingw
34545         <winsock2.h> re-includes <unistd.h>, by avoiding any
34546         redeclarations if we are being included by <winsock2.h>.
34547         Reported by Matthias Bolte.
34548
34549 2010-03-21  Bruno Haible  <bruno@clisp.org>
34550
34551         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34552         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34553         modifications.
34554         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34555         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34556         provide the replacement.
34557         * modules/forkpty (Depends-on): Add openpty, login_tty.
34558         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34559         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34560         * doc/glibc-functions/forkpty.texi: More supported platforms.
34561         * config/srclist.txt: Add forkpty.c (commented).
34562
34563 2010-03-21  Bruno Haible  <bruno@clisp.org>
34564
34565         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34566         (Makefile.am): Verify that PTY_LIB is defined.
34567
34568         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34569
34570 2010-03-21  Bruno Haible  <bruno@clisp.org>
34571
34572         Tests for module 'login_tty'.
34573         * modules/login_tty-tests: New file.
34574         * tests/test-login_tty.c: New file.
34575
34576         New module 'login_tty'.
34577         * lib/login_tty.c: New file.
34578         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34579         * modules/login_tty: New file.
34580         * doc/glibc-functions/login_tty.texi: Mention the new module.
34581
34582 2010-03-21  Bruno Haible  <bruno@clisp.org>
34583
34584         login_tty: Documentation.
34585         * doc/glibc-functions/login_tty.texi: New file.
34586         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34587
34588 2010-03-21  Bruno Haible  <bruno@clisp.org>
34589
34590         pty: Consistent macro naming.
34591         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34592         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34593         * modules/pty (configure.ac): Update.
34594
34595 2010-03-21  Bruno Haible  <bruno@clisp.org>
34596
34597         Tests for openpty: Make stricter.
34598         * tests/test-openpty.c (main): Add test of canonical processing and
34599         erase.
34600         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34601
34602         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34603         * lib/openpty.c (openpty): New replacement function.
34604         * lib/pty.in.h: Include <termios.h>.
34605         (openpty): Update declaration. Add comments.
34606         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34607         is not declared, arrange to provide the replacement. Check for _getpty
34608         and posix_openpt.
34609         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34610         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34611         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34612         * modules/pty-tests (test_pty_c___LDADD): New variable.
34613         * doc/glibc-functions/openpty.texi: More supported platforms.
34614
34615 2010-03-21  Bruno Haible  <bruno@clisp.org>
34616
34617         setenv: Tweaks.
34618         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34619         the test program.
34620         * doc/posix-functions/setenv.texi: Update platforms list.
34621
34622 2010-03-21  Bruno Haible  <bruno@clisp.org>
34623
34624         New module 'unlockpt'.
34625         * lib/unlockpt.c: New file, from glibc with modifications.
34626         * m4/unlockpt.m4: New file.
34627         * modules/unlockpt: New file.
34628         * lib/stdlib.in.h (unlockpt): New declaration.
34629         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34630         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34631         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34632         HAVE_UNLOCKPT.
34633         * doc/posix-functions/unlockpt.texi: Mention the new module.
34634         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34635         * config/srclist.txt: Add unlockpt.c (commented).
34636
34637 2010-03-21  Jim Meyering  <meyering@redhat.com>
34638
34639         maint.mk: prohibit inclusion of "intprops.h" without use
34640         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34641
34642 2010-03-21  Bruno Haible  <bruno@clisp.org>
34643
34644         New module 'grantpt'.
34645         * lib/grantpt.c: New file, from glibc with modifications.
34646         * m4/grantpt.m4: New file.
34647         * modules/grantpt: New file.
34648         * lib/stdlib.in.h (grantpt): New declaration.
34649         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34650         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34651         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34652         HAVE_GRANTPT.
34653         * doc/posix-functions/grantpt.texi: Mention the new module.
34654         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34655         * config/srclist.txt: Add grantpt.c (commented).
34656
34657 2010-03-21  Bruno Haible  <bruno@clisp.org>
34658
34659         New module 'pt_chown'.
34660         * lib/pt_chown.c: New file, from glibc with modifications.
34661         * lib/pty-private.h: New file, from glibc with modifications.
34662         * modules/pt_chown: New file.
34663         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34664
34665 2010-03-21  Bruno Haible  <bruno@clisp.org>
34666
34667         Tests for module 'ptsname'.
34668         * modules/ptsname-tests: New file.
34669         * tests/test-ptsname.c: New file.
34670
34671         New module 'ptsname'.
34672         * lib/ptsname.c: New file, from glibc with modifications.
34673         * m4/ptsname.m4: New file.
34674         * modules/ptsname: New file.
34675         * lib/stdlib.in.h (ptsname): New declaration.
34676         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34677         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34678         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34679         HAVE_PTSNAME.
34680         * doc/posix-functions/ptsname.texi: Mention the new module.
34681         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34682         * config/srclist.txt: Add ptsname.c (commented).
34683
34684 2010-03-21  Bruno Haible  <bruno@clisp.org>
34685
34686         Tests for module 'ttyname_r'.
34687         * modules/ttyname_r-tests: New file.
34688         * tests/test-ttyname_r.c: New file.
34689
34690         New module 'ttyname_r'.
34691         * lib/ttyname_r.c: New file.
34692         * m4/ttyname_r.m4: New file.
34693         * modules/ttyname_r: New file.
34694         * lib/unistd.in.h (ttyname_r): New declaration.
34695         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34696         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34697         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34698         HAVE_TTYNAME_R.
34699         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34700         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34701
34702 2010-03-20  Bruno Haible  <bruno@clisp.org>
34703
34704         signal: Undefine macro definitions in C++ mode.
34705         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34706         sigfillset): Undefine macro definitions from the system header in C++
34707         mode.
34708         Reported by John W. Eaton <jwe@gnu.org>.
34709
34710 2010-03-20  Bruno Haible  <bruno@clisp.org>
34711
34712         Ensure no #include statements inside extern "C" { ... }.
34713         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34714         contain #include statements.
34715         * lib/time.in.h: Likewise.
34716
34717 2010-03-20  Bruno Haible  <bruno@clisp.org>
34718
34719         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34720         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34721         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34722         Reported by John W. Eaton <jwe@gnu.org>.
34723
34724 2010-03-20  Bruno Haible  <bruno@clisp.org>
34725
34726         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34727         Reported by Jim Meyering.
34728
34729 2010-03-20  Bruno Haible  <bruno@clisp.org>
34730
34731         pipe: Set errno upon failure.
34732         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34733         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34734         errno value in error message.
34735
34736 2010-03-20  Bruno Haible  <bruno@clisp.org>
34737             Jim Meyering  <meyering@redhat.com>
34738
34739         lchown: Avoid "unused variable" warning.
34740         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34741
34742 2010-03-20  Bruno Haible  <bruno@clisp.org>
34743
34744         Work around unlink() bug on MacOS X 10.5.6.
34745         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34746         attempting to unlink a parent directory.
34747         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34748         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34749         activate for the replacement function.
34750         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34751
34752 2010-03-20  Bruno Haible  <bruno@clisp.org>
34753
34754         Fix link errors on Solaris 8.
34755         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34756         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34757
34758 2010-03-19  Jim Meyering  <meyering@redhat.com>
34759
34760         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34761         The _LIBC implementation of build_range_exp correctly honors the
34762         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34763         However, the non-_LIBC implementation would ignore that syntax-bit
34764         flag and return REG_ERANGE unconditionally.
34765         This change makes it honor that flag.
34766         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34767         Make two pointer parameters "const".
34768         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34769         (parse_bracket_exp): Update caller.
34770
34771         regex.m4: correct the reversed range endpoint ([b-a]) test
34772         * m4/regex.m4: When requiring that [b-a] evoke failure,
34773         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34774         test pass once again for x86-based systems.
34775
34776 2010-03-19  Bruno Haible  <bruno@clisp.org>
34777
34778         scandir: Fix link error on Solaris 8.
34779         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34780         macros.
34781
34782 2010-03-19  Bruno Haible  <bruno@clisp.org>
34783
34784         getusershell: Fix documentation.
34785         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34786         module.
34787         * doc/glibc-functions/setusershell.texi: Likewise.
34788
34789         getusershell: Provide declaration, missing on Solaris 9.
34790         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34791         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34792         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34793         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34795         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34796         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34797         HAVE_GETUSERSHELL.
34798         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34799
34800 2010-03-19  Bruno Haible  <bruno@clisp.org>
34801
34802         wctype: Provide iswblank function.
34803         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34804         exists and is fine.
34805         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34806         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34807         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34808         * doc/posix-functions/iswblank.texi: Update.
34809
34810 2010-03-19  Bruno Haible  <bruno@clisp.org>
34811
34812         Tests of module 'pty' in C++ mode.
34813         * modules/pty-tests: New file.
34814         * tests/test-pty-c++.cc: New file.
34815         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34816
34817 2010-03-19  Eric Blake  <eblake@redhat.com>
34818
34819         logb: fix documentation
34820         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34821         1.5 declaration bug.
34822
34823         forkpty, openpty: prefer glibc's const-safe prototype
34824         * lib/forkpty.c (rpl_forkpty): New file.
34825         * lib/openpty.c (rpl_openpty): Likewise.
34826         * modules/forkpty (Files): Distribute it.
34827         * modules/openpty (Files): Likewise.
34828         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34829         check...
34830         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34831         replacement for for non-const BSD signature.
34832         * modules/pty (Makefile.am): Substitute witnesses.
34833         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34834         * tests/test-forkpty.c: Update signature check.
34835         * tests/test-openpty.c: Likewise.
34836         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34837         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34838
34839         forkpty, openpty: split functions into new modules
34840         * modules/pty (Makefile.am): Substitute new witnesses.
34841         (Libraries): Move library detection...
34842         * modules/forkpty: ...into new module.
34843         * modules/openpty: Another new module.
34844         * modules/pty-tests: Rename and split...
34845         * modules/forkpty-tests: ...to this...
34846         * modules/openpty-tests: ...and this.
34847         * tests/test-pty.c: Rename and split...
34848         * tests/test-forkpty.c: ...to this...
34849         * tests/test-openpty.c: ...and this.
34850         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34851         (gl_PTY): Split library searching...
34852         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34853         (gl_FORKPTY, gl_OPENPTY): New macros.
34854         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34855         * NEWS: Mention the split.
34856         * MODULES.html.sh (Misc): Document the modules.
34857         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34858         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34859
34860         pty: improve replacement header
34861         * lib/pty.in.h: New file.
34862         * modules/pty (Files): Ship it.
34863         (Makefile.am): Always build replacement.
34864         * m4/pty.m4: Rename...
34865         * m4/pty_h.m4: ...to this.
34866         (gl_PTY): Modernize setting of witness macros; update check of
34867         forkpty to take proper advantage of cache.
34868         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34869
34870         getopt: avoid compiler warning
34871         * lib/getopt.c (attribute_hidden): Remove unused macro.
34872
34873 2010-03-18  Bruno Haible  <bruno@clisp.org>
34874
34875         Fix link errors on Solaris 8.
34876         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34877         * modules/search-tests (test_search_c___LDADD): Likewise.
34878         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34879         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34880         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34881         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34882         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34883         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34884         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34885
34886 2010-03-18  Bruno Haible  <bruno@clisp.org>
34887
34888         Fix bug introduced on 2010-03-14.
34889         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34890         (gl_SPAWN_H): Require it.
34891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34892         Reported by Simon Josefsson.
34893
34894 2010-03-18  Bruno Haible  <bruno@clisp.org>
34895
34896         Fix typo introduced on 2009-12-31.
34897         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34898         posix_spawn_file_actions_adddup2.
34899
34900 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34901         and Eric Blake  <eblake@redhat.com>
34902
34903         test-vc-list-files-git: make more robust
34904         * tests/test-vc-list-files-git.sh: Unset problematic environment
34905         variables.  Chain commands together.
34906
34907 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34908
34909         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34910         `AC_CHECK_DECL' invocation.
34911
34912 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34913
34914         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34915         appears before executable statements. Suggested by Petr Sumbera
34916         <Petr.Sumbera@Sun.COM>.
34917
34918 2010-03-14  Bruno Haible  <bruno@clisp.org>
34919
34920         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34921         portability problems. Instead use a simpler test.
34922         (main): Check that invalid arguments are rejected only on Linux.
34923
34924 2010-03-14  Bruno Haible  <bruno@clisp.org>
34925
34926         Fix bug introduced on 2009-12-31.
34927         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34928         gl_PREREQ_SYS_H_WINSOCK2 always.
34929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34930         SYS_SOCKET_H variable.
34931         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34932         Update comments.
34933         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34934         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34935         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34936         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34937         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34938
34939 2010-03-14  Bruno Haible  <bruno@clisp.org>
34940
34941         Fix values returned by sinl, cosl.
34942         * lib/trigl.h: Add specification comments.
34943         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34944         that combines the values from the precomputed table with the values of
34945         the Chebyshev polynomials.
34946
34947 2010-03-14  Bruno Haible  <bruno@clisp.org>
34948
34949         Fix compilation error when modules 'posix_spawn[p]' are not used.
34950         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34952
34953 2010-03-14  Bruno Haible  <bruno@clisp.org>
34954
34955         Fix compilation error on mingw when module 'time_r' is not used.
34956         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34957         is 1.
34958         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34959         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34960         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34961         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34962
34963 2010-03-14  Bruno Haible  <bruno@clisp.org>
34964
34965         Fix compilation error with Sun C.
34966         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34967         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34968         instead of GCC specific ULONG_LONG_MAX.
34969         * lib/xstrtoll.c: Likewise.
34970         * lib/xstrtoull.c: Likewise.
34971
34972 2010-03-13  Bruno Haible  <bruno@clisp.org>
34973
34974         Allow the user to disable C++ code and tests.
34975         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34976         (gl_PROG_ANSI_CXX): Require it.
34977
34978 2010-03-13  Bruno Haible  <bruno@clisp.org>
34979
34980         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34981         cases.
34982
34983 2010-03-13  Bruno Haible  <bruno@clisp.org>
34984
34985         Test that gnulib does not break the standard C++ headers.
34986         * tests/test-locale-c++2.cc: New file.
34987         * modules/locale-tests (Files): Add it.
34988         (Makefile.am): Compile it for test-locale-c++.
34989         * tests/test-math-c++2.cc: New file.
34990         * modules/math-tests (Files): Add it.
34991         (Makefile.am): Compile it for test-math-c++.
34992         * tests/test-signal-c++2.cc: New file.
34993         * modules/signal-tests (Files): Add it.
34994         (Makefile.am): Compile it for test-signal-c++.
34995         * tests/test-stdio-c++2.cc: New file.
34996         * modules/stdio-tests (Files): Add it.
34997         (Makefile.am): Compile it for test-stdio-c++.
34998         * tests/test-stdlib-c++2.cc: New file.
34999         * modules/stdlib-tests (Files): Add it.
35000         (Makefile.am): Compile it for test-stdlib-c++.
35001         * tests/test-string-c++2.cc: New file.
35002         * modules/string-tests (Files): Add it.
35003         (Makefile.am): Compile it for test-string-c++.
35004         * tests/test-time-c++2.cc: New file.
35005         * modules/time-tests (Files): Add it.
35006         (Makefile.am): Compile it for test-time-c++.
35007         Reported by John W. Eaton <jwe@gnu.org>.
35008
35009 2010-03-13  Bruno Haible  <bruno@clisp.org>
35010
35011         * gnulib-tool (func_usage): Clarify which options are available for
35012         --create-testdir and --create-megatestdir.
35013
35014 2010-03-13  Bruno Haible  <bruno@clisp.org>
35015
35016         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35017         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35018         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35019         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35020         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35021         when appropriate.
35022         Reported by Jim Meyering.
35023
35024 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35025
35026         * gnulib-tool (func_import): Explain origin of code.
35027
35028 2010-03-12  Bruno Haible  <bruno@clisp.org>
35029
35030         Fix problem with automake's definition of CXXLINK.
35031         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35032         Reported by Simon Josefsson and Ludovic Courtès.
35033
35034 2010-03-12  Bruno Haible  <bruno@clisp.org>
35035
35036         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35037         stable releases.
35038
35039 2010-03-11  Bruno Haible  <bruno@clisp.org>
35040
35041         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35042         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35043         whether the system provides one variant or multiple variants of the
35044         function.
35045         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35046         C++ compilers.
35047         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35048         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35049         Reported by Jim Meyering.
35050
35051 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35052
35053         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35054
35055 2010-03-08  Bruno Haible  <bruno@clisp.org>
35056
35057         gnulib-tool: Add support for --libtool in --create-testdir.
35058         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35059         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35060
35061 2010-03-08  Eric Blake  <eblake@redhat.com>
35062
35063         gnulib-tool.texi: mention possibility of git submodule
35064         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35065         submodules.
35066         * doc/.gitignore: Ignore another generated file.
35067
35068 2010-03-08  Karl Berry  <karl@gnu.org>
35069
35070         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35071         of committing gnulib files while skipping others.
35072
35073 2010-03-07  Bruno Haible  <bruno@clisp.org>
35074
35075         Tests of module 'wctype' in C++ mode.
35076         * tests/test-wctype-c++.cc: New file.
35077         * modules/wctype-tests (Files): Add it and tests/signature.h.
35078         (Depends-on): Add ansi-c++-opt.
35079         (Makefile.am): Arrange to compile and run test-wctype-c++.
35080
35081         Tests of module 'wchar' in C++ mode.
35082         * tests/test-wchar-c++.cc: New file.
35083         * modules/wchar-tests (Files): Add it and tests/signature.h.
35084         (Depends-on): Add ansi-c++-opt.
35085         (Makefile.am): Arrange to compile and run test-wchar-c++.
35086         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35087         gl_MODULE_INDICATOR.
35088
35089         Tests of module 'unistd' in C++ mode.
35090         * tests/test-unistd-c++.cc: New file.
35091         * modules/unistd-tests (Files): Add it and tests/signature.h.
35092         (Depends-on): Add ansi-c++-opt.
35093         (Makefile.am): Arrange to compile and run test-unistd-c++.
35094         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35095         gl_MODULE_INDICATOR.
35096
35097         Tests of module 'time' in C++ mode.
35098         * tests/test-time-c++.cc: New file.
35099         * modules/time-tests (Files): Add it and tests/signature.h.
35100         (Depends-on): Add ansi-c++-opt.
35101         (Makefile.am): Arrange to compile and run test-time-c++.
35102         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35103
35104         Tests of module 'sys_time' in C++ mode.
35105         * tests/test-sys_time-c++.cc: New file.
35106         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35107         (Depends-on): Add ansi-c++-opt.
35108         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35109         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35110         gl_MODULE_INDICATOR.
35111
35112         Tests of module 'sys_stat' in C++ mode.
35113         * tests/test-sys_stat-c++.cc: New file.
35114         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35115         (Depends-on): Add ansi-c++-opt.
35116         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35117         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35118         gl_MODULE_INDICATOR.
35119
35120         Tests of module 'sys_socket' in C++ mode.
35121         * tests/test-sys_socket-c++.cc: New file.
35122         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35123         (Depends-on): Add ansi-c++-opt.
35124         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35125         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35126         gl_MODULE_INDICATOR.
35127
35128         Tests of module 'sys_select' in C++ mode.
35129         * tests/test-sys_select-c++.cc: New file.
35130         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35131         (Depends-on): Add ansi-c++-opt.
35132         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35133         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35134         gl_MODULE_INDICATOR.
35135
35136         Tests of module 'sys_ioctl' in C++ mode.
35137         * tests/test-sys_ioctl-c++.cc: New file.
35138         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35139         (Depends-on): Add ansi-c++-opt.
35140         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35141         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35142         gl_MODULE_INDICATOR.
35143
35144         Tests of module 'string' in C++ mode.
35145         * tests/test-string-c++.cc: New file.
35146         * modules/string-tests (Files): Add it and tests/signature.h.
35147         (Depends-on): Add ansi-c++-opt.
35148         (Makefile.am): Arrange to compile and run test-string-c++.
35149         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35150         gl_MODULE_INDICATOR.
35151
35152         Tests of module 'stdlib' in C++ mode.
35153         * tests/test-stdlib-c++.cc: New file.
35154         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35155         (Depends-on): Add ansi-c++-opt.
35156         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35157         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35158         gl_MODULE_INDICATOR.
35159
35160         Tests of module 'stdio' in C++ mode.
35161         * tests/test-stdio-c++.cc: New file.
35162         * modules/stdio-tests (Files): Add it and tests/signature.h.
35163         (Depends-on): Add ansi-c++-opt.
35164         (Makefile.am): Arrange to compile and run test-stdio-c++.
35165         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35166         gl_MODULE_INDICATOR.
35167
35168         Tests of module 'spawn' in C++ mode.
35169         * tests/test-spawn-c++.cc: New file.
35170         * modules/spawn-tests (Files): Add it and tests/signature.h.
35171         (Depends-on): Add ansi-c++-opt.
35172         (Makefile.am): Arrange to compile and run test-spawn-c++.
35173         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35174         gl_MODULE_INDICATOR.
35175
35176         Tests of module 'signal' in C++ mode.
35177         * tests/test-signal-c++.cc: New file.
35178         * modules/signal-tests (Files): Add it and tests/signature.h.
35179         (Depends-on): Add ansi-c++-opt.
35180         (Makefile.am): Arrange to compile and run test-signal-c++.
35181         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35182         gl_MODULE_INDICATOR.
35183
35184         Tests of module 'search' in C++ mode.
35185         * tests/test-search-c++.cc: New file.
35186         * modules/search-tests (Files): Add it and tests/signature.h.
35187         (Depends-on): Add ansi-c++-opt.
35188         (Makefile.am): Arrange to compile and run test-search-c++.
35189         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35190         gl_MODULE_INDICATOR.
35191
35192         Tests of module 'math' in C++ mode.
35193         * tests/test-math-c++.cc: New file.
35194         * modules/math-tests (Files): Add it and tests/signature.h.
35195         (Depends-on): Add ansi-c++-opt.
35196         (Makefile.am): Arrange to compile and run test-math-c++.
35197         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35198
35199         Tests of module 'locale' in C++ mode.
35200         * tests/test-locale-c++.cc: New file.
35201         * modules/locale-tests (Files): Add it and tests/signature.h.
35202         (Depends-on): Add ansi-c++-opt.
35203         (Makefile.am): Arrange to compile and run test-locale-c++.
35204         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35205         gl_MODULE_INDICATOR.
35206
35207         Tests of module 'langinfo' in C++ mode.
35208         * tests/test-langinfo-c++.cc: New file.
35209         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35210         (Depends-on): Add ansi-c++-opt.
35211         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35212         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35213         gl_MODULE_INDICATOR.
35214
35215         Tests of module 'iconv-h' in C++ mode.
35216         * tests/test-iconv-h-c++.cc: New file.
35217         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35218         (Depends-on): Add ansi-c++-opt.
35219         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35220
35221         Tests of module 'glob' in C++ mode.
35222         * tests/test-glob-c++.cc: New file.
35223         * modules/glob-tests (Files): Add it.
35224         (Depends-on): Add ansi-c++-opt.
35225         (Makefile.am): Arrange to compile and run test-glob-c++.
35226
35227         Tests of module 'fcntl-h' in C++ mode.
35228         * tests/test-fcntl-h-c++.cc: New file.
35229         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35230         (Depends-on): Add ansi-c++-opt.
35231         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35232         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35233         gl_MODULE_INDICATOR.
35234
35235         Tests of module 'dirent' in C++ mode.
35236         * tests/test-dirent-c++.cc: New file.
35237         * modules/dirent-tests (Files): Add it and tests/signature.h.
35238         (Depends-on): Add ansi-c++-opt.
35239         (Makefile.am): Arrange to compile and run test-dirent-c++.
35240         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35241         gl_MODULE_INDICATOR.
35242
35243         New module 'ansi-c++-opt'.
35244         * modules/ansi-c++-opt: New file.
35245         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35246
35247         Document C++ namespace mode.
35248         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35249
35250         wctype: Avoid #define replacements in C++ mode.
35251         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35252         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35253         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35254         In C++, define a namespaced alias symbol.
35255         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35256         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35257         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35258         rule.
35259
35260         wchar: Avoid #define replacements in C++ mode.
35261         * lib/wchar.in.h: Include c++defs.h.
35262         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35263         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35264         symbol.
35265         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35266         * modules/wchar (Depends-on): Add c++defs.
35267         (Makefile.am): Update wchar.h rule.
35268
35269         unistd: Avoid #define replacements in C++ mode.
35270         * lib/unistd.in.h: Include c++defs.h.
35271         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35272         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35273         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35274         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35275         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35276         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35277         symbol.
35278         (environ): Update.
35279         * modules/unistd (Depends-on): Add c++defs.
35280         (Makefile.am): Update unistd.h rule.
35281
35282         time: Avoid #define replacements in C++ mode.
35283         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35284         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35285         define a namespaced alias symbol.
35286         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35287         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35288         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35289         * modules/time (Depends-on): Add c++defs, warn-on-use.
35290         (Makefile.am): Update time.h rule.
35291         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35292         * modules/nanosleep (configure.ac): Likewise.
35293         * modules/strptime (configure.ac): Likewise.
35294         * modules/timegm (configure.ac): Likewise.
35295
35296         sys_time: Avoid #define replacements in C++ mode.
35297         * lib/sys_time.in.h: Include c++defs.h.
35298         (gettimeofday): In C++, define a namespaced alias symbol.
35299         * modules/sys_time (Depends-on): Add c++defs.
35300         (Makefile.am): Update sys/time.h rule.
35301
35302         sys_stat: Avoid #define replacements in C++ mode.
35303         * lib/sys_stat.in.h: Include c++defs.h.
35304         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35305         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35306         namespaced alias symbol.
35307         In C++, define a namespaced alias symbol.
35308         * modules/sys_stat (Depends-on): Add c++defs.
35309         (Makefile.am): Update sys/stat.h rule.
35310
35311         sys_socket: Avoid #define replacements in C++ mode.
35312         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35313         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35314         definitions also when the system has a <sys/socket.h>.
35315         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35316         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35317         In C++, define a namespaced alias symbol.
35318         * modules/sys_socket (Depends-on): Add c++defs.
35319         (Makefile.am): Update sys/socket.h rule.
35320
35321         sys_select: Avoid #define replacements in C++ mode.
35322         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35323         definitions also when the system has a <sys/select.h>.
35324         (select): In C++, define a namespaced alias symbol.
35325         * modules/sys_select (Depends-on): Add c++defs.
35326         (Makefile.am): Update sys/select.h rule.
35327
35328         sys_ioctl: Avoid #define replacements in C++ mode.
35329         * lib/sys_ioctl.in.h: Include c++defs.h.
35330         (ioctl): In C++, define a namespaced alias symbol.
35331         * modules/sys_ioctl (Depends-on): Add c++defs.
35332         (Makefile.am): Update sys/ioctl.h rule.
35333
35334         string: Avoid #define replacements in C++ mode.
35335         * lib/string.in.h: Include c++defs.h.
35336         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35337         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35338         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35339         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35340         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35341         * modules/string (Depends-on): Add c++defs.
35342         (Makefile.am): Update string.h rule.
35343
35344         stdlib: Avoid #define replacements in C++ mode.
35345         * lib/stdlib.in.h: Include c++defs.h.
35346         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35347         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35348         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35349         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35350         symbol.
35351         * modules/stdlib (Depends-on): Add c++defs.
35352         (Makefile.am): Update stdlib.h rule.
35353
35354         stdio: Avoid #define replacements in C++ mode.
35355         * lib/stdio.in.h: Include c++defs.h.
35356         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35357         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35358         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35359         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35360         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35361         namespaced alias symbol.
35362         * modules/stdio (Depends-on): Add c++defs.
35363         (Makefile.am): Update stdio.h rule.
35364
35365         spawn: Avoid #define replacements in C++ mode.
35366         * lib/spawn.in.h: Include c++defs.h.
35367         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35368         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35369         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35370         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35371         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35372         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35373         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35374         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35375         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35376         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35377         In C++, define a namespaced alias symbol.
35378         * modules/spawn (Depends-on): Add c++defs.
35379         (Makefile.am): Update spawn.h rule.
35380
35381         signal: Avoid #define replacements in C++ mode.
35382         * lib/signal.in.h: Include c++defs.h.
35383         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35384         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35385         namespaced alias symbol.
35386         * modules/signal (Depends-on): Add c++defs.
35387         (Makefile.am): Update signal.h rule.
35388
35389         search: Avoid #define replacements in C++ mode.
35390         * lib/search.in.h: Include c++defs.h.
35391         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35392         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35393         symbol.
35394         * modules/search (Depends-on): Add c++defs.
35395         (Makefile.am): Update search.h rule.
35396
35397         math: Avoid #define replacements in C++ mode.
35398         * lib/math.in.h: Include c++defs.h.
35399         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35400         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35401         trunc, truncl): In C++, define a namespaced alias symbol.
35402         * modules/math (Depends-on): Add c++defs.
35403         (Makefile.am): Update math.h rule.
35404
35405         locale: Avoid #define replacements in C++ mode.
35406         * lib/locale.in.h: Include c++defs.h.
35407         (duplocale): In C++, define a namespaced alias symbol.
35408         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35409         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35410         * modules/locale (Depends-on): Add c++defs.
35411         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35412
35413         langinfo: Avoid #define replacements in C++ mode.
35414         * lib/langinfo.in.h: Include c++defs.h.
35415         (nl_langinfo): In C++, define a namespaced alias symbol.
35416         * modules/langinfo (Depends-on): Add c++defs.
35417         (Makefile.am): Update langinfo.h rule.
35418
35419         iconv-h: Avoid #define replacements in C++ mode.
35420         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35421         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35422         symbol.
35423         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35424         whenever iconv is present.
35425         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35426         (Makefile.am): Update iconv.h rule.
35427
35428         glob: Avoid #define replacements in C++ mode.
35429         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35430         (_gl_glob_errfunc_fn): New type.
35431         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35432         symbol.
35433         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35434         (Makefile.am): Update glob.h rule.
35435
35436         fcntl-h: Avoid #define replacements in C++ mode.
35437         * lib/fcntl.in.h: Include c++defs.h.
35438         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35439         * modules/fcntl-h (Depends-on): Add c++defs.
35440         (Makefile.am): Update fcntl.h rule.
35441
35442         dirent: Avoid #define replacements in C++ mode.
35443         * lib/dirent.in.h: Include c++defs.h.
35444         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35445         namespaced alias symbol.
35446         (dirfd): Update declaration.
35447         * modules/dirent (Depends-on): Add c++defs.
35448         (Makefile.am): Update dirent.h rule.
35449
35450         ctype: Make it usable in C++ code.
35451         * lib/ctype.in.h: Include c++defs.h.
35452         (isblank): Declare as extern "C".
35453         * modules/ctype (Depends-on): Add c++defs.
35454         (Makefile.am): Update ctype.h rule.
35455
35456         New module 'c++defs'.
35457         * modules/c++defs: New file.
35458         * build-aux/c++defs.h: New file.
35459         Reported by John W. Eaton <jwe@gnu.org>.
35460
35461 2010-03-07  Bruno Haible  <bruno@clisp.org>
35462
35463         logb: Provide missing declaration for Cygwin.
35464         * lib/math.in.h (logb): New declaration.
35465         * m4/logb.m4: New file.
35466         * modules/logb (Files): Add m4/logb.m4.
35467         (Depends-on): Add math.
35468         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35469         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35471         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35472         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35473
35474 2010-03-07  Bruno Haible  <bruno@clisp.org>
35475
35476         Fix test-cond link error.
35477         * tests/test-cond.c: Include <stdio.h>.
35478
35479 2010-03-07  Bruno Haible  <bruno@clisp.org>
35480
35481         Fix test-dirent-safer link error.
35482         * modules/dirent-safer-tests (Makefile.am): Define
35483         test_dirent_safer_LDADD.
35484
35485 2010-03-07  Bruno Haible  <bruno@clisp.org>
35486
35487         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35488         among default module list.
35489
35490 2010-03-07  Bruno Haible  <bruno@clisp.org>
35491
35492         Fix link error on platforms with GNU libiconv.
35493         * modules/unistr/u8-strcoll-tests (Makefile): Define
35494         test_u8_strcoll_LDADD.
35495         * modules/unistr/u16-strcoll-tests (Makefile): Define
35496         test_u16_strcoll_LDADD.
35497         * modules/unistr/u32-strcoll-tests (Makefile): Define
35498         test_u32_strcoll_LDADD.
35499
35500 2010-03-07  Bruno Haible  <bruno@clisp.org>
35501
35502         Use POSIX declarations for socket functions.
35503         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35504         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35505         rpl_sendto): Change declaration to match POSIX.
35506         * lib/connect.c (rpl_connect): Likewise.
35507         * lib/accept.c (rpl_accept): Likewise.
35508         * lib/bind.c (rpl_bind): Likewise.
35509         * lib/getpeername.c (rpl_getpeername): Likewise.
35510         * lib/getsockname.c (rpl_getsockname): Likewise.
35511         * lib/recv.c (rpl_recv): Likewise.
35512         * lib/send.c (rpl_send): Likewise.
35513         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35514         * lib/sendto.c (rpl_sendto): Likewise.
35515
35516 2010-03-06  Bruno Haible  <bruno@clisp.org>
35517
35518         Clarify access, euidaccess, faccessat.
35519         * doc/posix-functions/faccessat.texi: Mention security problem under
35520         "Other problems", not "Portability problems".
35521         * doc/posix-functions/access.texi: Likewise. Mention a related security
35522         problem.
35523         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35524         * lib/euidaccess.c: Add comments about platforms.
35525         * lib/unistd.in.h (access, euidaccess): Add warnings.
35526
35527 2010-03-07  Bruno Haible  <bruno@clisp.org>
35528
35529         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35530         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35531         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35532         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35533         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35534         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35535         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35536         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35537         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35539         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35540         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35541         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35542         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35543         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35544         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35545         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35546         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35547         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35548         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35549         Likewise.
35550         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35551         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35552         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35553         Likewise.
35554         * tests/test-spawn.c (main): Make it work when
35555         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35556
35557 2010-03-07  Bruno Haible  <bruno@clisp.org>
35558
35559         Fix incorrect Makefile.am generation in German locale.
35560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35561         Execute sed command with character range in C locale.
35562
35563 2010-03-06  Bruno Haible  <bruno@clisp.org>
35564
35565         Tests for module 'iconv-h'.
35566         * modules/iconv-h-tests: New file.
35567         * tests/test-iconv-h.c: New file.
35568
35569         New module 'iconv-h'.
35570         * modules/iconv-h: New file.
35571         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35572         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35573         (configure.ac): Remove gl_ICONV_H.
35574         (Makefile.am): Remove rule for iconv.h.
35575
35576 2010-03-06  Bruno Haible  <bruno@clisp.org>
35577
35578         More consistent naming of *.m4 files.
35579         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35580         * modules/wctype (Files): Update.
35581
35582         More consistent naming of *.m4 files.
35583         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35584         * modules/wchar (Files): Update.
35585
35586 2010-03-06  Jim Meyering  <meyering@redhat.com>
35587
35588         euidaccess: relax license to LGPLv2+
35589         * modules/euidaccess (License): Relax to LGPLv2+.
35590
35591 2010-03-06  Bruno Haible  <bruno@clisp.org>
35592
35593         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35594         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35595         (Makefile.am): Augment lib_SOURCES instead.
35596
35597 2010-03-04  Jim Meyering  <meyering@redhat.com>
35598
35599         utime: remove obsolete module
35600         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35601         unnecessary for years, and has been marked as obsolete for 10 months.
35602         * modules/utime: Remove file.
35603         * lib/utime.c: Remove file.
35604         * m4/utime.m4: Remove file.
35605         * m4/utimes-null.m4: Remove file.
35606         * doc/posix-functions/utime.texi (utime): Remove reference to
35607         the module.  Move the sole "fixed by gnulib" item into the
35608         "problems not fixed by Gnulib" list.
35609         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35610
35611 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35612
35613         * modules/exit (License): Relax license to LGPLv2+.
35614         (Status): Mark as obsolete.
35615         * NEWS: Mention deprecated 'exit' module.
35616         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35617         of now obsolete 'exit'.
35618
35619 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35620
35621         fts-lgpl: remove unused module
35622         * modules/fts-lgpl: Remove.
35623         * MODULES.html.sh (func_all_modules): Adjust.
35624         * check-module (find_included_lib_files): Adjust.
35625         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35626
35627 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35628
35629         copy-acl: enhance Solaris ACL error handling
35630         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35631         * lib/set-mode-acl.c (qset_acl): Likewise.
35632
35633 2010-03-02  Bruno Haible  <bruno@clisp.org>
35634
35635         spawn: Don't override the system defined values on FreeBSD 8.
35636         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35637         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35638         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35639         if HAVE_POSIX_SPAWN is 1.
35640         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35641
35642 2010-03-01  Bruno Haible  <bruno@clisp.org>
35643
35644         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35645         regarding Automake.
35646
35647 2010-02-25  Bruno Haible  <bruno@clisp.org>
35648
35649         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35650         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35651         setting, not afterwards.
35652         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35653
35654 2010-02-24  Eric Blake  <eblake@redhat.com>
35655
35656         bootstrap, git-version-gen: use timestamp
35657         * build-aux/git-version-gen (scriptversion): Force UTC.
35658         * build-aux/bootstrap (scriptversion): New variable.
35659
35660         bootstrap: allow older git
35661         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35662         older than 1.6.4.  Requested by the libvirt project.
35663
35664 2010-02-23  Eric Blake  <eblake@redhat.com>
35665
35666         warn-on-use: work with old autoconf
35667         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35668         AS_VAR semantics of autoconf 2.60.
35669         Reported by Bruno Haible.
35670
35671         bootstrap: improve some comments
35672         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35673         clarification comments.
35674
35675         gettimeofday: provide correct function
35676         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35677         when replacement is declared, otherwise provide gettimeofday.
35678         Reported by Michael Goffioul.
35679
35680 2010-02-23  Jim Meyering  <meyering@redhat.com>
35681
35682         lib-ignore: relax license to "unlimited", not LGPLv2+
35683         * modules/lib-ignore (License): Relax to "unlimited".
35684
35685 2010-02-23  Jim Meyering  <meyering@redhat.com>
35686
35687         lib-ignore: relax license to LGPLv2+
35688         * modules/lib-ignore (License): Relax to LGPLv2+.
35689
35690 2010-02-22  Eric Blake  <eblake@redhat.com>
35691
35692         lseek: avoid bash 3.2 broken pipe bug
35693         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35694         warning from bash 3.2.
35695         Reported by Ben Pfaff, with analysis from Bruno Haible.
35696
35697         bootstrap: support non-FSF copyright holder
35698         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35699         bootstrap.conf override of COPYRIGHT_HOLDER.
35700         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35701
35702         bootstrap: interoperate with gettext 0.14.1
35703         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35704
35705         bootstrap: allow for alternate submodule location
35706         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35707         hardcoding submodule location.
35708         (gnulib_mk): Allow direct use of Makefile.am.
35709
35710         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35711         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35712         rather than reconfiguring where the submodule points.
35713
35714         gettimeofday: restore support for platforms that lack function
35715         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35716         replacement if function is missing.
35717         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35718         * modules/sys_time (Makefile.am): Substitute it.
35719         * lib/sys_time.in.h (gettimeofday): Check it.
35720         Reported by Michael Goffioul.
35721
35722 2010-02-21  Bruno Haible  <bruno@clisp.org>
35723
35724         * lib/stdio.in.h (obstack_printf): Fix typo.
35725
35726 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35727
35728         vc-list-files: use bzr ls's -R option
35729         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35730         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35731
35732 2010-02-21  Jim Meyering  <meyering@redhat.com>
35733
35734         init.sh: fix EXEEXT shims to work also for names like test-prog
35735         * tests/init.sh: Re-exec a better shell, when needed.
35736         If the current shell lacks support for posix $(...), an init.sh-using
35737         test will now try to find a shell that supports that.  If EXEEXT is
35738         nonempty, we also require support for hyphen-in-alias-name and shell
35739         substitutions like ${var#glob}.  Failure to find such a shell results
35740         in a skipped test.
35741
35742 2010-02-21  Bruno Haible  <bruno@clisp.org>
35743
35744         Really work around around "broken pipe" error message from bash 3.2.
35745         * gnulib-tool (func_reset_sigpipe): Remove function.
35746         (echo): In bash 3.2, define to a function that uses printf.
35747         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35748
35749 2010-02-20  Bruno Haible  <bruno@clisp.org>
35750
35751         Restore support for automake 1.9.6 with autoconf 2.61.
35752         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35753         Reported by James Youngman <jay@gnu.org>.
35754
35755 2010-02-20  Bruno Haible  <bruno@clisp.org>
35756
35757         Improve *printf warning condition.
35758         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35759         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35760         and the function is overridden due to SIGPIPE emulation.
35761
35762 2010-02-20  Bruno Haible  <bruno@clisp.org>
35763
35764         * lib/stdio.in.h: Tweak comments.
35765
35766 2010-02-19  Bruno Haible  <bruno@clisp.org>
35767
35768         Make it easier to find modules. New gnulib-tool option '--find'.
35769         * gnulib-tool: New option --find.
35770         (func_usage): Document it.
35771         (func_sanitize_modulelist): New function, extracted from
35772         func_all_modules.
35773         (func_all_modules): Invoke it.
35774         * doc/gnulib-tool.texi (Which modules?): New node.
35775
35776 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35777
35778         * lib/sys_select.in.h: Provide select replacement even if
35779         sys/select.h exists on a system, for Interix.
35780
35781 2010-02-18  Jim Meyering  <meyering@redhat.com>
35782
35783         init.sh: don't use $(...) just yet
35784         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35785         to accommodate e.g., Solaris' /bin/sh.
35786
35787 2010-02-17  Bruno Haible  <bruno@clisp.org>
35788
35789         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35790         Reported by Ludovic Courtès <ludo@gnu.org>.
35791
35792 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35793
35794         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35795         linking with -lintl.
35796
35797 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35798
35799         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35800         if not provided by the system's netdb.h.  Reported by
35801         ludo@gnu.org (Ludovic Courtès).
35802
35803 2010-02-15  Jim Meyering  <meyering@redhat.com>
35804
35805         init.sh: improve portability and efficiency
35806         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35807         "dummy" in a for loop.
35808         Use '!', not '^' to select the complement of a character set used
35809         in a "case" statement.
35810         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35811         Suggestions from Eric Blake.
35812
35813         init.sh: automatically accommodate programs with the .exe suffix
35814         Automatically arrange for an invocation of "prog" to execute the
35815         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35816         may use the simpler "prog", yet still work when built on a system
35817         that requires specifying the added suffix.
35818         Do this by constructing a function named "prog" that invokes
35819         "prog.exe" for each .exe file in selected directories.
35820         * tests/init.sh (find_exe_basenames_): New function.
35821         (create_exe_shim_functions_): New function.
35822         (path_prepend_): Use it.
35823
35824         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35825         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35826         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35827
35828 2010-02-14  Jim Meyering  <meyering@redhat.com>
35829
35830         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35831         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35832         (sc_prohibit_hash_pjw_without_use): New rule.
35833
35834         maint.mk: allow the default upload destination dir to be overridden
35835         * top/maint.mk (upload_dest_dir_): Define with a default that
35836         preserves the status quo.
35837         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35838         Reported by Peter Simons.
35839
35840         maint.mk: prohibit inclusion of "hash.h" without_use
35841         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35842
35843 2010-02-10  Jim Meyering  <meyering@redhat.com>
35844
35845         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35846         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35847
35848 2010-02-09  Eric Blake  <ebb9@byu.net>
35849         and Bruno Haible  <bruno@clisp.org>
35850
35851         obstack-printf-posix: ensure declaration
35852         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35853         extracted from gl_FUNC_OBSTACK_PRINTF.
35854         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35855         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35856         Likewise.
35857         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35858         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35859         0.
35860
35861 2010-02-08  Bruno Haible  <bruno@clisp.org>
35862
35863         gnulib-tool: Fix typo in 2010-02-07 commit.
35864         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35865         Reported by Eric Blake.
35866
35867 2010-02-07  Bruno Haible  <bruno@clisp.org>
35868
35869         gnulib-tool: Fix up caching patches.
35870         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35871         option --no-cache. Use associative arrays when supported by the shell.
35872         (sed_comments): New variable.
35873         (modcache): Renamed from do_cache.
35874         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35875         abbreviate unnecessarily.
35876         (have_associative): New variable.
35877         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35878         way also for ksh and zsh.
35879         (func_init_sed_convert_to_cache_statements): New function, extracted
35880         from func_cache_lookup_module. Add support for associative arrays.
35881         Don't set the c_MODULE_cached variable here. Ignore all lines before
35882         the first field header. Remove only the final newline, not all trailing
35883         newlines. Support empty fields correctly. Limit the use of 'eval' to
35884         assignments.
35885         (func_get_description, func_get_status, func_get_notice,
35886         func_get_applicability, func_get_filelist, func_get_dependencies,
35887         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35888         func_get_automake_snippet, func_get_include_directive,
35889         func_get_link_directive, func_get_license, func_get_maintainer):
35890         Update documentation. List the unoptimized code first. Add support for
35891         associative arrays. Limit the use of 'eval' to assignments.
35892         (func_get_applicability): Undo stylistic pessimisations.
35893         (func_get_automake_snippet, func_get_include_directive): Reduce code
35894         duplication.
35895         (func_modules_transitive_closure, func_modules_add_dummy,
35896         func_modules_notice, func_modules_to_filelist, func_add_file,
35897         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35898         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35899         func_create_testdir, func_create_megatestdir): Update documentation.
35900
35901 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35902
35903         * gnulib-tool (func_cache_lookup_module): Store the module name
35904         belonging to the cache variable; error out if two different
35905         module names map to the same cache variable name.
35906
35907 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35908
35909         gnulib-tool: Make caching optional.
35910         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35911         Update matching short versions of --no-changelog.
35912         (func_usage): Update.
35913         (sed_extract_cache_prog): Renamed from ...
35914         (sed_extract_prog): ... this; revert to old extraction script.
35915         (func_get_description, func_get_status)
35916         (func_get_notice, func_get_applicability, func_get_filelist)
35917         (func_get_dependencies, func_get_autoconf_early_snippet)
35918         (func_get_autoconf_snippet, func_get_automake_snippet)
35919         (func_get_include_directive, func_get_link_directive)
35920         (func_get_license, func_get_maintainer): If $do_cache is false,
35921         use old, non-caching extraction scripts.
35922         Suggestion by Bruno Haible.
35923
35924 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35925
35926         gnulib-tool: cache module metainformation.
35927         * gnulib-tool (sed_extract_prog): Match newline before each
35928         header, and rewrite header to a shell variable suffix.
35929         (func_cache_var, func_cache_lookup_module): New functions,
35930         to turn a module name into a cache variable prefix, and to
35931         look up and cache module metainformation.
35932         (func_get_description, func_get_status)
35933         (func_get_notice, func_get_applicability, func_get_filelist)
35934         (func_get_dependencies, func_get_autoconf_early_snippet)
35935         (func_get_autoconf_snippet, func_get_automake_snippet)
35936         (func_get_include_directive, func_get_link_directive)
35937         (func_get_license, func_get_maintainer): Use
35938         func_cache_lookup_module.
35939
35940 2010-02-07  Bruno Haible  <bruno@clisp.org>
35941
35942         fnctl: Fix missing dependency.
35943         * modules/fcntl (Depends-on): Add getdtablesize.
35944         Reported by John W. Eaton <jwe@gnu.org>.
35945
35946 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35947
35948         Argp: fix recognition of short alias options.
35949
35950         * lib/argp-parse.c (convert_options): Fix improper use of
35951         `|' between character values.
35952         * tests/test-argp.c (group1_option): New alias option
35953         --read (-r).
35954         (group1_parser): Special handling for 'r'.
35955         (test15): New test case.
35956         (test_fun): Add test15.
35957         * tests/test-argp-2.sh: Update expected --help and --usage
35958         outputs.
35959
35960 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35961
35962         * tests/test-argp.c: Fix indentation.
35963
35964 2010-02-04  Eric Blake  <ebb9@byu.net>
35965
35966         gettimeofday: expose type of second argument
35967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35968         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35969         * tests/test-gettimeofday.c: Use it to silence warning.
35970         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35971         the issue.
35972
35973 2010-02-03  Jim Meyering  <meyering@redhat.com>
35974
35975         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35976         * lib/regcomp.c (TYPE_SIGNED): Define.
35977         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35978
35979         regcomp.c: avoid a new -Wshadow warning
35980         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35981
35982 2010-02-01  Jim Meyering  <meyering@redhat.com>
35983
35984         removing useless parentheses in cpp #define directives
35985         For motivation, see commit c0221df4, "define STREQ(a,b)
35986         consistently, removing useless parentheses"
35987         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35988         * lib/mountlist.c (MNT_IGNORE): Likewise.
35989         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35990
35991 2010-02-01  Eric Blake  <ebb9@byu.net>
35992
35993         sys_time: use link-warning
35994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35995         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35996         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35997         * modules/sys_time (Depends-on): Add warn-on-use.
35998         (Makefile.am): Always build replacement.
35999         (configure.ac): Update substitutions.
36000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36001         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36002         bother with SYS_TIME_H.
36003         * modules/gettimeofday (configure.ac): Declare indicator.
36004         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36005         in use.
36006
36007         closein-tests: silence compiler warning
36008         * tests/test-closein.c (main): Ignore fread result.
36009         * modules/closein-tests (Depends-on): Add ignore-value.
36010
36011         tests: silence warning about system return
36012         * tests/test-areadlink-with-size.c (main): Ignore system result.
36013         * tests/test-areadlink.c (main): Likewise.
36014         * tests/test-areadlinkat-with-size.c (main): Likewise.
36015         * tests/test-areadlinkat.c (main): Likewise.
36016         * tests/test-canonicalize-lgpl.c (main): Likewise.
36017         * tests/test-canonicalize.c (main): Likewise.
36018         * tests/test-chown.c (main): Likewise.
36019         * tests/test-fchownat.c (main): Likewise.
36020         * tests/test-fdutimensat.c (main): Likewise.
36021         * tests/test-fstatat.c (main): Likewise.
36022         * tests/test-futimens.c (main): Likewise.
36023         * tests/test-lchown.c (main): Likewise.
36024         * tests/test-link.c (main): Likewise.
36025         * tests/test-linkat.c (main): Likewise.
36026         * tests/test-lstat.c (main): Likewise.
36027         * tests/test-mkdir.c (main): Likewise.
36028         * tests/test-mkdirat.c (main): Likewise.
36029         * tests/test-mkfifo.c (main): Likewise.
36030         * tests/test-mkfifoat.c (main): Likewise.
36031         * tests/test-mknod.c (main): Likewise.
36032         * tests/test-readlink.c (main): Likewise.
36033         * tests/test-remove.c (main): Likewise.
36034         * tests/test-rename.c (main): Likewise.
36035         * tests/test-renameat.c (main): Likewise.
36036         * tests/test-rmdir.c (main): Likewise.
36037         * tests/test-symlink.c (main): Likewise.
36038         * tests/test-symlinkat.c (main): Likewise.
36039         * tests/test-unlink.c (main): Likewise.
36040         * tests/test-unlinkat.c (main): Likewise.
36041         * tests/test-utimens.c (main): Likewise.
36042         * tests/test-utimensat.c (main): Likewise.
36043         * modules/areadlink-tests (Depends-on): Add ignore-value.
36044         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36045         * modules/areadlinkat-tests (Depends-on): Likewise.
36046         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36047         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36048         * modules/canonicalize-tests (Depends-on): Likewise.
36049         * modules/chown-tests (Depends-on): Likewise.
36050         * modules/fdutimensat-tests (Depends-on): Likewise.
36051         * modules/futimens-tests (Depends-on): Likewise.
36052         * modules/lchown-tests (Depends-on): Likewise.
36053         * modules/link-tests (Depends-on): Likewise.
36054         * modules/linkat-tests (Depends-on): Likewise.
36055         * modules/lstat-tests (Depends-on): Likewise.
36056         * modules/mkdir-tests (Depends-on): Likewise.
36057         * modules/mkfifo-tests (Depends-on): Likewise.
36058         * modules/mkfifoat-tests (Depends-on): Likewise.
36059         * modules/mknod-tests (Depends-on): Likewise.
36060         * modules/openat-tests (Depends-on): Likewise.
36061         * modules/readlink-tests (Depends-on): Likewise.
36062         * modules/remove-tests (Depends-on): Likewise.
36063         * modules/rename-tests (Depends-on): Likewise.
36064         * modules/renameat-tests (Depends-on): Likewise.
36065         * modules/rmdir-tests (Depends-on): Likewise.
36066         * modules/symlink-tests (Depends-on): Likewise.
36067         * modules/symlinkat-tests (Depends-on): Likewise.
36068         * modules/unlink-tests (Depends-on): Likewise.
36069         * modules/utimens-tests (Depends-on): Likewise.
36070         * modules/utimensat-tests (Depends-on): Likewise.
36071
36072 2010-01-31  Bruno Haible  <bruno@clisp.org>
36073
36074         Perform the same test for many <math.h> functions.
36075         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36076         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36077         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36078         of gl_MATHFUNC.
36079         * modules/acos (configure.ac): Likewise.
36080         * modules/asin (configure.ac): Likewise.
36081         * modules/atan (configure.ac): Likewise.
36082         * modules/atan2 (configure.ac): Likewise.
36083         * modules/cbrt (configure.ac): Likewise.
36084         * modules/copysign (configure.ac): Likewise.
36085         * modules/cos (configure.ac): Likewise.
36086         * modules/cosh (configure.ac): Likewise.
36087         * modules/erf (configure.ac): Likewise.
36088         * modules/erfc (configure.ac): Likewise.
36089         * modules/exp (configure.ac): Likewise.
36090         * modules/fmod (configure.ac): Likewise.
36091         * modules/hypot (configure.ac): Likewise.
36092         * modules/j0 (configure.ac): Likewise.
36093         * modules/j1 (configure.ac): Likewise.
36094         * modules/jn (configure.ac): Likewise.
36095         * modules/lgamma (configure.ac): Likewise.
36096         * modules/log (configure.ac): Likewise.
36097         * modules/log10 (configure.ac): Likewise.
36098         * modules/log1p (configure.ac): Likewise.
36099         * modules/pow (configure.ac): Likewise.
36100         * modules/remainder (configure.ac): Likewise.
36101         * modules/sin (configure.ac): Likewise.
36102         * modules/sinh (configure.ac): Likewise.
36103         * modules/tan (configure.ac): Likewise.
36104         * modules/tanh (configure.ac): Likewise.
36105         * modules/y0 (configure.ac): Likewise.
36106         * modules/y1 (configure.ac): Likewise.
36107         * modules/yn (configure.ac): Likewise.
36108         Suggested by Paolo Bonzini.
36109
36110 2010-01-31  Bruno Haible  <bruno@clisp.org>
36111
36112         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36113
36114 2010-01-31  Bruno Haible  <bruno@clisp.org>
36115
36116         Work around getdelim() bug on FreeBSD 8.0.
36117         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36118         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36119         not work.
36120         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36121         is 1.
36122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36123         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36124         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36125         a non-zero size.
36126         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36127
36128 2010-01-31  Bruno Haible  <bruno@clisp.org>
36129
36130         Work around getline() bug on FreeBSD 8.0.
36131         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36132         and a non-zero size.
36133         * tests/test-getline.c (main): Likewise.
36134         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36135         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36136
36137 2010-01-28  Eric Blake  <ebb9@byu.net>
36138
36139         regex: fix build failure
36140         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36141         platforms.
36142
36143 2010-01-28  Jim Meyering  <meyering@redhat.com>
36144
36145         regex: do not ignore memory allocation failure
36146         * lib/regex_internal.c (create_cd_newstate): Detect
36147         re_node_set_init_copy failure.   Extracted from glibc commit
36148         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36149
36150         regex: sync more white-space changes from libc
36151         * lib/regex_internal.c: White-space only changes.
36152         * lib/regexec.c: Likewise.
36153
36154         regex: add many uses of __attribute_warn_unused_result__
36155         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36156         * lib/regexec.c: Likewise.
36157         Extracted from a messy glibc commit.
36158
36159         regcomp.c: spelling and merge-artifact from glibc
36160         * lib/regcomp.c: Merge remainder of glibc's
36161         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36162
36163         regcomp.c: sync white-space changes from glibc
36164         * lib/regcomp.c: Merge to accommodate white space
36165         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36166
36167         regcomp.c: do not ignore internal return values
36168         * lib/regcomp.c: Do not ignore internal return values.
36169         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36170         but without its white-space changes and spelling fixes.
36171
36172         regex_internal.h: define __attribute_warn_unused_result__
36173         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36174
36175         maint: add a syntax-check rule to check for vulnerable Makefile.in
36176         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36177
36178 2010-01-27  Jim Meyering  <meyering@redhat.com>
36179
36180         ncftpput-ftp: clean up spaces
36181         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36182         Remove trailing blanks.
36183
36184 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36185
36186         * build-aux/git-version-gen: Fix copyright statement.
36187         * build-aux/gnupload: Likewise.
36188         * tests/test-arcfour.c: Likewise.
36189         * tests/test-arctwo.c: Likewise.
36190         * tests/test-count-one-bits.c: Likewise.
36191         * tests/test-crc.c: Likewise.
36192         * tests/test-des.c: Likewise.
36193         * tests/test-gc-arcfour.c: Likewise.
36194         * tests/test-gc-arctwo.c: Likewise.
36195         * tests/test-gc-des.c: Likewise.
36196         * tests/test-gc-hmac-md5.c: Likewise.
36197         * tests/test-gc-hmac-sha1.c: Likewise.
36198         * tests/test-gc-md2.c: Likewise.
36199         * tests/test-gc-md4.c: Likewise.
36200         * tests/test-gc-md5.c: Likewise.
36201         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36202         * tests/test-gc-rijndael.c: Likewise.
36203         * tests/test-gc-sha1.c: Likewise.
36204         * tests/test-gc.c: Likewise.
36205         * tests/test-gethostname.c: Likewise.
36206         * tests/test-gettimeofday.c: Likewise.
36207         * tests/test-hash.c: Likewise.
36208         * tests/test-hmac-md5.c: Likewise.
36209         * tests/test-hmac-sha1.c: Likewise.
36210         * tests/test-md2.c: Likewise.
36211         * tests/test-md4.c: Likewise.
36212         * tests/test-md5.c: Likewise.
36213         * tests/test-memchr.c: Likewise.
36214         * tests/test-memchr2.c: Likewise.
36215         * tests/test-memcmp.c: Likewise.
36216         * tests/test-memmem.c: Likewise.
36217         * tests/test-memrchr.c: Likewise.
36218         * tests/test-rawmemchr.c: Likewise.
36219         * tests/test-read-file.c: Likewise.
36220         * tests/test-rijndael.c: Likewise.
36221         * tests/test-sockets.c: Likewise.
36222         * tests/test-strchrnul.c: Likewise.
36223         * tests/test-strstr.c: Likewise.
36224         * tests/test-strtod.c: Likewise.
36225         * build-aux/ncftpput-ftp: Likewise.
36226
36227 2010-01-26  Eric Blake  <ebb9@byu.net>
36228
36229         ignore-value: update recommended header name
36230         * modules/ignore-value (Include): Only use <> for headers that
36231         exist in glibc.
36232
36233 2010-01-26  Jim Meyering  <meyering@redhat.com>
36234
36235         test-userspec.c: avoid compiler warnings
36236         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36237         and "initialization discards qualifiers..." warnings.
36238         Put the first "uid" in its own scope, and make char* members "const".
36239
36240 2010-01-25  Bruno Haible  <bruno@clisp.org>
36241
36242         gnulib-tool: Make warning diagnostics consistent.
36243         * gnulib-tool (func_warning): New function.
36244         Use it everywhere where gnulib-tool produces output to stderr and it is
36245         not a fatal error.
36246
36247 2010-01-25  Bruno Haible  <bruno@clisp.org>
36248
36249         Fix test dependencies.
36250         * modules/xstrtol-tests (Depends-on): Add inttypes.
36251         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36252
36253 2010-01-25 Pádraig Brady <P@draigBrady.com>
36254
36255         syntax-check: detect incorrect boolean macro values in config.h
36256         * modules/maintainer-makefile (configure.ac): Parameterize the location
36257         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36258         The logic is from Eric Blake and the location indicated by Jim Meyering.
36259         Note the more natural CONFIG_HEADER name is prohibited by automake
36260         for backwards compatibility reasons.
36261         * top/maint.mk (sc_Wundef_boolean): New rule.
36262
36263 2010-01-25  Jim Meyering  <meyering@redhat.com>
36264
36265         bootstrap: detect MacOS 10.6's shasum, too
36266         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36267         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36268
36269 2010-01-23  Jim Meyering  <meyering@redhat.com>
36270
36271         xstrtoll: new module
36272         * modules/xstrtoll: New file.
36273         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36274         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36275         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36276         ./configure fails if you use this module and lack "long long".
36277         * modules/xstrtoll-tests: New module.
36278         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36279         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36280         new init.sh-based test framework.
36281
36282 2010-01-24  Bruno Haible  <bruno@clisp.org>
36283
36284         Tests for module 'yn'.
36285         * modules/yn-tests: New file.
36286         * tests/test-yn.c: New file.
36287
36288         Tests for module 'y1'.
36289         * modules/y1-tests: New file.
36290         * tests/test-y1.c: New file.
36291
36292         Tests for module 'y0'.
36293         * modules/y0-tests: New file.
36294         * tests/test-y0.c: New file.
36295
36296         Tests for module 'tanh'.
36297         * modules/tanh-tests: New file.
36298         * tests/test-tanh.c: New file.
36299
36300         Tests for module 'tan'.
36301         * modules/tan-tests: New file.
36302         * tests/test-tan.c: New file.
36303
36304         Tests for module 'sqrt'.
36305         * modules/sqrt-tests: New file.
36306         * tests/test-sqrt.c: New file.
36307
36308         Tests for module 'sinh'.
36309         * modules/sinh-tests: New file.
36310         * tests/test-sinh.c: New file.
36311
36312         Tests for module 'sin'.
36313         * modules/sin-tests: New file.
36314         * tests/test-sin.c: New file.
36315
36316         Tests for module 'rint'.
36317         * modules/rint-tests: New file.
36318         * tests/test-rint.c: New file.
36319
36320         Tests for module 'remainder'.
36321         * modules/remainder-tests: New file.
36322         * tests/test-remainder.c: New file.
36323
36324         Tests for module 'pow'.
36325         * modules/pow-tests: New file.
36326         * tests/test-pow.c: New file.
36327
36328         Tests for module 'nextafter'.
36329         * modules/nextafter-tests: New file.
36330         * tests/test-nextafter.c: New file.
36331
36332         Tests for module 'modf'.
36333         * modules/modf-tests: New file.
36334         * tests/test-modf.c: New file.
36335
36336         Tests for module 'logb'.
36337         * modules/logb-tests: New file.
36338         * tests/test-logb.c: New file.
36339
36340         Tests for module 'log1p'.
36341         * modules/log1p-tests: New file.
36342         * tests/test-log1p.c: New file.
36343
36344         Tests for module 'log10'.
36345         * modules/log10-tests: New file.
36346         * tests/test-log10.c: New file.
36347
36348         Tests for module 'log'.
36349         * modules/log-tests: New file.
36350         * tests/test-log.c: New file.
36351
36352         Tests for module 'lgamma'.
36353         * modules/lgamma-tests: New file.
36354         * tests/test-lgamma.c: New file.
36355
36356         Tests for module 'ldexp'.
36357         * modules/ldexp-tests: New file.
36358         * tests/test-ldexp.c: New file.
36359
36360         Tests for module 'jn'.
36361         * modules/jn-tests: New file.
36362         * tests/test-jn.c: New file.
36363
36364         Tests for module 'j1'.
36365         * modules/j1-tests: New file.
36366         * tests/test-j1.c: New file.
36367
36368         Tests for module 'j0'.
36369         * modules/j0-tests: New file.
36370         * tests/test-j0.c: New file.
36371
36372         Tests for module 'hypot'.
36373         * modules/hypot-tests: New file.
36374         * tests/test-hypot.c: New file.
36375
36376         Tests for module 'fmod'.
36377         * modules/fmod-tests: New file.
36378         * tests/test-fmod.c: New file.
36379
36380         Tests for module 'fabs'.
36381         * modules/fabs-tests: New file.
36382         * tests/test-fabs.c: New file.
36383
36384         Tests for module 'exp'.
36385         * modules/exp-tests: New file.
36386         * tests/test-exp.c: New file.
36387
36388         Tests for module 'erfc'.
36389         * modules/erfc-tests: New file.
36390         * tests/test-erfc.c: New file.
36391
36392         Tests for module 'erf'.
36393         * modules/erf-tests: New file.
36394         * tests/test-erf.c: New file.
36395
36396         Tests for module 'cosh'.
36397         * modules/cosh-tests: New file.
36398         * tests/test-cosh.c: New file.
36399
36400         Tests for module 'cos'.
36401         * modules/cos-tests: New file.
36402         * tests/test-cos.c: New file.
36403
36404         Tests for module 'copysign'.
36405         * modules/copysign-tests: New file.
36406         * tests/test-copysign.c: New file.
36407
36408         Tests for module 'cbrt'.
36409         * modules/cbrt-tests: New file.
36410         * tests/test-cbrt.c: New file.
36411
36412         Tests for module 'atan2'.
36413         * modules/atan2-tests: New file.
36414         * tests/test-atan2.c: New file.
36415
36416         Tests for module 'atan'.
36417         * modules/atan-tests: New file.
36418         * tests/test-atan.c: New file.
36419
36420         Tests for module 'asin'.
36421         * modules/asin-tests: New file.
36422         * tests/test-asin.c: New file.
36423
36424         Tests for module 'acos'.
36425         * modules/acos-tests: New file.
36426         * tests/test-acos.c: New file.
36427
36428 2010-01-24  Bruno Haible  <bruno@clisp.org>
36429
36430         Fix tests for common <math.h> functions.
36431         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36432         code snippet that references the function pointer, rather than merely
36433         calling the function. Substitute the FUNC_LIBM variable.
36434         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36435         * modules/acos (configure.ac): Likewise.
36436         * modules/asin (configure.ac): Likewise.
36437         * modules/atan (configure.ac): Likewise.
36438         * modules/atan2 (configure.ac): Likewise.
36439         * modules/cbrt (configure.ac): Likewise.
36440         * modules/copysign (configure.ac): Likewise.
36441         * modules/cos (configure.ac): Likewise.
36442         * modules/cosh (configure.ac): Likewise.
36443         * modules/erf (configure.ac): Likewise.
36444         * modules/erfc (configure.ac): Likewise.
36445         * modules/exp (configure.ac): Likewise.
36446         * modules/fabs (configure.ac): Likewise.
36447         * modules/fmod (configure.ac): Likewise.
36448         * modules/hypot (configure.ac): Likewise.
36449         * modules/j0 (configure.ac): Likewise.
36450         * modules/j1 (configure.ac): Likewise.
36451         * modules/jn (configure.ac): Likewise.
36452         * modules/ldexp (configure.ac): Likewise.
36453         * modules/lgamma (configure.ac): Likewise.
36454         * modules/log (configure.ac): Likewise.
36455         * modules/log10 (configure.ac): Likewise.
36456         * modules/log1p (configure.ac): Likewise.
36457         * modules/logb (configure.ac): Likewise.
36458         * modules/modf (configure.ac): Likewise.
36459         * modules/nextafter (configure.ac): Likewise.
36460         * modules/pow (configure.ac): Likewise.
36461         * modules/remainder (configure.ac): Likewise.
36462         * modules/rint (configure.ac): Likewise.
36463         * modules/sin (configure.ac): Likewise.
36464         * modules/sinh (configure.ac): Likewise.
36465         * modules/tan (configure.ac): Likewise.
36466         * modules/tanh (configure.ac): Likewise.
36467         * modules/y0 (configure.ac): Likewise.
36468         * modules/y1 (configure.ac): Likewise.
36469         * modules/yn (configure.ac): Likewise.
36470
36471 2010-01-24  Bruno Haible  <bruno@clisp.org>
36472
36473         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36474         * tests/test-acosl.c (x): New variable.
36475         (main): Store argument in x and fetch it from x.
36476         * tests/test-asinl.c (x): New variable.
36477         (main): Store argument in x and fetch it from x.
36478         * tests/test-atanl.c (x): New variable.
36479         (main): Store argument in x and fetch it from x.
36480         * tests/test-cosl.c (x): New variable.
36481         (main): Store argument in x and fetch it from x.
36482         * tests/test-expl.c (x): New variable.
36483         (main): Store argument in x and fetch it from x.
36484         * tests/test-logl.c (x): New variable.
36485         (main): Store argument in x and fetch it from x.
36486         * tests/test-sinl.c (x): New variable.
36487         (main): Store argument in x and fetch it from x.
36488         * tests/test-sqrtl.c (x): New variable.
36489         (main): Store argument in x and fetch it from x.
36490         * tests/test-tanl.c (x): New variable.
36491         (main): Store argument in x and fetch it from x.
36492
36493 2010-01-24  Bruno Haible  <bruno@clisp.org>
36494
36495         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36496         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36497         assignments to the initial TESTS_ENVIRONMENT.
36498         * doc/gnulib.texi (Unit test modules): Document it.
36499         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36500         TESTS_ENVIRONMENT.
36501         * modules/btowc-tests (Makefile.am): Likewise.
36502         * modules/c-stack-tests (Makefile.am): Likewise.
36503         * modules/c-strcase-tests (Makefile.am): Likewise.
36504         * modules/copy-file-tests (Makefile.am): Likewise.
36505         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36506         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36507         * modules/mbrtowc-tests (Makefile.am): Likewise.
36508         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36509         * modules/mbscasestr-tests (Makefile.am): Likewise.
36510         * modules/mbschr-tests (Makefile.am): Likewise.
36511         * modules/mbscspn-tests (Makefile.am): Likewise.
36512         * modules/mbsinit-tests (Makefile.am): Likewise.
36513         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36514         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36515         * modules/mbspbrk-tests (Makefile.am): Likewise.
36516         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36517         * modules/mbsrchr-tests (Makefile.am): Likewise.
36518         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36519         * modules/mbsspn-tests (Makefile.am): Likewise.
36520         * modules/mbsstr-tests (Makefile.am): Likewise.
36521         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36522         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36523         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36524         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36525         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36526         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36527         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36528         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36529         * modules/wcrtomb-tests (Makefile.am): Likewise.
36530         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36531         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36532         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36533         assignments from TESTS_ENVIRONMENT.
36534         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36535         augmentation.
36536         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36537         * modules/atexit-tests (Makefile.am): Likewise.
36538         * modules/binary-io-tests (Makefile.am): Likewise.
36539         * modules/closein-tests (Makefile.am): Likewise.
36540         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36541         * modules/exclude-tests (Makefile.am): Likewise.
36542         * modules/fflush-tests (Makefile.am): Likewise.
36543         * modules/fpending-tests (Makefile.am): Likewise.
36544         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36545         * modules/freadahead-tests (Makefile.am): Likewise.
36546         * modules/freadptr-tests (Makefile.am): Likewise.
36547         * modules/freadseek-tests (Makefile.am): Likewise.
36548         * modules/fseek-tests (Makefile.am): Likewise.
36549         * modules/fseeko-tests (Makefile.am): Likewise.
36550         * modules/ftell-tests (Makefile.am): Likewise.
36551         * modules/ftello-tests (Makefile.am): Likewise.
36552         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36553         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36554         * modules/lseek-tests (Makefile.am): Likewise.
36555         * modules/parse-duration-tests (Makefile.am): Likewise.
36556         * modules/perror-tests (Makefile.am): Likewise.
36557         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36558         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36559         * modules/pipe-tests (Makefile.am): Likewise.
36560         * modules/pread-tests (Makefile.am): Likewise.
36561         * modules/printf-posix-tests (Makefile.am): Likewise.
36562         * modules/select-tests (Makefile.am): Likewise.
36563         * modules/sigpipe-tests (Makefile.am): Likewise.
36564         * modules/tsearch-tests (Makefile.am): Likewise.
36565         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36566         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36567         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36568         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36569         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36570         * modules/version-etc-tests (Makefile.am): Likewise.
36571         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36572         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36573         * modules/xalloc-die-tests (Makefile.am): Likewise.
36574         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36575         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36576         * modules/xstrtol-tests (Makefile.am): Likewise.
36577         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36578         * modules/yesno-tests (Makefile.am): Likewise.
36579         Suggested by Jim Meyering.
36580
36581 2010-01-24  Bruno Haible  <bruno@clisp.org>
36582
36583         More documentation.
36584         * doc/gnulib.texi (Writing modules): New chapter.
36585         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36586         the new chapter.
36587
36588 2010-01-24  Jim Meyering  <meyering@redhat.com>
36589
36590         maint.mk: do not prepend "./" after filtering
36591         * top/maint.mk (_prepend_srcdir_prefix): New variable
36592         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36593         "./" when $(srcdir) is ".".
36594
36595         define STREQ(a,b) consistently, removing useless parentheses
36596         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36597         since the only risk is that "a" or "b" contains an unparenthesized
36598         comma, but if either did that, STREQ would have 3 or more arguments.
36599         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36600         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36601         * lib/hash-triple.c (STREQ): Likewise.
36602         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36603         * lib/getugroups.c (STREQ): Likewise.
36604
36605 2010-01-23  Jim Meyering  <meyering@redhat.com>
36606
36607         maint.mk: fix syntax-check in a non-srcdir build directory
36608         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36609         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36610
36611 2010-01-22  Jim Meyering  <meyering@redhat.com>
36612
36613         userspec: add unit tests
36614         * tests/test-userspec.c: New file.
36615         * modules/userspec-tests: Likewise.
36616
36617 2010-01-21  Jim Meyering  <meyering@redhat.com>
36618
36619         maint.mk: handle source file names containing "." robustly
36620         * top/maint.mk (_dot_escaped_srcdir): Define.
36621         (VC_LIST): Use it in LHS of sed substitution.
36622
36623 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36624
36625         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36626         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36627         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36628         from a non-srcdir build.
36629
36630 2010-01-20  Eric Blake  <ebb9@byu.net>
36631
36632         warn-on-use: use instead of link-warning
36633         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36634         * modules/unistd (Depends-on, Makefile.am): Likewise.
36635         * modules/arpa_inet (Depends-on): Replace link-warning with
36636         warn-on-use.
36637         (Makefile.am): Update rules accordingly.
36638         * modules/ctype (Depends-on, Makefile.am): Likewise.
36639         * modules/dirent (Depends-on, Makefile.am): Likewise.
36640         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36641         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36642         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36643         * modules/locale (Depends-on, Makefile.am): Likewise.
36644         * modules/math (Depends-on, Makefile.am): Likewise.
36645         * modules/search (Depends-on, Makefile.am): Likewise.
36646         * modules/signal (Depends-on, Makefile.am): Likewise.
36647         * modules/spawn (Depends-on, Makefile.am): Likewise.
36648         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36649         * modules/string (Depends-on, Makefile.am): Likewise.
36650         * modules/strings (Depends-on, Makefile.am): Likewise.
36651         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36652         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36653         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36654         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36655         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36656         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36657         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36658         * modules/wchar (Depends-on, Makefile.am): Likewise.
36659         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36660         should be poisoned.
36661         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36662         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36663         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36664         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36665         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36666         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36667         * m4/math_h.m4 (gl_MATH_H): Likewise.
36668         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36669         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36670         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36671         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36672         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36673         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36674         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36675         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36676         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36677         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36678         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36682         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36683         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36684         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36685         GL_LINK_WARNING.
36686         * lib/ctype.in.h: Likewise.
36687         * lib/dirent.in.h: Likewise.
36688         * lib/fcntl.in.h: Likewise.
36689         * lib/inttypes.in.h: Likewise.
36690         * lib/langinfo.in.h: Likewise.
36691         * lib/locale.in.h: Likewise.
36692         * lib/math.in.h: Likewise.
36693         * lib/search.in.h: Likewise.
36694         * lib/signal.in.h: Likewise.
36695         * lib/spawn.in.h: Likewise.
36696         * lib/stdio.in.h: Likewise.
36697         * lib/stdlib.in.h: Likewise.
36698         * lib/string.in.h: Likewise.
36699         * lib/strings.in.h: Likewise.
36700         * lib/sys_file.in.h: Likewise.
36701         * lib/sys_ioctl.in.h: Likewise.
36702         * lib/sys_select.in.h: Likewise.
36703         * lib/sys_socket.in.h: Likewise.
36704         * lib/sys_stat.in.h: Likewise.
36705         * lib/sys_times.in.h: Likewise.
36706         * lib/sys_utsname.in.h: Likewise.
36707         * lib/unistd.in.h: Likewise.
36708         * lib/wchar.in.h: Likewise.
36709
36710 2010-01-20  Bruno Haible  <bruno@clisp.org>
36711
36712         Avoid duplicate -lm.
36713         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36714         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36715         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36716         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36717         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36718         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36719         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36720         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36721         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36722         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36723         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36724         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36725         Reported by Paolo Bonzini.
36726
36727 2010-01-19  Bruno Haible  <bruno@clisp.org>
36728
36729         langinfo, nl_langinfo: Relicense under LGPLv2+.
36730         * modules/langinfo (License): Change to LGPLv2+.
36731         * modules/nl_langinfo (License): Likewise.
36732         Patch by David Lutterkort <lutter@redhat.com>.
36733
36734 2010-01-19  Bruno Haible  <bruno@clisp.org>
36735
36736         Avoid compilation error with cc on OSF/1 5.1.
36737         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36738         statement, not before.
36739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36740
36741 2010-01-18  Bruno Haible  <bruno@clisp.org>
36742
36743         Avoid a link error due to the __printf__ symbol.
36744         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36745         and 2.6.x.
36746         (__format__, __printf__): Remove definitions.
36747         * lib/argp-fmtstream.h: Likewise.
36748         * lib/argp.h: Likewise.
36749         * lib/error.h: Likewise.
36750         * lib/vasnprintf.h: Likewise.
36751         * lib/xprintf.h: Likewise.
36752         * lib/xvasprintf.h: Likewise.
36753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36754
36755 2010-01-18  Bruno Haible  <bruno@clisp.org>
36756
36757         Tests for module 'tanl'.
36758         * modules/tanl-tests: New file.
36759         * tests/test-tanl.c: New file.
36760
36761         Tests for module 'sqrtl'.
36762         * modules/sqrtl-tests: New file.
36763         * tests/test-sqrtl.c: New file.
36764
36765         Tests for module 'sinl'.
36766         * modules/sinl-tests: New file.
36767         * tests/test-sinl.c: New file.
36768
36769         Tests for module 'logl'.
36770         * modules/logl-tests: New file.
36771         * tests/test-logl.c: New file.
36772
36773         Tests for module 'expl'.
36774         * modules/expl-tests: New file.
36775         * tests/test-expl.c: New file.
36776
36777         Tests for module 'cosl'.
36778         * modules/cosl-tests: New file.
36779         * tests/test-cosl.c: New file.
36780
36781         Tests for module 'atanl'.
36782         * modules/atanl-tests: New file.
36783         * tests/test-atanl.c: New file.
36784
36785         Tests for module 'asinl'.
36786         * modules/asinl-tests: New file.
36787         * tests/test-asinl.c: New file.
36788
36789         Tests for module 'acosl'.
36790         * modules/acosl-tests: New file.
36791         * tests/test-acosl.c: New file.
36792
36793         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36794         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36795         tanl): Use the standard gnulib idiom.
36796         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36797         * lib/sinl.c: Likewise.
36798         * lib/tanl.c: Don't include trigl.c.
36799         (kernel_tanl): Make static.
36800         * lib/sincosl.c: Include trigl.h first.
36801         * lib/trigl.c: Likewise.
36802         * m4/acosl.m4: New file.
36803         * m4/asinl.m4: New file.
36804         * m4/atanl.m4: New file.
36805         * m4/cosl.m4: New file.
36806         * m4/expl.m4: New file.
36807         * m4/logl.m4: New file.
36808         * m4/sinl.m4: New file.
36809         * m4/sqrtl.m4: New file.
36810         * m4/tanl.m4: New file.
36811         * m4/mathl.m4: Remove file.
36812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36813         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36814         Don't initialize GNULIB_MATHL.
36815         * modules/acosl: New file.
36816         * modules/asinl: New file.
36817         * modules/atanl: New file.
36818         * modules/cosl: New file.
36819         * modules/expl: New file.
36820         * modules/logl: New file.
36821         * modules/sinl: New file.
36822         * modules/sqrtl: New file.
36823         * modules/tanl: New file.
36824         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36825         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36826         substitute GNULIB_MATHL.
36827         * modules/mathl: Rewritten.
36828         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36829         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36830         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36831         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36832         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36833         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36834         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36835         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36836         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36837
36838 2010-01-18  Bruno Haible  <bruno@clisp.org>
36839
36840         sqrt: Make gl_FUNC_SQRT requirable.
36841         * m4/sqrt.m4: New file.
36842         * modules/sqrt (Files): Add it.
36843         (configure.ac): Invoke gl_FUNC_SQRT.
36844
36845 2010-01-18  Bruno Haible  <bruno@clisp.org>
36846
36847         New modules for common <math.h> functions.
36848         * m4/mathfunc.m4: New file.
36849         * modules/acos: New file.
36850         * modules/asin: New file.
36851         * modules/atan: New file.
36852         * modules/atan2: New file.
36853         * modules/cbrt: New file.
36854         * modules/copysign: New file.
36855         * modules/cos: New file.
36856         * modules/cosh: New file.
36857         * modules/erf: New file.
36858         * modules/erfc: New file.
36859         * modules/exp: New file.
36860         * modules/fabs: New file.
36861         * modules/fmod: New file.
36862         * modules/hypot: New file.
36863         * modules/j0: New file.
36864         * modules/j1: New file.
36865         * modules/jn: New file.
36866         * modules/ldexp: New file.
36867         * modules/lgamma: New file.
36868         * modules/log: New file.
36869         * modules/log10: New file.
36870         * modules/log1p: New file.
36871         * modules/logb: New file.
36872         * modules/modf: New file.
36873         * modules/nextafter: New file.
36874         * modules/pow: New file.
36875         * modules/remainder: New file.
36876         * modules/rint: New file.
36877         * modules/sin: New file.
36878         * modules/sinh: New file.
36879         * modules/sqrt: New file.
36880         * modules/tan: New file.
36881         * modules/tanh: New file.
36882         * modules/y0: New file.
36883         * modules/y1: New file.
36884         * modules/yn: New file.
36885         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36886         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36887         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36888         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36889         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36890         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36891         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36892         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36893         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36894         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36895         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36896         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36897         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36898         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36899         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36900         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36901         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36902         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36903         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36904         * doc/posix-functions/log.texi: Mention the 'log' module.
36905         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36906         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36907         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36908         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36909         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36910         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36911         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36912         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36913         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36914         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36915         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36916         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36917         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36918         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36919         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36920         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36921
36922 2010-01-18  Jim Meyering  <meyering@redhat.com>
36923
36924         ignore-value: relax license to LGPLv2+
36925         * modules/ignore-value (License): Relax to LGPLv2+.
36926
36927         getdate: don't leak when TZ contains two or more '"'s
36928         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36929         double quote in TZ after the first one.
36930
36931         readtokens: do not leak internal token_lengths buffer
36932         * lib/readtokens.c (readtokens): Free the local, lengths,
36933         when the supplied "token_lengths" parameter is NULL.
36934
36935 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36936
36937         Fix a couple of missing LIBTHREAD link failures on AIX.
36938         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36939         $(LIBTHREAD).
36940         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36941
36942         Link test-poll against INET_PTON_LIB.
36943         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36944         for inet_pton on Solaris 10.
36945
36946 2010-01-17  Bruno Haible  <bruno@clisp.org>
36947
36948         unistdio/*-sprintf: Fix typo in module description.
36949         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36950         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36951         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36952         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36953         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36954         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36955         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36957
36958 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36959
36960         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36961         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36962         variables in shell case patterns, for AIX and HP-UX ksh.
36963
36964         Split large sed scripts, for HP-UX sed.
36965         * modules/stdio: Split sed scripts around 50 sed commands,
36966         to avoid HP-UX limit of 99 commands, in the near future.
36967         * modules/string: Likewise.
36968         * modules/unistd: Likewise.
36969
36970         gnulib-tool: avoid writing in the current directory.
36971         * gnulib-tool (func_emit_lib_Makefile_am)
36972         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36973         not in the current directory, so concurrent gnulib-tool
36974         instances do not interfere.
36975
36976 2010-01-16  Jim Meyering  <meyering@redhat.com>
36977
36978         doc: update users.txt
36979         * users.txt: Add grep.
36980         (diffutils, gzip): Update URLs.
36981
36982 2010-01-12  Bruno Haible  <bruno@clisp.org>
36983
36984         posix_spawn: Avoid test failure on Cygwin.
36985         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36986         characters.
36987         Reported by Simon Josefsson.
36988
36989 2010-01-12  Bruno Haible  <bruno@clisp.org>
36990
36991         * tests/test-cond.c (main): When skipping the test, show the reason.
36992
36993 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36994
36995         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36996
36997 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36998
36999         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37000         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37001
37002 2010-01-12  Eric Blake  <ebb9@byu.net>
37003
37004         build: guarantee AS_VAR_IF
37005         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37006         (gl_AS_VAR_IF): Move...
37007         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37008         Reported by Simon Josefsson.
37009
37010 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37011
37012         * lib/stdio.in.h: Fix typo.
37013
37014 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37015
37016         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37017         libgpg-error.
37018
37019 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37020
37021         * tests/test-xalloc-die.sh: Use $EXEEXT.
37022
37023 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37024             Bruno Haible  <bruno@clisp.org>
37025
37026         getlogin, getlogin_r: Avoid test failure.
37027         * tests/test-getlogin.c: Include <stdio.h>.
37028         (main): Skip the test when the function fails because stdin is not a
37029         tty.
37030         * tests/test-getlogin_r.c: Include <stdio.h>.
37031         (main): Skip the test when the function fails because stdin is not a
37032         tty.
37033
37034 2010-01-11  Eric Blake  <ebb9@byu.net>
37035
37036         tests: avoid more large file warnings
37037         * tests/test-fflush.c: Avoid warning about ftell use.
37038         * tests/test-fseek.c: Avoid warning about fseek use.
37039
37040 2010-01-10  Bruno Haible  <bruno@clisp.org>
37041
37042         nproc: Work better on Linux when /proc and /sys are not mounted.
37043         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37044         as lower bound when, on glibc/Linux systems,
37045         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37046         Suggested by Pádraig Brady <P@draigbrady.com>.
37047         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37048
37049         nproc: Refactor.
37050         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37051         extracted from num_processors.
37052         (num_processors): Call it.
37053
37054 2010-01-11  Jim Meyering  <meyering@redhat.com>
37055
37056         utimecmp: avoid new warning from upcoming gcc-4.5.0
37057         * lib/utimecmp.c (BILLION): Define using #define rather than an
37058         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37059
37060 2010-01-11  Eric Blake  <ebb9@byu.net>
37061
37062         math: add portability warnings for classification macros
37063         * modules/math (Depends-on): Add warn-on-use.
37064         (Makefile.am): Provide new substitutions.
37065         * m4/math_h.m4 (gl_MATH_H): Require inline.
37066         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37067         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37068         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37069         implement warnings.
37070
37071         unistd: warn on use of environ without module
37072         * modules/unistd (Depends-on): Add warn-on-use.
37073         (Makefile.am): Provide new substitutions.
37074         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37075         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37076
37077         stdio: warn on suspicious uses
37078         * modules/stdio (Depends-on): Add warn-on-use.
37079         (Makefile.am): Provide new substitutions.
37080         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37081         fseeko.
37082         * lib/stdio.in.h (gets): Always warn on use.
37083         (fseek, ftell): Adjust when warnings are issued, and honor
37084         _GL_NO_LARGE_FILES as a way to silence the warning.
37085         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37086         any warning about large file offsets.
37087         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37088         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37089         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37090         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37091         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37092         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37093         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37094         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37095
37096         warn-on-use: new module
37097         * modules/warn-on-use: New file.
37098         * build-aux/warn-on-use.h: Likewise.
37099         * m4/warn-on-use.m4: Likewise.
37100         * MODULES.html.sh (Support for building): Mention it.
37101
37102 2010-01-10  Bruno Haible  <bruno@clisp.org>
37103
37104         Tests for module 'unistr/u32-strdup'.
37105         * modules/unistr/u32-strdup-tests: New file.
37106         * tests/unistr/test-u32-strdup.c: New file.
37107
37108         Tests for module 'unistr/u16-strdup'.
37109         * modules/unistr/u16-strdup-tests: New file.
37110         * tests/unistr/test-u16-strdup.c: New file.
37111
37112         Tests for module 'unistr/u8-strdup'.
37113         * modules/unistr/u8-strdup-tests: New file.
37114         * tests/unistr/test-u8-strdup.c: New file.
37115         * tests/unistr/test-strdup.h: New file.
37116
37117         Tests for module 'unistr/u32-strncmp'.
37118         * modules/unistr/u32-strncmp-tests: New file.
37119         * tests/unistr/test-u32-strncmp.c: New file.
37120
37121         Tests for module 'unistr/u16-strncmp'.
37122         * modules/unistr/u16-strncmp-tests: New file.
37123         * tests/unistr/test-u16-strncmp.c: New file.
37124
37125         Tests for module 'unistr/u8-strncmp'.
37126         * modules/unistr/u8-strncmp-tests: New file.
37127         * tests/unistr/test-u8-strncmp.c: New file.
37128         * tests/unistr/test-strncmp.h: New file.
37129
37130         Tests for module 'unistr/u32-strcoll'.
37131         * modules/unistr/u32-strcoll-tests: New file.
37132         * tests/unistr/test-u32-strcoll.c: New file.
37133
37134         Tests for module 'unistr/u16-strcoll'.
37135         * modules/unistr/u16-strcoll-tests: New file.
37136         * tests/unistr/test-u16-strcoll.c: New file.
37137
37138         Tests for module 'unistr/u8-strcoll'.
37139         * modules/unistr/u8-strcoll-tests: New file.
37140         * tests/unistr/test-u8-strcoll.c: New file.
37141
37142         Tests for module 'unistr/u32-strcmp'.
37143         * modules/unistr/u32-strcmp-tests: New file.
37144         * tests/unistr/test-u32-strcmp.c: New file.
37145         * tests/unistr/test-u32-strcmp.h: New file.
37146
37147         Tests for module 'unistr/u16-strcmp'.
37148         * modules/unistr/u16-strcmp-tests: New file.
37149         * tests/unistr/test-u16-strcmp.c: New file.
37150         * tests/unistr/test-u16-strcmp.h: New file.
37151
37152         Tests for module 'unistr/u8-strcmp'.
37153         * modules/unistr/u8-strcmp-tests: New file.
37154         * tests/unistr/test-u8-strcmp.c: New file.
37155         * tests/unistr/test-u8-strcmp.h: New file.
37156         * tests/unistr/test-strcmp.h: New file.
37157
37158         Tests for module 'unistr/u32-strncat'.
37159         * modules/unistr/u32-strncat-tests: New file.
37160         * tests/unistr/test-u32-strncat.c: New file.
37161
37162         Tests for module 'unistr/u16-strncat'.
37163         * modules/unistr/u16-strncat-tests: New file.
37164         * tests/unistr/test-u16-strncat.c: New file.
37165
37166         Tests for module 'unistr/u8-strncat'.
37167         * modules/unistr/u8-strncat-tests: New file.
37168         * tests/unistr/test-u8-strncat.c: New file.
37169         * tests/unistr/test-strncat.h: New file.
37170
37171         Tests for module 'unistr/u32-strcat'.
37172         * modules/unistr/u32-strcat-tests: New file.
37173         * tests/unistr/test-u32-strcat.c: New file.
37174
37175         Tests for module 'unistr/u16-strcat'.
37176         * modules/unistr/u16-strcat-tests: New file.
37177         * tests/unistr/test-u16-strcat.c: New file.
37178
37179         Tests for module 'unistr/u8-strcat'.
37180         * modules/unistr/u8-strcat-tests: New file.
37181         * tests/unistr/test-u8-strcat.c: New file.
37182         * tests/unistr/test-strcat.h: New file.
37183
37184         Tests for module 'unistr/u32-stpncpy'.
37185         * modules/unistr/u32-stpncpy-tests: New file.
37186         * tests/unistr/test-u32-stpncpy.c: New file.
37187
37188         Tests for module 'unistr/u16-stpncpy'.
37189         * modules/unistr/u16-stpncpy-tests: New file.
37190         * tests/unistr/test-u16-stpncpy.c: New file.
37191
37192         Tests for module 'unistr/u8-stpncpy'.
37193         * modules/unistr/u8-stpncpy-tests: New file.
37194         * tests/unistr/test-u8-stpncpy.c: New file.
37195         * tests/unistr/test-stpncpy.h: New file.
37196
37197         Tests for module 'unistr/u32-strncpy'.
37198         * modules/unistr/u32-strncpy-tests: New file.
37199         * tests/unistr/test-u32-strncpy.c: New file.
37200
37201         Tests for module 'unistr/u16-strncpy'.
37202         * modules/unistr/u16-strncpy-tests: New file.
37203         * tests/unistr/test-u16-strncpy.c: New file.
37204
37205         Tests for module 'unistr/u8-strncpy'.
37206         * modules/unistr/u8-strncpy-tests: New file.
37207         * tests/unistr/test-u8-strncpy.c: New file.
37208         * tests/unistr/test-strncpy.h: New file.
37209
37210         Tests for module 'unistr/u32-stpcpy'.
37211         * modules/unistr/u32-stpcpy-tests: New file.
37212         * tests/unistr/test-u32-stpcpy.c: New file.
37213
37214         Tests for module 'unistr/u16-stpcpy'.
37215         * modules/unistr/u16-stpcpy-tests: New file.
37216         * tests/unistr/test-u16-stpcpy.c: New file.
37217
37218         Tests for module 'unistr/u8-stpcpy'.
37219         * modules/unistr/u8-stpcpy-tests: New file.
37220         * tests/unistr/test-u8-stpcpy.c: New file.
37221         * tests/unistr/test-stpcpy.h: New file.
37222
37223         Tests for module 'unistr/u32-strcpy'.
37224         * modules/unistr/u32-strcpy-tests: New file.
37225         * tests/unistr/test-u32-strcpy.c: New file.
37226
37227         Tests for module 'unistr/u16-strcpy'.
37228         * modules/unistr/u16-strcpy-tests: New file.
37229         * tests/unistr/test-u16-strcpy.c: New file.
37230
37231         Tests for module 'unistr/u8-strcpy'.
37232         * modules/unistr/u8-strcpy-tests: New file.
37233         * tests/unistr/test-u8-strcpy.c: New file.
37234         * tests/unistr/test-strcpy.h: New file.
37235
37236         Tests for module 'unistr/u32-strnlen'.
37237         * modules/unistr/u32-strnlen-tests: New file.
37238         * tests/unistr/test-u32-strnlen.c: New file.
37239
37240         Tests for module 'unistr/u16-strnlen'.
37241         * modules/unistr/u16-strnlen-tests: New file.
37242         * tests/unistr/test-u16-strnlen.c: New file.
37243
37244         Tests for module 'unistr/u8-strnlen'.
37245         * modules/unistr/u8-strnlen-tests: New file.
37246         * tests/unistr/test-u8-strnlen.c: New file.
37247         * tests/unistr/test-strnlen.h: New file.
37248
37249         Tests for module 'unistr/u32-strlen'.
37250         * modules/unistr/u32-strlen-tests: New file.
37251         * tests/unistr/test-u32-strlen.c: New file.
37252
37253         Tests for module 'unistr/u16-strlen'.
37254         * modules/unistr/u16-strlen-tests: New file.
37255         * tests/unistr/test-u16-strlen.c: New file.
37256
37257         Tests for module 'unistr/u8-strlen'.
37258         * modules/unistr/u8-strlen-tests: New file.
37259         * tests/unistr/test-u8-strlen.c: New file.
37260
37261         Tests for module 'unistr/u32-prev'.
37262         * modules/unistr/u32-prev-tests: New file.
37263         * tests/unistr/test-u32-prev.c: New file.
37264
37265         Tests for module 'unistr/u16-prev'.
37266         * modules/unistr/u16-prev-tests: New file.
37267         * tests/unistr/test-u16-prev.c: New file.
37268
37269         Tests for module 'unistr/u8-prev'.
37270         * modules/unistr/u8-prev-tests: New file.
37271         * tests/unistr/test-u8-prev.c: New file.
37272
37273         Tests for module 'unistr/u32-next'.
37274         * modules/unistr/u32-next-tests: New file.
37275         * tests/unistr/test-u32-next.c: New file.
37276
37277         Tests for module 'unistr/u16-next'.
37278         * modules/unistr/u16-next-tests: New file.
37279         * tests/unistr/test-u16-next.c: New file.
37280
37281         Tests for module 'unistr/u8-next'.
37282         * modules/unistr/u8-next-tests: New file.
37283         * tests/unistr/test-u8-next.c: New file.
37284
37285         Tests for module 'unistr/u32-strmbtouc'.
37286         * modules/unistr/u32-strmbtouc-tests: New file.
37287         * tests/unistr/test-u32-strmbtouc.c: New file.
37288
37289         Tests for module 'unistr/u16-strmbtouc'.
37290         * modules/unistr/u16-strmbtouc-tests: New file.
37291         * tests/unistr/test-u16-strmbtouc.c: New file.
37292
37293         Tests for module 'unistr/u8-strmbtouc'.
37294         * modules/unistr/u8-strmbtouc-tests: New file.
37295         * tests/unistr/test-u8-strmbtouc.c: New file.
37296
37297         Tests for module 'unistr/u32-strmblen'.
37298         * modules/unistr/u32-strmblen-tests: New file.
37299         * tests/unistr/test-u32-strmblen.c: New file.
37300
37301         Tests for module 'unistr/u16-strmblen'.
37302         * modules/unistr/u16-strmblen-tests: New file.
37303         * tests/unistr/test-u16-strmblen.c: New file.
37304
37305         Tests for module 'unistr/u8-strmblen'.
37306         * modules/unistr/u8-strmblen-tests: New file.
37307         * tests/unistr/test-u8-strmblen.c: New file.
37308
37309         Tests for module 'unistr/u32-cpy-alloc'.
37310         * modules/unistr/u32-cpy-alloc-tests: New file.
37311         * tests/unistr/test-u32-cpy-alloc.c: New file.
37312
37313         Tests for module 'unistr/u16-cpy-alloc'.
37314         * modules/unistr/u16-cpy-alloc-tests: New file.
37315         * tests/unistr/test-u16-cpy-alloc.c: New file.
37316
37317         Tests for module 'unistr/u8-cpy-alloc'.
37318         * modules/unistr/u8-cpy-alloc-tests: New file.
37319         * tests/unistr/test-u8-cpy-alloc.c: New file.
37320         * tests/unistr/test-cpy-alloc.h: New file.
37321
37322         Tests for module 'unistr/u32-mbsnlen'.
37323         * modules/unistr/u32-mbsnlen-tests: New file.
37324         * tests/unistr/test-u32-mbsnlen.c: New file.
37325
37326         Tests for module 'unistr/u16-mbsnlen'.
37327         * modules/unistr/u16-mbsnlen-tests: New file.
37328         * tests/unistr/test-u16-mbsnlen.c: New file.
37329
37330         Tests for module 'unistr/u8-mbsnlen'.
37331         * modules/unistr/u8-mbsnlen-tests: New file.
37332         * tests/unistr/test-u8-mbsnlen.c: New file.
37333
37334         Tests for module 'unistr/u32-chr'.
37335         * modules/unistr/u32-chr-tests: New file.
37336         * tests/unistr/test-u32-chr.c: New file.
37337
37338         Tests for module 'unistr/u16-chr'.
37339         * modules/unistr/u16-chr-tests: New file.
37340         * tests/unistr/test-u16-chr.c: New file.
37341
37342         Tests for module 'unistr/u8-chr'.
37343         * modules/unistr/u8-chr-tests: New file.
37344         * tests/unistr/test-u8-chr.c: New file.
37345         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37346
37347         Tests for module 'unistr/u32-cmp2'.
37348         * modules/unistr/u32-cmp2-tests: New file.
37349         * tests/unistr/test-u32-cmp2.c: New file.
37350
37351         Tests for module 'unistr/u16-cmp2'.
37352         * modules/unistr/u16-cmp2-tests: New file.
37353         * tests/unistr/test-u16-cmp2.c: New file.
37354
37355         Tests for module 'unistr/u8-cmp2'.
37356         * modules/unistr/u8-cmp2-tests: New file.
37357         * tests/unistr/test-u8-cmp2.c: New file.
37358         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37359
37360         Tests for module 'unistr/u32-cmp'.
37361         * modules/unistr/u32-cmp-tests: New file.
37362         * tests/unistr/test-u32-cmp.c: New file.
37363
37364         Tests for module 'unistr/u16-cmp'.
37365         * modules/unistr/u16-cmp-tests: New file.
37366         * tests/unistr/test-u16-cmp.c: New file.
37367
37368         Tests for module 'unistr/u8-cmp'.
37369         * modules/unistr/u8-cmp-tests: New file.
37370         * tests/unistr/test-u8-cmp.c: New file.
37371         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37372
37373         Tests for module 'unistr/u32-set'.
37374         * modules/unistr/u32-set-tests: New file.
37375         * tests/unistr/test-u32-set.c: New file.
37376
37377         Tests for module 'unistr/u16-set'.
37378         * modules/unistr/u16-set-tests: New file.
37379         * tests/unistr/test-u16-set.c: New file.
37380
37381         Tests for module 'unistr/u8-set'.
37382         * modules/unistr/u8-set-tests: New file.
37383         * tests/unistr/test-u8-set.c: New file.
37384         * tests/unistr/test-set.h: New file.
37385
37386         Tests for module 'unistr/u32-move'.
37387         * modules/unistr/u32-move-tests: New file.
37388         * tests/unistr/test-u32-move.c: New file.
37389
37390         Tests for module 'unistr/u16-move'.
37391         * modules/unistr/u16-move-tests: New file.
37392         * tests/unistr/test-u16-move.c: New file.
37393
37394         Tests for module 'unistr/u8-move'.
37395         * modules/unistr/u8-move-tests: New file.
37396         * tests/unistr/test-u8-move.c: New file.
37397         * tests/unistr/test-move.h: New file.
37398
37399         Tests for module 'unistr/u32-cpy'.
37400         * modules/unistr/u32-cpy-tests: New file.
37401         * tests/unistr/test-u32-cpy.c: New file.
37402
37403         Tests for module 'unistr/u16-cpy'.
37404         * modules/unistr/u16-cpy-tests: New file.
37405         * tests/unistr/test-u16-cpy.c: New file.
37406
37407         Tests for module 'unistr/u8-cpy'.
37408         * modules/unistr/u8-cpy-tests: New file.
37409         * tests/unistr/test-u8-cpy.c: New file.
37410         * tests/unistr/test-cpy.h: New file.
37411
37412 2010-01-09  Bruno Haible  <bruno@clisp.org>
37413
37414         Tests for module 'unistr/u32-uctomb'.
37415         * modules/unistr/u32-uctomb-tests: New file.
37416         * tests/unistr/test-u32-uctomb.c: New file.
37417
37418         Tests for module 'unistr/u16-uctomb'.
37419         * modules/unistr/u16-uctomb-tests: New file.
37420         * tests/unistr/test-u16-uctomb.c: New file.
37421
37422         Tests for module 'unistr/u8-uctomb'.
37423         * modules/unistr/u8-uctomb-tests: New file.
37424         * tests/unistr/test-u8-uctomb.c: New file.
37425
37426         Tests for module 'unistr/u32-mbtoucr'.
37427         * modules/unistr/u32-mbtoucr-tests: New file.
37428         * tests/unistr/test-u32-mbtoucr.c: New file.
37429
37430         Tests for module 'unistr/u16-mbtoucr'.
37431         * modules/unistr/u16-mbtoucr-tests: New file.
37432         * tests/unistr/test-u16-mbtoucr.c: New file.
37433
37434         Tests for module 'unistr/u8-mbtoucr'.
37435         * modules/unistr/u8-mbtoucr-tests: New file.
37436         * tests/unistr/test-u8-mbtoucr.c: New file.
37437
37438         Tests for module 'unistr/u32-mbtouc'.
37439         * modules/unistr/u32-mbtouc-tests: New file.
37440         * tests/unistr/test-u32-mbtouc.c: New file.
37441
37442         Tests for module 'unistr/u16-mbtouc'.
37443         * modules/unistr/u16-mbtouc-tests: New file.
37444         * tests/unistr/test-u16-mbtouc.c: New file.
37445
37446         Tests for module 'unistr/u8-mbtouc'.
37447         * modules/unistr/u8-mbtouc-tests: New file.
37448         * tests/unistr/test-u8-mbtouc.c: New file.
37449
37450         Tests for module 'unistr/u32-mbtouc-unsafe'.
37451         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37452         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37453         * tests/unistr/test-u32-mbtouc.h: New file.
37454
37455         Tests for module 'unistr/u16-mbtouc-unsafe'.
37456         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37457         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37458         * tests/unistr/test-u16-mbtouc.h: New file.
37459
37460         Tests for module 'unistr/u8-mbtouc-unsafe'.
37461         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37462         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37463         * tests/unistr/test-u8-mbtouc.h: New file.
37464
37465         Tests for module 'unistr/u32-mblen'.
37466         * modules/unistr/u32-mblen-tests: New file.
37467         * tests/unistr/test-u32-mblen.c: New file.
37468
37469         Tests for module 'unistr/u16-mblen'.
37470         * modules/unistr/u16-mblen-tests: New file.
37471         * tests/unistr/test-u16-mblen.c: New file.
37472
37473         Tests for module 'unistr/u8-mblen'.
37474         * modules/unistr/u8-mblen-tests: New file.
37475         * tests/unistr/test-u8-mblen.c: New file.
37476
37477         Tests for module 'unistr/u32-to-u16'.
37478         * modules/unistr/u32-to-u16-tests: New file.
37479         * tests/unistr/test-u32-to-u16.c: New file.
37480
37481         Tests for module 'unistr/u32-to-u8'.
37482         * modules/unistr/u32-to-u8-tests: New file.
37483         * tests/unistr/test-u32-to-u8.c: New file.
37484
37485         Tests for module 'unistr/u16-to-u32'.
37486         * modules/unistr/u16-to-u32-tests: New file.
37487         * tests/unistr/test-u16-to-u32.c: New file.
37488
37489         Tests for module 'unistr/u16-to-u8'.
37490         * modules/unistr/u16-to-u8-tests: New file.
37491         * tests/unistr/test-u16-to-u8.c: New file.
37492
37493         Tests for module 'unistr/u8-to-u32'.
37494         * modules/unistr/u8-to-u32-tests: New file.
37495         * tests/unistr/test-u8-to-u32.c: New file.
37496
37497         Tests for module 'unistr/u8-to-u16'.
37498         * modules/unistr/u8-to-u16-tests: New file.
37499         * tests/unistr/test-u8-to-u16.c: New file.
37500
37501         Tests for module 'unistr/u32-check'.
37502         * modules/unistr/u32-check-tests: New file.
37503         * tests/unistr/test-u32-check.c: New file.
37504
37505         Tests for module 'unistr/u16-check'.
37506         * modules/unistr/u16-check-tests: New file.
37507         * tests/unistr/test-u16-check.c: New file.
37508
37509         Tests for module 'unistr/u8-check'.
37510         * modules/unistr/u8-check-tests: New file.
37511         * tests/unistr/test-u8-check.c: New file.
37512
37513         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37514         (category_equals): New function.
37515         (main): Add more tests.
37516         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37517
37518         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37519
37520 2010-01-10  Bruno Haible  <bruno@clisp.org>
37521
37522         unistr/u*-strcoll: Try harder to distinguish different strings.
37523         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37524         compare s1 and s2 to see if they are different.
37525
37526 2010-01-10  Bruno Haible  <bruno@clisp.org>
37527
37528         unistr/u*-stpncpy: Fix the return value.
37529         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37530         description of the return value consistent with stpncpy in glibc.
37531         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37532         written non-NUL unit.
37533
37534 2010-01-10  Bruno Haible  <bruno@clisp.org>
37535
37536         unistr/u*-next: Add missing dependencies.
37537         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37538         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37539         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37540
37541 2010-01-10  Bruno Haible  <bruno@clisp.org>
37542
37543         unistr/u8-mbsnlen: Fix return value for incomplete character.
37544         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37545         u8_mblen.
37546         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37547         Remove unistr/u8-mblen.
37548         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37549         u16_mblen.
37550         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37551         Remove unistr/u16-mblen.
37552
37553 2010-01-10  Bruno Haible  <bruno@clisp.org>
37554
37555         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37556         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37557         Reported by Brian Gough <bjg@gnu.org> and
37558         Chris Clayton <chris2553@googlemail.com> via
37559         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37560
37561 2010-01-09  Bruno Haible  <bruno@clisp.org>
37562
37563         unistr/u16-to-u32: Reject invalid input.
37564         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37565         u16_mbtouc.
37566         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37567         Remove unistr/u16-mbtouc.
37568
37569         unistr/u16-to-u8: Reject invalid input.
37570         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37571         u16_mbtouc.
37572         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37573         Remove unistr/u16-mbtouc.
37574
37575         unistr/u8-to-u32: Reject invalid input.
37576         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37577         u8_mbtouc.
37578         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37579         Remove unistr/u8-mbtouc.
37580
37581         unistr/u8-to-u16: Reject invalid input.
37582         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37583         u8_mbtouc.
37584         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37585         Remove unistr/u8-mbtouc.
37586
37587 2010-01-09  Bruno Haible  <bruno@clisp.org>
37588
37589         Tests for module 'getlogin'.
37590         * modules/getlogin-tests: New file.
37591         * tests/test-getlogin.c: New file.
37592
37593         New module 'getlogin'.
37594         * lib/unistd.in.h (getlogin): New declaration.
37595         * lib/getlogin.c: New file.
37596         * m4/getlogin.m4: New file.
37597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37598         HAVE_GETLOGIN.
37599         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37600         HAVE_GETLOGIN.
37601         * modules/getlogin: New file.
37602         * doc/posix-functions/getlogin.texi: Mention the new module.
37603         Reported by John W. Eaton <jwe@gnu.org>.
37604
37605 2010-01-09  Bruno Haible  <bruno@clisp.org>
37606
37607         getlogin_r: Support for native Windows.
37608         * lib/getlogin_r.c: Include <windows.h>
37609         (getlogin_r): Implement for native Windows.
37610         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37611         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37612         via John W. Eaton <jwe@gnu.org>.
37613
37614 2010-01-09  Bruno Haible  <bruno@clisp.org>
37615
37616         getlogin_r: Small fixes.
37617         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37618         succeeds.
37619         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37620         before testing whether getlogin_r is declared. No need to set
37621         HAVE_DECL_GETLOGIN_R to 1.
37622         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37623
37624 2010-01-09  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/unistd.in.h (getlogin_r): Add comment.
37627
37628 2010-01-09  Bruno Haible  <bruno@clisp.org>
37629
37630         Tests for module 'getlogin_r'.
37631         * modules/getlogin_r-tests: New file.
37632         * tests/test-getlogin_r.c: New file.
37633
37634 2010-01-09  Jim Meyering  <meyering@redhat.com>
37635
37636         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37637         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37638         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37639
37640 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37641
37642         * lib/dup2.c (rpl_dup2): Improve comment.
37643
37644 2010-01-08  Eric Blake  <ebb9@byu.net>
37645
37646         maint.mk: allow packages to add makefile @@ exceptions
37647         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37648         (sc_makefile_check): Rename...
37649         (sc_makefile_at_at_check): ...to this, and use hook.
37650
37651         dup2: work around mingw bug
37652         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37653         Reported by Simon Josefsson.
37654
37655 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37656
37657         glob: Fix C++ compilation.
37658         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37659         C++.
37660
37661 2010-01-07  Bruno Haible  <bruno@clisp.org>
37662
37663         Fix indentation of wctype.in.h, broken since 2007-01-06.
37664         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37665
37666 2010-01-07  Bruno Haible  <bruno@clisp.org>
37667
37668         mbslen: Avoid collision with system function.
37669         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37670         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37671         * m4/mbslen.m4: New file.
37672         * modules/mbslen (Files): Add it.
37673         (configure.ac): Invoke gl_MBSLEN.
37674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37675         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37676         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37677         via Ian Beckwith <ianb@erislabs.net>.
37678
37679 2010-01-07  Bruno Haible  <bruno@clisp.org>
37680
37681         dirent: Document the last fix.
37682         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37683
37684 2010-01-07  Bruno Haible  <bruno@clisp.org>
37685
37686         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37687         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37688         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37689         va_list are defined.
37690         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37691         Reported by Eric Blake.
37692
37693 2010-01-07  Bruno Haible  <bruno@clisp.org>
37694
37695         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37696         * modules/xlist (Depends-on): Add 'list',
37697         * modules/xoset (Depends-on): Add 'oset'.
37698         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37699
37700 2010-01-07  Bruno Haible  <bruno@clisp.org>
37701
37702         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37703         * doc/posix-functions/strncasecmp.texi: Likewise.
37704
37705 2010-01-07  Bruno Haible  <bruno@clisp.org>
37706
37707         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37708
37709 2010-01-07  John W. Eaton  <jwe@octave.org>
37710
37711         wctype: allow C++ use
37712         * lib/wctype.in.h: Add extern "C" block for C++.
37713
37714 2010-01-06  Eric Blake  <ebb9@byu.net>
37715
37716         maint.mk: detect incorrect GFDL usage
37717         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37718
37719 2010-01-06  Jim Meyering  <meyering@redhat.com>
37720         and Eric Blake  <ebb9@byu.net>
37721
37722         maint.mk: ignore multi-line copyright in NEWS
37723         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37724
37725 2010-01-06  Eric Blake  <ebb9@byu.net>
37726
37727         select: add missing dependency
37728         * modules/select-tests (Depends-on): Move sockets dependency...
37729         * modules/select (Depends-on): ...here.
37730         Reported by Ian Beckwith.
37731
37732         doc: regenerate INSTALL
37733         * doc/INSTALL: Reflect recent autoconf update.
37734         * doc/INSTALL.ISO: Likewise.
37735         * doc/INSTALL.UTF-8: Likewise.
37736
37737         pread: fix compilation on glibc
37738         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37739         Reported by Ralf Wildenhues.
37740
37741         dirent: fix test failure
37742         * lib/dirent.in.h (includes): Guarantee ino_t.
37743         Reported by Ralf Wildenhues.
37744
37745 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37746
37747         linkat, renameat: avoid bad free
37748         * lib/at-func2.c (at_func2): Fix typo.
37749         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37750
37751 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37752
37753         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37754         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37755         to avoid failure of symlink test later.
37756
37757 2010-01-06  Eric Blake  <ebb9@byu.net>
37758
37759         stdio, unistd: guarantee ssize_t
37760         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37761         2008 are exposed when needed.
37762         * lib/stdio.in.h (includes): Likewise.
37763         Reported by Ralf Wildenhues.
37764
37765 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37766
37767         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37768         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37769         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37770
37771 2010-01-06  Jim Meyering  <meyering@redhat.com>
37772
37773         readtokens: this module *does* require xalloc.h
37774         It uses only functions that were omitted by the old syntax-check rule.
37775         * lib/readtokens.c: Include "xalloc.h" once again.
37776         * modules/readtokens (Depends-on): Add xalloc.
37777         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37778
37779 2010-01-05  Eric Blake  <ebb9@byu.net>
37780
37781         maint: support 'make announcement' from a VPATH build
37782         * top/maint.mk (announcement): Look for correct NEWS file.
37783
37784 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37785
37786         utimens (fdutimens): ignore a negative FD, per contract
37787         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37788         when we have a valid file descriptor.  Otherwise, using a brand
37789         new glibc (with just-patched futimens that now fails with EBADF)
37790         would cause this function to fail with ENOSYS.
37791         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37792         See also http://bugzilla.redhat.com/552320.
37793
37794 2010-01-05  Eric Blake  <ebb9@byu.net>
37795
37796         strcase: document what it provides
37797         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37798         gnulib module.
37799         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37800         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37801
37802 2010-01-05  Jim Meyering  <meyering@redhat.com>
37803
37804         maint: remove useless inclusions of "xalloc.h"
37805         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37806         * lib/readtokens.c: Likewise.
37807         * lib/same.c: Likewise.
37808         * modules/getloadavg (Depends-on): Remove xalloc.
37809         * modules/readtokens: Likewise.
37810         * modules/same: Likewise.
37811
37812         maint.mk: include 4 more function names in alloca.h-checking regexp
37813         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37814         regexp.  Before, we would give a false-positive (saying alloca.h
37815         is included unnecessarily) when the only uses involved omitted symbols.
37816
37817         xalloc.h: use consistent formatting
37818         * lib/xalloc.h: Move declarations to start in the first column.
37819
37820 2010-01-05  Eric Blake  <ebb9@byu.net>
37821
37822         mkdir: avoid xalloc
37823         * lib/mkdir.c (includes): Drop unused header.
37824         Reported by John W. Eaton.
37825
37826 2010-01-04  Jim Meyering  <meyering@redhat.com>
37827
37828         nl_langinfo: avoid configure-time syntax error
37829         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37830         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37831         the empty string.  Don't let that provoke a shell syntax error.
37832
37833         regcomp, regexec, fnmatch: avoid array bounds read error
37834         * lib/regcomp.c (build_equiv_class): From glibc:
37835         Use only the low 24 bits of a findidx return value as an index
37836         into the weights array.  Patch by Ulrich Drepper:
37837         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37838         * lib/regexec.c (check_node_accept_bytes): Likewise.
37839         * lib/fnmatch_loop.c (FCT): Likewise.
37840
37841         regcomp: skip collseq lookup when there are no rules
37842         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37843         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37844
37845         regcomp: recognize ill-formed { } expressions
37846         * lib/regcomp.c (parse_dup_op): From glibc:
37847         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37848
37849         regcomp: fix typo in comment
37850         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37851         s/satisfy/satisfies/.
37852
37853         regcomp: sync from glibc: remove dead store
37854         * lib/regcomp.c (duplicate_node_closure): Remove useless
37855         search_duplicated_node call and dead store.
37856
37857         regcomp: sync from glibc; always use nl_langinfo
37858         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37859         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37860         * modules/regex (Depends-on): Add nl_langinfo.
37861
37862 2010-01-04  Eric Blake  <ebb9@byu.net>
37863
37864         fdopendir: fix configure test
37865         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37866
37867 2010-01-01  Bruno Haible  <bruno@clisp.org>
37868
37869         wchar: Remove unused configure check.
37870         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37871
37872 2010-01-01  Eric Blake  <ebb9@byu.net>
37873
37874         headers: make check of system header explicit
37875         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37876         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37877         ourselves.
37878         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37881         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37882         internals.
37883         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37884         missing.
37885         Suggested by Bruno Haible.
37886
37887 2010-01-01  Jim Meyering  <meyering@redhat.com>
37888
37889         ChangeLog: tweak to eliminate unnecessary copyright line
37890         * ChangeLog: Remove a copyright line that was mistakenly updated
37891         by today's update-copyright run.  Reported by Eric Blake.
37892
37893         test-update-copyright: don't let envvar setting cause test failure
37894         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37895
37896 2010-01-01  Bruno Haible  <bruno@clisp.org>
37897
37898         localename: Avoid gcc warning.
37899         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37900         function if it is not used.
37901
37902 2010-01-01  Jim Meyering  <meyering@redhat.com>
37903
37904         update nearly all FSF copyright year lists to include 2010
37905         Use the same procedure as for 2009, outlined in
37906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37907
37908         version-etc: set COPYRIGHT_YEAR to 2010
37909         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37910
37911 2009-12-31  Eric Blake  <ebb9@byu.net>
37912
37913         doc: correct availability of cygwin 1.5.x getopt
37914         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37915         variables.
37916         * doc/posix-functions/opterr.texi (opterr): Likewise.
37917         * doc/posix-functions/optind.texi (optind): Likewise.
37918         * doc/posix-functions/optopt.texi (optopt): Likewise.
37919         * doc/posix-functions/tzname.texi (tzname): Likewise.
37920
37921         openat: update maintainer
37922         * modules/openat (Maintainer): Add myself.
37923
37924         utimens: avoid shadowing warning
37925         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37926         buffers into one, to avoid shadowing, as well as avoiding a
37927         redundant stat.
37928         Reported by Jim Meyering.
37929
37930         test-dup2: avoid compiler warning
37931         * tests/test-dup2.c (is_inheritable): Only define if used.
37932
37933 2010-01-01  Bruno Haible  <bruno@clisp.org>
37934
37935         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37936         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37937         defined, use wctomb instead of wcrtomb.
37938
37939 2010-01-01  Bruno Haible  <bruno@clisp.org>
37940
37941         iconv: Reject native Solaris iconv.
37942         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37943         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37944
37945 2009-12-31  Bruno Haible  <bruno@clisp.org>
37946
37947         * tests/test-signal.c (main): Remove test of 'SIG'.
37948
37949 2009-12-31  Bruno Haible  <bruno@clisp.org>
37950
37951         spawn: Fix incomplete fix.
37952         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37953         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37954         warnings for GNULIB_POSIXCHECK again.
37955         Reported by Eric Blake.
37956
37957 2009-12-31  Bruno Haible  <bruno@clisp.org>
37958
37959         Avoid namespace pollution on glibc systems.
37960         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37961         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37962         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37963         glibc systems.
37964
37965 2009-12-31  Bruno Haible  <bruno@clisp.org>
37966
37967         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37968         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37969         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37970         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37971         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37972         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37973         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37974
37975 2009-12-31  Bruno Haible  <bruno@clisp.org>
37976
37977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37978         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37979         afterwards.
37980
37981 2009-12-31  Bruno Haible  <bruno@clisp.org>
37982
37983         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37984         SYS_UTSNAME_H.
37985
37986 2009-12-31  Bruno Haible  <bruno@clisp.org>
37987
37988         spawn: Fix misapplied patch.
37989         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37990         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37991         warnings for GNULIB_POSIXCHECK.
37992
37993 2009-12-31  Bruno Haible  <bruno@clisp.org>
37994
37995         times: Update after sys_times changed.
37996         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37997         * modules/times (Files): Add it.
37998         (configure.ac): Invoke gl_FUNC_TIMES.
37999
38000 2009-12-31  Bruno Haible  <bruno@clisp.org>
38001
38002         Use AC_C_INLINE where necessary.
38003         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38004         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38005         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38006         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38007         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38008         * m4/mbiter.m4 (gl_MBITER): Likewise.
38009         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38010         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38011         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38012         * modules/u64 (configure.ac): Likewise.
38013
38014 2009-12-31  Bruno Haible  <bruno@clisp.org>
38015
38016         Use AC_C_INLINE instead of module 'inline' where possible.
38017         * modules/inline (Description): Clarify purpose.
38018         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38019         * modules/count-one-bits (Depends-on): Remove inline.
38020         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38021         * modules/openat (Depends-on): Remove inline.
38022         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38023         instead of depending on module 'inline'.
38024         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38025         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38026         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38027         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38028         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38029         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38030         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38031         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38032         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38033         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38034         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38035         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38036         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38037         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38038         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38039         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38040         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38041         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38042         Likewise.
38043         * modules/unictype/property-ascii-hex-digit (Depends-on,
38044         configure.ac): Likewise.
38045         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38046         configure.ac): Likewise.
38047         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38048         configure.ac): Likewise.
38049         * modules/unictype/property-bidi-block-separator (Depends-on,
38050         configure.ac): Likewise.
38051         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38052         configure.ac): Likewise.
38053         * modules/unictype/property-bidi-common-separator (Depends-on,
38054         configure.ac): Likewise.
38055         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38056         Likewise.
38057         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38058         configure.ac): Likewise.
38059         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38060         configure.ac): Likewise.
38061         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38062         configure.ac): Likewise.
38063         * modules/unictype/property-bidi-european-digit (Depends-on,
38064         configure.ac): Likewise.
38065         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38066         configure.ac): Likewise.
38067         * modules/unictype/property-bidi-left-to-right (Depends-on,
38068         configure.ac): Likewise.
38069         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38070         configure.ac): Likewise.
38071         * modules/unictype/property-bidi-other-neutral (Depends-on,
38072         configure.ac): Likewise.
38073         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38074         Likewise.
38075         * modules/unictype/property-bidi-segment-separator (Depends-on,
38076         configure.ac): Likewise.
38077         * modules/unictype/property-bidi-whitespace (Depends-on,
38078         configure.ac): Likewise.
38079         * modules/unictype/property-combining (Depends-on, configure.ac):
38080         Likewise.
38081         * modules/unictype/property-composite (Depends-on, configure.ac):
38082         Likewise.
38083         * modules/unictype/property-currency-symbol (Depends-on,
38084         configure.ac): Likewise.
38085         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38086         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38087         Likewise.
38088         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38089         configure.ac): Likewise.
38090         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38091         Likewise.
38092         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38093         Likewise.
38094         * modules/unictype/property-extender (Depends-on, configure.ac):
38095         Likewise.
38096         * modules/unictype/property-format-control (Depends-on, configure.ac):
38097         Likewise.
38098         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38099         Likewise.
38100         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38101         Likewise.
38102         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38103         Likewise.
38104         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38105         Likewise.
38106         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38107         Likewise.
38108         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38109         Likewise.
38110         * modules/unictype/property-id-start (Depends-on, configure.ac):
38111         Likewise.
38112         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38113         Likewise.
38114         * modules/unictype/property-ids-binary-operator (Depends-on,
38115         configure.ac): Likewise.
38116         * modules/unictype/property-ids-trinary-operator (Depends-on,
38117         configure.ac): Likewise.
38118         * modules/unictype/property-ignorable-control (Depends-on,
38119         configure.ac): Likewise.
38120         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38121         Likewise.
38122         * modules/unictype/property-join-control (Depends-on, configure.ac):
38123         Likewise.
38124         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38125         Likewise.
38126         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38127         Likewise.
38128         * modules/unictype/property-logical-order-exception (Depends-on,
38129         configure.ac): Likewise.
38130         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38131         Likewise.
38132         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38133         * modules/unictype/property-non-break (Depends-on, configure.ac):
38134         Likewise.
38135         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38136         Likewise.
38137         * modules/unictype/property-numeric (Depends-on, configure.ac):
38138         Likewise.
38139         * modules/unictype/property-other-alphabetic (Depends-on,
38140         configure.ac): Likewise.
38141         * modules/unictype/property-other-default-ignorable-code-point
38142         (Depends-on, configure.ac): Likewise.
38143         * modules/unictype/property-other-grapheme-extend (Depends-on,
38144         configure.ac): Likewise.
38145         * modules/unictype/property-other-id-continue (Depends-on,
38146         configure.ac): Likewise.
38147         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38148         Likewise.
38149         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38150         Likewise.
38151         * modules/unictype/property-other-math (Depends-on, configure.ac):
38152         Likewise.
38153         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38154         Likewise.
38155         * modules/unictype/property-paired-punctuation (Depends-on,
38156         configure.ac): Likewise.
38157         * modules/unictype/property-paragraph-separator (Depends-on,
38158         configure.ac): Likewise.
38159         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38160         Likewise.
38161         * modules/unictype/property-pattern-white-space (Depends-on,
38162         configure.ac): Likewise.
38163         * modules/unictype/property-private-use (Depends-on, configure.ac):
38164         Likewise.
38165         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38166         Likewise.
38167         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38168         Likewise.
38169         * modules/unictype/property-radical (Depends-on, configure.ac):
38170         Likewise.
38171         * modules/unictype/property-sentence-terminal (Depends-on,
38172         configure.ac): Likewise.
38173         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38174         Likewise.
38175         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38176         * modules/unictype/property-terminal-punctuation (Depends-on,
38177         configure.ac): Likewise.
38178         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38179         Likewise.
38180         * modules/unictype/property-unassigned-code-value (Depends-on,
38181         configure.ac): Likewise.
38182         * modules/unictype/property-unified-ideograph (Depends-on,
38183         configure.ac): Likewise.
38184         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38185         Likewise.
38186         * modules/unictype/property-variation-selector (Depends-on,
38187         configure.ac): Likewise.
38188         * modules/unictype/property-white-space (Depends-on, configure.ac):
38189         Likewise.
38190         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38191         Likewise.
38192         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38193         Likewise.
38194         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38195         Likewise.
38196         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38197         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38198         Likewise.
38199
38200 2009-12-31  Bruno Haible  <bruno@clisp.org>
38201
38202         Remove unnecessary AC_C_INLINE invocation.
38203         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38204         since 2009-08-21.
38205
38206 2009-12-31  Jim Meyering  <meyering@redhat.com>
38207
38208         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38209         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38210         With this change, we can all remove the gpg_key_ID = ... definition
38211         from our respective cfg.mk files.
38212
38213         maint.mk: create announcement template in ~/, not in /tmp
38214         * top/maint.mk (emit_upload_commands): Adjust.
38215         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38216         Remove temporary file, .ci-msg.
38217
38218 2009-12-31  Eric Blake  <ebb9@byu.net>
38219
38220         link-warning: always build headers with link warnings
38221         * modules/arpa_inet (Makefile.am): Always build replacement
38222         header.
38223         * modules/ctype (Makefile.am): Likewise.
38224         * modules/dirent (Makefile.am): Likewise.
38225         * modules/inttypes (Makefile.am): Likewise.
38226         * modules/langinfo (Makefile.am): Likewise.
38227         * modules/locale (Makefile.am): Likewise.
38228         * modules/spawn (Makefile.am): Likewise.
38229         * modules/sys_file (Makefile.am): Likewise.
38230         * modules/sys_ioctl (Makefile.am): Likewise.
38231         * modules/sys_select (Makefile.am): Likewise.
38232         * modules/sys_socket (Makefile.am): Likewise.
38233         * modules/sys_times (Makefile.am): Likewise.
38234         * modules/sys_utsname (Makefile.am): Likewise.
38235         * modules/sys_wait (Makefile.am): Likewise.
38236         * modules/wchar (Makefile.am): Likewise.
38237         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38238         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38239         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38240         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38241         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38242         Likewise.
38243         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38244         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38245         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38246         Likewise.
38247         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38248         Likewise.
38249         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38250         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38251         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38253         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38254         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38255         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38256         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38257         (gl_WCHAR_H_DEFAULTS): Likewise.
38258
38259 2009-12-31  Eric Blake  <ebb9@byu.net>
38260
38261         signal, spawn: use link warnings
38262         * lib/signal.in.h (sigset_t): Make unconditional.
38263         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38264         (sigpending, sigprocmask, sigaction): Add link warnings.
38265         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38266         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38267         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38268         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38269         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38270         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38271         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38272         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38273         (posix_spawn_file_actions_destroy)
38274         (posix_spawn_file_actions_addopen)
38275         (posix_spawn_file_actions_addclose)
38276         (posix_spawn_file_actions_adddup2): Likewise.
38277         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38278         * tests/test-signal.c (main): Enhance test.
38279
38280         spawn: improve wrapper support
38281         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38282         (gl_SPAWN_H_DEFAULTS): New defaults.
38283         * modules/spawn (Makefile.am): Substitute them.
38284         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38285         Only declare if missing or broken.
38286
38287         sys_times, sys_utsname: use include_next
38288         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38289         header.
38290         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38291         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38292         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38293         * modules/sys_times (Depends-on): Add include_next.
38294         (Makefile.am): Substitute additional values.
38295         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38296         * lib/sys_times.in.h (includes): Include native header, if
38297         available.
38298         * lib/sys_utsname.in.h (includes): Likewise.
38299         * tests/test-sys_times.c (main): Enhance test.
38300
38301         fdutimensat: revert prior patch
38302         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38303         utimens.h.
38304         Reported by Bruno Haible.
38305
38306 2009-12-30  Eric Blake  <ebb9@byu.net>
38307
38308         sys_wait: drop link-warning dependency
38309         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38310         link-warning efforts.
38311         * lib/sys_wait.in.h: Likewise.
38312
38313         fdutimensat: remove bogus dependency
38314         * modules/fdutimensat (Depends-on): Drop inline.
38315
38316         unistd: fix typo
38317         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38318
38319 2009-12-30  Bruno Haible  <bruno@clisp.org>
38320
38321         Fix compilation error with Solaris cc.
38322         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38323         * lib/unicase/u16-is-invariant.c: Likewise.
38324         * lib/unicase/u32-is-invariant.c: Likewise.
38325         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38326
38327 2009-12-30  Bruno Haible  <bruno@clisp.org>
38328
38329         Fix test crash.
38330         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38331         locales.
38332         Reported by Simon Josefsson <simon@josefsson.org>.
38333
38334 2009-12-30  Bruno Haible  <bruno@clisp.org>
38335
38336         Fix compilation error on most platforms.
38337         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38338         Reported by Simon Josefsson <simon@josefsson.org>
38339         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38340
38341 2009-12-30  Eric Blake  <ebb9@byu.net>
38342
38343         futimens, utimensat: work around ntfs-3g bug
38344         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38345         a ctime bug is present, and expand workaround to cover ntfs-3g.
38346         * lib/utimens.c (fdutimens, lutimens): Likewise.
38347         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38348         (validate_timespec): Adjust return value.
38349         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38350         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38351         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38352
38353 2009-12-29  Eric Blake  <ebb9@byu.net>
38354
38355         link-warning: make usage consistent
38356         * modules/ctype (Depends-on): Add link-warning.
38357         (Makefile.am): Update rules accordingly.
38358         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38359         * modules/locale (Depends-on, Makefile.am): Likewise.
38360         * modules/sys_file (Makefile.am): Likewise.
38361         * modules/getopt-posix (Makefile.am): Delete unused link warning
38362         efforts.
38363         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38364         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38365         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38366         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38367
38368         stdio: remove unused variables
38369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38370         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38371         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38372
38373         tests: test more substitute headers
38374         * modules/ctype-tests: New file.
38375         * modules/dirent-tests: Likewise.
38376         * modules/spawn-tests: Likewise.
38377         * modules/sys_file-tests: Likewise.
38378         * modules/sys_ioctl-tests: Likewise.
38379         * modules/sys_wait-tests: Likewise.
38380         * tests/test-ctype.c: Likewise.
38381         * tests/test-dirent.c: Likewise.
38382         * tests/test-spawn.c: Likewise.
38383         * tests/test-sys_file.c: Likewise.
38384         * tests/test-sys_ioctl.c: Likewise.
38385         * tests/test-sys_wait.c: Likewise.
38386         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38387         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38388         whether or not flock is in use.
38389
38390         tests: remove License section from module
38391         * modules/arpa_inet-tests: Remove unneeded section.
38392         * modules/byteswap-tests: Likewise.
38393         * modules/ceilf-tests: Likewise.
38394         * modules/ceill-tests: Likewise.
38395         * modules/crypto/des-tests: Likewise.
38396         * modules/crypto/gc-arcfour-tests: Likewise.
38397         * modules/crypto/gc-arctwo-tests: Likewise.
38398         * modules/crypto/gc-des-tests: Likewise.
38399         * modules/crypto/gc-hmac-md5-tests: Likewise.
38400         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38401         * modules/crypto/gc-md2-tests: Likewise.
38402         * modules/crypto/gc-md4-tests: Likewise.
38403         * modules/crypto/gc-md5-tests: Likewise.
38404         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38405         * modules/crypto/gc-rijndael-tests: Likewise.
38406         * modules/crypto/gc-sha1-tests: Likewise.
38407         * modules/crypto/gc-tests: Likewise.
38408         * modules/crypto/md2-tests: Likewise.
38409         * modules/crypto/md4-tests: Likewise.
38410         * modules/fcntl-h-tests: Likewise.
38411         * modules/floorf-tests: Likewise.
38412         * modules/floorl-tests: Likewise.
38413         * modules/frexp-nolibm-tests: Likewise.
38414         * modules/frexp-tests: Likewise.
38415         * modules/frexpl-nolibm-tests: Likewise.
38416         * modules/frexpl-tests: Likewise.
38417         * modules/getaddrinfo-tests: Likewise.
38418         * modules/inttypes-tests: Likewise.
38419         * modules/isfinite-tests: Likewise.
38420         * modules/isinf-tests: Likewise.
38421         * modules/ldexpl-tests: Likewise.
38422         * modules/locale-tests: Likewise.
38423         * modules/math-tests: Likewise.
38424         * modules/netdb-tests: Likewise.
38425         * modules/netinet_in-tests: Likewise.
38426         * modules/printf-frexp-tests: Likewise.
38427         * modules/printf-frexpl-tests: Likewise.
38428         * modules/priv-set-tests: Likewise.
38429         * modules/random_r-tests: Likewise.
38430         * modules/round-tests: Likewise.
38431         * modules/roundf-tests: Likewise.
38432         * modules/roundl-tests: Likewise.
38433         * modules/search-tests: Likewise.
38434         * modules/select-tests: Likewise.
38435         * modules/signal-tests: Likewise.
38436         * modules/stdbool-tests: Likewise.
38437         * modules/stddef-tests: Likewise.
38438         * modules/stdint-tests: Likewise.
38439         * modules/stdio-tests: Likewise.
38440         * modules/stdlib-tests: Likewise.
38441         * modules/string-tests: Likewise.
38442         * modules/strings-tests: Likewise.
38443         * modules/sys_select-tests: Likewise.
38444         * modules/sys_socket-tests: Likewise.
38445         * modules/sys_stat-tests: Likewise.
38446         * modules/sys_time-tests: Likewise.
38447         * modules/sys_utsname-tests: Likewise.
38448         * modules/sysexits-tests: Likewise.
38449         * modules/time-tests: Likewise.
38450         * modules/trunc-tests: Likewise.
38451         * modules/truncf-tests: Likewise.
38452         * modules/truncl-tests: Likewise.
38453         * modules/tsearch-tests: Likewise.
38454         * modules/unistd-tests: Likewise.
38455         * modules/wchar-tests: Likewise.
38456         * modules/wctype-tests: Likewise.
38457
38458         tests: fix license on several tests
38459         * tests/test-des.c: Update to GPLv3+.
38460         * tests/test-flock.c: Likewise.
38461         * tests/test-fsync.c: Likewise.
38462         * tests/test-futimens.h: Likewise.
38463         * tests/test-gc-arcfour.c: Likewise.
38464         * tests/test-gc-arctwo.c: Likewise.
38465         * tests/test-gc-des.c: Likewise.
38466         * tests/test-gc-hmac-md5.c: Likewise.
38467         * tests/test-gc-hmac-sha1.c: Likewise.
38468         * tests/test-gc-md2.c: Likewise.
38469         * tests/test-gc-md4.c: Likewise.
38470         * tests/test-gc-md5.c: Likewise.
38471         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38472         * tests/test-gc-rijndael.c: Likewise.
38473         * tests/test-gc-sha1.c: Likewise.
38474         * tests/test-gc.c: Likewise.
38475         * tests/test-getcwd.c: Likewise.
38476         * tests/test-link.c: Likewise.
38477         * tests/test-link.h: Likewise.
38478         * tests/test-lutimens.h: Likewise.
38479         * tests/test-md2.c: Likewise.
38480         * tests/test-md4.c: Likewise.
38481         * tests/test-mkdir.h: Likewise.
38482         * tests/test-rename.c: Likewise.
38483         * tests/test-rename.h: Likewise.
38484         * tests/test-safe-alloc.c: Likewise.
38485         * tests/test-utimens-common.h: Likewise.
38486         * tests/test-utimens.h: Likewise.
38487
38488         maint: sync license texts
38489         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38490         * doc/gpl-3.0.texi: Revert copyright year update.
38491         * doc/lgpl-3.0.texi: Likewise.
38492
38493 2009-12-29  Jim Meyering  <meyering@redhat.com>
38494
38495         update nearly all FSF copyright year lists to include 2009
38496         The files named by the following are exempted:
38497             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38498               test -f "$dst" && { echo "$dst"; continue; }
38499               test -d "$dst" || continue
38500               echo "$dst"/$(basename "$src")
38501             done > exempt
38502             git ls-files tests/unictype >> exempt
38503         In the remaining files, convert to all-interval notation if
38504         - there is already at least one year interval like 2000-2003
38505         - the file is maintained by me
38506         - the file is in lib/uni*/, where that style already prevails
38507         Otherwise, use update-copyright's default.
38508
38509 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38510         and Eric Blake  <ebb9@byu.net>
38511
38512         tests: don't require debug system() to pass
38513         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38514         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38515         * tests/test-unlink.h (test_unlink_func): Likewise.
38516         * tests/test-fstatat.c (main): ...into callers.
38517         * tests/test-lstat.c (main): Likewise.
38518         * tests/test-rmdir.c (main): Likewise.
38519         * tests/test-unlink.c (main): Likewise.
38520         * tests/test-unlinkat.c (main): Likewise.
38521         * tests/test-areadlink-with-size.c (main): Don't require a
38522         debug-only system call to pass, aiding cross-testing to mingw.
38523         * tests/test-areadlink.c (main): Likewise.
38524         * tests/test-areadlinkat-with-size.c (main): Likewise.
38525         * tests/test-areadlinkat.c (main): Likewise.
38526         * tests/test-canonicalize-lgpl.c (main): Likewise.
38527         * tests/test-canonicalize.c (main): Likewise.
38528         * tests/test-chown.c (main): Likewise.
38529         * tests/test-fchownat.c (main): Likewise.
38530         * tests/test-lchown.c (main): Likewise.
38531         * tests/test-fdutimensat.c (main): Likewise.
38532         * tests/test-futimens.c (main): Likewise.
38533         * tests/test-link.c (main): Likewise.
38534         * tests/test-linkat.c (main): Likewise.
38535         * tests/test-mkdir.c (main): Likewise.
38536         * tests/test-mkdirat.c (main): Likewise.
38537         * tests/test-mkfifo.c (main): Likewise.
38538         * tests/test-mkfifoat.c (main): Likewise.
38539         * tests/test-mknod.c (main): Likewise.
38540         * tests/test-readlink.c (main): Likewise.
38541         * tests/test-remove.c (main): Likewise.
38542         * tests/test-rename.c (main): Likewise.
38543         * tests/test-renameat.c (main): Likewise.
38544         * tests/test-symlink.c (main): Likewise.
38545         * tests/test-symlinkat.c (main): Likewise.
38546         * tests/test-utimens.c (main): Likewise.
38547         * tests/test-utimensat.c (main): Likewise.
38548
38549 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38550
38551         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38552         on $(UNUSED_PARAMETER_H) to avoid build failure.
38553
38554 2009-12-28  Jim Meyering  <meyering@redhat.com>
38555
38556         update-copyright: you may specify a max. line length other than 72
38557         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38558
38559         maint: use consistent FSF copyright line syntax
38560         * lib/posixtm.c: Add missing comma in FSF copyright line.
38561         * lib/posixtm.h: Likewise.
38562         * lib/getugroups.c: Add missing ", Inc.".
38563
38564         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38565         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38566         FSF copyright line.  Remove trailing blanks.
38567
38568 2009-12-28  Eric Blake  <ebb9@byu.net>
38569
38570         test-dup2: reduce dependencies
38571         * modules/cloexec (Configure.ac): Set witness.
38572         * modules/dup2-tests (Depends-on): Drop cloexec.
38573         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38574         not present.
38575         Suggested by Bruno Haible.
38576
38577 2009-12-26  Bruno Haible  <bruno@clisp.org>
38578
38579         Remove an unneeded dependency.
38580         * modules/fseterr (Depends-on): Remove dup2.
38581
38582 2009-12-26  Eric Blake  <ebb9@byu.net>
38583
38584         tests: use macros.h in more places
38585         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38586         (ASSERT_STREAM): Provide default of stderr.
38587         * tests/test-dirent-safer.c: Include macros.h, using alternate
38588         stream for assertions.
38589         * tests/test-dup-safer.c: Likewise.
38590         * tests/test-freopen-safer.c: Likewise.
38591         * tests/test-getopt.c: Likewise.
38592         * tests/test-openat-safer.c: Likewise.
38593         * tests/test-pipe.c: Likewise.
38594         * tests/test-popen-safer.c: Likewise.
38595         * modules/dirent-safer-tests (Files): Include macros.h.
38596         * modules/unistd-safer-tests (Files): Likewise.
38597         * modules/freopen-safer-tests (Files): Likewise.
38598         * modules/getopt-posix-tests (Files): Likewise.
38599         * modules/openat-safer-tests (Files): Likewise.
38600         * modules/pipe-tests (Files): Likewise.
38601
38602 2009-12-26  Bruno Haible  <bruno@clisp.org>
38603
38604         javacomp: Portability fix.
38605         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38606         that it also works on Solaris.
38607
38608 2009-12-26  Bruno Haible  <bruno@clisp.org>
38609
38610         localename: Fix storage allocation of gl_locale_name_thread's result.
38611         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38612         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38613         all platforms that have 'uselocale'.
38614         (gl_locale_name_thread_unsafe): New function, extracted from
38615         gl_locale_name_thread.
38616         (gl_locale_name_thread): Call struniq on all platforms that have
38617         'uselocale'.
38618         * tests/test-localename.c (test_locale_name_thread): Check that the
38619         resulting strings are permanently allocated.
38620         * modules/localename-tests (Depends-on): Add strdup.
38621
38622 2009-12-26  Bruno Haible  <bruno@clisp.org>
38623
38624         * tests/test-localename.c (categories): Fill in the strings.
38625
38626 2009-12-26  Jim Meyering  <meyering@redhat.com>
38627
38628         isdir: complete the removal of m4/isdir.m4
38629         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38630
38631         isdir: clean up, since at least grep still uses it
38632         * lib/isdir.c: Include "isdir.h".
38633         (S_ISDIR): Remove now-unneeded definition.
38634         * modules/isdir (Files): Add lib/isdir.h.
38635         * lib/isdir.h: New file, with declaration.
38636         * m4/isdir.m4: Remove file -- unneeded.
38637
38638 2009-12-25  Bruno Haible  <bruno@clisp.org>
38639
38640         selinux-h: Make generated .h files standalone.
38641         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38642         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38643         * lib/se-selinux.in.h: Likewise.
38644         * modules/selinux-h (Depends-on): Add unused-parameter.
38645         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38646         selinux/selinux.h and selinux/context.h.
38647         Suggested by Eric Blake.
38648
38649 2009-12-25  Bruno Haible  <bruno@clisp.org>
38650
38651         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38652         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38653         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38654         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38655         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38656
38657 2009-12-24  Bruno Haible  <bruno@clisp.org>
38658
38659         openat: Fix warning.
38660         * lib/openat-proc.c: Include <unistd.h>.
38661
38662 2009-12-24  Bruno Haible  <bruno@clisp.org>
38663
38664         New module 'unused-parameter'.
38665         * build-aux/unused-parameter.h: New file, extracted from earlier
38666         gnulib-common.m4.
38667         * modules/unused-parameter: New file.
38668         * lib/unistr.h: Include unused-parameter.h.
38669         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38670         _GL_UNUSED.
38671         * modules/unistr/base (Depends-on): Add unused-parameter.
38672
38673 2009-12-24  Bruno Haible  <bruno@clisp.org>
38674
38675         Add missing dependencies to 'extensions' module.
38676         * m4/extensions.m4: Add comment.
38677         * modules/accept4 (Depends-on): Add extensions.
38678         * modules/dup3 (Depends-on): Likewise.
38679         * modules/fcntl (Depends-on): Likewise.
38680         * modules/futimens (Depends-on): Likewise.
38681         * modules/mknod (Depends-on): Likewise.
38682         * modules/pipe2 (Depends-on): Likewise.
38683         * modules/stat-time (Depends-on): Likewise.
38684         * modules/strcasestr-simple (Depends-on): Likewise.
38685         * modules/strsignal (Depends-on): Likewise.
38686         * modules/utimensat (Depends-on): Likewise.
38687         * modules/localcharset (Depends-on): Likewise. Needed because of
38688         gl_FCNTL_O_FLAGS.
38689         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38690         AC_TYPE_MBSTATE_T.
38691         * modules/wcsnrtombs (Depends-on): Likewise.
38692         * modules/wcsrtombs (Depends-on): Likewise.
38693
38694 2009-12-24  Bruno Haible  <bruno@clisp.org>
38695
38696         binary-io: Avoid gcc warning due to SET_BINARY.
38697         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38698         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38699
38700 2009-12-24  Bruno Haible  <bruno@clisp.org>
38701
38702         Avoid future namespace pollution on glibc systems.
38703         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38704         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38705         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38706         glibc systems.
38707
38708 2009-12-24  Bruno Haible  <bruno@clisp.org>
38709
38710         Refactor common macros used in tests.
38711         * tests/macros.h: New file.
38712         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38713         and/or <stdlib.h>, if appropriate.
38714         (ASSERT, SIZEOF): Remove macros.
38715         * tests/test-areadlink-with-size.c: Likewise.
38716         * tests/test-areadlinkat.c: Likewise.
38717         * tests/test-areadlinkat-with-size.c: Likewise.
38718         * tests/test-argmatch.c: Likewise.
38719         * tests/test-argv-iter.c: Likewise.
38720         * tests/test-array-mergesort.c: Likewise.
38721         * tests/test-array_list.c: Likewise.
38722         * tests/test-array_oset.c: Likewise.
38723         * tests/test-avltree_list.c: Likewise.
38724         * tests/test-avltree_oset.c: Likewise.
38725         * tests/test-avltreehash_list.c: Likewise.
38726         * tests/test-base64.c: Likewise.
38727         * tests/test-binary-io.c: Likewise.
38728         * tests/test-bitrotate.c: Likewise.
38729         * tests/test-btowc.c: Likewise.
38730         * tests/test-byteswap.c: Likewise.
38731         * tests/test-c-ctype.c: Likewise.
38732         * tests/test-c-stack.c: Likewise.
38733         * tests/test-c-strcasecmp.c: Likewise.
38734         * tests/test-c-strcasestr.c: Likewise.
38735         * tests/test-c-strncasecmp.c: Likewise.
38736         * tests/test-c-strstr.c: Likewise.
38737         * tests/test-canonicalize-lgpl.c: Likewise.
38738         * tests/test-canonicalize.c: Likewise.
38739         * tests/test-carray_list.c: Likewise.
38740         * tests/test-ceilf1.c: Likewise.
38741         * tests/test-ceilf2.c: Likewise.
38742         * tests/test-ceill.c: Likewise.
38743         * tests/test-chown.c: Likewise.
38744         * tests/test-cloexec.c: Likewise.
38745         * tests/test-copy-acl.c: Likewise.
38746         * tests/test-copy-file.c: Likewise.
38747         * tests/test-count-one-bits.c: Likewise.
38748         * tests/test-dprintf-posix.c: Likewise.
38749         * tests/test-dup2.c: Likewise.
38750         * tests/test-dup3.c: Likewise.
38751         * tests/test-duplocale.c: Likewise.
38752         * tests/test-fbufmode.c: Likewise.
38753         * tests/test-fchdir.c: Likewise.
38754         * tests/test-fchownat.c: Likewise.
38755         * tests/test-fcntl-safer.c: Likewise.
38756         * tests/test-fcntl.c: Likewise.
38757         * tests/test-fdopendir.c: Likewise.
38758         * tests/test-fdutimensat.c: Likewise.
38759         * tests/test-fflush2.c: Likewise.
38760         * tests/test-file-has-acl.c: Likewise.
38761         * tests/test-filevercmp.c: Likewise.
38762         * tests/test-flock.c: Likewise.
38763         * tests/test-floorf1.c: Likewise.
38764         * tests/test-floorf2.c: Likewise.
38765         * tests/test-floorl.c: Likewise.
38766         * tests/test-fnmatch.c: Likewise.
38767         * tests/test-fopen.h: Likewise.
38768         * tests/test-fpending.c: Likewise.
38769         * tests/test-fprintf-posix.c: Likewise.
38770         * tests/test-fpurge.c: Likewise.
38771         * tests/test-freadable.c: Likewise.
38772         * tests/test-freadahead.c: Likewise.
38773         * tests/test-freading.c: Likewise.
38774         * tests/test-freadptr.c: Likewise.
38775         * tests/test-freadptr2.c: Likewise.
38776         * tests/test-freadseek.c: Likewise.
38777         * tests/test-freopen.c: Likewise.
38778         * tests/test-frexp.c: Likewise.
38779         * tests/test-frexpl.c: Likewise.
38780         * tests/test-fseek.c: Likewise.
38781         * tests/test-fseeko.c: Likewise.
38782         * tests/test-fstatat.c: Likewise.
38783         * tests/test-fstrcmp.c: Likewise.
38784         * tests/test-fsync.c: Likewise.
38785         * tests/test-ftell.c: Likewise.
38786         * tests/test-ftello.c: Likewise.
38787         * tests/test-func.c: Likewise.
38788         * tests/test-futimens.c: Likewise.
38789         * tests/test-fwritable.c: Likewise.
38790         * tests/test-fwriting.c: Likewise.
38791         * tests/test-getcwd.c: Likewise.
38792         * tests/test-getdate.c: Likewise.
38793         * tests/test-getdelim.c: Likewise.
38794         * tests/test-getdtablesize.c: Likewise.
38795         * tests/test-getgroups.c: Likewise.
38796         * tests/test-getline.c: Likewise.
38797         * tests/test-getndelim2.c: Likewise.
38798         * tests/test-glob.c: Likewise.
38799         * tests/test-hash.c: Likewise.
38800         * tests/test-i-ring.c: Likewise.
38801         * tests/test-iconv-utf.c: Likewise.
38802         * tests/test-iconv.c: Likewise.
38803         * tests/test-idpriv-drop.c: Likewise.
38804         * tests/test-idpriv-droptemp.c: Likewise.
38805         * tests/test-inet_ntop.c: Likewise.
38806         * tests/test-inet_pton.c: Likewise.
38807         * tests/test-isblank.c: Likewise.
38808         * tests/test-isfinite.c: Likewise.
38809         * tests/test-isinf.c: Likewise.
38810         * tests/test-isnan.c: Likewise.
38811         * tests/test-isnand.h: Likewise.
38812         * tests/test-isnanf.h: Likewise.
38813         * tests/test-isnanl.h: Likewise.
38814         * tests/test-lchown.c: Likewise.
38815         * tests/test-ldexpl.c: Likewise.
38816         * tests/test-link.c: Likewise.
38817         * tests/test-linkat.c: Likewise.
38818         * tests/test-linked_list.c: Likewise.
38819         * tests/test-linkedhash_list.c: Likewise.
38820         * tests/test-localename.c: Likewise.
38821         * tests/test-lseek.c: Likewise.
38822         * tests/test-lstat.c: Likewise.
38823         * tests/test-mbmemcasecmp.c: Likewise.
38824         * tests/test-mbmemcasecoll.c: Likewise.
38825         * tests/test-mbrtowc.c: Likewise.
38826         * tests/test-mbscasecmp.c: Likewise.
38827         * tests/test-mbscasestr1.c: Likewise.
38828         * tests/test-mbscasestr2.c: Likewise.
38829         * tests/test-mbscasestr3.c: Likewise.
38830         * tests/test-mbscasestr4.c: Likewise.
38831         * tests/test-mbschr.c: Likewise.
38832         * tests/test-mbscspn.c: Likewise.
38833         * tests/test-mbsinit.c: Likewise.
38834         * tests/test-mbsncasecmp.c: Likewise.
38835         * tests/test-mbsnrtowcs.c: Likewise.
38836         * tests/test-mbspbrk.c: Likewise.
38837         * tests/test-mbspcasecmp.c: Likewise.
38838         * tests/test-mbsrchr.c: Likewise.
38839         * tests/test-mbsrtowcs.c: Likewise.
38840         * tests/test-mbsspn.c: Likewise.
38841         * tests/test-mbsstr1.c: Likewise.
38842         * tests/test-mbsstr2.c: Likewise.
38843         * tests/test-mbsstr3.c: Likewise.
38844         * tests/test-memchr.c: Likewise.
38845         * tests/test-memchr2.c: Likewise.
38846         * tests/test-memcmp.c: Likewise.
38847         * tests/test-memmem.c: Likewise.
38848         * tests/test-memrchr.c: Likewise.
38849         * tests/test-mkdir.c: Likewise.
38850         * tests/test-mkdirat.c: Likewise.
38851         * tests/test-mkfifo.c: Likewise.
38852         * tests/test-mkfifoat.c: Likewise.
38853         * tests/test-mknod.c: Likewise.
38854         * tests/test-nanosleep.c: Likewise.
38855         * tests/test-nl_langinfo.c: Likewise.
38856         * tests/test-obstack-printf.c: Likewise.
38857         * tests/test-open.c: Likewise.
38858         * tests/test-openat.c: Likewise.
38859         * tests/test-pipe-filter-gi1.c: Likewise.
38860         * tests/test-pipe-filter-gi2-main.c: Likewise.
38861         * tests/test-pipe-filter-ii1.c: Likewise.
38862         * tests/test-pipe-filter-ii2-main.c: Likewise.
38863         * tests/test-pipe2.c: Likewise.
38864         * tests/test-popen.h: Likewise.
38865         * tests/test-posixtm.c: Likewise.
38866         * tests/test-pread.c: Likewise.
38867         * tests/test-printf-frexp.c: Likewise.
38868         * tests/test-printf-frexpl.c: Likewise.
38869         * tests/test-printf-posix.c: Likewise.
38870         * tests/test-priv-set.c: Likewise.
38871         * tests/test-quotearg.c: Likewise.
38872         * tests/test-random_r.c: Likewise.
38873         * tests/test-rawmemchr.c: Likewise.
38874         * tests/test-rbtree_list.c: Likewise.
38875         * tests/test-rbtree_oset.c: Likewise.
38876         * tests/test-rbtreehash_list.c: Likewise.
38877         * tests/test-readlink.c: Likewise.
38878         * tests/test-remove.c: Likewise.
38879         * tests/test-rename.c: Likewise.
38880         * tests/test-renameat.c: Likewise.
38881         * tests/test-rmdir.c: Likewise.
38882         * tests/test-round1.c: Likewise.
38883         * tests/test-roundf1.c: Likewise.
38884         * tests/test-roundl.c: Likewise.
38885         * tests/test-safe-alloc.c: Likewise.
38886         * tests/test-sameacls.c: Likewise.
38887         * tests/test-set-mode-acl.c: Likewise.
38888         * tests/test-setenv.c: Likewise.
38889         * tests/test-sigaction.c: Likewise.
38890         * tests/test-signbit.c: Likewise.
38891         * tests/test-sleep.c: Likewise.
38892         * tests/test-snprintf-posix.c: Likewise.
38893         * tests/test-snprintf.c: Likewise.
38894         * tests/test-sprintf-posix.c: Likewise.
38895         * tests/test-stat-time.c: Likewise.
38896         * tests/test-stat.c: Likewise.
38897         * tests/test-strcasestr.c: Likewise.
38898         * tests/test-strchrnul.c: Likewise.
38899         * tests/test-strerror.c: Likewise.
38900         * tests/test-striconv.c: Likewise.
38901         * tests/test-striconveh.c: Likewise.
38902         * tests/test-striconveha.c: Likewise.
38903         * tests/test-strsignal.c: Likewise.
38904         * tests/test-strstr.c: Likewise.
38905         * tests/test-strtod.c: Likewise.
38906         * tests/test-strverscmp.c: Likewise.
38907         * tests/test-symlink.c: Likewise.
38908         * tests/test-symlinkat.c: Likewise.
38909         * tests/test-trunc1.c: Likewise.
38910         * tests/test-trunc2.c: Likewise.
38911         * tests/test-truncf1.c: Likewise.
38912         * tests/test-truncf2.c: Likewise.
38913         * tests/test-truncl.c: Likewise.
38914         * tests/test-uname.c: Likewise.
38915         * tests/test-unlink.c: Likewise.
38916         * tests/test-unlinkat.c: Likewise.
38917         * tests/test-unsetenv.c: Likewise.
38918         * tests/test-usleep.c: Likewise.
38919         * tests/test-utimens.c: Likewise.
38920         * tests/test-utimensat.c: Likewise.
38921         * tests/test-vasnprintf-posix.c: Likewise.
38922         * tests/test-vasnprintf-posix2.c: Likewise.
38923         * tests/test-vasnprintf.c: Likewise.
38924         * tests/test-vasprintf-posix.c: Likewise.
38925         * tests/test-vasprintf.c: Likewise.
38926         * tests/test-vdprintf-posix.c: Likewise.
38927         * tests/test-vfprintf-posix.c: Likewise.
38928         * tests/test-vprintf-posix.c: Likewise.
38929         * tests/test-vsnprintf-posix.c: Likewise.
38930         * tests/test-vsnprintf.c: Likewise.
38931         * tests/test-vsprintf-posix.c: Likewise.
38932         * tests/test-wcrtomb.c: Likewise.
38933         * tests/test-wcsnrtombs.c: Likewise.
38934         * tests/test-wcsrtombs.c: Likewise.
38935         * tests/test-wctype.c: Likewise.
38936         * tests/test-wcwidth.c: Likewise.
38937         * tests/test-xfprintf-posix.c: Likewise.
38938         * tests/test-xmemdup0.c: Likewise.
38939         * tests/test-xprintf-posix.c: Likewise.
38940         * tests/test-xvasprintf.c: Likewise.
38941         * tests/unicase/test-locale-language.c: Likewise.
38942         * tests/unicase/test-mapping-part1.h: Likewise.
38943         * tests/unicase/test-predicate-part1.h: Likewise.
38944         * tests/unicase/test-u8-casecmp.c: Likewise.
38945         * tests/unicase/test-u8-casecoll.c: Likewise.
38946         * tests/unicase/test-u8-casefold.c: Likewise.
38947         * tests/unicase/test-u8-is-cased.c: Likewise.
38948         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38949         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38950         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38951         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38952         * tests/unicase/test-u8-tolower.c: Likewise.
38953         * tests/unicase/test-u8-totitle.c: Likewise.
38954         * tests/unicase/test-u8-toupper.c: Likewise.
38955         * tests/unicase/test-u16-casecmp.c: Likewise.
38956         * tests/unicase/test-u16-casecoll.c: Likewise.
38957         * tests/unicase/test-u16-casefold.c: Likewise.
38958         * tests/unicase/test-u16-is-cased.c: Likewise.
38959         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38960         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38961         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38962         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38963         * tests/unicase/test-u16-tolower.c: Likewise.
38964         * tests/unicase/test-u16-totitle.c: Likewise.
38965         * tests/unicase/test-u16-toupper.c: Likewise.
38966         * tests/unicase/test-u32-casecmp.c: Likewise.
38967         * tests/unicase/test-u32-casecoll.c: Likewise.
38968         * tests/unicase/test-u32-casefold.c: Likewise.
38969         * tests/unicase/test-u32-is-cased.c: Likewise.
38970         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38971         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38972         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38973         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38974         * tests/unicase/test-u32-tolower.c: Likewise.
38975         * tests/unicase/test-u32-totitle.c: Likewise.
38976         * tests/unicase/test-u32-toupper.c: Likewise.
38977         * tests/unicase/test-ulc-casecmp.c: Likewise.
38978         * tests/unicase/test-ulc-casecoll.c: Likewise.
38979         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38980         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38981         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38982         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38983         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38984         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38985         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38986         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38987         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38988         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38989         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38990         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38991         * tests/unictype/test-bidi_byname.c: Likewise.
38992         * tests/unictype/test-bidi_name.c: Likewise.
38993         * tests/unictype/test-bidi_of.c: Likewise.
38994         * tests/unictype/test-bidi_test.c: Likewise.
38995         * tests/unictype/test-block_list.c: Likewise.
38996         * tests/unictype/test-block_of.c: Likewise.
38997         * tests/unictype/test-block_test.c: Likewise.
38998         * tests/unictype/test-categ_and.c: Likewise.
38999         * tests/unictype/test-categ_and_not.c: Likewise.
39000         * tests/unictype/test-categ_byname.c: Likewise.
39001         * tests/unictype/test-categ_name.c: Likewise.
39002         * tests/unictype/test-categ_none.c: Likewise.
39003         * tests/unictype/test-categ_of.c: Likewise.
39004         * tests/unictype/test-categ_or.c: Likewise.
39005         * tests/unictype/test-categ_test_withtable.c: Likewise.
39006         * tests/unictype/test-combining.c: Likewise.
39007         * tests/unictype/test-decdigit.c: Likewise.
39008         * tests/unictype/test-digit.c: Likewise.
39009         * tests/unictype/test-mirror.c: Likewise.
39010         * tests/unictype/test-numeric.c: Likewise.
39011         * tests/unictype/test-pr_byname.c: Likewise.
39012         * tests/unictype/test-pr_test.c: Likewise.
39013         * tests/unictype/test-predicate-part1.h: Likewise.
39014         * tests/unictype/test-scripts.c: Likewise.
39015         * tests/unictype/test-sy_c_ident.c: Likewise.
39016         * tests/unictype/test-sy_java_ident.c: Likewise.
39017         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39018         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39019         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39020         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39021         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39022         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39023         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39024         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39025         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39026         * tests/uninorm/test-compat-decomposition.c: Likewise.
39027         * tests/uninorm/test-composition.c: Likewise.
39028         * tests/uninorm/test-decomposing-form.c: Likewise.
39029         * tests/uninorm/test-decomposition.c: Likewise.
39030         * tests/uninorm/test-u8-nfc.c: Likewise.
39031         * tests/uninorm/test-u8-nfd.c: Likewise.
39032         * tests/uninorm/test-u8-nfkc.c: Likewise.
39033         * tests/uninorm/test-u8-nfkd.c: Likewise.
39034         * tests/uninorm/test-u8-normcmp.c: Likewise.
39035         * tests/uninorm/test-u8-normcoll.c: Likewise.
39036         * tests/uninorm/test-u16-nfc.c: Likewise.
39037         * tests/uninorm/test-u16-nfd.c: Likewise.
39038         * tests/uninorm/test-u16-nfkc.c: Likewise.
39039         * tests/uninorm/test-u16-nfkd.c: Likewise.
39040         * tests/uninorm/test-u16-normcmp.c: Likewise.
39041         * tests/uninorm/test-u16-normcoll.c: Likewise.
39042         * tests/uninorm/test-u32-nfc.c: Likewise.
39043         * tests/uninorm/test-u32-nfd.c: Likewise.
39044         * tests/uninorm/test-u32-nfkc.c: Likewise.
39045         * tests/uninorm/test-u32-nfkd.c: Likewise.
39046         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39047         * tests/uninorm/test-u32-normcmp.c: Likewise.
39048         * tests/uninorm/test-u32-normcoll.c: Likewise.
39049         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39050         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39051         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39052         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39053         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39054         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39055         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39056         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39057         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39058         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39059         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39060         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39061         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39062         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39063         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39064         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39065         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39066         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39067         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39068         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39069         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39070         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39071         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39072         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39073         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39074         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39075         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39076         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39077         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39078         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39079         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39080         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39081         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39082         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39083         * tests/uniwidth/test-u8-width.c: Likewise.
39084         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39085         * tests/uniwidth/test-u16-width.c: Likewise.
39086         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39087         * tests/uniwidth/test-u32-width.c: Likewise.
39088         * tests/uniwidth/test-uc_width.c: Likewise.
39089         * tests/uniwidth/test-uc_width2.c: Likewise.
39090         * modules/acl-tests (Files): Add tests/macros.h.
39091         * modules/areadlink-tests (Files): Likewise.
39092         * modules/areadlink-with-size-tests (Files): Likewise.
39093         * modules/areadlinkat-tests (Files): Likewise.
39094         * modules/areadlinkat-with-size-tests (Files): Likewise.
39095         * modules/argmatch-tests (Files): Likewise.
39096         * modules/argv-iter-tests (Files): Likewise.
39097         * modules/array-list-tests (Files): Likewise.
39098         * modules/array-mergesort-tests (Files): Likewise.
39099         * modules/array-oset-tests (Files): Likewise.
39100         * modules/avltree-list-tests (Files): Likewise.
39101         * modules/avltree-oset-tests (Files): Likewise.
39102         * modules/avltreehash-list-tests (Files): Likewise.
39103         * modules/base64-tests (Files): Likewise.
39104         * modules/binary-io-tests (Files): Likewise.
39105         * modules/bitrotate-tests (Files): Likewise.
39106         * modules/btowc-tests (Files): Likewise.
39107         * modules/byteswap-tests (Files): Likewise.
39108         * modules/c-ctype-tests (Files): Likewise.
39109         * modules/c-stack-tests (Files): Likewise.
39110         * modules/c-strcase-tests (Files): Likewise.
39111         * modules/c-strcasestr-tests (Files): Likewise.
39112         * modules/c-strstr-tests (Files): Likewise.
39113         * modules/canonicalize-lgpl-tests (Files): Likewise.
39114         * modules/canonicalize-tests (Files): Likewise.
39115         * modules/carray-list-tests (Files): Likewise.
39116         * modules/ceilf-tests (Files): Likewise.
39117         * modules/ceill-tests (Files): Likewise.
39118         * modules/chown-tests (Files): Likewise.
39119         * modules/cloexec-tests (Files): Likewise.
39120         * modules/copy-file-tests (Files): Likewise.
39121         * modules/count-one-bits-tests (Files): Likewise.
39122         * modules/dprintf-posix-tests (Files): Likewise.
39123         * modules/dup2-tests (Files): Likewise.
39124         * modules/dup3-tests (Files): Likewise.
39125         * modules/duplocale-tests (Files): Likewise.
39126         * modules/fbufmode-tests (Files): Likewise.
39127         * modules/fchdir-tests (Files): Likewise.
39128         * modules/fcntl-safer-tests (Files): Likewise.
39129         * modules/fcntl-tests (Files): Likewise.
39130         * modules/fdopendir-tests (Files): Likewise.
39131         * modules/fdutimensat-tests (Files): Likewise.
39132         * modules/fflush-tests (Files): Likewise.
39133         * modules/filevercmp-tests (Files): Likewise.
39134         * modules/flock-tests (Files): Likewise.
39135         * modules/floorf-tests (Files): Likewise.
39136         * modules/floorl-tests (Files): Likewise.
39137         * modules/fnmatch-tests (Files): Likewise.
39138         * modules/fopen-safer-tests (Files): Likewise.
39139         * modules/fopen-tests (Files): Likewise.
39140         * modules/fpending-tests (Files): Likewise.
39141         * modules/fprintf-posix-tests (Files): Likewise.
39142         * modules/fpurge-tests (Files): Likewise.
39143         * modules/freadable-tests (Files): Likewise.
39144         * modules/freadahead-tests (Files): Likewise.
39145         * modules/freading-tests (Files): Likewise.
39146         * modules/freadptr-tests (Files): Likewise.
39147         * modules/freadseek-tests (Files): Likewise.
39148         * modules/freopen-tests (Files): Likewise.
39149         * modules/frexp-nolibm-tests (Files): Likewise.
39150         * modules/frexp-tests (Files): Likewise.
39151         * modules/frexpl-nolibm-tests (Files): Likewise.
39152         * modules/frexpl-tests (Files): Likewise.
39153         * modules/fseek-tests (Files): Likewise.
39154         * modules/fseeko-tests (Files): Likewise.
39155         * modules/fstrcmp-tests (Files): Likewise.
39156         * modules/fsync-tests (Files): Likewise.
39157         * modules/ftell-tests (Files): Likewise.
39158         * modules/ftello-tests (Files): Likewise.
39159         * modules/func-tests (Files): Likewise.
39160         * modules/futimens-tests (Files): Likewise.
39161         * modules/fwritable-tests (Files): Likewise.
39162         * modules/fwriting-tests (Files): Likewise.
39163         * modules/getcwd-tests (Files): Likewise.
39164         * modules/getdate-tests (Files): Likewise.
39165         * modules/getdelim-tests (Files): Likewise.
39166         * modules/getdtablesize-tests (Files): Likewise.
39167         * modules/getgroups-tests (Files): Likewise.
39168         * modules/getline-tests (Files): Likewise.
39169         * modules/getndelim2-tests (Files): Likewise.
39170         * modules/glob-tests (Files): Likewise.
39171         * modules/hash-tests (Files): Likewise.
39172         * modules/i-ring-tests (Files): Likewise.
39173         * modules/iconv-tests (Files): Likewise.
39174         * modules/iconv_open-utf-tests (Files): Likewise.
39175         * modules/idpriv-drop-tests (Files): Likewise.
39176         * modules/idpriv-droptemp-tests (Files): Likewise.
39177         * modules/inet_ntop-tests (Files): Likewise.
39178         * modules/inet_pton-tests (Files): Likewise.
39179         * modules/isblank-tests (Files): Likewise.
39180         * modules/isfinite-tests (Files): Likewise.
39181         * modules/isinf-tests (Files): Likewise.
39182         * modules/isnan-tests (Files): Likewise.
39183         * modules/isnand-nolibm-tests (Files): Likewise.
39184         * modules/isnand-tests (Files): Likewise.
39185         * modules/isnanf-nolibm-tests (Files): Likewise.
39186         * modules/isnanf-tests (Files): Likewise.
39187         * modules/isnanl-nolibm-tests (Files): Likewise.
39188         * modules/isnanl-tests (Files): Likewise.
39189         * modules/lchown-tests (Files): Likewise.
39190         * modules/ldexpl-tests (Files): Likewise.
39191         * modules/link-tests (Files): Likewise.
39192         * modules/linkat-tests (Files): Likewise.
39193         * modules/linked-list-tests (Files): Likewise.
39194         * modules/linkedhash-list-tests (Files): Likewise.
39195         * modules/localename-tests (Files): Likewise.
39196         * modules/lseek-tests (Files): Likewise.
39197         * modules/lstat-tests (Files): Likewise.
39198         * modules/mbmemcasecmp-tests (Files): Likewise.
39199         * modules/mbmemcasecoll-tests (Files): Likewise.
39200         * modules/mbrtowc-tests (Files): Likewise.
39201         * modules/mbscasecmp-tests (Files): Likewise.
39202         * modules/mbscasestr-tests (Files): Likewise.
39203         * modules/mbschr-tests (Files): Likewise.
39204         * modules/mbscspn-tests (Files): Likewise.
39205         * modules/mbsinit-tests (Files): Likewise.
39206         * modules/mbsncasecmp-tests (Files): Likewise.
39207         * modules/mbsnrtowcs-tests (Files): Likewise.
39208         * modules/mbspbrk-tests (Files): Likewise.
39209         * modules/mbspcasecmp-tests (Files): Likewise.
39210         * modules/mbsrchr-tests (Files): Likewise.
39211         * modules/mbsrtowcs-tests (Files): Likewise.
39212         * modules/mbsspn-tests (Files): Likewise.
39213         * modules/mbsstr-tests (Files): Likewise.
39214         * modules/memchr-tests (Files): Likewise.
39215         * modules/memchr2-tests (Files): Likewise.
39216         * modules/memcmp-tests (Files): Likewise.
39217         * modules/memmem-tests (Files): Likewise.
39218         * modules/memrchr-tests (Files): Likewise.
39219         * modules/mkdir-tests (Files): Likewise.
39220         * modules/mkfifo-tests (Files): Likewise.
39221         * modules/mkfifoat-tests (Files): Likewise.
39222         * modules/mknod-tests (Files): Likewise.
39223         * modules/nanosleep-tests (Files): Likewise.
39224         * modules/nl_langinfo-tests (Files): Likewise.
39225         * modules/obstack-printf-tests (Files): Likewise.
39226         * modules/open-tests (Files): Likewise.
39227         * modules/openat-tests (Files): Likewise.
39228         * modules/pipe-filter-gi-tests (Files): Likewise.
39229         * modules/pipe-filter-ii-tests (Files): Likewise.
39230         * modules/pipe2-tests (Files): Likewise.
39231         * modules/popen-safer-tests (Files): Likewise.
39232         * modules/popen-tests (Files): Likewise.
39233         * modules/posixtm-tests (Files): Likewise.
39234         * modules/pread-tests (Files): Likewise.
39235         * modules/printf-frexp-tests (Files): Likewise.
39236         * modules/printf-frexpl-tests (Files): Likewise.
39237         * modules/printf-posix-tests (Files): Likewise.
39238         * modules/priv-set-tests (Files): Likewise.
39239         * modules/quotearg-tests (Files): Likewise.
39240         * modules/random_r-tests (Files): Likewise.
39241         * modules/rawmemchr-tests (Files): Likewise.
39242         * modules/rbtree-list-tests (Files): Likewise.
39243         * modules/rbtree-oset-tests (Files): Likewise.
39244         * modules/rbtreehash-list-tests (Files): Likewise.
39245         * modules/readlink-tests (Files): Likewise.
39246         * modules/remove-tests (Files): Likewise.
39247         * modules/rename-tests (Files): Likewise.
39248         * modules/renameat-tests (Files): Likewise.
39249         * modules/rmdir-tests (Files): Likewise.
39250         * modules/round-tests (Files): Likewise.
39251         * modules/roundf-tests (Files): Likewise.
39252         * modules/roundl-tests (Files): Likewise.
39253         * modules/safe-alloc-tests (Files): Likewise.
39254         * modules/setenv-tests (Files): Likewise.
39255         * modules/sigaction-tests (Files): Likewise.
39256         * modules/signbit-tests (Files): Likewise.
39257         * modules/sleep-tests (Files): Likewise.
39258         * modules/snprintf-posix-tests (Files): Likewise.
39259         * modules/snprintf-tests (Files): Likewise.
39260         * modules/sprintf-posix-tests (Files): Likewise.
39261         * modules/stat-tests (Files): Likewise.
39262         * modules/stat-time-tests (Files): Likewise.
39263         * modules/strcasestr-tests (Files): Likewise.
39264         * modules/strchrnul-tests (Files): Likewise.
39265         * modules/strerror-tests (Files): Likewise.
39266         * modules/striconv-tests (Files): Likewise.
39267         * modules/striconveh-tests (Files): Likewise.
39268         * modules/striconveha-tests (Files): Likewise.
39269         * modules/strsignal-tests (Files): Likewise.
39270         * modules/strstr-tests (Files): Likewise.
39271         * modules/strtod-tests (Files): Likewise.
39272         * modules/strverscmp-tests (Files): Likewise.
39273         * modules/symlink-tests (Files): Likewise.
39274         * modules/symlinkat-tests (Files): Likewise.
39275         * modules/trunc-tests (Files): Likewise.
39276         * modules/truncf-tests (Files): Likewise.
39277         * modules/truncl-tests (Files): Likewise.
39278         * modules/uname-tests (Files): Likewise.
39279         * modules/unicase/cased-tests (Files): Likewise.
39280         * modules/unicase/ignorable-tests (Files): Likewise.
39281         * modules/unicase/locale-language-tests (Files): Likewise.
39282         * modules/unicase/tolower-tests (Files): Likewise.
39283         * modules/unicase/totitle-tests (Files): Likewise.
39284         * modules/unicase/toupper-tests (Files): Likewise.
39285         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39286         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39287         * modules/unicase/u8-casefold-tests (Files): Likewise.
39288         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39289         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39290         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39291         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39292         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39293         * modules/unicase/u8-tolower-tests (Files): Likewise.
39294         * modules/unicase/u8-totitle-tests (Files): Likewise.
39295         * modules/unicase/u8-toupper-tests (Files): Likewise.
39296         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39297         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39298         * modules/unicase/u16-casefold-tests (Files): Likewise.
39299         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39300         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39301         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39302         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39303         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39304         * modules/unicase/u16-tolower-tests (Files): Likewise.
39305         * modules/unicase/u16-totitle-tests (Files): Likewise.
39306         * modules/unicase/u16-toupper-tests (Files): Likewise.
39307         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39308         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39309         * modules/unicase/u32-casefold-tests (Files): Likewise.
39310         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39311         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39312         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39313         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39314         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39315         * modules/unicase/u32-tolower-tests (Files): Likewise.
39316         * modules/unicase/u32-totitle-tests (Files): Likewise.
39317         * modules/unicase/u32-toupper-tests (Files): Likewise.
39318         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39319         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39320         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39321         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39322         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39323         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39324         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39325         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39326         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39327         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39328         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39329         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39330         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39331         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39332         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39333         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39334         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39335         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39336         * modules/unictype/block-list-tests (Files): Likewise.
39337         * modules/unictype/block-of-tests (Files): Likewise.
39338         * modules/unictype/block-test-tests (Files): Likewise.
39339         * modules/unictype/category-C-tests (Files): Likewise.
39340         * modules/unictype/category-Cc-tests (Files): Likewise.
39341         * modules/unictype/category-Cf-tests (Files): Likewise.
39342         * modules/unictype/category-Cn-tests (Files): Likewise.
39343         * modules/unictype/category-Co-tests (Files): Likewise.
39344         * modules/unictype/category-Cs-tests (Files): Likewise.
39345         * modules/unictype/category-L-tests (Files): Likewise.
39346         * modules/unictype/category-Ll-tests (Files): Likewise.
39347         * modules/unictype/category-Lm-tests (Files): Likewise.
39348         * modules/unictype/category-Lo-tests (Files): Likewise.
39349         * modules/unictype/category-Lt-tests (Files): Likewise.
39350         * modules/unictype/category-Lu-tests (Files): Likewise.
39351         * modules/unictype/category-M-tests (Files): Likewise.
39352         * modules/unictype/category-Mc-tests (Files): Likewise.
39353         * modules/unictype/category-Me-tests (Files): Likewise.
39354         * modules/unictype/category-Mn-tests (Files): Likewise.
39355         * modules/unictype/category-N-tests (Files): Likewise.
39356         * modules/unictype/category-Nd-tests (Files): Likewise.
39357         * modules/unictype/category-Nl-tests (Files): Likewise.
39358         * modules/unictype/category-No-tests (Files): Likewise.
39359         * modules/unictype/category-P-tests (Files): Likewise.
39360         * modules/unictype/category-Pc-tests (Files): Likewise.
39361         * modules/unictype/category-Pd-tests (Files): Likewise.
39362         * modules/unictype/category-Pe-tests (Files): Likewise.
39363         * modules/unictype/category-Pf-tests (Files): Likewise.
39364         * modules/unictype/category-Pi-tests (Files): Likewise.
39365         * modules/unictype/category-Po-tests (Files): Likewise.
39366         * modules/unictype/category-Ps-tests (Files): Likewise.
39367         * modules/unictype/category-S-tests (Files): Likewise.
39368         * modules/unictype/category-Sc-tests (Files): Likewise.
39369         * modules/unictype/category-Sk-tests (Files): Likewise.
39370         * modules/unictype/category-Sm-tests (Files): Likewise.
39371         * modules/unictype/category-So-tests (Files): Likewise.
39372         * modules/unictype/category-Z-tests (Files): Likewise.
39373         * modules/unictype/category-Zl-tests (Files): Likewise.
39374         * modules/unictype/category-Zp-tests (Files): Likewise.
39375         * modules/unictype/category-Zs-tests (Files): Likewise.
39376         * modules/unictype/category-and-not-tests (Files): Likewise.
39377         * modules/unictype/category-and-tests (Files): Likewise.
39378         * modules/unictype/category-byname-tests (Files): Likewise.
39379         * modules/unictype/category-name-tests (Files): Likewise.
39380         * modules/unictype/category-none-tests (Files): Likewise.
39381         * modules/unictype/category-of-tests (Files): Likewise.
39382         * modules/unictype/category-or-tests (Files): Likewise.
39383         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39384         * modules/unictype/combining-class-tests (Files): Likewise.
39385         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39386         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39387         * modules/unictype/ctype-blank-tests (Files): Likewise.
39388         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39389         * modules/unictype/ctype-digit-tests (Files): Likewise.
39390         * modules/unictype/ctype-graph-tests (Files): Likewise.
39391         * modules/unictype/ctype-lower-tests (Files): Likewise.
39392         * modules/unictype/ctype-print-tests (Files): Likewise.
39393         * modules/unictype/ctype-punct-tests (Files): Likewise.
39394         * modules/unictype/ctype-space-tests (Files): Likewise.
39395         * modules/unictype/ctype-upper-tests (Files): Likewise.
39396         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39397         * modules/unictype/decimal-digit-tests (Files): Likewise.
39398         * modules/unictype/digit-tests (Files): Likewise.
39399         * modules/unictype/mirror-tests (Files): Likewise.
39400         * modules/unictype/numeric-tests (Files): Likewise.
39401         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39402         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39403         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39404         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39405         Likewise.
39406         * modules/unictype/property-bidi-block-separator-tests (Files):
39407         Likewise.
39408         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39409         Likewise.
39410         * modules/unictype/property-bidi-common-separator-tests (Files):
39411         Likewise.
39412         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39413         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39414         Likewise.
39415         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39416         Likewise.
39417         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39418         Likewise.
39419         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39420         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39421         Likewise.
39422         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39423         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39424         Likewise.
39425         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39426         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39427         * modules/unictype/property-bidi-segment-separator-tests (Files):
39428         Likewise.
39429         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39430         * modules/unictype/property-byname-tests (Files): Likewise.
39431         * modules/unictype/property-combining-tests (Files): Likewise.
39432         * modules/unictype/property-composite-tests (Files): Likewise.
39433         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39434         * modules/unictype/property-dash-tests (Files): Likewise.
39435         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39436         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39437         Likewise.
39438         * modules/unictype/property-deprecated-tests (Files): Likewise.
39439         * modules/unictype/property-diacritic-tests (Files): Likewise.
39440         * modules/unictype/property-extender-tests (Files): Likewise.
39441         * modules/unictype/property-format-control-tests (Files): Likewise.
39442         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39443         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39444         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39445         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39446         * modules/unictype/property-hyphen-tests (Files): Likewise.
39447         * modules/unictype/property-id-continue-tests (Files): Likewise.
39448         * modules/unictype/property-id-start-tests (Files): Likewise.
39449         * modules/unictype/property-ideographic-tests (Files): Likewise.
39450         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39451         * modules/unictype/property-ids-trinary-operator-tests (Files):
39452         Likewise.
39453         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39454         * modules/unictype/property-iso-control-tests (Files): Likewise.
39455         * modules/unictype/property-join-control-tests (Files): Likewise.
39456         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39457         * modules/unictype/property-line-separator-tests (Files): Likewise.
39458         * modules/unictype/property-logical-order-exception-tests (Files):
39459         Likewise.
39460         * modules/unictype/property-lowercase-tests (Files): Likewise.
39461         * modules/unictype/property-math-tests (Files): Likewise.
39462         * modules/unictype/property-non-break-tests (Files): Likewise.
39463         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39464         * modules/unictype/property-numeric-tests (Files): Likewise.
39465         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39466         * modules/unictype/property-other-default-ignorable-code-point-tests
39467         (Files): Likewise.
39468         * modules/unictype/property-other-grapheme-extend-tests (Files):
39469         Likewise.
39470         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39471         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39472         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39473         * modules/unictype/property-other-math-tests (Files): Likewise.
39474         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39475         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39476         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39477         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39478         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39479         * modules/unictype/property-private-use-tests (Files): Likewise.
39480         * modules/unictype/property-punctuation-tests (Files): Likewise.
39481         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39482         * modules/unictype/property-radical-tests (Files): Likewise.
39483         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39484         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39485         * modules/unictype/property-space-tests (Files): Likewise.
39486         * modules/unictype/property-terminal-punctuation-tests (Files):
39487         Likewise.
39488         * modules/unictype/property-test-tests (Files): Likewise.
39489         * modules/unictype/property-titlecase-tests (Files): Likewise.
39490         * modules/unictype/property-unassigned-code-value-tests (Files):
39491         Likewise.
39492         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39493         * modules/unictype/property-uppercase-tests (Files): Likewise.
39494         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39495         * modules/unictype/property-white-space-tests (Files): Likewise.
39496         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39497         * modules/unictype/property-xid-start-tests (Files): Likewise.
39498         * modules/unictype/property-zero-width-tests (Files): Likewise.
39499         * modules/unictype/scripts-tests (Files): Likewise.
39500         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39501         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39502         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39503         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39504         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39505         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39506         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39507         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39508         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39509         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39510         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39511         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39512         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39513         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39514         * modules/uninorm/composition-tests (Files): Likewise.
39515         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39516         * modules/uninorm/decomposition-tests (Files): Likewise.
39517         * modules/uninorm/filter-tests (Files): Likewise.
39518         * modules/uninorm/nfc-tests (Files): Likewise.
39519         * modules/uninorm/nfd-tests (Files): Likewise.
39520         * modules/uninorm/nfkc-tests (Files): Likewise.
39521         * modules/uninorm/nfkd-tests (Files): Likewise.
39522         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39523         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39524         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39525         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39526         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39527         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39528         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39529         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39530         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39531         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39532         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39533         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39534         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39535         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39536         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39537         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39538         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39539         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39540         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39541         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39542         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39543         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39544         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39545         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39546         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39547         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39548         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39549         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39550         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39551         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39552         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39553         * modules/uniwidth/u8-width-tests (Files): Likewise.
39554         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39555         * modules/uniwidth/u16-width-tests (Files): Likewise.
39556         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39557         * modules/uniwidth/u32-width-tests (Files): Likewise.
39558         * modules/uniwidth/width-tests (Files): Likewise.
39559         * modules/unlink-tests (Files): Likewise.
39560         * modules/unsetenv-tests (Files): Likewise.
39561         * modules/usleep-tests (Files): Likewise.
39562         * modules/utimens-tests (Files): Likewise.
39563         * modules/utimensat-tests (Files): Likewise.
39564         * modules/vasnprintf-posix-tests (Files): Likewise.
39565         * modules/vasnprintf-tests (Files): Likewise.
39566         * modules/vasprintf-posix-tests (Files): Likewise.
39567         * modules/vasprintf-tests (Files): Likewise.
39568         * modules/vdprintf-posix-tests (Files): Likewise.
39569         * modules/vfprintf-posix-tests (Files): Likewise.
39570         * modules/vprintf-posix-tests (Files): Likewise.
39571         * modules/vsnprintf-posix-tests (Files): Likewise.
39572         * modules/vsnprintf-tests (Files): Likewise.
39573         * modules/vsprintf-posix-tests (Files): Likewise.
39574         * modules/wcrtomb-tests (Files): Likewise.
39575         * modules/wcsnrtombs-tests (Files): Likewise.
39576         * modules/wcsrtombs-tests (Files): Likewise.
39577         * modules/wctype-tests (Files): Likewise.
39578         * modules/wcwidth-tests (Files): Likewise.
39579         * modules/xmemdup0-tests (Files): Likewise.
39580         * modules/xprintf-posix-tests (Files): Likewise.
39581         * modules/xvasprintf-tests (Files): Likewise.
39582
39583 2009-12-24  Eric Blake  <ebb9@byu.net>
39584
39585         test-nanosleep: fix typo
39586         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39587         patch.
39588         Reported by Bruno Haible.
39589
39590 2009-12-24  Bruno Haible  <bruno@clisp.org>
39591
39592         Reduce namespace pollution on glibc systems.
39593         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39594         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39595         systems.
39596         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39597         <getopt.h> on glibc systems.
39598         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39599         systems.
39600         * lib/fcntl.c: Include <unistd.h> here instead.
39601
39602 2009-12-24  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39605
39606 2009-12-24  Eric Blake  <ebb9@byu.net>
39607
39608         tests: add signature checks
39609         * tests/signature.h (SIGNATURE_CHECK): New file.
39610         * modules/atexit-tests (Files): Use it.
39611         * modules/btowc-tests (Files): Likewise.
39612         * modules/canonicalize-lgpl-tests (Files): Likewise.
39613         * modules/ceilf-tests (Files): Likewise.
39614         * modules/ceill-tests (Files): Likewise.
39615         * modules/chown-tests (Files): Likewise.
39616         * modules/dprintf-posix-tests (Files): Likewise.
39617         * modules/dup2-tests (Files): Likewise.
39618         * modules/dup3-tests (Files): Likewise.
39619         * modules/duplocale-tests (Files): Likewise.
39620         * modules/fchdir-tests (Files): Likewise.
39621         * modules/fcntl-tests (Files): Likewise.
39622         * modules/fdopendir-tests (Files): Likewise.
39623         * modules/fflush-tests (Files): Likewise.
39624         * modules/flock-tests (Files): Likewise.
39625         * modules/floorf-tests (Files): Likewise.
39626         * modules/floorl-tests (Files): Likewise.
39627         * modules/fnmatch-tests (Files): Likewise.
39628         * modules/fopen-tests (Files): Likewise.
39629         * modules/fprintf-posix-tests (Files): Likewise.
39630         * modules/freopen-tests (Files): Likewise.
39631         * modules/frexp-nolibm-tests (Files): Likewise.
39632         * modules/frexp-tests (Files): Likewise.
39633         * modules/frexpl-nolibm-tests (Files): Likewise.
39634         * modules/frexpl-tests (Files): Likewise.
39635         * modules/fseek-tests (Files): Likewise.
39636         * modules/fseeko-tests (Files): Likewise.
39637         * modules/fsync-tests (Files): Likewise.
39638         * modules/ftell-tests (Files): Likewise.
39639         * modules/ftello-tests (Files): Likewise.
39640         * modules/futimens-tests (Files): Likewise.
39641         * modules/getaddrinfo-tests (Files): Likewise.
39642         * modules/getcwd-tests (Files): Likewise.
39643         * modules/getdelim-tests (Files): Likewise.
39644         * modules/getdtablesize-tests (Files): Likewise.
39645         * modules/getgroups-tests (Files): Likewise.
39646         * modules/gethostname-tests (Files): Likewise.
39647         * modules/getline-tests (Files): Likewise.
39648         * modules/getopt-posix-tests (Files): Likewise.
39649         * modules/gettimeofday-tests (Files): Likewise.
39650         * modules/glob-tests (Files): Likewise.
39651         * modules/iconv-tests (Files): Likewise.
39652         * modules/inet_ntop-tests (Files): Likewise.
39653         * modules/inet_pton-tests (Files): Likewise.
39654         * modules/isblank-tests (Files): Likewise.
39655         * modules/lchown-tests (Files): Likewise.
39656         * modules/ldexpl-tests (Files): Likewise.
39657         * modules/link-tests (Files): Likewise.
39658         * modules/linkat-tests (Files): Likewise.
39659         * modules/lseek-tests (Files): Likewise.
39660         * modules/lstat-tests (Files): Likewise.
39661         * modules/mbrtowc-tests (Files): Likewise.
39662         * modules/mbsinit-tests (Files): Likewise.
39663         * modules/mbsnrtowcs-tests (Files): Likewise.
39664         * modules/mbsrtowcs-tests (Files): Likewise.
39665         * modules/memchr-tests (Files): Likewise.
39666         * modules/memcmp-tests (Files): Likewise.
39667         * modules/memmem-tests (Files): Likewise.
39668         * modules/memrchr-tests (Files): Likewise.
39669         * modules/mkdir-tests (Files): Likewise.
39670         * modules/mkfifo-tests (Files): Likewise.
39671         * modules/mkfifoat-tests (Files): Likewise.
39672         * modules/mknod-tests (Files): Likewise.
39673         * modules/nanosleep-tests (Files): Likewise.
39674         * modules/nl_langinfo-tests (Files): Likewise.
39675         * modules/obstack-printf-tests (Files): Likewise.
39676         * modules/open-tests (Files): Likewise.
39677         * modules/openat-tests (Files): Likewise.
39678         * modules/perror-tests (Files): Likewise.
39679         * modules/pipe2-tests (Files): Likewise.
39680         * modules/poll-tests (Files): Likewise.
39681         * modules/popen-tests (Files): Likewise.
39682         * modules/posix_spawn-tests (Files): Likewise.
39683         * modules/posix_spawnp-tests (Files): Likewise.
39684         * modules/pread-tests (Files): Likewise.
39685         * modules/printf-posix-tests (Files): Likewise.
39686         * modules/pty-tests (Files): Likewise.
39687         * modules/random_r-tests (Files): Likewise.
39688         * modules/rawmemchr-tests (Files): Likewise.
39689         * modules/readlink-tests (Files): Likewise.
39690         * modules/remove-tests (Files): Likewise.
39691         * modules/rename-tests (Files): Likewise.
39692         * modules/renameat-tests (Files): Likewise.
39693         * modules/rmdir-tests (Files): Likewise.
39694         * modules/round-tests (Files): Likewise.
39695         * modules/roundf-tests (Files): Likewise.
39696         * modules/roundl-tests (Files): Likewise.
39697         * modules/select-tests (Files): Likewise.
39698         * modules/setenv-tests (Files): Likewise.
39699         * modules/sigaction-tests (Files): Likewise.
39700         * modules/sleep-tests (Files): Likewise.
39701         * modules/snprintf-posix-tests (Files): Likewise.
39702         * modules/snprintf-tests (Files): Likewise.
39703         * modules/sprintf-posix-tests (Files): Likewise.
39704         * modules/stat-tests (Files): Likewise.
39705         * modules/strcasestr-tests (Files): Likewise.
39706         * modules/strchrnul-tests (Files): Likewise.
39707         * modules/strerror-tests (Files): Likewise.
39708         * modules/strsignal-tests (Files): Likewise.
39709         * modules/strstr-tests (Files): Likewise.
39710         * modules/strtod-tests (Files): Likewise.
39711         * modules/strverscmp-tests (Files): Likewise.
39712         * modules/symlink-tests (Files): Likewise.
39713         * modules/symlinkat-tests (Files): Likewise.
39714         * modules/times-tests (Files): Likewise.
39715         * modules/trunc-tests (Files): Likewise.
39716         * modules/truncf-tests (Files): Likewise.
39717         * modules/truncl-tests (Files): Likewise.
39718         * modules/tsearch-tests (Files): Likewise.
39719         * modules/uname-tests (Files): Likewise.
39720         * modules/unlink-tests (Files): Likewise.
39721         * modules/unsetenv-tests (Files): Likewise.
39722         * modules/usleep-tests (Files): Likewise.
39723         * modules/utimensat-tests (Files): Likewise.
39724         * modules/vasprintf-tests (Files): Likewise.
39725         * modules/vdprintf-posix-tests (Files): Likewise.
39726         * modules/vfprintf-posix-tests (Files): Likewise.
39727         * modules/vprintf-posix-tests (Files): Likewise.
39728         * modules/vsnprintf-posix-tests (Files): Likewise.
39729         * modules/vsnprintf-tests (Files): Likewise.
39730         * modules/vsprintf-posix-tests (Files): Likewise.
39731         * modules/wcrtomb-tests (Files): Likewise.
39732         * modules/wcsnrtombs-tests (Files): Likewise.
39733         * modules/wcsrtombs-tests (Files): Likewise.
39734         * modules/wcwidth-tests (Files): Likewise.
39735         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39736         * tests/test-isinf.c (isinf): Likewise.
39737         * tests/test-isnan.c (isnan): Likewise.
39738         * tests/test-signbit.c (signbit): Likewise.
39739         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39740         declaration, either as macro or with correct signature.
39741         (select): Ensure function under test is declared with correct
39742         signature in correct header.
39743         * tests/test-atexit.c (atexit): Likewise.
39744         * tests/test-btowc.c (btowc): Likewise.
39745         * tests/test-canonicalize-lgpl.c (realpath)
39746         (canonicalize_file_name): Likewise.
39747         * tests/test-ceilf1.c (ceilf): Likewise.
39748         * tests/test-ceill.c (ceill): Likewise.
39749         * tests/test-chown.c (chown): Likewise.
39750         * tests/test-dprintf-posix.c (dprintf): Likewise.
39751         * tests/test-dup2.c (dup2): Likewise.
39752         * tests/test-dup3.c (dup3): Likewise.
39753         * tests/test-duplocale.c (duplocale): Likewise.
39754         * tests/test-fchdir.c (fchdir): Likewise.
39755         * tests/test-fchownat.c (fchownat): Likewise.
39756         * tests/test-fcntl.c (fcntl): Likewise.
39757         * tests/test-fdopendir.c (fdopendir): Likewise.
39758         * tests/test-fflush.c (fflush): Likewise.
39759         * tests/test-flock.c (flock): Likewise.
39760         * tests/test-floorf1.c (floorf): Likewise.
39761         * tests/test-floorl.c (floorl): Likewise.
39762         * tests/test-fnmatch.c (fnmatch): Likewise.
39763         * tests/test-fopen.c (fopen): Likewise.
39764         * tests/test-fprintf-posix.c (fprintf): Likewise.
39765         * tests/test-freopen.c (freopen): Likewise.
39766         * tests/test-frexp.c (frexp): Likewise.
39767         * tests/test-frexpl.c (frexpl): Likewise.
39768         * tests/test-fseek.c (fseek): Likewise.
39769         * tests/test-fseeko.c (fseeko): Likewise.
39770         * tests/test-fstatat.c (fstatat): Likewise.
39771         * tests/test-fsync.c (fsync): Likewise.
39772         * tests/test-ftell.c (ftell): Likewise.
39773         * tests/test-ftello.c (ftello): Likewise.
39774         * tests/test-futimens.c (futimens): Likewise.
39775         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39776         (gai_strerror): Likewise.
39777         * tests/test-getcwd.c (getcwd): Likewise.
39778         * tests/test-getdelim.c (getdelim): Likewise.
39779         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39780         * tests/test-getgroups.c (getgroups): Likewise.
39781         * tests/test-gethostname.c (gethostname): Likewise.
39782         * tests/test-getline.c (getline): Likewise.
39783         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39784         Likewise.
39785         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39786         * tests/test-glob.c (glob, globfree): Likewise.
39787         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39788         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39789         * tests/test-inet_pton.c (inet_pton): Likewise.
39790         * tests/test-isblank.c (isblank): Likewise.
39791         * tests/test-lchown.c (lchown): Likewise.
39792         * tests/test-ldexpl.c (ldexpl): Likewise.
39793         * tests/test-link.c (link): Likewise.
39794         * tests/test-linkat.c (linkat): Likewise.
39795         * tests/test-lseek.c (lseek): Likewise.
39796         * tests/test-lstat.c (lstat): Likewise.
39797         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39798         * tests/test-mbsinit.c (mbsinit): Likewise.
39799         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39800         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39801         * tests/test-memchr.c (memchr): Likewise.
39802         * tests/test-memcmp.c (memcmp): Likewise.
39803         * tests/test-memmem.c (memmem): Likewise.
39804         * tests/test-memrchr.c (memrchr): Likewise.
39805         * tests/test-mkdir.c (mkdir): Likewise.
39806         * tests/test-mkdirat.c (mkdirat): Likewise.
39807         * tests/test-mkfifo.c (mkfifo): Likewise.
39808         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39809         * tests/test-mknod.c (mknod): Likewise.
39810         * tests/test-nanosleep.c (nanosleep): Likewise.
39811         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39812         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39813         Likewise.
39814         * tests/test-open.c (open): Likewise.
39815         * tests/test-openat.c (openat): Likewise.
39816         * tests/test-perror.c (perror): Likewise.
39817         * tests/test-pipe2.c (pipe2): Likewise.
39818         * tests/test-poll.c (poll): Likewise.
39819         * tests/test-popen.c (popen, pclose): Likewise.
39820         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39821         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39822         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39823         (posix_spawn_file_actions_destroy)
39824         (posix_spawn_file_actions_addclose)
39825         (posix_spawn_file_actions_addopen)
39826         (posix_spawn_file_actions_adddup2): Likewise.
39827         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39828         * tests/test-pread.c (pread): Likewise.
39829         * tests/test-printf-posix.c (printf): Likewise.
39830         * tests/test-pty.c (openpty, forkpty): Likewise.
39831         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39832         (random_r): Likewise.
39833         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39834         * tests/test-readlink.c (readlink): Likewise.
39835         * tests/test-remove.c (remove): Likewise.
39836         * tests/test-rename.c (rename): Likewise.
39837         * tests/test-renameat.c (renameat): Likewise.
39838         * tests/test-rmdir.c (rmdir): Likewise.
39839         * tests/test-round1.c (round): Likewise.
39840         * tests/test-roundf1.c (roundf): Likewise.
39841         * tests/test-roundl.c (roundl): Likewise.
39842         * tests/test-setenv.c (setenv): Likewise.
39843         * tests/test-sigaction.c (sigaction): Likewise.
39844         * tests/test-sleep.c (sleep): Likewise.
39845         * tests/test-snprintf.c (snprintf): Likewise.
39846         * tests/test-sprintf-posix.c (sprintf): Likewise.
39847         * tests/test-stat.c (stat): Likewise.
39848         * tests/test-stpncpy.c (stpncpy): Likewise.
39849         * tests/test-strcasestr.c (strcasestr): Likewise.
39850         * tests/test-strchrnul.c (strchrnul): Likewise.
39851         * tests/test-strerror.c (strerror): Likewise.
39852         * tests/test-strsignal.c (strsignal): Likewise.
39853         * tests/test-strstr.c (strstr): Likewise.
39854         * tests/test-strtod.c (strtod): Likewise.
39855         * tests/test-strverscmp.c (strverscmp): Likewise.
39856         * tests/test-symlink.c (symlink): Likewise.
39857         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39858         * tests/test-times.c (times): Likewise.
39859         * tests/test-trunc1.c (trunc): Likewise.
39860         * tests/test-truncf1.c (truncf): Likewise.
39861         * tests/test-truncl.c (truncl): Likewise.
39862         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39863         Likewise.
39864         * tests/test-uname.c (uname): Likewise.
39865         * tests/test-unlink.c (unlink): Likewise.
39866         * tests/test-unlinkat.c (unlinkat): Likewise.
39867         * tests/test-unsetenv.c (unsetenv): Likewise.
39868         * tests/test-usleep.c (usleep): Likewise.
39869         * tests/test-utimensat.c (utimensat): Likewise.
39870         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39871         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39872         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39873         * tests/test-vprintf-posix.c (vprintf): Likewise.
39874         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39875         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39876         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39877         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39878         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39879         * tests/test-wcwidth.c (wcwidth): Likewise.
39880
39881         build: pull in conditional headers during GNULIB_POSIXCHECK
39882         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39883         definitions from any conditionally-included headers.
39884         * lib/stdlib.in.h (includes): Likewise.
39885         * lib/unistd.in.h (includes): Likewise.
39886
39887 2009-12-24  Bruno Haible  <bruno@clisp.org>
39888
39889         * tests/test-argv-iter.c: Include header file being tested immediately
39890         after config.h.
39891         * tests/test-base64.c: Likewise.
39892         * tests/test-flock.c: Likewise.
39893         * tests/test-fsync.c: Likewise.
39894         * tests/test-getdate.c: Likewise.
39895         * tests/test-getndelim2.c: Likewise.
39896         * tests/test-isfinite.c: Likewise.
39897         * tests/test-isinf.c: Likewise.
39898         * tests/test-strerror.c: Likewise.
39899         * tests/test-strsignal.c: Likewise.
39900
39901 2009-12-23  Eric Blake  <ebb9@byu.net>
39902
39903         unistd: work around cygwin bug
39904         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39905         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39906         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39907
39908 2009-12-23  Bruno Haible  <bruno@clisp.org>
39909
39910         localename: More tests.
39911         * tests/test-localename.c (SIZEOF): New macro.
39912         (categories): New variable.
39913         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39914         test_locale_name_default): Add test w.r.t. thread locale.
39915         (test_locale_name_thread): New function.
39916         (main): Invoke it.
39917
39918         localename: Make aware of thread locale.
39919         * lib/localename.h (gl_locale_name_thread): New declaration.
39920         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39921         behaviour with respect to thread locale.
39922         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39923         <langinfo.h>, glthread/lock.h.
39924         (SIZE_BITS): New macro.
39925         (string_hash): New function.
39926         (struct hash_node): New type.
39927         (HASH_TABLE_SIZE): New macro.
39928         (struniq_hash_table, struniq_lock): New variables.
39929         (struniq): New function.
39930         (gl_locale_name_thread): New function.
39931         (gl_locale_name): Invoke it.
39932         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39933         * modules/localename (Depends-on): Add lock.
39934         Reported by Mike Gran <spk121@yahoo.com>.
39935
39936 2009-12-23  Eric Blake  <ebb9@byu.net>
39937
39938         va-args: new module
39939         * modules/va-args: New file.
39940         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39941         * MODULES.html.sh (Core language properties): Mention it.
39942
39943         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39944         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39945         named alias for __attribute__((__unused__)).
39946         * lib/chown.c: Update client.
39947         * lib/fchmodat.c: Likewise.
39948         * lib/fts.c: Likewise.
39949         * lib/getdate.y: Likewise.
39950         * lib/getgroups.c: Likewise.
39951         * lib/getopt.c: Likewise.
39952         * lib/getugroups.c: Likewise.
39953         * lib/mkdir.c: Likewise.
39954         * lib/mkfifo.c: Likewise.
39955         * lib/mkfifoat.c: Likewise.
39956         * lib/mknod.c: Likewise.
39957         * lib/mknodat.c: Likewise.
39958         * lib/readlink.c: Likewise.
39959         * lib/se-context.in.h: Likewise.
39960         * lib/se-selinux.in.h: Likewise.
39961         * lib/sockets.c: Likewise.
39962         * lib/symlink.c: Likewise.
39963         * lib/symlinkat.c: Likewise.
39964         * lib/unicodeio.c: Likewise.
39965         * lib/unistr.h: Likewise.
39966         * tests/test-areadlink.c: Likewise.
39967         * tests/test-areadlinkat.c: Likewise.
39968         * tests/test-filenamecat.c: Likewise.
39969         * tests/test-fseeko.c: Likewise.
39970         * tests/test-ftello.c: Likewise.
39971         * tests/test-getdate.c: Likewise.
39972         * tests/test-getgroups.c: Likewise.
39973         * tests/test-gethostname.c: Likewise.
39974         * tests/test-quotearg.c: Likewise.
39975         * tests/test-version-etc.c: Likewise.
39976         * tests/test-xalloc-die.c: Likewise.
39977         * tests/test-xfprintf-posix.c: Likewise.
39978         * tests/test-xprintf-posix.c: Likewise.
39979         * tests/test-xvasprintf.c: Likewise.
39980
39981         tests: avoid compiler warnings
39982         * tests/test-fcntl.c (main): Delete unused parameters.
39983         * tests/test-freopen-safer.c (main): Likewise.
39984         * tests/test-xalloc-die.c (main): Mark unused parameters.
39985         * tests/test-fseeko.c (main): Likewise.
39986         * tests/test-ftello.c (main): Likewise.
39987         * tests/test-nanosleep.c (main): Avoid declaration warning.
39988         * tests/test-sleep.c (main): Likewise.
39989         * tests/test-unsetenv.c (main): Silence warning about string
39990         literal.
39991         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39992
39993 2009-12-23  Bruno Haible  <bruno@clisp.org>
39994
39995         * tests/test-localename.c (test_locale_name): New function, extracted
39996         from main. Also test mixed situations.
39997         (test_locale_name_posix, test_locale_name_environ,
39998         test_locale_name_default): New functions.
39999         (main): Invoke them all.
40000         * modules/localename-tests (configure.ac): Test for newlocale.
40001
40002 2009-12-23  Bruno Haible  <bruno@clisp.org>
40003
40004         unistd: Ensure getcwd gets declared before being overridden.
40005         * lib/unistd.in.h: Conditionally include <io.h>.
40006
40007 2009-12-22  Bruno Haible  <bruno@clisp.org>
40008
40009         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40010         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40011         (gl_WCHAR_H): Invoke it.
40012         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40013         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40014         Reported by Karl Berry <karl@freefriends.org>.
40015
40016 2009-12-22  Eric Blake  <ebb9@byu.net>
40017
40018         math, unistd: avoid redundant includes
40019         * lib/math.in.h (isnan): No need to re-include <math.h>.
40020         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40021
40022         getsubopt: work around cygwin bug
40023         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40024         avoid conflicting with system getsubopt.
40025         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40026         bug.
40027
40028         getopt: synchronize from glibc
40029         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40030         parameter order.  Adjust all callers.
40031         (_getopt_internal_r, main): Adjust quoting in error messages.
40032         Drop considerations for outdated POSIX 1003.2 error message.
40033         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40034         callers.
40035         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40036
40037         test-getopt: test stderr behavior
40038         * modules/getopt-posix-tests (Depends-on): Add dup2.
40039         * tests/test-getopt.c (ASSERT): Avoid stderr.
40040         (main): Move stderr to a temporary file.
40041         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40042         Instead, add parameter to inform caller if output occurred.
40043         (test_getopt): Adjust all existing tests to expect silence, and
40044         add new tests of leading ":".
40045         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40046         glibc shortcomings with leading "-:" or "+:" in optstring.
40047         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40048         Likewise.
40049         * doc/posix-functions/getopt.texi (getopt): Likewise.
40050
40051         test-getopt: enhance test
40052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40053         supports optind=0.
40054         * tests/test-getopt.c (OPTIND_MIN): Move...
40055         * tests/test-getopt.h (OPTIND_MIN): ...here.
40056         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40057         Require that optind=0 works, since modern BSD supports it in
40058         addition to optreset, and since coreutils expects it.
40059         (test_getopt_long_only): New test.
40060         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40061         glibc shortcomings with 'W;', and enforcement of optind=0.
40062         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40063         Likewise.
40064
40065 2009-12-21  Bruno Haible  <bruno@clisp.org>
40066
40067         localename: Improvements for MacOS X and Cygwin.
40068         * lib/localename.h (gl_locale_name_environ): New declaration.
40069         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40070         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40071         (gl_locale_name_posix): Invoke it.
40072         (gl_locale_name_default): Add comments. Use Windows native API also on
40073         Cygwin.
40074
40075 2009-12-21  Bruno Haible  <bruno@clisp.org>
40076
40077         Update list of Win32 locale ids.
40078         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40079         (LANG_SAMI): Renamed from LANG_SAAMI.
40080         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40081         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40082         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40083         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40084         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40085         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40086         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40087         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40088         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40089         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40090         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40091         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40092         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40093         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40094         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40095         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40096         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40097         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40098         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40099         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40100         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40101         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40102         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40103         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40104         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40105         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40106         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40107         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40108         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40109         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40110         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40111         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40112         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40113         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40114         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40115         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40116         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40117         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40118         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40119         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40120         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40121         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40122         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40123         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40124         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40125         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40126         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40127         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40128         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40129         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40130         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40131         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40132         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40133         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40134         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40135         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40136         Add more languages and countries for Sami, Sorbian. Add more countries
40137         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40138         for Pashto. Change country for Syriac, Tswana.
40139
40140 2009-12-21  Eric Blake  <ebb9@byu.net>
40141
40142         test-utimens: avoid spurious failure
40143         * tests/test-chown.h (nap): Factor...
40144         * tests/nap.h: ...into new file.
40145         * tests/test-lchown.h (nap): Avoid duplication.
40146         * tests/test-utimens-common.h (nap): Use shared implementation,
40147         necessary on file systems with 1-second resolution.
40148         * modules/chown-tests (Files): Include new file.
40149         * modules/fdutimensat-tests (Files): Likewise.
40150         * modules/futimens-tests (Files): Likewise.
40151         * modules/lchown-tests (Files): Likewise.
40152         * modules/openat-tests (Files): Likewise.
40153         * modules/utimens-tests (Files): Likewise.
40154         * modules/utimensat-tests (Files): Likewise.
40155
40156 2009-12-19  Eric Blake  <ebb9@byu.net>
40157
40158         futimens, utimensat: work around Linux bug
40159         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40160         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40161         * lib/utimensat.c (rpl_utimensat): Work around it.
40162         * lib/futimens.c (rpl_futimens): Adjust comment.
40163
40164         utimens: work around Linux ctime bug
40165         * lib/utimens.c (detect_ctime_bug): New helper function.
40166         (update_timespec): Differentiate between workaround needed for
40167         this bug vs. what is needed for systems that lack utimensat.
40168         (fdutimens, lutimens): Work around bug.
40169
40170         utimens: check for ctime update
40171         * tests/test-utimens-common.h (check_ctime): Define.
40172         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40173         * tests/test-futimens.h (test_futimens): Likewise.
40174         * tests/test-lutimens.h (test_lutimens): Likewise.
40175         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40176         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40177
40178 2009-12-19  Bruno Haible  <bruno@clisp.org>
40179
40180         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40181         * tests/test-dprintf-posix2.sh: New file.
40182         * tests/test-dprintf-posix2.c: New file.
40183         * modules/dprintf-posix-tests (Files): Add them.
40184         (configure.ac): Check for getrlimit and setrlimit.
40185         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40186
40187 2009-12-19  Bruno Haible  <bruno@clisp.org>
40188
40189         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40190         * tests/test-fprintf-posix3.sh: New file.
40191         * tests/test-fprintf-posix3.c: New file.
40192         * modules/fprintf-posix-tests (Files): Add them.
40193         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40194
40195 2009-12-19  Eric Blake  <ebb9@byu.net>
40196
40197         dirfd: fix prototype
40198         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40199         * lib/dirfd.c (dirfd): Likewise.
40200
40201         canonicalize: reduce memory usage
40202         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40203         allocation to size.
40204         Reported by Solar Designer <solar@openwall.com>.
40205
40206 2009-12-19  Bruno Haible  <bruno@clisp.org>
40207
40208         New module attribute 'Applicability'.
40209         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40210         * gnulib-tool: New option --extract-applicability.
40211         (func_usage): Document it.
40212         (sed_extract_prog): Recognize it.
40213         (func_get_applicability): New function.
40214         (func_import): Generalize handling of 'link-warning' module.
40215         * modules/link-warning (Applicability): New section.
40216         * modules/arg-nonnull (Applicability): New section.
40217         Repoted by Simon Josefsson <simon@josefsson.org>.
40218
40219 2009-12-19  Bruno Haible  <bruno@clisp.org>
40220
40221         fflush: tweak
40222         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40223         * lib/fseeko.c (rpl_fseeko): Likewise.
40224
40225 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40226
40227         * lib/gl_list.h: Fix typo in comment.
40228
40229 2009-12-16  Eric Blake  <ebb9@byu.net>
40230
40231         fcntl: use to simplify other modules
40232         * modules/cloexec (Depends-on): Add fcntl.
40233         * modules/fchdir (Depends-on): Likewise.
40234         * modules/fd-safer-flag (Depends-on): Likewise.
40235         * modules/unistd-safer (Depends-on): Likewise.
40236         * modules/dup3 (configure.ac): Set module indicator.
40237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40238         missing.
40239         * lib/fchdir.c (_gl_register_dup): Fix comment.
40240         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40241         * lib/dup-safer.c (dup_safer): Likewise.
40242         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40243         * lib/dup3.c (dup3): Likewise.
40244         * tests/test-fchdir.c (main): Enhance test.
40245         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40246
40247         fcntl: port portions of fcntl to mingw
40248         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40249         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40250         replacement for mingw.
40251         * modules/fcntl (Description): Update.
40252         (Depends-on): Add dup2.
40253         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40254         * modules/fcntl-h (Makefile.am): Substitute it.
40255         * lib/fcntl.in.h (fcntl): Update declaration.
40256         (F_DUPFD, F_GETFD): New macros, when needed.
40257         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40258         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40259         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40260         we now guarantee.
40261
40262         fcntl: work around cygwin bug in F_DUPFD
40263         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40264         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40265         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40266         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40267         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40268
40269         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40270         * modules/fcntl (Files): List new files.
40271         (configure.ac): Run a test.
40272         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40273         * lib/fcntl.c (rpl_fcntl): Likewise.
40274         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40275         (gl_FCNTL_H): Always replace fcntl.h.
40276         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40277         * lib/fcntl.in.h (fcntl): Declare replacement.
40278         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40279         needed, plus a witness.
40280         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40281         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40282         * tests/test-fcntl.c: New file.
40283         * modules/fcntl-tests: Likewise.
40284
40285         binary-io: avoid potential compilation warning
40286         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40287         directives.
40288
40289         fflush: avoid compilation error on NetBSD
40290         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40291         between off_t and fpos_t, since the latter is sometimes a struct.
40292         * lib/fseeko.c (rpl_fseeko): Likewise.
40293         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40294
40295 2009-12-15  Eric Blake  <ebb9@byu.net>
40296
40297         fcntl-h, stdio, sys_ioctl: fix declarations
40298         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40299         function must not take arguments.
40300         * lib/sys_ioctl.in.h (ioctl): Likewise.
40301         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40302         (open): Add a link warning.
40303
40304 2009-12-15  Jim Meyering  <meyering@redhat.com>
40305
40306         areadlink, areadlink-with-size: relax license to LGPLv2+
40307         * modules/areadlink (License): Relax to LGPLv2+.
40308         * modules/areadlink-with-size (License): Likewise.
40309
40310 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40311             Bruno Haible  <bruno@clisp.org>
40312
40313         *printf: Fix memory leak.
40314         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40315         * lib/vfprintf.c (vfprintf): Likewise.
40316         * lib/dprintf.c (dprintf): Likewise.
40317         * lib/vdprintf.c (vdprintf): Likewise.
40318
40319 2009-12-14  Eric Blake  <ebb9@byu.net>
40320
40321         accept4: adjust module dependencies
40322         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40323
40324         utimens: one more try at avoiding compiler warning
40325         * lib/utimens.c (lutimens): Lower scope of result.
40326
40327 2009-12-13  Bruno Haible  <bruno@clisp.org>
40328
40329         Move the malloc checking from module 'list' to new module 'xlist'.
40330         * modules/xlist: New file.
40331         * lib/gl_xlist.h: New file.
40332         * lib/gl_xlist.c: New file.
40333         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40334         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40335         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40336         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40337         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40338         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40339         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40340         gl_sortedlist_nx_add): New declarations.
40341         (struct gl_list_implementation): Rename and change methods accordingly.
40342         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40343         (gl_list_nx_create): Renamed from gl_list_create.
40344         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40345         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40346         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40347         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40348         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40349         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40350         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40351         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40352         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40353         gl_list_create_empty.
40354         (gl_list_nx_create): Renamed from gl_list_create.
40355         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40356         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40357         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40358         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40359         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40360         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40361         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40362         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40363         * lib/gl_array_list.c: Don't include xalloc.h.
40364         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40365         NULL upon out-of-memory.
40366         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40367         out-of-memory.
40368         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40369         Change return type to 'int'.
40370         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40371         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40372         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40373         upon out-of-memory.
40374         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40375         upon out-of-memory.
40376         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40377         upon out-of-memory.
40378         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40379         upon out-of-memory.
40380         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40381         out-of-memory.
40382         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40383         Update.
40384         (gl_array_list_implementation): Update.
40385         * lib/gl_carray_list.c: Don't include xalloc.h.
40386         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40387         Return NULL upon out-of-memory.
40388         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40389         out-of-memory.
40390         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40391         Change return type to 'int'.
40392         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40393         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40394         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40395         upon out-of-memory.
40396         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40397         upon out-of-memory.
40398         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40399         out-of-memory.
40400         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40401         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40402         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40403         Update.
40404         (gl_carray_list_implementation): Update.
40405         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40406         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40407         gl_linked_create_empty. Return NULL upon out-of-memory.
40408         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40409         out-of-memory.
40410         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40411         Change return type to 'int'. Return -1 upon out-of-memory.
40412         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40413         out-of-memory.
40414         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40415         upon out-of-memory.
40416         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40417         upon out-of-memory.
40418         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40419         NULL upon out-of-memory.
40420         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40421         upon out-of-memory.
40422         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40423         out-of-memory.
40424         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40425         Update.
40426         * lib/gl_linked_list.c: Don't include xalloc.h.
40427         (gl_linked_list_implementation): Update.
40428         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40429         (add_to_bucket): Change return type to 'int'.
40430         (gl_linkedhash_list_implementation): Update.
40431         * lib/gl_anytree_list1.h (free_subtree): New function.
40432         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40433         gl_tree_create_empty. Return NULL upon out-of-memory.
40434         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40435         Change return type to 'int'. Return -1 upon out-of-memory.
40436         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40437         out-of-memory.
40438         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40439         (gl_tree_remove_node): New function, moved here from
40440         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40441         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40442         Update.
40443         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40444         malloc, not xmalloc. Return NULL upon out-of-memory.
40445         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40446         out-of-memory.
40447         (gl_tree_remove_node_from_tree): New function, extracted from
40448         gl_tree_remove_node.
40449         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40450         upon out-of-memory.
40451         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40452         out-of-memory.
40453         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40454         upon out-of-memory.
40455         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40456         upon out-of-memory.
40457         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40458         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40459         not xmalloc. Return NULL upon out-of-memory.
40460         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40461         out-of-memory.
40462         (gl_tree_remove_node_from_tree): New function, extracted from
40463         gl_tree_remove_node.
40464         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40465         upon out-of-memory.
40466         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40467         out-of-memory.
40468         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40469         upon out-of-memory.
40470         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40471         upon out-of-memory.
40472         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40473         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40474         gl_anytree_list1.h before gl_anyavltree_list2.h.
40475         (gl_avltree_list_implementation): Update.
40476         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40477         gl_anytree_list1.h before gl_anyavltree_list2.h.
40478         (gl_rbtree_list_implementation): Update.
40479         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40480         Change return type to 'int'. Return -1 upon out-of-memory. Use
40481         __builtin_expect.
40482         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40483         (gl_avltreehash_list_implementation): Update.
40484         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40485         (gl_rbtreehash_list_implementation): Update.
40486         * modules/array-list (Depends-on): Remove xalloc.
40487         * modules/carray-list (Depends-on): Likewise.
40488         * modules/linked-list (Depends-on): Likewise.
40489         * modules/linkedhash-list (Depends-on): Likewise.
40490         * modules/avltree-list (Depends-on): Likewise.
40491         * modules/rbtree-list (Depends-on): Likewise.
40492         * modules/avltreehash-list (Depends-on): Likewise.
40493         * modules/rbtreehash-list (Depends-on): Likewise.
40494
40495         * modules/xsublist: New file.
40496         * lib/gl_xsublist.h: New file.
40497         * lib/gl_xsublist.c: New file.
40498         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40499         (gl_sublist_nx_create): New declaration.
40500         * lib/gl_sublist.c: Don't include xalloc.h.
40501         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40502         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40503         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40504         Change return type to 'int'. Return -1 upon out-of-memory.
40505         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40506         upon out-of-memory.
40507         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40508         NULL upon out-of-memory.
40509         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40510         upon out-of-memory.
40511         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40512         NULL upon out-of-memory.
40513         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40514         NULL upon out-of-memory.
40515         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40516         upon out-of-memory.
40517         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40518         (gl_sublist_list_implementation): Update.
40519         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40520         upon out-of-memory.
40521         * modules/sublist (Depends-on): Remove xalloc.
40522
40523         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40524         * tests/test-carray_list.c: Likewise.
40525         * tests/test-linked_list.c: Likewise.
40526         * tests/test-linkedhash_list.c: Likewise.
40527         * tests/test-avltree_list.c: Likewise.
40528         * tests/test-rbtree_list.c: Likewise.
40529         * tests/test-avltreehash_list.c: Likewise.
40530         * tests/test-rbtreehash_list.c: Likewise.
40531         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40532         * modules/carray-list-tests (Makefile.am): Likewise.
40533         * modules/linked-list-tests (Makefile.am): Likewise.
40534         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40535         * modules/avltree-list-tests (Makefile.am): Likewise.
40536         * modules/rbtree-list-tests (Makefile.am): Likewise.
40537         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40538         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40539
40540         * NEWS: Mention the changes.
40541
40542         * lib/clean-temp.c: Include gl_xlist.h.
40543         * modules/clean-temp (Depends-on): Add xlist.
40544
40545         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40546         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40547
40548         * tests/test-array_oset.c: Include gl_xlist.h.
40549         * modules/array-oset-tests (Depends-on): Add xlist.
40550
40551         Reported by José E. Marchesi <jemarch@gnu.org>.
40552
40553 2009-12-13  Bruno Haible  <bruno@clisp.org>
40554
40555         Move the malloc checking from module 'oset' to new module 'xoset'.
40556         * modules/xoset: New file.
40557         * lib/gl_xoset.h: New file.
40558         * lib/gl_xoset.c: New file.
40559         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40560         declarations.
40561         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40562         (struct gl_oset_implementation): Rename and change methods accordingly.
40563         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40564         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40565         'int'. Mark as __warn_unused_result__.
40566         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40567         gl_oset_create_empty.
40568         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40569         'int'.
40570         * lib/gl_array_oset.c: Don't include xalloc.h.
40571         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40572         malloc, not xmalloc.
40573         (grow): Change return type to 'int'. Don't call xalloc_die.
40574         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40575         to 'int'.
40576         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40577         'int'.
40578         (gl_array_oset_implementation): Update.
40579         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40580         gl_tree_create_empty.
40581         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40582         'int'.
40583         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40584         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40585         xmalloc.
40586         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40587         not xmalloc.
40588         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40589         xmalloc.
40590         (gl_avltree_oset_implementation): Update.
40591         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40592         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40593         xmalloc.
40594         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40595         not xmalloc.
40596         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40597         xmalloc.
40598         (gl_rbtree_oset_implementation): Update.
40599         * modules/array-oset (Depends-on): Remove xalloc.
40600         * modules/avltree-oset (Depends-on): Likewise.
40601         * modules/rbtree-oset (Depends-on): Likewise.
40602         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40603         * tests/test-avltree_oset.c: Likewise.
40604         * tests/test-rbtree_oset.c: Likewise.
40605         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40606         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40607         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40608         * NEWS: Mention the change.
40609
40610 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40611
40612         maint.mk: allow a project to override release-prep commands
40613         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40614         commands into a new rule.
40615         (release-prep): New rule.
40616         (release-prep-hook): New overridable variable.
40617
40618 2009-12-13  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40621
40622 2009-12-13  Jim Meyering  <meyering@redhat.com>
40623
40624         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40625         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40626
40627 2009-12-12  Bruno Haible  <bruno@clisp.org>
40628
40629         duplocale: Tweak.
40630         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40631
40632 2009-12-12  Karl Berry  <karl@gnu.org>
40633
40634         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40635
40636 2009-12-12  Bruno Haible  <bruno@clisp.org>
40637
40638         * m4/po.m4: Undo incorrect untabification.
40639
40640 2009-12-12  Bruno Haible  <bruno@clisp.org>
40641
40642         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40643         * modules/c-strtod (Depends-on): Add locale.
40644         * modules/c-strtold (Depends-on): Likewise.
40645
40646 2009-12-12  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40649
40650 2009-12-11  Eric Blake  <ebb9@byu.net>
40651
40652         setenv: relax requirement in light of POSIX ruling
40653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40654         not NULL.
40655         * tests/test-setenv.c (main): Relax test.
40656         * tests/test-unsetenv.c (main): Likewise.
40657         * doc/posix-functions/setenv.texi (setenv): Document this.
40658         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40659
40660 2009-12-11  Bruno Haible  <bruno@clisp.org>
40661
40662         New module 'fd-safer-flag'.
40663         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40664         * lib/dup-safer.c (dup_safer_flag): Remove function.
40665         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40666         * lib/fd-safer.c (fd_safer_flag): Remove function.
40667         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40668         * modules/cloexec (configure.ac): Drop indicator macro.
40669         * modules/fd-safer-flag: New file.
40670         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40671         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40672         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40673
40674 2009-12-11  Bruno Haible  <bruno@clisp.org>
40675
40676         Tests for module 'nl_langinfo'.
40677         * modules/nl_langinfo-tests: New file.
40678         * tests/test-nl_langinfo.sh: New file.
40679         * tests/test-nl_langinfo.c: New file.
40680
40681         New module 'nl_langinfo'.
40682         * lib/nl_langinfo.c: New file.
40683         * m4/nl_langinfo.m4: New file.
40684         * modules/nl_langinfo: New file.
40685         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40686
40687 2009-12-11  Bruno Haible  <bruno@clisp.org>
40688
40689         Tests for module 'langinfo'.
40690         * modules/langinfo-tests: New file.
40691         * tests/test-langinfo.c: New file.
40692
40693         New module 'langinfo'.
40694         * lib/langinfo.in.h: New file.
40695         * m4/langinfo_h.m4: New file.
40696         * modules/langinfo: New file.
40697         * doc/posix-headers/langinfo.texi: Mention the new module.
40698
40699 2009-12-11  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/config.charset: Untabify.
40702
40703 2009-12-11  Bruno Haible  <bruno@clisp.org>
40704
40705         * modules/unistd-safer (configure.ac): Drop indicator macro.
40706
40707 2009-12-11  Bruno Haible  <bruno@clisp.org>
40708
40709         Move pipe2-safer code to its own file.
40710         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40711         * lib/pipe-safer.c (pipe2_safer): Remove function.
40712         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40713         (Makefile.am): Add it to lib_SOURCES.
40714
40715 2009-12-10  Bruno Haible  <bruno@clisp.org>
40716
40717         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40718
40719 2009-12-10  Bruno Haible  <bruno@clisp.org>
40720
40721         Declare which arguments expect non-NULL values, for GCC and clang.
40722         * build-aux/arg-nonnull.h: New file.
40723         * modules/arg-nonnull: New file.
40724         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40725         (inet_ntop, inet_pton): Use it.
40726         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40727         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40728         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40729         (open, openat): Use it.
40730         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40731         (fnmatch): Use it.
40732         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40733         (getopt, getopt_long, getopt_long_only): Use it.
40734         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40735         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40736         Use it.
40737         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40738         (iconv_open): Use it.
40739         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40740         (strtoimax, strtoumax): Use it.
40741         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40742         (duplocale): Use it.
40743         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40744         (frexp, frexpl): Use it.
40745         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40746         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40747         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40748         (tsearch, tfind, tdelete, twalk): Use it.
40749         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40750         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40751         sigpending): Use it.
40752         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40753         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40754         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40755         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40756         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40757         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40758         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40759         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40760         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40761         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40762         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40763         Use it.
40764         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40765         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40766         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40767         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40768         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40769         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40770         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40771         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40772         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40773         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40774         strtoull, unsetenv): Use it.
40775         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40776         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40777         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40778         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40779         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40780         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40781         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40782         (strcasecmp, strncasecmp): Use it.
40783         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40784         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40785         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40786         rpl_setsockopt): Use it.
40787         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40788         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40789         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40790         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40791         (gettimeofday): Use it.
40792         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40793         (times): Use it.
40794         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40795         (uname): Use it.
40796         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40797         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40798         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40799         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40800         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40801         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40802         unlinkat, write): Use it.
40803         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40804         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40805         * lib/argv-iter.h: Include arg-nonnull.h.
40806         (_ATTRIBUTE_NONNULL_): Remove macro.
40807         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40808         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40809         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40810         optimization.
40811         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40812         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40813         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40814         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40815         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40816         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40817         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40818         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40819         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40820         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40821         * modules/dirent (Depends-on): Add arg-nonnull.
40822         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40823         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40824         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40825         * modules/fnmatch (Depends-on): Add arg-nonnull.
40826         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40827         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40828         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40829         * modules/glob (Depends-on): Add arg-nonnull.
40830         (Makefile.am): Insert arg-nonnull.h into glob.h.
40831         * modules/iconv_open (Depends-on): Add arg-nonnull.
40832         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40833         * modules/inttypes (Depends-on): Add arg-nonnull.
40834         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40835         * modules/locale (Depends-on): Add arg-nonnull.
40836         (Makefile.am): Insert arg-nonnull.h into locale.h.
40837         * modules/math (Depends-on): Add arg-nonnull.
40838         (Makefile.am): Insert arg-nonnull.h into math.h.
40839         * modules/netdb (Depends-on): Add arg-nonnull.
40840         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40841         * modules/search (Depends-on): Add arg-nonnull.
40842         (Makefile.am): Insert arg-nonnull.h into search.h.
40843         * modules/signal (Depends-on): Add arg-nonnull.
40844         (Makefile.am): Insert arg-nonnull.h into signal.h.
40845         * modules/spawn (Depends-on): Add arg-nonnull.
40846         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40847         * modules/stdio (Depends-on): Add arg-nonnull.
40848         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40849         * modules/stdlib (Depends-on): Add arg-nonnull.
40850         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40851         * modules/string (Depends-on): Add arg-nonnull.
40852         (Makefile.am): Insert arg-nonnull.h into string.h.
40853         * modules/strings (Depends-on): Add arg-nonnull.
40854         (Makefile.am): Insert arg-nonnull.h into strings.h.
40855         * modules/sys_socket (Depends-on): Add arg-nonnull.
40856         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40857         * modules/sys_stat (Depends-on): Add arg-nonnull.
40858         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40859         * modules/sys_time (Depends-on): Add arg-nonnull.
40860         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40861         * modules/sys_times (Depends-on): Add arg-nonnull.
40862         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40863         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40864         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40865         * modules/time (Depends-on): Add arg-nonnull.
40866         (Makefile.am): Insert arg-nonnull.h into time.h.
40867         * modules/unistd (Depends-on): Add arg-nonnull.
40868         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40869         * modules/wchar (Depends-on): Add arg-nonnull.
40870         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40871         * modules/argv-iter (Depends-on): Add arg-nonnull.
40872         * tests/test-canonicalize.c (null_ptr): New function.
40873         (main): Use it.
40874         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40875         (main): Use it.
40876         * tests/test-memmem.c (null_ptr): New function.
40877         (main): Use it.
40878         Reported by Jim Meyering.
40879
40880 2009-12-10  Bruno Haible  <bruno@clisp.org>
40881
40882         Use spaces for indentation, not tabs.
40883         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40884         * m4/*.m4: Untabify.
40885         * build-aux/*.h: Untabify.
40886         * tests/**/*.[hc]: Untabify.
40887         * README: New section "Indent with spaces, not TABs", based on
40888         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40889         * NEWS: Mention the change.
40890
40891 2009-12-10  Bruno Haible  <bruno@clisp.org>
40892
40893         pty test: Fix link error.
40894         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40895         test_pty_LDADD.
40896
40897 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40898
40899         * modules/pty: New file.
40900         * modules/pty-tests: New file.
40901         * m4/pty.m4: New file.
40902         * tests/test-pty.c: New file.
40903         * doc/glibc-headers/pty.texi: Modified.
40904         * doc/glibc-functions/forkpty.texi: Modified.
40905         * doc/glibc-functions/openpty.texi: Modified.
40906
40907 2009-12-10  Bruno Haible  <bruno@clisp.org>
40908
40909         Avoid syntax error in C++ mode.
40910         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40911
40912 2009-12-10  Bruno Haible  <bruno@clisp.org>
40913
40914         Use sed with option -e.
40915         * gnulib-tool (func_version, func_emit_copyright_notice,
40916         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40917         option -e to sed.
40918         * modules/link-warning (Makefile.am): Likewise.
40919
40920 2009-12-10  Jim Meyering  <meyering@redhat.com>
40921
40922         mgetgroups: do not write bytes beyond end of malloc'd buffer
40923         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40924         username, we call getgroups with a one-element-shorter buffer,
40925         but still told it the length was original, max_n_groups.
40926
40927 2009-12-09  Eric Blake  <ebb9@byu.net>
40928
40929         cloexec: relax license
40930         * modules/cloexec (Maintainer): Add myself.
40931         (License): Use LGPL, not GPL.
40932
40933         link-warning: optimize generation
40934         * modules/link-warning (Makefile.am): Reduce process usage.
40935
40936 2009-12-09  Bruno Haible  <bruno@clisp.org>
40937
40938         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40939         workaround was added on 2009-11-17.
40940
40941 2009-12-09  Jim Meyering  <meyering@redhat.com>
40942             Bruno Haible  <bruno@clisp.org>
40943
40944         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40945         * modules/link-warning (Makefile.am): Make the comment-removing sed
40946         command more robust in the face of bootstrap-prepended comment lines.
40947
40948 2009-12-09  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40951         most one group.
40952
40953 2009-12-09  Simon Josefsson <simon@josefsson.org>
40954             Bruno Haible  <bruno@clisp.org>
40955
40956         * build-aux/link-warning.h: Add copyright notice.
40957         * modules/link-warning (Makefile.am): Generate link-warning.h from
40958         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40959         * NEWS: Mention change in link-warning module.
40960         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40961         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40962         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40963         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40964         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40965         * modules/math (Makefile.am): Add dependency to math.h.
40966         * modules/search (Makefile.am): Add dependency to search.h.
40967         * modules/signal (Makefile.am): Add dependency to signal.h.
40968         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40969         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40970         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40971         * modules/string (Makefile.am): Add dependency to string.h.
40972         * modules/strings (Makefile.am): Add dependency to strings.h.
40973         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40974         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40975         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40976         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40977         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40978         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40979         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40980         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40981         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40982
40983 2009-12-09  Bruno Haible  <bruno@clisp.org>
40984
40985         fchdir: Optimize away rpl_fstat when possible.
40986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40987         REPLACE_OPEN_DIRECTORY.
40988         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40989
40990 2009-12-09  Bruno Haible  <bruno@clisp.org>
40991
40992         * lib/fchdir.c: Update comment.
40993
40994 2009-12-09  Bruno Haible  <bruno@clisp.org>
40995
40996         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40997
40998 2009-12-08  Eric Blake  <ebb9@byu.net>
40999
41000         fchdir: avoid memory leak on re-registration.
41001         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41002
41003 2009-12-08  Jim Meyering  <meyering@redhat.com>
41004
41005         init.sh: avoid Solaris 10 /bin/sh portability problem
41006         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41007         sourced script:
41008           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41009           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41010           bar
41011         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41012         and two tests used that idiom.
41013         * tests/init.sh: Update suggested usage comments.
41014         (path_prepend_): New function, to be used in place
41015         of the --src-path=DIR option.
41016         (setup_): Move PATH-prepending code into path_prepend_.
41017         * tests/test-pread.sh: Adapt to new usage.
41018         * tests/test-xalloc-die.sh: Likewise.
41019
41020 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41021
41022         * doc/gnulib.texi (Glibc pty.h): Add.
41023         * doc/glibc-functions/forkpty.texi: Add.
41024         * doc/glibc-functions/openpty.texi: Add.
41025         Suggested by Bruno Haible.
41026
41027 2009-12-08  Eric Blake  <ebb9@byu.net>
41028
41029         fchdir: fix logic bugs
41030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41031         * tests/test-fchdir.c (main): Enhance test.
41032         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41033         is in use.
41034
41035         dup2: fix logic bugs
41036         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41037         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41038         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41039         exists.
41040         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41041
41042 2009-12-07  Eric Blake  <ebb9@byu.net>
41043
41044         unlink: fix m4 detection
41045         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41046
41047         unistd-safer: add unit test
41048         * modules/unistd-safer-tests: New file.
41049         * tests/test-dup-safer.c: Likewise.
41050         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41051         * tests/test-dup2.c (setmode): Likewise.
41052         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41053
41054         cloexec: preserve text vs. binary across dup_cloexec
41055         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41056         mode.
41057         * modules/dup2-tests (Depends-on): Add binary-io.
41058         * modules/cloexec-tests (Depends-on): Likewise.
41059         * tests/test-dup2.c (setmode, is_mode): New helpers.
41060         (main): Add tests that translation mode is preserved.
41061         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41062         Reported by Bruno Haible.
41063
41064         mgetgroups: reduce duplicate listings
41065         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41066         resulting array.
41067         * tests/test-chown.h (test_chown): Simplify client.
41068         * tests/test-lchown.h (test_lchown): Likewise.
41069
41070 2009-12-06  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41073         value.
41074
41075 2009-12-06  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/progname.c: Include stdio.h, stdlib.h.
41078         (set_program_name): Reject a NULL argument.
41079
41080 2009-12-05  Eric Blake  <ebb9@byu.net>
41081
41082         pipe2-safer: new module
41083         * modules/pipe2-safer: New file.
41084         * lib/unistd-safer.h (pipe2_safer): New prototype.
41085         * lib/unistd--.h (pipe2): New wrapper.
41086         * lib/pipe-safer.c (pipe2_safer): New function.
41087         * modules/pipe (Depends-on): Add pipe2-safer.
41088         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41089
41090         stdlib-safer: preserve cloexec flag for mkostemp[s]
41091         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41092         fd_safer_flag.
41093
41094         unistd-safer: allow preservation of cloexec status via flag
41095         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41096         prototypes.
41097         * lib/dup-safer.c (dup_safer_flag): New function.
41098         * lib/fd-safer.c (fd_safer_flag): Likewise.
41099         * modules/cloexec (configure.ac): Set witness.
41100
41101         test-dup2: enhance test
41102         * modules/dup2-tests (Depends-on): Add cloexec.
41103         * tests/test-dup2.c (main): Enhance test.
41104
41105         cloexec: add dup_cloexec
41106         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41107         header and comments.
41108         * lib/cloexec.c (set_cloexec_flag): Add comments.
41109         (dup_cloexec): New function, with mingw implementation borrowed
41110         from...
41111         * lib/w32spawn.h (dup_noinherit): ...here.
41112         * modules/execute (Depends-on): Add cloexec.
41113         * modules/pipe (Depends-on): Likewise.
41114         * modules/cloexec (Depends-on): Add dup2.
41115         * modules/cloexec-tests (Files): New file.
41116         * tests/test-cloexec.c: Likewise.
41117
41118         test-xalloc-die: fix test for mingw
41119         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41120         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41121         directory and .exe suffix off argv[0] output.
41122
41123         test-fseeko: fix test for mingw
41124         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41125         than undefining fseek, so test will pass on mingw.
41126
41127 2009-12-05  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/progname.h (set_program_name): Clarify specification.
41130         * lib/progname.c (set_program_name): Likewise.
41131         Reported by Jim Meyering.
41132
41133 2009-12-05  Jim Meyering  <meyering@redhat.com>
41134
41135         maint.mk: backslash-escape parens in default regexp
41136         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41137         backslash-escape the literal parentheses.
41138
41139         maint.mk: news-date-check: use grep -E
41140         * top/maint.mk (today): Define a Make variable, not a...
41141         (news-date-check): ...shell variable.
41142         (news-date-regexp): Use the Make variable.
41143         Use grep's -E option.  Change the failing diagnostic to mention
41144         the variable, $(news-date-regexp).
41145
41146 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41147
41148         maintainer-makefile: allow customization of NEWS entry format
41149         * top/maint.mk (news-date-regexp): New overridable variable.
41150         (news-date-check): Use it.
41151
41152 2009-12-04  Eric Blake  <ebb9@byu.net>
41153
41154         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41155         * lib/mgetgroups.h (xgetgroups): New prototype.
41156         * lib/mgetgroups.c (xgetgroups): New wrapper.
41157         (mgetgroups): Handle ENOSYS.
41158         * modules/mgetgroups (Depends-on): Add realloc.
41159         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41160
41161         mgetgroups: avoid argument promotion issues with -1
41162         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41163         for invalid gid_t.
41164         * tests/test-chown.h (getegid, test_chown): Likewise.
41165         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41166
41167 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41168
41169         exclude: Fix header file problems.
41170         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41171
41172 2009-12-01  Jim Meyering  <meyering@redhat.com>
41173
41174         fts: fts_open: do not let an empty string cause immediate failure
41175         This is required in support of GNU rm, for which the command
41176         "rm A '' B" must process and remove both A and B, in spite of
41177         the empty string argument.
41178         * lib/fts.c (fts_open): Do not let the presence of an empty string
41179         cause fts_open to fail immediately.  Most fts-using tools must be
41180         able to process all arguments, in order, and can be expected to
41181         diagnose such arguments themselves.
41182
41183 2009-11-30  Eric Blake  <ebb9@byu.net>
41184
41185         utimens: fix compilation error
41186         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41187         Declare variable at right scope.
41188
41189 2009-11-29  Jim Meyering  <meyering@redhat.com>
41190
41191         bootstrap: handle perl-5.11's changed --version output
41192         * build-aux/bootstrap (get_version): Handle perl separately,
41193         since perl-5.11's --version output is different.
41194
41195 2009-11-28  Jim Meyering  <meyering@redhat.com>
41196
41197         userspec: depend on the inttostr module, too
41198         * modules/userspec (Depends-on): Add inttostr.
41199
41200         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41201         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41202         number of MAXUID when it evaluates to (uid_t) -1.
41203         Likewise for group ID.  Reported by Matt McCutchen in
41204         <http://savannah.gnu.org/bugs/?28113>
41205
41206         userspec: reformat to use spaces, not TABs
41207         * lib/userspec.c: Expand TABs to spaces.
41208         Add Emacs' "indent-tabs-mode: nil" hint.
41209
41210 2009-11-27  Eric Blake  <ebb9@byu.net>
41211
41212         getopt-gnu: flush out another BSD bug
41213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41214         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41215         flush out BSD bug.
41216         * tests/test-getopt.h (test_getopt): End lists with NULL.
41217         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41218         (test_getopt_long_posix): Enhance test.
41219         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41220         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41221         getopt-gnu.
41222         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41223         Likewise.
41224
41225 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41226
41227         * modules/idpriv-droptemp-tests (Notice): Fix text.
41228
41229 2009-11-27  Jim Meyering  <meyering@redhat.com>
41230
41231         test-xalloc-die: avoid spurious failure due to libtool argv difference
41232         In a libtool-enabled project, this test would fail due to a difference
41233         in the emitted program name, e.g.,
41234         -test-xalloc-die: memory exhausted
41235         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41236         Use program to avoid that.
41237         * modules/xalloc-die-tests (Depends-on): Add progname.
41238         * tests/test-xalloc-die.c: Include progname.h".
41239         (program_name): Remove decl.
41240         (main): Call set_program_name.
41241         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41242
41243 2009-11-26  Richard Jones  <rjones@redhat.com>
41244
41245         w32sock: leave win32 error in place.
41246         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41247
41248 2009-11-26  Eric Blake  <ebb9@byu.net>
41249
41250         init.sh: suggest to use skip_ and fail_ functions in comments
41251         * tests/init.sh: Add a sentence.
41252
41253 2009-11-25  Bruno Haible  <bruno@clisp.org>
41254
41255         init.sh: add documentation in comments
41256         * tests/init.sh: Add some developer and user documentation.
41257
41258 2009-11-26  Jim Meyering  <meyering@redhat.com>
41259
41260         init.sh: accommodate even those who specify bogus srcdir manually
41261         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41262         configure-time tests to be sanitized, so that there is no need to
41263         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41264         (with no double quotes) suffices.  However, since tests may be
41265         invoked manually, and since you may explicitly set srcdir to the
41266         name of a directory containing spaces, do quote its uses here.
41267         * tests/test-pread.sh: Likewise.
41268         Suggested by Bruno Haible.
41269
41270         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41271         * tests/test-pread.sh: Write no data into the pipe, because
41272         test-pread actually reads none.  This avoids a diagnostic,
41273         "bash: echo: write error: Broken pipe", that arises in the unusual
41274         event something is ignoring SIGPIPE, and might be interpreted
41275         as some sort of failure.  Reported by Bruno Haible.
41276
41277 2009-11-25  Jim Meyering  <meyering@redhat.com>
41278
41279         test-pread: cover failure with ESPIPE and EINVAL
41280         * tests/test-pread.c (main): Test for failure, too.
41281         * tests/test-pread.sh: Invoke with stdin on a pipe.
41282         Suggested by Eric Blake.
41283
41284         pread: improvement and fix
41285         * modules/pread (Depends-on): Depend on lseek, for portability to
41286         e.g., mingw.  Suggested by Eric Blake.
41287         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41288
41289         unistd.in.h: correct declaration of pread
41290         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41291         Reported by Richard W.M. Jones.
41292
41293         test-pread.sh: distribute the test script
41294         * modules/pread-tests (Files): Include test-pread.sh.
41295
41296         test-pread.sh: clean up
41297         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41298         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41299         That is unnecessary, since it's always ".".
41300         Suggestion from Eric Blake.
41301
41302         test-pread.sh: make executable
41303         * tests/test-pread.sh: Set executable bit.
41304         Reported by Eric Blake.
41305
41306         correct typo in test-pread.sh
41307         * tests/test-pread.sh: Add #! line.
41308
41309         test pread
41310         * tests/test-pread.c: New file.
41311         * tests/test-pread.sh: Likewise.
41312         * modules/pread-tests: Likewise.
41313
41314         pread: new module
41315         * modules/pread: New file.
41316         * lib/unistd.in.h (pread): Define/declare.
41317         * lib/pread.c (pread): New file.
41318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41319         * modules/unistd (Makefile.am): Substitute witnesses.
41320         * doc/posix-functions/pread.texi (pread): Update.
41321         * MODULES.html.sh: Add pread.
41322
41323 2009-11-25  Jim Meyering  <meyering@redhat.com>
41324
41325         tests/init.sh: new file to be used via most *.sh tests
41326         * tests/init.sh: New file.
41327
41328 2009-11-25  Eric Blake  <ebb9@byu.net>
41329
41330         utimens: work around older Linux failure with symlinks
41331         * lib/utimens.c (lutimensat_works_really): New variable.
41332         (fdutimens, lutimens): Use it to manage kernels that support
41333         nanosecond times on files, but not on symlinks.
41334         Reported by OndÅ™ej Vašík.
41335
41336         utimes: fix configure grammar
41337         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41338
41339 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41340
41341         regex: Fix fastmap for multibyte character ranges.
41342         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41343         characters when a multibyte character range is included.
41344
41345 2009-11-22  Andy Wingo  <wingo@pobox.com>
41346
41347         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41348         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41349
41350 2009-11-24  Bruno Haible  <bruno@clisp.org>
41351
41352         doc: Most *_l functions exist in MacOS X 10.5.
41353         * doc/posix-functions/duplocale.texi: Update platforms list.
41354         * doc/posix-functions/freelocale.texi: Likewise.
41355         * doc/posix-functions/newlocale.texi: Likewise.
41356         * doc/posix-functions/uselocale.texi: Likewise.
41357         * doc/posix-functions/isalnum_l.texi: Likewise.
41358         * doc/posix-functions/isalpha_l.texi: Likewise.
41359         * doc/posix-functions/isblank_l.texi: Likewise.
41360         * doc/posix-functions/iscntrl_l.texi: Likewise.
41361         * doc/posix-functions/isdigit_l.texi: Likewise.
41362         * doc/posix-functions/isgraph_l.texi: Likewise.
41363         * doc/posix-functions/islower_l.texi: Likewise.
41364         * doc/posix-functions/isprint_l.texi: Likewise.
41365         * doc/posix-functions/ispunct_l.texi: Likewise.
41366         * doc/posix-functions/isspace_l.texi: Likewise.
41367         * doc/posix-functions/isupper_l.texi: Likewise.
41368         * doc/posix-functions/iswalnum_l.texi: Likewise.
41369         * doc/posix-functions/iswalpha_l.texi: Likewise.
41370         * doc/posix-functions/iswblank_l.texi: Likewise.
41371         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41372         * doc/posix-functions/iswctype_l.texi: Likewise.
41373         * doc/posix-functions/iswdigit_l.texi: Likewise.
41374         * doc/posix-functions/iswgraph_l.texi: Likewise.
41375         * doc/posix-functions/iswlower_l.texi: Likewise.
41376         * doc/posix-functions/iswprint_l.texi: Likewise.
41377         * doc/posix-functions/iswpunct_l.texi: Likewise.
41378         * doc/posix-functions/iswspace_l.texi: Likewise.
41379         * doc/posix-functions/iswupper_l.texi: Likewise.
41380         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41381         * doc/posix-functions/isxdigit_l.texi: Likewise.
41382         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41383         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41384         * doc/posix-functions/strcoll_l.texi: Likewise.
41385         * doc/posix-functions/strfmon_l.texi: Likewise.
41386         * doc/posix-functions/strftime_l.texi: Likewise.
41387         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41388         * doc/posix-functions/strxfrm_l.texi: Likewise.
41389         * doc/posix-functions/tolower_l.texi: Likewise.
41390         * doc/posix-functions/toupper_l.texi: Likewise.
41391         * doc/posix-functions/towctrans_l.texi: Likewise.
41392         * doc/posix-functions/towlower_l.texi: Likewise.
41393         * doc/posix-functions/towupper_l.texi: Likewise.
41394         * doc/posix-functions/wcscoll_l.texi: Likewise.
41395         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41396         * doc/posix-functions/wctrans_l.texi: Likewise.
41397         * doc/posix-functions/wctype_l.texi: Likewise.
41398         * doc/glibc-functions/strptime_l.texi: Likewise.
41399         * doc/glibc-functions/strtod_l.texi: Likewise.
41400         * doc/glibc-functions/strtof_l.texi: Likewise.
41401         * doc/glibc-functions/strtol_l.texi: Likewise.
41402         * doc/glibc-functions/strtold_l.texi: Likewise.
41403         * doc/glibc-functions/strtoll_l.texi: Likewise.
41404         * doc/glibc-functions/strtoul_l.texi: Likewise.
41405         * doc/glibc-functions/strtoull_l.texi: Likewise.
41406         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41407         * doc/glibc-functions/wcstod_l.texi: Likewise.
41408         * doc/glibc-functions/wcstof_l.texi: Likewise.
41409         * doc/glibc-functions/wcstol_l.texi: Likewise.
41410         * doc/glibc-functions/wcstold_l.texi: Likewise.
41411         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41412         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41413         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41414
41415 2009-11-24  Bruno Haible  <bruno@clisp.org>
41416
41417         duplocale: Fix logic bug.
41418         * lib/duplocale.c: Don't include <langinfo.h>.
41419         (_NL_LOCALE_NAME): Remove macro.
41420         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41421         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41422
41423 2009-11-23  Jim Meyering  <meyering@redhat.com>
41424
41425         test-update-copyright: don't hard-code /usr/bin/perl
41426         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41427         perl to print the current year.  Gilles Espinasse reported that
41428         the replaced use of perl was hard-coded as /usr/bin/perl.
41429
41430 2009-11-23  Bruno Haible  <bruno@clisp.org>
41431
41432         duplocale: Add support for glibc 2.3.x.
41433         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41434
41435 2009-11-22  Bruno Haible  <bruno@clisp.org>
41436
41437         vasnprintf: Tiny optimization.
41438         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41439         MacOS X.
41440
41441 2009-11-22  Bruno Haible  <bruno@clisp.org>
41442
41443         Tests for module 'duplocale'.
41444         * modules/duplocale-tests: New file.
41445         * tests/test-duplocale.c: New file.
41446
41447         New module 'duplocale'.
41448         * m4/duplocale.m4: New file.
41449         * lib/locale.in.h (duplocale): New declaration.
41450         * lib/duplocale.c: New file.
41451         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41452         gl_LOCALE_H_DEFAULTS): New macros.
41453         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41454         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41455         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41456         REPLACE_DUPLOCALE.
41457         * modules/duplocale: New file.
41458         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41459
41460 2009-11-22  Bruno Haible  <bruno@clisp.org>
41461
41462         * modules/locale-tests (configure.ac): Test for newlocale function.
41463         * tests/test-locale.c: When the system has extended locale functions,
41464         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41465
41466         locale: Make locale_t available when possible.
41467         * lib/locale.in.h: Include <xlocale.h> when it exists.
41468         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41469         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41470         * modules/locale (Depends-on): Add extensions.
41471         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41472         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41473
41474 2009-11-22  Bruno Haible  <bruno@clisp.org>
41475
41476         Add comments.
41477         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41478         invocation.
41479         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41480         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41481         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41482
41483 2009-11-22  Bruno Haible  <bruno@clisp.org>
41484
41485         error: account for the possibility of freopen (stdout).
41486         * lib/error.c: Include <unistd.h>.
41487         (flush_stdout): New function, extracted from error and error_at_line.
41488         Determine stdout's fd dynamically.
41489         (error, error_at_line): Invoke flush_stdout.
41490         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41491         * modules/error (Depends-on): Add unistd.
41492
41493 2009-11-22  Bruno Haible  <bruno@clisp.org>
41494
41495         diffseq: Add comment.
41496         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41497
41498 2009-11-22  Jim Meyering  <meyering@redhat.com>
41499
41500         c-stack: avoid defining an unused static function
41501         * lib/c-stack.c (find_stack_direction): Do not define this function
41502         when it will not be used.
41503
41504         diffseq: avoid spurious gcc warnings
41505         * lib/diffseq.h (IF_LINT2): Define.
41506         (compareseq): Use it to initialize two members of "part".
41507         This avoids two used-uninitialized warnings.
41508
41509 2009-11-21  Jim Meyering  <meyering@redhat.com>
41510
41511         c-stack: avoid "ignoring return value of `write'" warning
41512         * lib/c-stack.c: Include "ignore-value.h".
41513         (die): Explicitly ignore each write return value.
41514         * modules/c-stack (Depends-on): Add ignore-value.
41515
41516 2009-11-21  Bruno Haible  <bruno@clisp.org>
41517
41518         diffseq: reduce scope of variable 'best'.
41519         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41520         variable, earlier used for two different purposes.
41521
41522 2009-11-21  Jim Meyering  <meyering@redhat.com>
41523
41524         diffseq: remove useless assignment to "best"
41525         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41526         assignment.  At that point "best" is already guaranteed to be zero.
41527
41528 2009-11-20  Eric Blake  <ebb9@byu.net>
41529
41530         build: mention ftp redirector in release announcements
41531         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41532         values that used to come from cfg.mk; mention FTP redirect URL.
41533         * build-aux/announce-gen: Mention the mirror list.
41534         Suggested by Karl Berry.
41535
41536         nanosleep: improve port to mingw
41537         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41539         LIB_NANOSLEEP, but only when needed.
41540         * modules/select (Link): Document LIBSOCKET.
41541         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41542         enough.
41543
41544         nanosleep: work around cygwin bug
41545         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41546         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41547         bug.
41548         (getnow): Delete, not needed.
41549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41550         LIB_CLOCK_GETTIME.
41551         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41552         clock-time, gettime.
41553         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41554         bug.
41555         * modules/nanosleep-tests: New test.
41556         * tests/test-nanosleep.c: New file.
41557
41558         sleep: work around cygwin bug
41559         * lib/sleep.c (rpl_sleep): Work around the bug.
41560         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41561         (gl_PREREQ_SLEEP): Delete unused macro.
41562         * modules/sleep (Depends-on): Add verify.
41563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41564         * modules/unistd (Makefile.am): Substitute witness.
41565         * lib/unistd.in.h (sleep): Update prototype.
41566         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41567         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41568         * modules/sleep-tests (Depends-on): Check for alarm.
41569
41570 2009-11-20  Jim Meyering  <meyering@redhat.com>
41571
41572         maint.mk: improve sc_prohibit_magic_number_exit
41573         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41574         so it does not match uses like System.exit(1).
41575         Add comments showing how to correct all offenders.
41576
41577 2009-11-19  Eric Blake  <ebb9@byu.net>
41578
41579         xalloc-die-tests: add missing library
41580         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41581
41582         test-xvasprintf: silence compiler warnings
41583         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41584         empty string from gcc.
41585
41586 2009-11-19  Jim Meyering  <meyering@redhat.com>
41587
41588         xfreopen: new module, from coreutils
41589         * modules/xfreopen: New module.
41590         * lib/xfreopen.c: New file.
41591         * lib/xfreopen.h: New file.
41592         * MODULES.html.sh (File stream based Input/Output"): Add it.
41593
41594 2009-11-19  Eric Blake  <ebb9@byu.net>
41595
41596         manywarnings: depend on warnings
41597         * modules/manywarnings (Depends-on): Add warnings.
41598
41599         build: avoid compiler warnings
41600         * lib/select.c (rpl_select): Delete unused variable.
41601         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41602
41603 2009-11-18  Eric Blake  <ebb9@byu.net>
41604
41605         tests: avoid false negative with --with-packager
41606         * tests/test-version-etc.sh: Discard packager information.
41607         * tests/test-argp-version-etc-1.sh: Likewise.
41608         Reported by Mike Frysinger.
41609
41610         utimens: fix regression on Solaris
41611         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41612         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41613         can only change fd timestamps via futimesat.  Instead, use an
41614         additional witness macro to avoid BSD bug.
41615         Reported by Jim Meyering.
41616
41617 2009-11-17  Eric Blake  <ebb9@byu.net>
41618
41619         usleep: use it to simplify tests
41620         * modules/stat-time-tests (Depends-on): Add usleep.
41621         (configure.ac): Drop usleep check.
41622         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41623         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41624         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41625         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41626         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41627         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41628         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41629         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41630         Likewise.
41631         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41632         * tests/test-lchown.h (nap): Likewise.
41633         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41634         * tests/test-stat-time.c (nap): Likewise.
41635         * tests/test-utimens-common.h (nap): Update comments.
41636
41637         usleep: new module
41638         * modules/usleep: New file.
41639         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41640         * lib/usleep.c (usleep): Likewise.
41641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41642         * modules/unistd (Makefile.am): Substitute witnesses.
41643         * lib/unistd.in.h (usleep): Add declaration.
41644         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41645         * MODULES.html.sh (Date and time): Likewise.
41646         * modules/usleep-tests (Depends-on): New test.
41647         * tests/test-usleep.c: New file.
41648
41649         chown: work around OpenBSD bug
41650         * lib/chown.c (rpl_chown): Work around the bug.
41651         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41652         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41653         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41654         * modules/chown (Depends-on): Add stdbool.
41655         * modules/lchown (Depends-on): Likewise.
41656         * doc/posix-functions/chown.texi (chown): Document the bug.
41657         * doc/posix-functions/lchown.texi (lchown): Likewise.
41658         * tests/test-lchown.h (test_chown): Relax test.
41659
41660         mkstemp: avoid conflict with C++ keyword template
41661         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41662         * lib/mkostemp.c (mkostemp): Likewise.
41663         * lib/mkostemps.c (mkostemps): Likewise.
41664         * lib/mkstemp.c (mkstemp): Likewise.
41665         * lib/mkstemps.c (mkstemps): Likewise.
41666
41667         xalloc-die-tests: optimize
41668         * tests/test-xalloc-die.sh: Reduce number of processes.
41669
41670 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41671
41672         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41673         patch from ludo@gnu.org (Ludovic Courtès).
41674
41675 2009-11-17  Jim Meyering  <meyering@redhat.com>
41676
41677         version-etc: use proper license string
41678         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41679         * modules/version-etc-fsf: Likewise.
41680
41681 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41682
41683         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41684         printed to stdout.  Deal with EOL differences.
41685
41686 2009-11-17  Eric Blake  <ebb9@byu.net>
41687
41688         unsetenv: work around Solaris bug
41689         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41690         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41691         Reported by Jim Meyering.
41692
41693         vasnprintf: avoid compiler warnings
41694         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41695         variables.
41696         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41697
41698 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41699
41700         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41701         settings since xalloc-die is no longer the self test,
41702         xalloc-die.sh is.
41703
41704 2009-11-17  Jim Meyering  <meyering@redhat.com>
41705
41706         test-xalloc-die.sh: make the code agree with the commit log
41707         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41708         at the end, just in case you happen to have a test-xalloc-die
41709         program in some other PATH directory.
41710
41711         test-xalloc-die.sh: fix a portability bug
41712         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41713         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41714         Otherwise, argv[0] (as often seen in diagnostics) would be too
41715         system-dependent, sometimes with, and sometimes without the leading "./".
41716
41717         version-etc-fsf: relax license to LGPLv3+
41718         * modules/version-etc-fsf (License): Relax license.
41719
41720 2009-11-16  Eric Blake  <ebb9@byu.net>
41721
41722         xalloc-die-tests: avoid printing null pointer
41723         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41724         shell script.
41725         * tests/test-xalloc-die.c (program_name): Declare.
41726         * tests/test-xalloc-die.sh (tmpfiles): New file.
41727
41728         setenv, unsetenv: work around various bugs
41729         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41730         (setenv) [HAVE_SETENV]: Work around bugs.
41731         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41732         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41733         for bugs.
41734         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41735         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41737         * modules/stdlib (Makefile.am): Update substitutions.
41738         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41739         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41740         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41741         * modules/setenv-tests: New test.
41742         * modules/unsetenv-tests: Likewise.
41743         * tests/test-setenv.c: New file.
41744         * tests/test-unsetenv.c: Likewise.
41745
41746 2009-11-16  Jim Meyering  <meyering@redhat.com>
41747
41748         version-etc: relax license to LGPLv3+
41749         * modules/version-etc (License): Relax license.
41750
41751         better AC_REQUIRE expanded-before-required-warning avoidance
41752         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41753         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41754         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41755         which is no longer needed.
41756
41757 2009-11-16  Eric Blake  <ebb9@byu.net>
41758
41759         test-freading: clean up temporary file
41760         * tests/test-freading.c (main): Remove file on success, and use
41761         ASSERT more liberally.
41762         Reported by Jim Meyering.
41763
41764 2009-11-16  Jim Meyering  <meyering@redhat.com>
41765
41766         avoid new AC_REQUIRE expanded-before-required warnings
41767         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41768         merely using it.
41769         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41770         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41771
41772 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41773
41774         * tests/test-xalloc-die.c: New file.
41775         * modules/xalloc-die-tests: New file.
41776         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41777         XFAIL_TESTS so it can be appended by modules.
41778
41779 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41780
41781         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41782         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41783
41784 2009-11-14  Eric Blake  <ebb9@byu.net>
41785
41786         fnmatch: avoid compiler warning
41787         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41788         to silence compiler warning about mismatch signedness in ?:.
41789         Reported by Robert Millan.
41790
41791         intprops: add double-inclusion guard
41792         * lib/intprops.h: Allow idempotent includes.
41793         Suggested by Bruce Korb.
41794
41795         openat: detect Solaris fchownat bug
41796         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41797         penalizing glibc chownat when only lchownat is broken.
41798         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41799         trailing slash bugs.
41800         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41801         * modules/openat-tests (Files): Include more files.
41802         (Depends-on): Add mgetgroups, sleep, stat-time.
41803         (configure.ac): Add additional checks.
41804         (Makefile.am): Build new test.
41805         * tests/test-fchownat.c: New file.
41806
41807         lchown: detect Solaris and FreeBSD bug
41808         * lib/lchown.c (rpl_lchown): Work around bug.
41809         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41811         * modules/unistd (Makefile.am): Populate it.
41812         * lib/unistd.in.h (lchown): Update declaration.
41813         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41814         * modules/lchown-tests: New file.
41815         * tests/test-lchown.h (test_lchown): Likewise.
41816         * tests/test-lchown.c (main): Likewise.
41817
41818         chown: detect Solaris and FreeBSD bug
41819         * lib/chown.c (rpl_chown): Work around bug.
41820         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41821         (gl_PREREQ_CHOWN): Delete.
41822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41823         * modules/unistd (Makefile.am): Populate it.
41824         * lib/unistd.in.h (chown): Update declaration.
41825         * lib/lchown.c (chown): Update client.
41826         * modules/lchown (Depends-on): Add lstat.
41827         * doc/posix-functions/chown.texi (chown): Document the bug.
41828         * doc/posix-functions/getgroups.texi (getgroups): Document
41829         getgroups pitfall.
41830         * modules/chown-tests: New file.
41831         * tests/test-chown.h (test_chown): Likewise.
41832         * tests/test-chown.c (main): Likewise.
41833
41834 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41835
41836         gnulib-tool: correctly detect absence of m4 directories
41837         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41838
41839 2009-11-14  Jim Meyering  <meyering@redhat.com>
41840
41841         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41842         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41843
41844 2009-11-14  John W. Eaton  <jwe@gnu.org>
41845
41846         strftime.h: wrap function declaration in extern "C" block
41847         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41848
41849 2009-11-13  Eric Blake  <ebb9@byu.net>
41850
41851         getgroups: avoid compiler warning
41852         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41853
41854         getgroups: work around FreeBSD bug
41855         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41856         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41857         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41858         * tests/test-getgroups.c (main): Fix buffer overrun.
41859
41860         getgroups: avoid compilation failure
41861         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41862         * modules/getgroups (Depends-on): Add stdint.
41863
41864 2009-11-13  Jim Meyering  <meyering@redhat.com>
41865
41866         test-getgroups: avoid compilation failure
41867         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41868
41869 2009-11-13  Eric Blake  <ebb9@byu.net>
41870
41871         mgetgroups: new module, taken from coreutils
41872         * modules/mgetgroups: New file.
41873         * lib/mgetgroups.h: Likewise.
41874         * lib/mgetgroups.c (mgetgroups): Likewise.
41875         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41876         * MODULES.html.sh (Users and groups): Mention it.
41877
41878         getgroups: don't expose GETGROUPS_T to user
41879         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41880         an element at a time if GETGROUPS_T is wrong size.
41881         * lib/getugroups.h (getugroups): Change signature.
41882         * lib/unistd.in.h (getgroups): Likewise.
41883         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41884         signature needs fixing.
41885         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41886         AC_TYPE_GETGROUPS.
41887         * modules/group-member (Depends-on): Add getgroups.
41888         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41889         (group_member): Rely on getgroups replacement.
41890         * lib/getugroups.c (getugroups): Use gid_t.
41891         * tests/test-getgroups.c (main): Likewise.
41892         * NEWS: Mention the signature change.
41893         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41894         problem with signature.
41895         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41896         GETGROUPS_T is still useful for setgroups.
41897
41898         getgroups, getugroups: provide stubs for mingw
41899         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41900         * lib/getugroups.c (getugroups): Likewise.
41901         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41902         function.  Modernize replacement scheme.
41903         (gl_PREREQ_GETGROUPS): Delete.
41904         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41905         * modules/getgroups (configure.ac): Declare witness.
41906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41907         * modules/unistd (Depends-on): Substitute witness.
41908         * lib/unistd.in.h (getgroups): Declare replacement.
41909
41910         getgroups: avoid calling exit
41911         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41912         drop xalloc.
41913         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41914         dependencies.
41915         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41916         exiting, in the rare case of malloc failure.
41917
41918         getgroups: fix logic error
41919         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41920         has more than 20 groups.
41921         * modules/getgroups-tests: New test.
41922         * tests/test-getgroups.c: New file.
41923
41924 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41925
41926         * tests/test-base64.c: Improve.
41927
41928 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41929
41930         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41931         Blake <ebb9@byu.net>.
41932
41933 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41934
41935         * tests/test-xvasprintf.c: Add %s%s related checks.
41936
41937 2009-11-12  Eric Blake  <ebb9@byu.net>
41938
41939         version-etc: match standards.texi style
41940         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41941         and use <> only for URLs.
41942
41943 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41944
41945         fts: do not fail on a submount during traversal
41946         * lib/fts.c (fts_build): Read the stat info again after opening
41947         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41948         Original report at http://bugzilla.redhat.com/501848.
41949
41950 2009-11-12  Jim Meyering  <meyering@redhat.com>
41951
41952         bootstrap: sync from coreutils
41953         * build-aux/bootstrap (bootstrap_epilogue): New function.
41954         Use git_modules_config in one more place.  This make bootstrap's
41955         --gnulib-srcdir option more useful for testing.
41956
41957         bootstrap: generalize autoheader check
41958         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41959         AC_CONFIG_HEADERS.
41960
41961 2009-11-11  Eric Blake  <ebb9@byu.net>
41962
41963         mkfifoat: use new modules for Solaris and BSD bugs
41964         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41965         * lib/mkfifoat.c (mknodat): Split...
41966         * lib/mknodat.c (mknodat): ...into new file.
41967         * modules/mkfifoat (Files): Ship new file.
41968         (Depends-on): Add mkfifo, mknod.
41969         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41970         (Depends-on): Add symlink.
41971         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41972         redundant with test_mkfifo.h.
41973         (do_mkfifoat, do_mknodat): New helpers.
41974
41975         mknod: new module
41976         * modules/mknod: New file.
41977         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41978         * lib/mknod.c (mknod): Likewise.
41979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41980         defaults.
41981         * modules/sys_stat (Makefile.am): Substitute them.
41982         * lib/sys_stat.in.h (mknod): Declare replacement.
41983         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41984         Document it.
41985         * doc/posix-functions/mknod.texi (mknod): Likewise.
41986         * modules/mknod-tests: New test.
41987         * tests/test-mknod.c: Likewise.
41988
41989         mkfifo: new module
41990         * modules/mkfifo: New file.
41991         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41992         * lib/mkfifo.c (mkfifo): Likewise.
41993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41994         defaults.
41995         * modules/sys_stat (Makefile.am): Substitute them.
41996         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41997         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41998         Document it.
41999         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42000         * modules/mkfifo-tests: New test.
42001         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42002         from test-mkfifoat.c.
42003         * tests/test-mkfifo.c: New file.
42004
42005         readlink: detect FreeBSD bug
42006         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42007         slash on symlink.
42008         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42009         * tests/test-readlink.h (test_readlink): Enhance test.
42010
42011         symlink: detect FreeBSD bug
42012         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42013         slash on symlink.
42014         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42015         * tests/test-symlink.h (test_symlink): Enhance test.
42016
42017 2009-11-10  Eric Blake  <ebb9@byu.net>
42018
42019         link: detect FreeBSD bug
42020         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42021         symlink.
42022         * doc/posix-functions/link.texi (link): Document the bug.
42023         * tests/test-link.h (test_link): Enhance test.
42024         * tests/test-linkat.c (main): Update caller.
42025
42026         unlink, remove: detect FreeBSD bug
42027         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42028         slash on symlink.
42029         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42030         * doc/posix-functions/remove.texi (remove): Likewise.
42031         * tests/test-unlink.h (test_unlink): Enhance test.
42032         * tests/test-remove.c (main): Likewise.
42033
42034 2009-11-09  Eric Blake  <ebb9@byu.net>
42035
42036         rename: detect FreeBSD bug
42037         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42038         slash on symlink.
42039         * modules/renameat-tests (Depends-on): Add filenamecat.
42040         * tests/test-rename.h (test_rename): Allow one more errno.
42041         * tests/test-renameat.c (main): Likewise.
42042         * doc/posix-functions/rename.texi (rename): Document the bug.
42043
42044         open: detect FreeBSD bug
42045         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42046         symlink.
42047         * doc/posix-functions/open.texi (open): Document the bug.
42048         * doc/posix-functions/utimes.texi (utimes): Likewise.
42049         * tests/test-open.h (test_open): Add parameters, and test symlink
42050         handling.
42051         * tests/test-open.c (main): Adjust caller.
42052         * tests/test-fcntl-safer.c (main): Likewise.
42053         * modules/open-tests (Depends-on): Add stdbool, symlink.
42054         * modules/fcntl-safer-tests (Depends-on): Likewise.
42055         * tests/test-openat.c (main): Add test-open tests.
42056
42057         stat: detect FreeBSD bug
42058         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42059         symlink.
42060         * doc/posix-functions/stat.texi (stat): Document the bug.
42061         * tests/test-stat.h (test_stat_func): Add argument.
42062         * tests/test-stat.c (main): Adjust caller.
42063         * tests/test-fstatat.c (main): Likewise.
42064         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42065         Reported by Jim Meyering.
42066
42067 2009-11-09  James Youngman  <jay@gnu.org>
42068
42069         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42070         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42071
42072 2009-11-08  Jim Meyering  <meyering@redhat.com>
42073
42074         utimens: remove invalid futimesat call
42075         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42076         It used the file descriptor of the target file as the DIR_FD
42077         parameter and NULL as the file name.  That caused failure with
42078         errno == EFAULT on FreeBSD-8.0-rc2
42079
42080 2009-11-07  Eric Blake  <ebb9@byu.net>
42081
42082         fflush, freadseek: use fseeko, not fseek
42083         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42084         (clear_ungetc_buffer): Avoid potential problems on large files.
42085         * lib/freadseek.c (freadseek): Likewise.
42086         * modules/freadseek (Depends-on): Add fseeko.
42087         * modules/fseek (configure.ac): Set a witness.
42088         * tests/test-fflush.c (main): Use fseeko.
42089         * tests/test-fpurge.c (fseek): Disable link warning.
42090         * tests/test-freadable.c (fseek): Likewise.
42091         * tests/test-freading.c (fseek): Likewise.
42092         * tests/test-fseeko.c (fseek): Likewise.
42093         * tests/test-ftell.c (fseek): Likewise.
42094         * tests/test-ftello.c (fseek): Likewise.
42095         * tests/test-fwritable.c (fseek): Likewise.
42096         * tests/test-fwriting.c (fseek): Likewise.
42097
42098 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42099
42100         * modules/memchr (Depends-on): Drop getpagesize dependency.
42101
42102 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42103
42104         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42105         Reported by Ludovic Courtès.
42106         * build-aux/pmccabe2html: Improve example usage.
42107         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42108
42109 2009-11-06  Jim Meyering  <meyering@redhat.com>
42110
42111         do-release-commit-and-tag: New module.
42112         Automate the release-commit and tag process.
42113         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42114         * modules/do-release-commit-and-tag: New file.
42115         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42116
42117 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42118
42119         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42120         because test-select.c uses inet_pton.
42121
42122 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42123
42124         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42125         GETADDRINFO_LIB.  Bump serial number.
42126         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42127         Suggested by Eric Blake <ebb9@byu.net>.
42128
42129 2009-11-05  Eric Blake  <ebb9@byu.net>
42130
42131         strtod: detect darwin bug
42132         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42133         Reported by Leo Davis.
42134
42135         freopen-safer: new module
42136         * modules/freopen-safer: New module.
42137         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42138         * lib/freopen-safer.c (freopen_safer): New file.
42139         * lib/stdio-safer.h (freopen_safer): New declaration.
42140         * lib/stdio--.h (freopen): New override.
42141         * MODULES.html.sh (File stream based Input/Output): Mention it.
42142         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42143         freopen-safer module.
42144         * doc/posix-functions/stderr.texi (stderr): Likewise.
42145         * doc/posix-functions/stdin.texi (stdin): Likewise.
42146         * doc/posix-functions/stdout.texi (stdout): Likewise.
42147         * modules/freopen-safer-tests: New test.
42148         * tests/test-reopen-safer.c: New file.
42149
42150 2009-11-05  Jim Meyering  <meyering@redhat.com>
42151
42152         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42153         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42154
42155 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42156
42157         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42158
42159 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42160
42161         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42162
42163 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42164
42165         Fix link error.
42166         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42167         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42168
42169 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42170
42171         * tests/test-func.c: Also test value of __func__.
42172
42173 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42174
42175         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42176         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42177
42178 2009-11-05  Bruno Haible  <bruno@clisp.org>
42179
42180         Fix link error.
42181         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42182         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42183         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42184
42185 2009-11-05  Bruno Haible  <bruno@clisp.org>
42186
42187         Tests for module 'inet_pton'.
42188         * modules/inet_pton-tests: New file.
42189         * tests/test-inet_pton.c: New file.
42190
42191 2009-11-05  Bruno Haible  <bruno@clisp.org>
42192
42193         Tests for module 'inet_ntop'.
42194         * modules/inet_ntop-tests: New file.
42195         * tests/test-inet_ntop.c: New file.
42196
42197 2009-11-04  Eric Blake  <ebb9@byu.net>
42198
42199         stdlib-safer: wrap all mkstemp variants
42200         * modules/mkostemp (configure.ac): Set witness.
42201         * modules/mkostemps (configure.ac): Likewise.
42202         * modules/mkstemps (configure.ac): Likewise.
42203         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42204         (mkstemps_safer): Wrap more functions.
42205         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42206         wrapping.
42207         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42208         (mkstemps_safer): Implement the wrappers.
42209
42210         mkstemps, mkostemps: new modules
42211         * modules/mkostemps: New module.
42212         * modules/mkstemps: Likewise.
42213         * lib/mkostemps.c (mkostemps): New file.
42214         * lib/mkstemps.c (mkstemps): Likewise.
42215         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42216         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42218         * modules/stdlib (Makefile.am): Substitute them.
42219         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42220         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42221         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42222         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42223         * MODULES.html.sh (File system functions): Mention them.
42224
42225         tempname: resync from glibc
42226         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42227         same values for __GT_FILE as glibc.  Abort even when assertions
42228         are disabled.
42229         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42230         match its value otherwise.  Allow idempotent inclusion.
42231         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42232         * lib/mkostemp.c (mkostemp): Likewise.
42233         * lib/mkstemp.c (mkstemp): Likewise.
42234         * lib/tmpfile.c (tmpfile): Likewise.
42235         * NEWS: Document this.
42236
42237         utimens: fix use of futimens on older Linux
42238         * lib/utimens.c (fdutimens): Use updated, rather than original,
42239         timespec to avoid bug in older Linux kernel.
42240         Reported by Simon Josefsson.
42241
42242 2009-11-04  Bruno Haible  <bruno@clisp.org>
42243
42244         Make num_processors more flexible and consistent.
42245         * lib/nproc.h (enum nproc_query): New type.
42246         (num_processors): Add a 'query' argument.
42247         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42248         (num_processors): Add a 'query' argument. Test the value of the
42249         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42250         mingw, count the number of CPUs available for the current process.
42251         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42252         Check for sched_getaffinity and sched_getaffinity_np.
42253         * modules/nproc (Depends-on): Add c-ctype, extensions.
42254         * NEWS: Mention the change.
42255
42256 2009-11-03  Bruno Haible  <bruno@clisp.org>
42257
42258         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42259
42260 2009-11-03  Jim Meyering  <meyering@redhat.com>
42261
42262         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42263         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42264         if it is defined.
42265
42266 2009-11-02  Eric Blake  <ebb9@byu.net>
42267
42268         mktime, timegm: share common declaration
42269         * lib/mktime-internal.h: New file.
42270         * lib/mktime.c: Use it rather than open-coding a declaration.
42271         * lib/timegm.c: Likewise.
42272         * modules/mktime (Files): Ship it.
42273         * modules/timegm (Files): Likewise.
42274         Suggested by Bruno Haible.
42275
42276         test-update-copyright: update test to match script changes
42277         * tests/test-update-copyright.sh: Avoid hard-coding perl
42278         location.  Don't update *.bak created by earlier runs.
42279
42280 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42281             Simon Josefsson  <simon@josefsson.org>
42282             Bruno Haible  <bruno@clisp.org>
42283
42284         Fix link error on Solaris 8.
42285         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42286         also in libnsl. Define also INET_PTON_LIB.
42287         * modules/inet_pton (Link): New section.
42288
42289 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42290             Bruno Haible  <bruno@clisp.org>
42291
42292         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42293         * modules/inet_ntop (Link): New section.
42294         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42295
42296 2009-11-02  Eric Blake  <ebb9@byu.net>
42297
42298         maint: avoid compiler warnings in m4 macros
42299         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42301
42302 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42303
42304         * m4/pmccabe2html.m4: Remove file.
42305         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42306         function.  Change maintainer.
42307         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42308         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42309         Courtès).
42310
42311 2009-10-31  Eric Blake  <ebb9@byu.net>
42312
42313         fseeko: fix m4 regression
42314         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42315         regression from 2009-10-27.
42316         Reported by Ralf Wildenhues.
42317
42318 2009-10-31  Jim Meyering  <meyering@redhat.com>
42319
42320         inttostr: aesthetics and improved (compile-time) safety
42321         Define inttype_is_signed rather than inttype_is_unsigned,
42322         since the sole use is via "#if inttype_is_signed".
42323         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42324         inttype_is_unsigned.
42325         * lib/offtostr.c (inttype_is_signed): Likewise.
42326         * lib/uinttostr.c (inttype_is_signed): Likewise.
42327         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42328         * lib/inttostr.c (inttostr): Use verify to cross-check the
42329         inttype_is_signed value and the signedness of the actual type.
42330         * modules/inttostr (Depends-on): Add verify.
42331
42332 2009-10-30  Eric Blake  <ebb9@byu.net>
42333
42334         build: avoid compiler warnings
42335         * lib/fchmodat.c (lchmod): Mark unused variables.
42336         * lib/getopt.c (_getopt_initialize): Likewise.
42337         * lib/mktime.c (__mktime_internal): Provide prototype.
42338         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42339         older gcc that do not understand #pragma GCC diagnostic.
42340         * lib/uinttostr.c (inttype_is_unsigned): Define.
42341         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42342
42343 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42344
42345         stat: fix compilation on AIX
42346         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42347         only see struct stat64.
42348
42349 2009-10-30  Eric Blake  <ebb9@byu.net>
42350
42351         exclude: make more robust
42352         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42353         rather than masking a coding bug.
42354         Suggested by Bruno Haible.
42355
42356 2009-10-30  Jim Meyering  <meyering@redhat.com>
42357
42358         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42359         Rather than putting #!/usr/bin/perl on the first line,
42360         start with a variant of what's recommended by "man perlrun" that
42361         invokes the first "perl" program from your shell's search path.
42362         * build-aux/gitlog-to-changelog: Replace #!... as above.
42363         Add a "Local Variables" perl mode setting.
42364         Prompted by a patch from Ludovic Courtès.
42365         Improved by Eric Blake.
42366         * build-aux/useless-if-before-free: Likewise.
42367         * build-aux/announce-gen: Likewise.
42368         * build-aux/update-copyright: Likewise.
42369
42370 2009-10-29  Eric Blake  <ebb9@byu.net>
42371
42372         filenamecat-lgpl: adjust clients
42373         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42374         filenamecat.
42375         * modules/renameat (Depends-on): Likewise.
42376
42377         filenamecat: split into filenamecat-lgpl
42378         * modules/filenamecat-lgpl: New module.
42379         * modules/filenamecat (Files): Move library-safe files into
42380         filenamecat-lgpl.
42381         (Depends-on): Add filenamecat-lgpl.
42382         (configure.ac): Declare witness.
42383         * lib/filenamecat.h (file_name_concat): Only declare when using
42384         GPL module.
42385         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42386         Move...
42387         * lib/filenamecat-lgpl.c: ...into new file.
42388         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42389         (gl_FILE_NAME_CONCAT): Use it.
42390         * MODULES.html.sh (File system functions): Mention new module.
42391
42392         argp: avoid memory leak
42393         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42394         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42395         base_name, since the latter malloc()s and can call exit().
42396         Leak introduced 2006-07-03.
42397
42398         dirname-lgpl: adjust clients that don't need full dirname
42399         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42400         * modules/filenamecat (Depends-on): Likewise.
42401         * modules/linkat (Depends-on): Likewise.
42402         * modules/mkancesdirs (Depends-on): Likewise.
42403         * modules/mkdir (Depends-on): Likewise.
42404         * modules/openat (Depends-on): Likewise.
42405         * modules/savewd (Depends-on): Likewise.
42406         * modules/rename (Depends-on): Likewise.
42407         (License): Relax license.
42408         * modules/mkdir-tests (Depends-on): Drop progname.
42409         (Makefile.am): Delete unneeded LDADD.
42410         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42411
42412         dirname: split into dirname-lgpl
42413         * modules/dirname-lgpl: New module.
42414         * modules/dirname (Files): Move library-safe files into
42415         dirname-lgpl.
42416         (Depends-on): Add dirname-lgpl.
42417         (configure.ac): Declare witness.
42418         * modules/double-slash-root (License): Relax license.
42419         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42420         module.
42421         * lib/dirname.c (dir_len, mdir_name): Move...
42422         * lib/dirname-lgpl.c: ...into new file.
42423         * lib/basename.c (last_component, base_len): Move...
42424         * lib/basename-lgpl.c: ...into new file.
42425         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42426         (gl_DIRNAME): Use it.
42427         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42428         Mention new module.
42429         * modules/dirname-tests (Depends-on): Add progname.
42430         * tests/test-dirname.c (program_name): Delete.
42431
42432         mkdir: make safe for libraries
42433         * modules/mkdir (Depends-on): Drop xalloc.
42434         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42435         exit.
42436
42437         tests: avoid some compiler warnings
42438         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42439         literals.
42440         * tests/test-memchr.c (main): Avoid type mismatch.
42441         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42442         * tests/test-base64.c (main): Likewise.
42443         * tests/test-getdelim.c (main): Likewise.
42444         * tests/test-gethostname.c (main): Likewise.
42445         * tests/test-getline.c (main): Likewise.
42446         * tests/test-netinet_in.c (main): Likewise.
42447         * tests/test-select.c (open_server_socket, main): Likewise.
42448         * tests/test-select-stdin.c (main): Likewise.
42449         * tests/test-sockets.c (main): Likewise.
42450         * tests/test-strsignal.c (main): Likewise.
42451         * tests/test-sys_select.c (main): Likewise.
42452         * tests/test-sys_socket.c (main): Likewise.
42453         * tests/test-u64.c (main): Likewise.
42454         * tests/test-xfprintf-posix.c (main): Likewise.
42455         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42456
42457         sockets: avoid compiler warning
42458         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42459
42460         maint: detect usage(1) and other suspicious exits
42461         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42462
42463 2009-10-29  Jim Meyering  <meyering@redhat.com>
42464
42465         timespec: long-to-int truncation could make timespec_cmp malfunction
42466         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42467         a multiple of 2^32 nanoseconds as no difference.
42468
42469 2009-10-28  Jim Meyering  <meyering@redhat.com>
42470
42471         fprintftime: wrap macro code argument in "do {...} while(0)"
42472         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42473         cpy macro must be a statement that can be followed by a semicolon.
42474         Now that the else clause contains a comment and is hence longer
42475         than one line, I require curly braces.  That in turn requires
42476         that we wrap this code block in the standard do...while(0).
42477
42478         fprintftime: remove stray semicolon from previous change
42479         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42480
42481         fprintftime: avoid a warning about ignored fwrite return value
42482         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42483         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42484         that is unsafe.
42485         * modules/fprintftime (Depends-on): Add ignore-value.
42486
42487         exclude: avoid an unwarranted warning
42488         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42489
42490 2009-10-27  Eric Blake  <ebb9@byu.net>
42491
42492         fseek: avoid compilation failure when fflush is replaced
42493         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42494         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42495         module is in use.
42496         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42497         module is not in use; since REPLACE_FSEEK worked otherwise.
42498         (GNULIB_FTELLO): Likewise for ftell.
42499         Reported by Ian Beckwith and others.
42500
42501 2009-10-27  Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42504         Reported by Jim Meyering.
42505
42506 2009-10-27  Jim Meyering  <jim@meyering.net>
42507             Bruno Haible  <bruno@clisp.org>
42508
42509         Avoid warning despite dropping the return value of fwrite.
42510         * lib/unicodeio.c: Include ignore-value.h.
42511         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42512         * modules/unicodeio (Depends-on): Add ignore-value.
42513
42514 2009-10-26  Eric Blake  <ebb9@byu.net>
42515
42516         areadlinkat: fix fallback path
42517         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42518         pointer and zero.
42519
42520 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42521
42522         Use a better IO block size for modern systems
42523         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42524         * lib/md2.c: Likewise.
42525         * lib/md4.c: Likewise.
42526         * lib/md5.c: Likewise.
42527         * lib/sha1.c: Likewise.
42528         * lib/sha256.c: Likewise.
42529         * lib/sha512.c: Likewise.
42530
42531 2009-10-22  Eric Blake  <ebb9@byu.net>
42532
42533         tests: avoid several compiler warnings
42534         * tests/test-getcwd.c (main): Avoid buffer underflow.
42535         * tests/test-getdate.c (main): String literals are not safe with
42536         putenv, so use setenv.  Declare unused argument.
42537         * modules/getdate-tests (Depends-on): Add setenv.
42538         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42539         problems with string literals in char *.
42540         * tests/test-hash.c (main): Avoid shadowing declaration.
42541         (insert_new): Treat string literals as char const *.
42542         * tests/test-getopt.h (test_getopt): Likewise.
42543         (getopt_loop): Alter types to minimize casting elsewhere.
42544         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42545         (test_getopt_long_posix): Likewise.
42546         (do_getopt_long): Add wrapper to minimize casting.
42547         * tests/test-atexit.c (clear_temp_file): Use void.
42548         * tests/test-areadlink-with-size.c (main): Declare unused
42549         arguments.
42550         * tests/test-areadlink.c (main): Likewise.
42551         * tests/test-areadlinkat-with-size.c (main): Likewise.
42552         * tests/test-areadlinkat.c (main): Likewise.
42553         * tests/test-canonicalize-lgpl.c (main): Likewise.
42554         * tests/test-canonicalize.c (main): Likewise.
42555         * tests/test-dirent-safer.c (main): Likewise.
42556         * tests/test-dirname.c (main): Likewise.
42557         * tests/test-dup2.c (main): Likewise.
42558         * tests/test-fchdir.c (main): Likewise.
42559         * tests/test-fcntl-h.c (main): Likewise.
42560         * tests/test-fcntl-safer.c (main): Likewise.
42561         * tests/test-fdopendir.c (main): Likewise.
42562         * tests/test-fdutimensat.c (main): Likewise.
42563         * tests/test-fflush.c (main): Likewise.
42564         * tests/test-filenamecat.c (main): Likewise.
42565         * tests/test-filevercmp.c (main): Likewise.
42566         * tests/test-fopen-safer.c (main): Likewise.
42567         * tests/test-fopen.c (main): Likewise.
42568         * tests/test-fpending.c (main): Likewise.
42569         * tests/test-fpurge.c (main): Likewise.
42570         * tests/test-freading.c (main): Likewise.
42571         * tests/test-fstatat.c (main): Likewise.
42572         * tests/test-fsync.c (main): Likewise.
42573         * tests/test-futimens.c (main): Likewise.
42574         * tests/test-getndelim2.c (main): Likewise.
42575         * tests/test-gettimeofday.c (main): Likewise.
42576         * tests/test-getopt.c (main): Likewise.
42577         * tests/test-i-ring.c (main): Likewise.
42578         * tests/test-inttypes.c (main): Likewise.
42579         * tests/test-link.c (main): Likewise.
42580         * tests/test-lstat.c (main): Likewise.
42581         * tests/test-math.c (main): Likewise.
42582         * tests/test-md5.c (main): Likewise.
42583         * tests/test-memchr2.c (main): Likewise.
42584         * tests/test-memrchr.c (main): Likewise.
42585         * tests/test-mkdir.c (main): Likewise.
42586         * tests/test-mkdirat.c (main): Likewise.
42587         * tests/test-mkfifoat.c (main): Likewise.
42588         * tests/test-open.c (main): Likewise.
42589         * tests/test-openat-safer.c (main): Likewise.
42590         * tests/test-openat.c (main): Likewise.
42591         * tests/test-quotearg.c (main): Likewise.
42592         * tests/test-rawmemchr.c (main): Likewise.
42593         * tests/test-readlink.c (main): Likewise.
42594         * tests/test-remove.c (main): Likewise.
42595         * tests/test-rename.c (main): Likewise.
42596         * tests/test-renameat.c (main): Likewise.
42597         * tests/test-rmdir.c (main): Likewise.
42598         * tests/test-sha1.c (main): Likewise.
42599         * tests/test-signal.c (main): Likewise.
42600         * tests/test-sigaction.c (main): Likewise.
42601         * tests/test-stat.c (main): Likewise.
42602         * tests/test-stat-time.c (main): Likewise.
42603         * tests/test-stddef.c (main): Likewise.
42604         * tests/test-stdint.c (main): Likewise.
42605         * tests/test-stdio.c (main): Likewise.
42606         * tests/test-stdlib.c (main): Likewise.
42607         * tests/test-strchrnul.c (main): Likewise.
42608         * tests/test-strerror.c (main): Likewise.
42609         * tests/test-string.c (main): Likewise.
42610         * tests/test-strtod.c (main): Likewise.
42611         * tests/test-strverscmp.c (main): Likewise.
42612         * tests/test-symlink.c (main): Likewise.
42613         * tests/test-symlinkat.c (main): Likewise.
42614         * tests/test-sys_stat.c (main): Likewise.
42615         * tests/test-sys_time.c (main): Likewise.
42616         * tests/test-time.c (main): Likewise.
42617         * tests/test-unistd.c (main): Likewise.
42618         * tests/test-unlink.c (main): Likewise.
42619         * tests/test-unlinkat.c (main): Likewise.
42620         * tests/test-utimens.c (main): Likewise.
42621         * tests/test-utimensat.c (main): Likewise.
42622         * tests/test-version-etc.c (main): Likewise.
42623         * tests/test-wchar.c (main): Likewise.
42624         * tests/test-wctype.c (main): Likewise.
42625         * tests/test-xprintf-posix.c (main): Likewise.
42626         * tests/test-posixtm.c (main): Likewise.
42627         (STREQ): Delete unused macro.
42628         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42629         shadowed variables.
42630         * tests/test-memchr.c (main): Likewise.
42631
42632 2009-10-21  Eric Blake  <ebb9@byu.net>
42633
42634         areadlinkat: avoid failure on older glibc
42635         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42636         rather than mis-comparing 0 against FUNC_RESULT of char*.
42637
42638 2009-10-21  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/stpncpy (License): Relicense under LGPLv2+.
42641         Reported by David Lutterkort <lutter@redhat.com>.
42642
42643 2009-10-20  Eric Blake  <ebb9@byu.net>
42644
42645         utimensat: work around Solaris 9 bug
42646         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42647         has trailing slash bugs.
42648         * tests/test-lutimens.h (test_lutimens): Enhance test.
42649         * tests/test-utimens.h (test_utimens): Likewise.
42650         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42651         * doc/posix-functions/utimes.texi (utimes): Likewise.
42652         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42653         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42654         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42655         * doc/posix-functions/futimens.texi (futimens): Likewise.
42656
42657         fdutimensat: new module
42658         * modules/fdutimensat: New file.
42659         * lib/fdutimensat.c (fdutimensat): Likewise.
42660         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42661         * MODULES.html.sh (File system functions): Mention module.
42662         * modules/fdutimensat-tests: New test.
42663         * tests/test-fdutimensat.c: Likewise.
42664
42665         doc: regenerate INSTALL
42666         * doc/INSTALL: Reflect recent autoconf update.
42667         * doc/INSTALL.ISO: Likewise.
42668         * doc/INSTALL.UTF-8: Likewise.
42669
42670 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42671
42672         acl: warn if ACL support is not detected
42673         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42674
42675 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42676
42677         * lib/nproc.h: Add extern "C" block for C++.
42678
42679 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42680             Bruno Haible  <bruno@clisp.org>
42681
42682         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42683         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42684         * doc/posix-functions/isalpha.texi: Likewise.
42685         * doc/posix-functions/isblank.texi: Likewise.
42686         * doc/posix-functions/iscntrl.texi: Likewise.
42687         * doc/posix-functions/isdigit.texi: Likewise.
42688         * doc/posix-functions/isgraph.texi: Likewise.
42689         * doc/posix-functions/islower.texi: Likewise.
42690         * doc/posix-functions/isprint.texi: Likewise.
42691         * doc/posix-functions/ispunct.texi: Likewise.
42692         * doc/posix-functions/isspace.texi: Likewise.
42693         * doc/posix-functions/isupper.texi: Likewise.
42694         * doc/posix-functions/isxdigit.texi: Likewise.
42695
42696 2009-10-18  Bruno Haible  <bruno@clisp.org>
42697
42698         Tests for module 'isblank'.
42699         * modules/isblank-tests: New file.
42700         * tests/test-isblank.c: New file.
42701
42702         New module 'isblank'.
42703         * lib/isblank.c: New file.
42704         * m4/isblank.m4: New file.
42705         * modules/isblank: New file.
42706         * doc/posix-functions/isblank.texi: Mention the new module.
42707
42708 2009-10-18  Bruno Haible  <bruno@clisp.org>
42709
42710         New module 'ctype'.
42711         * lib/ctype.in.h: New file.
42712         * m4/ctype.m4: New file.
42713         * modules/ctype: New file.
42714         * doc/posix-headers/ctype.texi: Mention the new module.
42715
42716 2009-10-18  Jim Meyering  <meyering@redhat.com>
42717
42718         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42719         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42720         right after its initialization, rather than farther down.
42721         Keeping these in close proximity makes it easier to ensure
42722         that each such variable is initialized.  E.g.,
42723
42724             LIB_CLOCK_GETTIME=
42725             AC_SUBST([LIB_CLOCK_GETTIME])
42726
42727         This change also increments these serial numbers.
42728         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42729         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42731
42732 2009-10-18  Bruno Haible  <bruno@clisp.org>
42733
42734         Don't let environment variables perturb build.
42735         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42736         (gl_PREREQ_GETHRXTIME): ... not here.
42737
42738 2009-10-18  Bruno Haible  <bruno@clisp.org>
42739
42740         Avoid symlink attack in localcharset module.
42741         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42742         (O_NOFOLLOW): Define fallback.
42743         (get_charset_aliases): Don't open the file if it is a symbolic link.
42744         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42745         gl_FCNTL_H.
42746         (gl_FCNTL_H): Require it.
42747         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42748         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42749         Reported by Fergal Glynn <fglynn@veracode.com>.
42750
42751 2009-10-18  Bruno Haible  <bruno@clisp.org>
42752
42753         Implement nproc for mingw.
42754         * lib/nproc.c: Include <windows.h>
42755         (num_processors): On native Windows platforms, try GetSystemInfo.
42756
42757 2009-10-18  Bruno Haible  <bruno@clisp.org>
42758
42759         Implement nproc for IRIX.
42760         * lib/nproc.c: Include <sys/sysmp.h>.
42761         (num_processors): On IRIX systems, try sysmp.
42762         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42763
42764 2009-10-18  Bruno Haible  <bruno@clisp.org>
42765
42766         Implement nproc for HP-UX.
42767         * lib/nproc.c: Include <sys/pstat.h>
42768         (num_processors): On HP-UX systems, try pstat_getdynamic.
42769         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42770         pstat_getdynamic.
42771
42772 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42773             Bruno Haible  <bruno@clisp.org>
42774
42775         Implement nproc for NetBSD, OpenBSD.
42776         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42777         (ARRAY_SIZE): New macro.
42778         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42779         * m4/nproc.m4: New file.
42780         * modules/nproc (Files): Add m4/nproc.m4.
42781         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42782         (Makefile.am): Instead, augment lib_SOURCES.
42783
42784 2009-10-18  Bruno Haible  <bruno@clisp.org>
42785
42786         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42787         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42788         sys/param.h.
42789
42790 2009-10-16  Eric Blake  <ebb9@byu.net>
42791
42792         utimensat: new module
42793         * modules/utimensat: New file.
42794         * lib/utimensat.c (utimensat): Likewise.
42795         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42796         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42797         so we can work around Linux bugs.
42798         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42799         * modules/sys_stat (Makefile.am): Substitute them.
42800         * lib/sys_stat.in.h (utimensat): Declare it.
42801         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42802         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42803         * modules/utimensat-tests: New test.
42804         * tests/test-utimensat.c: Likewise.
42805
42806         utimens: let lutimens work on non-symlinks
42807         * lib/utimens.c (lutimens): Fall back to utimens rather than
42808         failing with ENOSYS, when file is not a symlink.
42809         (utimens): Reduce redirection.
42810         * tests/test-lutimens.h (test_lutimens): Update test to cover
42811         non-symlinks.
42812         * tests/test-utimens.h (test_utimens): Update test to cover
42813         symlinks.
42814         * tests/test-utimens.c (main): Update caller.
42815
42816         utimens: cache whether utimensat syscall works
42817         * lib/utimens.c (utimensat_works_really): New cache variable.
42818         (fdutimens, lutimens): Use it to avoid failing syscall.
42819
42820         test-stat-time, test-utimens: improve portability
42821         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42822         ext4 on alpha, and for cygwin.
42823         * tests/test-utimens-common.h: New file.
42824         (nap): Factor delays into single function.
42825         * tests/test-lutimens.h (test_lutimens): Use new header.
42826         * tests/test-futimens.h (test_futimens): Likewise.
42827         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42828         timestamps to occur from same machine, as was done previously for
42829         test_utimens.
42830         * modules/utimens-tests (Files): Ship new file.
42831         * modules/futimens-tests (Files): Likewise.
42832         Reported in part by Jim Meyering.
42833
42834         sys_stat: sort replacement declarations
42835         * lib/sys_stat.in.h: Sort declarations.
42836         * lib/futimens.c (futimens): Fix typo.
42837
42838 2009-10-15  Jim Meyering  <meyering@redhat.com>
42839
42840         don't let environment settings perturb build
42841         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42842         could cause a configure-time and/or build-time malfunction.
42843         Typically, a configure-time function-in-library test is performed
42844         via code like this:
42845
42846           LIB_VAR=
42847           AC_SUBST([LIB_VAR])
42848           prefix_saved_LIBS=$LIBS
42849             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42850                        [test "$ac_cv_search_FUNC" = "none required" ||
42851                         LIB_VAR=$ac_cv_search_FUNC])
42852           LIBS=$prefix_saved_LIBS
42853
42854         However, in each of the files affected by this change, the LIB_VAR=
42855         initialization was omitted.  Thus, when set in the environment, its
42856         value would propagate into generated Makefiles when FUNC is not found
42857         in LIB_NAME.
42858         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42859         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42861
42862 2009-10-14  Eric Blake  <ebb9@byu.net>
42863
42864         fchdir: avoid infinite recursion in mingw
42865         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42866         recursing.
42867
42868         test-stat-time: port to mingw
42869         * tests/test-stat-time.c (force_unlink): Return a value.
42870         (test_ctime) [W32]: Fix compilation error.
42871         (nap): Don't call usleep with too large an argument.  Use
42872         force_unlink.
42873         * doc/pastposix-functions/usleep.texi (usleep): Document the
42874         portability issue.
42875
42876 2009-10-13  Jim Meyering  <meyering@redhat.com>
42877
42878         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42879         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42880         * modules/pipe-filter-ii: Likewise.
42881         * modules/sys_socket-tests: Likewise.
42882         * modules/tsearch-tests: Likewise.
42883         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42884         (check): Depend on it.
42885
42886 2009-10-12  Eric Blake  <ebb9@byu.net>
42887
42888         utimens-tests: port to NFS file systems
42889         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42890         comparisons to avoid spurious failures from timestamp drift
42891         between NFS machines.
42892
42893 2009-10-12  Eric Blake  <ebb9@byu.net>
42894
42895         stat-time-tests: minor cleanups
42896         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42897         * tests/test-stat-time.c (nap): Separate assignment from call.
42898         Suggested by Paolo Bonzini and Bruno Haible.
42899
42900         sys_stat: guarantee struct timespec
42901         * lib/sys_stat.in.h (includes): Always include <time.h>
42902         * modules/sys_stat (Depends-on): Add time.
42903         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42904         mode_t permission values.
42905         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42906         get at subsecond timestamps.
42907
42908 2009-10-10  Eric Blake  <ebb9@byu.net>
42909
42910         futimens: new module
42911         * modules/futimens: New file.
42912         * lib/futimens.c (futimens): Likewise.
42913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42914         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42915         we can work around Linux bugs.
42916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42917         * modules/sys_stat (Makefile.am): Substitute them.
42918         * lib/sys_stat.in.h (futimens): Declare it.
42919         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42920         * doc/posix-functions/futimens.texi (futimens): Likewise.
42921         * modules/futimens-tests: New test.
42922         * tests/test-futimens.c: Likewise.
42923
42924         utimens: introduce fdutimens
42925         * lib/utimens.h (fdutimens): New prototype.
42926         * lib/utimens.c (gl_futimens): Move guts...
42927         (fdutimens): ...to new interface.
42928         * tests/test-utimens.c (do_fdutimens): Use it.
42929
42930         utimens: add UTIME_NOW and UTIME_OMIT support
42931         * lib/utimens.c (validate_timespec, update_timespec): New helper
42932         functions.
42933         (gl_futimens, lutimens): Use them.
42934         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42935         stdbool, sys_stat.
42936         (Link): Mention resulting library dependency.
42937         * modules/utimecmp (Link): Likewise.
42938         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42939         (Makefile.am): Pick up library dependency.
42940         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42941         definition.
42942         * tests/test-sys_stat.c: Test the definitions.
42943         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42944         * NEWS: Document library dependency.
42945
42946         utimecmp: support symlink timestamps
42947         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42948         hashing when possible.  Use pathconf when available.
42949         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42950         * modules/utimecmp (Depends-on): Add lstat.
42951
42952         utimens: add lutimens interface
42953         * lib/utimens.c (lutimens): New function.
42954         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42955         * lib/utimens.h (lutimens): Declare new interface.
42956         * tests/test-utimens.c (main): Enhance test.
42957         * tests/test-lutimens.h (test_lutimens): New file.
42958         * modules/utimens-tests (Files): Distribute it.
42959         (Depends-on): Add symlink.
42960         (configure.ac): Check for usleep.
42961
42962         utimens: validate futimens usage
42963         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42964         fewer syscalls on failure later on.  Avoid compiler warning on
42965         mingw.
42966         * modules/utimens (Depends-on): Add dup2.
42967
42968         utimens: add test
42969         * modules/utimens-tests: New test.
42970         * tests/test-utimens.h: New file.
42971         * tests/test-futimens.h: Likewise.
42972         * tests/test-utimens.c: Likewise.
42973
42974         doc: mention timestamp portability issues
42975         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42976         instead.
42977         * doc/posix-functions/utime.texi (utime): Likewise.
42978         * doc/posix-functions/utimes.texi (utimes): Likewise.
42979         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42980         instead.
42981         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42982         module.
42983         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42984         Mention weakness with symlink timestamps.
42985         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42986         to utimensat/futimens instead.
42987         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42988
42989         test-dup2: enhance test
42990         * tests/test-dup2.c (main): Also check AT_FDCWD.
42991
42992         test-stat-time: avoid more spurious failures
42993         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42994         xfs; and avoid race if the two timestamps cross quantization edge.
42995
42996         relocatable: prefer 'file system' over 'filesystem'
42997         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42998         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42999         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43000         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43001         * lib/relocatable.c (compute_curr_prefix): Likewise.
43002
43003 2009-10-10  Jim Meyering  <meyering@redhat.com>
43004
43005         stat-time-tests: check for the usleep function
43006         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43007
43008 2009-10-10  Bruno Haible  <bruno@clisp.org>
43009
43010         * modules/xnanosleep: Put the Link section after the Include section.
43011
43012 2009-10-09  Eric Blake  <ebb9@byu.net>
43013
43014         dup2: work around FreeBSD 6.1 bug
43015         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43016         * doc/posix-functions/dup2.texi (dup2): Document it.
43017         Reported by Nelson H. F. Beebe and Jim Meyering.
43018
43019         test-stat-time: port to buggy NFS clients
43020         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43021         (test_ctime): Also skip test if mtime and ctime are skewed.
43022
43023         maint: prefer 'file system' over 'filesystem'
43024         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43025         * doc/posix-functions/lstat.texi (lstat): Likewise.
43026         * lib/file-has-acl.c (file_has_acl): Likewise.
43027         * lib/fwriteerror.c [TEST]: Likewise.
43028         * tests/test-areadlink.h (test_areadlink): Likewise.
43029         * tests/test-areadlinkat-with-size.c (main): Likewise.
43030         * tests/test-areadlinkat.c (main): Likewise.
43031         * tests/test-canonicalize-lgpl.c (main): Likewise.
43032         * tests/test-canonicalize.c (main): Likewise.
43033         * tests/test-fstatat.c (main): Likewise.
43034         * tests/test-linkat.c (main): Likewise.
43035         * tests/test-lstat.h (test_lstat_func): Likewise.
43036         * tests/test-mkdir.h (test_mkdir): Likewise.
43037         * tests/test-readlink.h (test_readlink): Likewise.
43038         * tests/test-remove.c (main): Likewise.
43039         * tests/test-rename.h (test_rename): Likewise.
43040         * tests/test-renameat.c (main): Likewise.
43041         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43042         * tests/test-symlink.h (test_symlink): Likewise.
43043         * tests/test-symlinkat.c (main): Likewise.
43044         * tests/test-unlink.h (test_unlink_func): Likewise.
43045         * tests/test-unlinkat.c (main): Likewise.
43046
43047         maint: make realtime library usage explicit
43048         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43049         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43050         * modules/settime (Link): Likewise.
43051         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43052
43053         test-stat-time: speed up execution
43054         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43055         warning on mingw.
43056         (nap): New helper function.
43057         (prepare_test): Use it to reduce sleep time.
43058         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43059         execution.
43060         * modules/stat-time-tests (configure.ac): Check for usleep.
43061
43062 2009-10-09  Jim Meyering  <meyering@redhat.com>
43063
43064         selinux-h: always use getfilecon wrappers
43065         * lib/getfilecon.c: New file.
43066         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43067         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43068         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43069         (fgetfilecon): Provide a stub.
43070         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43071         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43072         file unconditionally.
43073         When <selinux/selinux.h> is found, arrange to use wrappers.
43074         * modules/selinux-h (Files): Add getfilecon.c.
43075         (Makefile.am): Substitute include-next-related bits
43076         into the now-always-generated selinux/selinux.h file.
43077         * doc/glibc-functions/lgetfilecon.texi: New file.
43078         * doc/glibc-functions/fgetfilecon.texi: New file.
43079         * doc/glibc-functions/getfilecon.texi: New file.
43080         * doc/glibc-functions/getfilecon-desc.texi: New file.
43081         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43082         which to pull in the new files.
43083         * MODULES.html.sh (Misc): Add selinux-h.
43084
43085 2009-10-08  Jim Meyering  <meyering@redhat.com>
43086
43087         unistd: fix comment typo
43088         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43089
43090 2009-10-08  Eric Blake  <ebb9@byu.net>
43091
43092         areadlink: use SIZE_MAX consistently
43093         * modules/areadlink (Depends-on): Add stdint.
43094         * modules/areadlink-with-size (Depends-on): Likewise.
43095         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43096         gives NULL; drop sys/types, since unistd gives size_t; and add
43097         stdint for SIZE_MAX.
43098         (SIZE_MAX): Rely on headers.
43099         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43100         and add stdint.
43101         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43102         (SIZE_MAX): Likewise.
43103         (INITIAL_BUF_SIZE): Turn into enum.
43104         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43105
43106 2009-10-08  Jim Meyering  <meyering@redhat.com>
43107
43108         areadlinkat: avoid compilation failure
43109         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43110         Fix typo in comment.
43111
43112 2009-10-07  Eric Blake  <ebb9@byu.net>
43113
43114         areadlinkat-with-size: new module
43115         * modules/areadlinkat-with-size: New module.
43116         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43117         * lib/areadlink.h (areadlinkat): Declare it.
43118         * MODULES.html.sh (File system functions): Mention it.
43119         * modules/areadlinkat-with-size-tests: New test.
43120         * tests/test-areadlinkat-with-size.c: New file.
43121
43122         xreadlinkat: new module
43123         * modules/xreadlinkat: New module.
43124         * lib/xreadlinkat.c (xreadlinkat): New file.
43125         * lib/xreadlink.h (xreadlinkat): Declare it.
43126         * MODULES.html.sh (File system functions): Mention it.
43127
43128         areadlinkat: new module
43129         * lib/at-func.c (FUNC_FAIL): New define.
43130         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43131         * modules/areadlinkat: New module.
43132         * lib/linkat.c (areadlinkat): Move...
43133         * lib/areadlinkat.c (areadlinkat): ...to new file.
43134         * lib/areadlink.h (areadlinkat): Declare it.
43135         * modules/linkat (Depends-on): Add areadlinkat.
43136         * MODULES.html.sh (File system functions): Mention it.
43137         * modules/areadlinkat-tests: New test.
43138         * tests/test-areadlinkat.c: New file.
43139
43140         areadlink, areadlink-with-size: add tests
43141         * modules/areadlink-tests: New test.
43142         * modules/areadlink-with-size-tests: Likewise.
43143         * tests/test-areadlink.h: New file.
43144         * tests/test-areadlink.c: Likewise.
43145         * tests/test-areadlink-with-size.c: Likewise.
43146
43147         maint: minor cleanups
43148         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43149         _UNUSED_PARAMETER_ instead.
43150         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43151         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43152         * modules/linkat-tests (Files): Distribute test-link.h.
43153
43154         openat, utimens: whitespace cleanup
43155         * lib/openat.c: Prefer space throughout, rather than mix of 8
43156         spaces vs. tabs.
43157         * lib/at-func.c: Likewise.
43158         * lib/utimens.c: Likewise.
43159
43160         openat: avoid using wrong fd
43161         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43162         working directory chooses same fd.
43163         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43164
43165         mkdir, mkdirat: fix cygwin 1.5.x bug
43166         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43167         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43168         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43169         bug.
43170         (gl_PREREQ_MKDIR): Delete unused macro.
43171         * modules/mkdir (Files): Track file rename.
43172         (configure.ac): Update macro name.
43173         * modules/openat (Depends-on): Add mkdir.
43174         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43175
43176         mkdir, mkdirat: add tests
43177         * modules/mkdir-tests: New test.
43178         * tests/test-mkdir.h: New file.
43179         * tests/test-mkdir.c: Likewise.
43180         * tests/test-mkdirat.c: Likewise.
43181         * modules/openat-tests (Files): Add new files.
43182         (Makefile.am): Run new test.
43183
43184 2009-10-06  Eric Blake  <ebb9@byu.net>
43185
43186         doc: tweak *at function documentation
43187         * doc/posix-functions/faccessat.texi (faccessat): Mention
43188         known issue with replacement.
43189         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43190         * doc/posix-functions/linkat.texi (linkat): Likewise.
43191         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43192         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43193         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43194         * doc/posix-functions/renameat.texi (renameat): Likewise.
43195         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43196
43197         openat: fix GNU/Hurd bug in unlinkat
43198         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43199         broken.
43200         * doc/posix-functions/unlink.texi (unlink): Document this.
43201         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43202
43203         fdopendir: fix GNU/Hurd bug
43204         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43205         allowing non-directory fds.
43206         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43207         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43208         * modules/dirent (Makefile.am): Substitute it.
43209         * lib/dirent.in.h (fdopendir): Declare replacement.
43210         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43211         * tests/test-fdopendir.c (main): Test something other than
43212         /dev/null, since on Hurd that behaves like a directory.
43213
43214         test-symlink: port to GNU/Hurd
43215         * tests/test-symlink.h (test_symlink): Relax expected errno.
43216
43217         doc: tweak more cygwin information
43218         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43219         now compatible with glibc.
43220         * doc/posix-functions/getopt.texi (getopt): Likewise.
43221
43222         getopt-gnu: add another test
43223         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43224         guarantee behavior relied on by m4.
43225         * tests/test-getopt.c (main): Use it.
43226         * modules/getopt-posix-tests (Depends-on): Add setenv.
43227         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43228
43229         getopt: fix compilation on darwin
43230         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43231         include.
43232         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43233         Reported by Ludovic Courtès.
43234
43235 2009-10-06  Bruno Haible  <bruno@clisp.org>
43236
43237         * modules/size_max (Description): Discourage its use.
43238         Reported by Simon Josefsson.
43239
43240 2009-10-06  Jim Meyering  <meyering@redhat.com>
43241
43242         linkat: avoid compilation failure
43243         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43244
43245 2009-10-05  Eric Blake  <ebb9@byu.net>
43246
43247         linkat: support Linux 2.6.17
43248         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43249         linkat on Linux, but allow cache variable override.
43250         * lib/linkat.c (rpl_linkat): Define override.
43251         * modules/linkat (Depends-on): Add symlinkat.
43252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43253         * modules/unistd (Makefile.am): Substitute it.
43254         * lib/unistd.in.h (linkat): Declare replacement.
43255         Reported by Pádraig Brady.
43256
43257         quotearg: port test to systems with C.UTF-8 locale
43258         * tests/test-quotearg.c (struct result_strings): Add another
43259         member, differentiating between C.ASCII and C.UTF-8 handling.
43260         (compare_strings): Add parameter.
43261         (main): Adjust all callers.
43262
43263         getopt: avoid clash with FreeBSD _getopt_internal
43264         * lib/getopt.in.h (_getopt_internal): Override the name.
43265         * lib/getopt_int.h (includes): Pick up any overrides.
43266         Reported by Reuben Thomas.
43267
43268         hash: allow C89 compilation
43269         * lib/hash.c (check_tuning): Move declaration before statement.
43270         Reported by Reuben Thomas.
43271
43272 2009-10-05  Karl Berry  <karl@gnu.org>
43273
43274         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43275
43276 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43277             Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/uname.c (uname): Use a table-driven algorithm to compute
43280         Windows NT versions.
43281
43282 2009-10-04  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43285         program_invocation_short_name.
43286         * modules/progname (configure.ac): Test for presence of
43287         program_invocation_short_name.
43288         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43289
43290 2009-10-04  Bruno Haible  <bruno@clisp.org>
43291
43292         * lib/progname.c (set_program_name): Fix comment.
43293         Reported by Jim Meyering.
43294
43295 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43296             Bruno Haible  <bruno@clisp.org>
43297
43298         * lib/uname.c: Include <string.h>.
43299         (uname): Do only one call to GetVersionEx in the common case.
43300
43301 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43302             Bruno Haible  <bruno@clisp.org>
43303
43304         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43305         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43306         (uname): Add support for Windows CE and various non-x86 CPU types.
43307
43308 2009-10-03  Bruno Haible  <bruno@clisp.org>
43309
43310         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43311         invocation to tests/configure.ac.
43312         Reported by Ian Beckwith <ianb@erislabs.net>.
43313
43314 2009-10-02  Eric Blake  <ebb9@byu.net>
43315
43316         fchdir: avoid compiler warning
43317         * lib/fchdir.c (canonicalize_file_name)
43318         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43319
43320         test-open: support mingw errno values
43321         * tests/test-open.h (test_open): Relax test.
43322         * tests/test-fopen.h (test_fopen): Likewise.
43323         * tests/test-openat-safer.c (main): Likewise.
43324
43325         open: fix opening directory on mingw
43326         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43327
43328         test-open: on GNU/Hurd, /dev/null is a directory
43329         * tests/test-fopen.h (main): Rename...
43330         (test_fopen): ...to this.  Use a guaranteed non-directory when
43331         confirming open behavior on trailing slash.
43332         * tests/test-openat-safer.c (main): Likewise.
43333         * tests/test-open.h (main): Likewise....
43334         (test_open): ...to this.
43335         * tests/test-fopen.c (main): Adjust caller.
43336         * tests/test-fopen-safer.c (main): Likewise.
43337         * tests/test-open.c (main): Likewise.
43338         * tests/test-fcntl-safer.c (main): Likewise.
43339         Reported by Samuel Thibault.
43340
43341         rename, fchdir: don't ignore chdir failure
43342         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43343         * lib/rename.c (rpl_rename) [W32]: Likewise.
43344         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43345         an empty destination directory if source cannot be renamed,
43346         although there is still possibility for failure.
43347         * doc/posix-functions/rename.texi (rename): Document the race.
43348         Reported by Jim Meyering.
43349
43350         maint: cleanup whitespace in recent commits
43351         * lib/rename.c (rpl_rename): Remove tabs.
43352         * tests/test-link.h (test_link): Likewise.
43353         * lib/fchdir.c (get_name): Likewise.
43354         Reported by Jim Meyering.
43355
43356 2009-10-02  Ben Pfaff  <blp@gnu.org>
43357
43358         relocatable-prog-wrapper: Add missing dependency on
43359         double-slash-root.
43360         * modules/relocatable-prog-wrapper: Add dependency.
43361         Reported by Ian Beckwith <ianb@erislabs.net>.
43362
43363 2009-10-02  Eric Blake  <ebb9@byu.net>
43364
43365         renameat: fix Solaris bugs
43366         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43367         needed fixing.
43368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43369         * modules/stdio (Makefile.am): Substitute it.
43370         * lib/stdio.in.h (renameat): Declare replacement.
43371         * lib/renameat.c (rpl_renameat): Implement fix.
43372
43373         renameat: new module
43374         * modules/renameat: New file.
43375         * lib/renameat.c (renameat): Likewise.
43376         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43378         * modules/stdio (Makefile.am): Substitute them.
43379         * lib/stdio.in.h (renameat): Declare it.
43380         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43381         * doc/posix-functions/renameat.texi (renameat): Likewise.
43382         * modules/renameat-tests: New test.
43383         * tests/test-renameat.c: Likewise.
43384
43385         rename: fix mingw bugs
43386         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43387         directory overwrite bugs.
43388
43389         rename: fix another cygwin 1.5 bug
43390         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43391         checks.
43392         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43393         unnecessary cygwin workarounds.  Also work around bug with moving
43394         full directory onto an empty one.
43395         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43396
43397         rename-dest-slash: merge into rename module
43398         * modules/rename-dest-slash (Status): Mark obsolete.
43399         (Depends-on): Add rename.
43400         (Files): Let rename do it all.
43401         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43402         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43403         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43404         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43405         * lib/rename.c (rpl_rename): Update comments.
43406
43407         rename: fix cygwin 1.5.x bugs
43408         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43409         * lib/rename.c (rpl_rename): Work around them.
43410         * modules/rename (Depends-on): Add same-inode.
43411
43412         rename: fix Solaris 10 bug
43413         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43414         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43415         was the only bug.
43416
43417         rename: fix Solaris 9 bug
43418         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43419         on non-directory.  Avoid calling exit.
43420         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43421         strdup.
43422         * modules/rename-tests (Depends-on): Drop lstat.
43423         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43424         (gl_PREREQ_RENAME): Delete unused macro.
43425
43426         rename-dest-slash: fix NetBSD bug
43427         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43428         links.
43429         * modules/rename-dest-slash (Depends-on): Add same-inode.
43430
43431         rename-tests: new test, exposes several platform bugs
43432         * modules/rename-tests: New file.
43433         * tests/test-rename.h: Likewise.
43434         * tests/test-rename.c: Likewise.
43435         * doc/posix-functions/rename.texi (rename): Improve documentation,
43436         including bugs that will eventually be fixed in gnulib.
43437
43438 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43439
43440         * lib/uname.c: Include <stdlib.h>
43441         (uname): Assume version info is available.
43442
43443 2009-10-02  Jim Meyering  <meyering@redhat.com>
43444
43445         gnu-web-doc-update: correct --help output
43446         * build-aux/gnu-web-doc-update: Make --help output relevant.
43447
43448         gnu-web-doc-update: add standard options
43449         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43450
43451         gnu-web-doc-update: New module.
43452         Use this script to automatically update the on-line web documentation
43453         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43454         * modules/gnu-web-doc-update: New file, from coreutils.
43455         * build-aux/gnu-web-doc-update: New script.
43456
43457 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43458
43459         link: LoadLibrary is not needed.
43460         * lib/link.c: Use GetModuleHandle.
43461
43462 2009-10-01  Eric Blake  <ebb9@byu.net>
43463
43464         getopt: bump serial number
43465         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43466         change.
43467
43468         tests: tighten link, rmdir, and remove tests
43469         * tests/test-link.h (includes): No need to use <config.h> here.
43470         Clean up if directory hard link was created, otherwise test for
43471         trailing '.'.
43472         * tests/test-linkat.c (main): Simplify.
43473         * tests/test-remove.c (main): Enhance test for trailing '.'.
43474         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43475
43476 2009-10-01  Jim Meyering  <meyering@redhat.com>
43477
43478         maint.mk: requiring "make major" was annoying, for a "minor" release.
43479         What is intended is "stable", to contrast with alpha and beta,
43480         so require "make stable", not "make major".
43481         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43482         (get_tool_versions): Likewise.
43483         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43484
43485 2009-09-30  Ben Pfaff  <blp@gnu.org>
43486
43487         Fix broken build of replacement for Windows tmpfile().
43488         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43489         flags argument added along with the 'mkostemp' module.
43490
43491 2009-09-28  Bruno Haible  <bruno@clisp.org>
43492
43493         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43494         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43495         to 'remove_elt'.
43496         (gl_list_remove): Update.
43497         * lib/gl_list.c (gl_list_remove): Update.
43498         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43499         to 'remove_elt'.
43500         (gl_oset_remove): Update.
43501         * lib/gl_list.c (gl_oset_remove): Update.
43502         Reported by Eric Blake.
43503
43504 2009-09-28  Eric Blake  <ebb9@byu.net>
43505
43506         doc: mention yet more cygwin 1.7 status
43507         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43508         cygwin.
43509         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43510         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43511
43512         argp: fix test failure
43513         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43514         that are not upper-case.  Pass correct range to tolower.
43515
43516 2009-09-27  Jim Meyering  <meyering@redhat.com>
43517
43518         test-yesno: work around sparc-dash here-document infelicity
43519         Without this change, the literal \177 byte in a here document
43520         would make dash 0.5.5.1-3 access uninitialized memory.
43521         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43522         Instead, use a marker, "@", and filter through tr to create the desired
43523         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43524
43525 2009-09-27  Bruno Haible  <bruno@clisp.org>
43526
43527         Disable untested support for new flavours of ACLs on AIX.
43528         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43529         progress.
43530         * lib/set-mode-acl.c (qset_acl): Likewise.
43531
43532 2008-12-07  Bruno Haible  <bruno@clisp.org>
43533
43534         Add support for new flavours of ACLs on AIX. (Untested.)
43535         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43536         (file_has_acl): Add support for newer AIX.
43537         * lib/set-mode-acl.c (qset_acl): Likewise.
43538         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43539         Rainer Tammer <tammer@tammer.net>.
43540
43541 2009-09-26  Eric Blake  <ebb9@byu.net>
43542
43543         argp: fix compilation of getopt
43544         * lib/getopt.in.h (includes): Use different guard than glibc.
43545         Reported by Sergey Poznyakoff.
43546
43547         doc: mention more cygwin 1.7 status
43548         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43549         bug.
43550         * doc/posix-functions/execl.texi (execl): Likewise.
43551         * doc/posix-functions/execle.texi (execle): Likewise.
43552         * doc/posix-functions/execlp.texi (execlp): Likewise.
43553         * doc/posix-functions/execv.texi (execv): Likewise.
43554         * doc/posix-functions/execve.texi (execve): Likewise.
43555         * doc/posix-functions/execvp.texi (execvp): Likewise.
43556         * doc/glibc-functions/canonicalize_file_name.texi
43557         (canonicalize_file_name): Cygwin 1.7 now provides this.
43558         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43559         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43560         on AT_SYMLINK_NOFOLLOW.
43561
43562 2009-09-24  Eric Blake  <ebb9@byu.net>
43563
43564         test-linkat: make test more robust
43565         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43566
43567         getopt: fix inclusion guards for cygwin
43568         * modules/getopt-posix (Depends-on): Add include-next.
43569         (Makefile.am): Substitute more items in replacement header.
43570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43571         <getopt.h>.
43572         * lib/getopt.in.h (includes): Use split inclusion guard, and
43573         prefer <getopt.h> over include <unistd.h> when one is present.
43574         (option): Also override name of 'struct option'.
43575
43576         same-inode: revert prior change; it is not yet ready
43577         * NEWS: Undo mention of this change.
43578         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43579         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43580         * lib/cycle-check.c (cycle_check): Likewise.
43581         * lib/same.c (same_name): Likewise.
43582         * lib/at-func2.c (at_func2): Likewise.
43583
43584 2009-09-23  Eric Blake  <ebb9@byu.net>
43585
43586         linkat: new module
43587         * modules/linkat: New file.
43588         * lib/at-func2.c (at_func2): Likewise.
43589         * lib/linkat.c (linkat): Likewise.
43590         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43591         * lib/openat-priv.h (at_func2): Add declaration.
43592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43593         * modules/unistd (Makefile.am): Substitute them.
43594         * lib/unistd.in.h (linkat): Declare it.
43595         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43596         * doc/posix-functions/linkat.texi (linkat): Likewise.
43597         * doc/posix-functions/link.texi (link): Tweak wording.
43598         * tests/test-link.c (main): Move guts...
43599         * tests/test-link.h (test_link): ...into new file.
43600         * modules/linkat-tests: New test.
43601         * tests/test-linkat.c: Likewise.
43602         * modules/link-tests (Files): Ship new file.
43603         (Depends-on): Add stdbool.
43604
43605         dirname: add library-safe mdir_name
43606         * lib/dirname.h (mdir_name): New prototype.
43607         * lib/dirname.c (dir_name): Move guts...
43608         (mdir_name): ...to new function that avoids xalloc_die.
43609
43610         fchdir: another mingw fix
43611         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43612         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43613         on mingw (where it has not yet been ported), and make it optional
43614         elsewhere.
43615         (_gl_register_fd): Use it.
43616
43617         same-inode: make SAME_INODE tri-state, to port to mingw
43618         * NEWS: Mention this change.
43619         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43620         st_ino always being 0.
43621         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43622         * lib/cycle-check.c (cycle_check): Likewise.
43623         * lib/same.c (same_name): Likewise.
43624
43625         lstat: avoid mingw compilation error
43626         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43627         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43628         lstat ourselves.
43629         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43630         was adequate.
43631         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43632         the checks for lstat.
43633         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43634
43635         link: fix test failure on Solaris 9
43636         * lib/link.c (rpl_link): Don't assume link will catch bogus
43637         trailing slash on source.
43638
43639         test-symlinkat: enhance test
43640         * tests/test-readlink.c (main): Move guts...
43641         * tests/test-readlink.h (test_readlink): ...into new file.
43642         * tests/test-symlink.c (main): Move guts...
43643         * tests/test-symlink.h (test_symlink): ...into new file.
43644         * tests/test-symlinkat.c (main): Use new files for further
43645         coverage.
43646         (do_symlink, do_readlink): New helper functions.
43647         * modules/symlink-tests (Files): Ship new file.
43648         (Depends-on): Add stdbool.
43649         * modules/readlink-tests (Files): Ship new file.
43650         (Depends-on): Add stdbool.
43651         * modules/symlinkat-tests (Files): Use new files.
43652
43653 2009-09-23  Eric Blake  <ebb9@byu.net>
43654
43655         readlink: document portability issue with symlink length
43656         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43657         systems have bogus st_size on symlinks, and mention the
43658         areadlink-with-size module.
43659         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43660         * doc/posix-functions/readlink.texi (readlink): Mention the
43661         areadlink module, and ERANGE failure.
43662         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43663         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43664
43665         readlink: fix Solaris 9 bug with trailing slash
43666         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43667         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43668         * doc/posix-functions/readlink.texi (readlink): Document this.
43669         * modules/readlink-tests: New test.
43670         * tests/test-readlink.c: Likewise.
43671
43672         readlink: fix cygwin 1.5.x bug with return type
43673         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43674         * lib/unistd.in.h (readlink): Use ssize_t.
43675         * lib/readlink.c (readlink): Likewise.
43676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43677         * modules/unistd (Makefile.am): Substitute it.
43678         * lib/unistd.in.h (readlink): Declare replacement.
43679         * doc/posix-functions/readlink.texi (readlink): Document this.
43680
43681         symlink: use throughout gnulib
43682         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43683         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43684         symlink is not used.
43685         * modules/symlinkat (Depends-on): Add symlink.
43686         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43687         * modules/canonicalize-tests (Depends-on): Likewise.
43688         * modules/lstat-tests (Depends-on): Likewise.
43689         * modules/openat-tests (Depends-on): Likewise.
43690         * modules/remove-tests (Depends-on): Likewise.
43691         * modules/rmdir-tests (Depends-on): Likewise.
43692         * modules/unlink-tests (Depends-on): Likewise.
43693         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43694         * tests/test-canonicalize.c (symlink): Likewise.
43695         * tests/test-fstatat.c (symlink): Likewise.
43696         * tests/test-lstat.c (symlink): Likewise.
43697         * tests/test-remove.c (symlink): Likewise.
43698         * tests/test-rmdir.c (symlink): Likewise.
43699         * tests/test-unlink.c (symlink): Likewise.
43700         * tests/test-unlinkat.c (symlink): Likewise.
43701
43702         symlink: new module, for Solaris 9 bug
43703         * modules/symlink: New file.
43704         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43705         * lib/symlink.c: Likewise.
43706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43707         * modules/unistd (Makefile.am): Substitute them.
43708         * lib/unistd.in.h (symlink): Declare replacement.
43709         * MODULES.html.sh (File system functions): Mention it.
43710         * doc/posix-functions/symlink.texi (symlink): Likewise.
43711         * modules/symlink-tests: New test.
43712         * tests/test-symlink.c: Likewise.
43713
43714 2009-09-23  Bruno Haible  <bruno@clisp.org>
43715
43716         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43717         when needed.
43718         Test case: gnulib-tool --import --with-tests atexit inttypes.
43719         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43720
43721 2009-09-23  Bruno Haible  <bruno@clisp.org>
43722
43723         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43724         subcommand, not in a subshell.
43725
43726 2009-09-22  Eric Blake  <ebb9@byu.net>
43727
43728         unistd: sort replacement declarations
43729         * lib/unistd.in.h: Sort declarations.
43730
43731         open, openat: minor optimization
43732         * lib/open.c (open): If open succeeded, len is non-zero.
43733         * lib/openat.c (rpl_openat): Likewise.
43734
43735         link-follow: ensure correct result
43736         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43737         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43738         distinguish between possible failures.
43739
43740 2009-09-21  Eric Blake  <ebb9@byu.net>
43741
43742         fts: avoid compiler warning
43743         * lib/fts.c (dirent_inode_sort_may_be_useful)
43744         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43745
43746 2009-09-19  Bruno Haible  <bruno@clisp.org>
43747
43748         * lib/progreloc.c (canonicalize_file_name): New declaration.
43749
43750 2009-09-19  Eric Blake  <ebb9@byu.net>
43751
43752         link: fix quoting
43753         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43754
43755         openat: fix openat bugs on Solaris 9
43756         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43757         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43758         * modules/openat (Depends-on): Add open.
43759         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43760         * modules/fcntl-h (Makefile.am): Substitute it.
43761         * lib/fcntl.in.h (openat): Declare replacement.
43762         * doc/posix-functions/openat.texi (openat): Document this.
43763
43764         openat: move fstatat and unlinkat into correct files
43765         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43766         compiled.
43767         * lib/openat.c (fstatat, unlinkat): Move...
43768         * lib/fstatat.c (fstatat): ...into correct files.
43769         * lib/unlinkat.c (unlinkat): Likewise.
43770
43771         openat: fix unlinkat bugs on Solaris 9
43772         * lib/unlinkat.c (unlinkat): New file.
43773         * modules/openat (Depends-on): Add unlink.
43774         (Files): Distribute it.
43775         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43776         trailing slash behavior is broken.
43777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43778         * modules/unistd (Makefile.am): Substitute it.
43779         * lib/unistd.in.h (unlinkat): Declare replacement.
43780         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43781
43782         openat: fix fstatat bugs on Solaris 9
43783         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43784         stat.
43785         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43786
43787         test-unlinkat: enhance test, to expose Solaris 9 bug
43788         * tests/test-unlink.c (main): Factor guts...
43789         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43790         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43791         * tests/test-rmdir.c (main): Adjust caller.
43792         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43793         (unlinker): New helper function.
43794         (rmdirat): Enhance check.
43795         * modules/rmdir-tests (Depends-on): Add stdbool.
43796         * modules/unlink-tests (Depends-on): Likewise.
43797         (Files): Add test-unlink.h.
43798         * modules/openat-tests (Files): Likewise.
43799         (Depends-on): Add unlinkdir.
43800
43801         test-fstatat: new test, to expose Solaris 9 bugs
43802         * tests/test-stat.c (main): Factor guts...
43803         * tests/test-stat.h (test_stat_func): ...into new file.
43804         * tests/test-lstat.c (main): Factor guts...
43805         * tests/test-lstat.h (test_lstat_func): ...into new file.
43806         * tests/test-fstatat.c: New file.
43807         * modules/stat-tests (Files): Add test-stat.h.
43808         * modules/lstat-tests (Files): Add test-lstat.h.
43809         (Depends-on): Add stdbool.
43810         * modules/openat-tests (Depends-on): Add pathmax.
43811         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43812         (Makefile.am): Run new test.
43813
43814         remove: new module, for mingw and Solaris 9 bugs
43815         * modules/remove: New file.
43816         * lib/remove.c: Likewise.
43817         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43819         * modules/stdio (Makefile.am): Use them.
43820         * lib/stdio.in.h (remove): Declare replacement.
43821         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43822         * doc/posix-functions/remove.texi (remove): Likewise.
43823         * modules/remove-tests: New test.
43824         * tests/test-remove.c: Likewise.
43825
43826         unlink: new module, for Solaris 9 bug
43827         * modules/unlink: New file.
43828         * lib/unlink.c: Likewise.
43829         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43831         * modules/unistd (Makefile.am): Use them.
43832         * lib/unistd.in.h (stat): Declare replacement.
43833         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43834         * doc/posix-functions/unlink.texi (unlink): Likewise.
43835         * modules/unlink-tests: New test.
43836         * tests/test-unlink.c: Likewise.
43837
43838         lstat: fix Solaris 9 bug
43839         * lib/lstat.c (lstat): Also check for trailing slash on
43840         non-symlink, non-directories.  Use stat module to simplify logic.
43841         * doc/posix-functions/lstat.texi (lstat): Document it.
43842         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43843         (configure.ac): Check for symlink.
43844         * tests/test-lstat.c (main): Add more tests.
43845
43846         stat: add as dependency to other modules
43847         * modules/chown (Depends-on): Add stat.
43848         * modules/euidaccess (Depends-on): Likewise.
43849         * modules/fchdir (Depends-on): Likewise.
43850         * modules/isdir (Depends-on): Likewise.
43851         * modules/link (Depends-on): Likewise.
43852         * modules/lstat (Depends-on): Likewise.
43853         * modules/mkdir-p (Depends-on): Likewise.
43854         * modules/modechange (Depends-on): Likewise.
43855         * modules/open (Depends-on): Likewise.
43856         * modules/readlink (Depends-on): Likewise.
43857         * modules/same (Depends-on): Likewise.
43858
43859         stat: fix Solaris 9 bug
43860         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43861         slash.
43862         * lib/stat.c (rpl_stat): Work around it.
43863         * doc/posix-functions/stat.texi (stat): Update documentation.
43864
43865         stat: new module, for mingw bug
43866         * modules/stat: New file.
43867         * lib/stat.c: Likewise.
43868         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43870         * modules/sys_stat (Makefile.am): Use them.
43871         * lib/sys_stat.in.h (stat): Declare replacement.
43872         * lib/openat.c (fstatat): Deal with lstat and stat being function
43873         macros.
43874         * modules/openat (Depends-on): Add inline.
43875         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43876         * doc/posix-functions/stat.texi (stat): Likewise.
43877         * modules/stat-tests: New test.
43878         * tests/test-stat.c: Likewise.
43879
43880 2009-09-19  Jim Meyering  <meyering@redhat.com>
43881
43882         syntax-check: detect unnecessary inclusion of canonicalize.h
43883         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43884
43885 2009-09-19  Eric Blake  <ebb9@byu.net>
43886
43887         canonicalize-lgpl: adjust clients to use correct header
43888         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43889         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43890         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43891         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43892         * lib/progreloc.c (includes): Likewise.
43893
43894 2009-09-19  Jim Meyering  <meyering@redhat.com>
43895
43896         test-posixtm.c: correct a comment
43897         * tests/test-posixtm.c: Correct first-line comment.
43898         Spotted by Eric Blake.
43899
43900 2009-09-16  Jim Meyering  <meyering@redhat.com>
43901
43902         posixtm-tests: make T const-correct; add a test case
43903         * tests/test-posixtm.c (T): Declare const.
43904         Add a test for -(2^31+1).
43905         Remove useless can-succeed-only-in-2002 test.
43906
43907         posixtm-tests: adjust the sole failing test
43908         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43909         expected output matches what mktime now produces.  Cross-checked via
43910         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43911
43912         posixtm: move #ifdef'd tests into a new module
43913         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43914         * tests/test-posixtm.c: ... this new file.
43915         * modules/posixtm-tests: New module.
43916
43917 2009-09-19  Eric Blake  <ebb9@byu.net>
43918
43919         openat: simplify use of at-func.c
43920         * lib/at-func.c (includes): Include prerequisites here, to
43921         simplify requirements on client files.
43922         * lib/openat-priv.h: Add double-inclusion guard.
43923         * lib/faccessat.c (includes): Simplify.
43924         * lib/fchmodat.c (includes): Likewise.
43925         * lib/fchownat.c (includes): Likewise.
43926         * lib/mkdirat.c (includes): Likewise.
43927         * lib/mkfifoat.c (includes): Likewise.
43928         * lib/symlinkat.c (includes): Likewise.
43929
43930         openat: allow return of fd 0
43931         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43932         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43933         unistd-safer.
43934         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43935         <fcntl.h>; this module does not leak fds.
43936         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43937         must be allowed to return 0, leaving openat_safer to add the
43938         safety.
43939         (openat_permissive): Avoid writing to just-opened fd 2 if
43940         restoring the current directory fails.
43941         * lib/openat-die.c (openat_restore_fail): Add comment.
43942         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43943         (save_cwd): Guarantee safe fd, but without use of open_safer.
43944         * tests/test-openat.c: New test.
43945         * modules/openat-tests (Files, Makefile.am): Distribute and build
43946         new file.
43947
43948         relocatable-prog-wrapper: fix build
43949         * modules/relocatable-prog-wrapper (Files): Update name of
43950         canonicalize m4 file, broken on 2009-09-17.
43951         Reported by emad hajjar <aleppos@hotmail.com>.
43952
43953 2009-09-19  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43956         * lib/safe-alloc.c: Likewise.
43957         Reported by Ian Beckwith <ianb@erislabs.net>.
43958
43959 2009-09-18  Bruno Haible  <bruno@clisp.org>
43960
43961         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43962         Reported by <erobles@sensacd.com.mx>.
43963
43964 2009-09-17  Eric Blake  <ebb9@byu.net>
43965
43966         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43967         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43968         slashes when checking if last component is missing.
43969         * tests/test-canonicalize.c (main): Test this.
43970
43971         canonicalize, canonicalize-lgpl: honor // if distinct from /
43972         * modules/canonicalize (Files): Add double-slash-root.m4.
43973         * modules/canonicalize-lgpl (Files): Likewise.
43974         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43975         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43976         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43977         fallback definition.
43978         (canonicalize_filename_mode): Use it to protect //.
43979         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43980         (__realpath): Likewise.
43981         * tests/test-canonicalize.c (main): Test this.
43982         * tests/test-canonicalize-lgpl.c (main): Likewise.
43983         * modules/canonicalize-tests (Depends-on): Add same-inode.
43984         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43985
43986         canonicalize-lgpl: fix glibc bug with trailing slash
43987         * m4/canonicalize-lgpl.m4: Move contents...
43988         * m4/canonicalize.m4: ...here.
43989         (gl_CANONICALIZE_LGPL): Factor realpath check...
43990         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43991         glibc 2.3.5 bug, fixed 2005-04-27.
43992         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43993         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43994         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43995         * modules/canonicalize-lgpl (Files): Manage file rename.
43996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43997         * modules/stdlib (Makefile.am): Substitute witness.
43998         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43999         is needed.
44000         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44001         replacement is required.
44002         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44003         * doc/glibc-functions/canonicalize_file_name.texi
44004         (canonicalize_file_name): Document this.
44005         * doc/posix-functions/realpath.texi (realpath): Likewise.
44006
44007         canonicalize-lgpl: reject non-directory with trailing slash
44008         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44009         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44010         catches failures in glibc 2.3.5.
44011         * tests/test-canonicalize.c (main): Likewise.
44012
44013         canonicalize-lgpl: use native realpath if it works
44014         * lib/canonicalize-lgpl.c (realpath): Guard with
44015         FUNC_REALPATH_WORKS.
44016         * lib/stdlib.in.h (realpath): Make declaration optional based on
44017         HAVE_REALPATH.
44018         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44019         native realpath works.
44020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44021         * modules/stdlib (Makefile.am): Substitute witness.
44022
44023         canonicalize, canonicalize-lgpl: use <stdlib.h>
44024         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44025         (Include): Mention <stdlib.h>.
44026         (configure.ac): Mention functions we provide.
44027         * modules/canonicalize (configure.ac): Likewise.
44028         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44029         realpath if canonicalize_file_name is missing.
44030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44031         * modules/stdlib (Makefile.am): Substitute witnesses.
44032         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44033         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44034         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44035         * NEWS: Document this.
44036         * doc/glibc-functions/canonicalize_file_name.texi
44037         (canonicalize_file_name): Likewise.
44038         * doc/posix-functions/realpath.texi (realpath): Likewise.
44039         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44040
44041         test-canonicalize: consolidate into single C program
44042         * tests/test-canonicalize.sh: Delete; move setup into...
44043         * tests/test-canonicalize.c (main): ...the program, making it
44044         easier to run in debugger.  Add some tests.
44045         * modules/canonicalize-tests (Files): Remove unused file.
44046         (Depends-on): Add progname.
44047         (configure.ac, Makefile.am): Simplify.
44048
44049         test-canonicalize-lgpl: consolidate into single C program
44050         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44051         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44052         easier to run in debugger.  Add some tests.
44053         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44054         (configure.ac, Makefile.am): Simplify.
44055
44056         canonicalize: avoid resolvepath
44057         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44058         unnecessary checks.
44059         * lib/canonicalize.c (includes): Simplify.
44060         (canonicalize_file_name): Drop resolvepath implementation.
44061         * modules/canonicalize (Depends-on): Drop filenamecat.
44062
44063         canonicalize: don't lose errno
44064         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44065         over calls to free.
44066
44067         canonicalize: simplify errno handling
44068         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44069         assignment.
44070
44071         canonicalize, canonicalize-lgpl: update module dependencies
44072         * modules/canonicalize (Depends-on): Add extensions, lstat,
44073         pathmax, stdlib.
44074         (Files): Drop pathmax.h.
44075         (configure.ac): Adjust macro name.
44076         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44077         lstat, stdlib, sys_stat.
44078         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44079         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44080         extensions.
44081         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44082         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44083         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44084         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44085         declaration, if available.
44086         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44087         we can rely on the readlink module.
44088         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44089         (includes): Use <unistd.h> unconditionally.
44090
44091 2009-09-17  Eric Blake  <ebb9@byu.net>
44092
44093         maint: make Include sections of modules consistent
44094         * modules/alloca: Use only header name; no need to list #include.
44095         * modules/alloca-opt: Likewise.
44096         * modules/arpa_inet: Likewise.
44097         * modules/canon-host: Likewise.
44098         * modules/configmake: Likewise.
44099         * modules/dirent: Likewise.
44100         * modules/eealloc: Likewise.
44101         * modules/environ: Likewise.
44102         * modules/fchdir: Likewise.
44103         * modules/fcntl: Likewise.
44104         * modules/fcntl-h: Likewise.
44105         * modules/gethrxtime: Likewise.
44106         * modules/gettime: Likewise.
44107         * modules/ignore-value: Likewise.
44108         * modules/inet_ntop: Likewise.
44109         * modules/inet_pton: Likewise.
44110         * modules/inttypes: Likewise.
44111         * modules/isnand-nolibm: Likewise.
44112         * modules/isnanf-nolibm: Likewise.
44113         * modules/mbchar: Likewise.
44114         * modules/mbfile: Likewise.
44115         * modules/mbiter: Likewise.
44116         * modules/mbuiter: Likewise.
44117         * modules/netdb: Likewise.
44118         * modules/netinet_in: Likewise.
44119         * modules/nproc: Likewise.
44120         * modules/pagealign_alloc: Likewise.
44121         * modules/poll: Likewise.
44122         * modules/printf-frexp: Likewise.
44123         * modules/pthread: Likewise.
44124         * modules/putenv: Likewise.
44125         * modules/random_r: Likewise.
44126         * modules/relocatable-prog: Likewise.
44127         * modules/search: Likewise.
44128         * modules/select: Likewise.
44129         * modules/selinux-h: Likewise.
44130         * modules/settime: Likewise.
44131         * modules/signal: Likewise.
44132         * modules/size_max: Likewise.
44133         * modules/socklen: Likewise.
44134         * modules/ssize_t: Likewise.
44135         * modules/stdarg: Likewise.
44136         * modules/stdbool: Likewise.
44137         * modules/stddef: Likewise.
44138         * modules/stdint: Likewise.
44139         * modules/stdio: Likewise.
44140         * modules/stdlib: Likewise.
44141         * modules/string: Likewise.
44142         * modules/strings: Likewise.
44143         * modules/sys_file: Likewise.
44144         * modules/sys_ioctl: Likewise.
44145         * modules/sys_select: Likewise.
44146         * modules/sys_socket: Likewise.
44147         * modules/sys_stat: Likewise.
44148         * modules/sys_time: Likewise.
44149         * modules/sys_times: Likewise.
44150         * modules/sys_utsname: Likewise.
44151         * modules/sys_wait: Likewise.
44152         * modules/sysexits: Likewise.
44153         * modules/time: Likewise.
44154         * modules/times: Likewise.
44155         * modules/tmpfile: Likewise.
44156         * modules/trim: Likewise.
44157         * modules/unistd: Likewise.
44158         * modules/wchar: Likewise.
44159         * modules/wctype: Likewise.
44160
44161 2009-09-17  Bruno Haible  <bruno@clisp.org>
44162
44163         Make getdate.y compile on QNX and NetBSD 5 / i386.
44164         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44165         TIME_T_FITS_IN_LONG_INT.
44166         * lib/getdate.y (long_time_t): New type.
44167         (relative_time): Change type of 'seconds' field to long_time_t.
44168         (get_date): Update types of local variables. Check against overflow
44169         during conversion from long_time_t to time_t.
44170         Reported by Matt Kraai <kraai@ftbfs.org>
44171         and Hasso Tepper <hasso@netbsd.org>.
44172
44173 2009-09-17  Bruno Haible  <bruno@clisp.org>
44174
44175         * modules/COPYING: Update copyright years.
44176         * modules/README: Likeiwse.
44177         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44178         Reported by Ian Beckwith <ianb@erislabs.net>.
44179
44180 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44181
44182         * users.txt: Update references for gnuit package.
44183
44184 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44185
44186         * m4/getdelim.m4: Fix typo in copyright line.
44187
44188 2009-09-17  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/atoll.c: Use the standard header with GPL copyright.
44191         * lib/argz.in.h: Likewise.
44192         * lib/glob.c: Likewise.
44193         * lib/glob-libc.h: Likewise.
44194         * lib/random_r.c: Likewise.
44195         * lib/siglist.h: Likewise.
44196         * lib/strsignal.c: Likewise.
44197         Reported by Ian Beckwith <ianb@erislabs.net>.
44198
44199 2009-09-17  Eric Blake  <ebb9@byu.net>
44200
44201         rmdir: ensure correct dependency order
44202         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44203
44204 2009-09-17  Bruno Haible  <bruno@clisp.org>
44205
44206         Disable assertion that fails on NetBSD 5 / i386.
44207         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44208         Reported by Sam Steingold <sds@gnu.org>
44209         and Hasso Tepper <hasso@netbsd.org>.
44210
44211 2009-09-16  Eric Blake  <ebb9@byu.net>
44212
44213         unlinkdir: port to mingw
44214         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44215         on which no one can unlink a directory.
44216
44217         stdlib: sort witness names
44218         * modules/stdlib (Makefile.am): Sort replacements.
44219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44220         * lib/stdlib.in.h: Likewise.
44221
44222         parse-duration-tests: avoid link failure
44223         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44224         LIBINTL.
44225         Reported by Tom G. Christensen.
44226
44227         openat-tests: ensure unlinkat behaves like rmdir
44228         * tests/test-rmdir.c (main): Factor guts...
44229         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44230         * modules/rmdir-tests (Files): Ship new file.
44231         * modules/openat-tests: New test.
44232         * tests/test-unlinkat.c: Likewise.
44233
44234         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44235         * modules/rmdir-errno (Status, Notice): Now obsolete.
44236
44237         rmdir: work around cygwin 1.5.x and mingw bugs
44238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44239         * lib/rmdir.c (rmdir): Work around it.
44240         * modules/rmdir (Status, Notice): No longer obsolete.
44241         (Files): Add dos.m4.
44242         (Depends-on): Add unistd.
44243         (configure.ac): Set witnesses.
44244         (License): Relax to LGPLv2+.
44245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44246         * modules/unistd (Makefile.am): Substitute witnesses.
44247         * lib/unistd.in.h (rmdir): Declare replacement.
44248         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44249         * modules/rmdir-tests: New tests.
44250         * tests/test-rmdir.c: Likewise.
44251
44252 2009-09-15  Eric Blake  <ebb9@byu.net>
44253
44254         fchdir: improve use of replacement functions
44255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44256         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44257         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44258         REPLACE_CLOSEDIR.
44259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44260         * modules/sys_stat (Makefile.am): Substitute correct witness.
44261         * modules/dirent (Makefile.am): Likewise.
44262         * modules/unistd (Makefile.am): Likewise.
44263         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44264         * lib/unistd.in.h (dup): Likewise.
44265         * lib/sys_stat.in.h (fstat): Likewise.
44266
44267         maint: ignore gnulib-tool temp files
44268         * .gitignore: Ignore files created during gnulib-tool --test.
44269
44270 2009-09-13  Jim Meyering  <meyering@redhat.com>
44271
44272         posixtm: don't reject a time that specify "60" as the number of seconds
44273         * lib/posixtm.c (posixtime): The code to reject invalid dates
44274         would also reject a time specified with the .60 suffix.
44275         But POSIX allows that, in order to accommodate leap seconds.
44276         So don't reject it.
44277         (main): Adjust tests accordingly.
44278         * modules/posixtm (Depends-on): Add stpcpy.
44279
44280 2009-09-11  Jim Meyering  <meyering@redhat.com>
44281
44282         announce-gen: include [$release_type] in emitted Subject:
44283         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44284         e.g., [stable] in the emitted Subject: line.
44285
44286 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44287
44288         Remove obsolete macros from several modules.
44289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44290         obsolete Autoconf macros with their modern counterparts.
44291         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44292         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44294         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44295         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44296         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44298         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44299         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44300         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44301         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44303         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44304         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44305         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44306         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44307         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44308         * m4/time_r.m4 (gl_TIME_R): Likewise.
44309         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44310         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44311         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44312
44313         Fix copyright header in build-aux scripts.
44314         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44315         recommendation.
44316         * build-aux/ncftpput-ftp: Likewise.
44317         * build-aux/update-copyright: Likewise.
44318
44319 2009-09-09  Eric Blake  <ebb9@byu.net>
44320
44321         test-link: allow Linux choice of errno
44322         * tests/test-link.c (main): Relax test for alternate error.
44323
44324         strndup: fix improper m4 caching
44325         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44326         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44327         (gl_PREREQ_STRNDUP): Delete.
44328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44329         * modules/string (Makefile.am): Substitute it.
44330         * lib/string.in.h (strndup): Modernize prototype.
44331
44332         getcwd: port to mingw
44333         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44334         different from the POSIX assumptions made throughout the getcwd
44335         module; fortunately, the mingw getcwd does not need replacement.
44336         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44337         * modules/getcwd-tests: New test.
44338         * tests/test-getcwd.c: Likewise.
44339
44340         link: fix platform bugs
44341         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44342         * lib/link.c (link): Work around them.  Fix related mingw bug.
44343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44344         * modules/unistd (Makefile.am): Substitute it.
44345         * lib/unistd.in.h (link): Declare replacement.
44346         * doc/posix-functions/link.texi (link): Document this.
44347         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44348
44349         test-link: consolidate into single C program, test more cases
44350         * tests/test-link.sh: Delete.
44351         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44352         at least Cygwin and Solaris.
44353         * modules/link-tests (Files): Remove unused file.
44354         (Depends-on): Add errno, sys_stat.
44355         (Makefile.am): Simplify.
44356
44357 2009-09-08  Bruno Haible  <bruno@clisp.org>
44358
44359         Work around towlower, towupper bug on mingw.
44360         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44361         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44362         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44363         * doc/posix-functions/towupper.texi: Likewise.
44364         Reported by Eric Blake.
44365
44366 2009-09-08  Jim Meyering  <meyering@redhat.com>
44367
44368         build: don't try to run autoheader if we don't use it
44369         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44370         is not used in configure.ac.
44371
44372 2009-09-08  Eric Blake  <ebb9@byu.net>
44373
44374         euidaccess: fix compilation error
44375         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44376
44377         rawmemchr: relax license
44378         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44379         okay.
44380         Reported by Jim Meyering.
44381
44382         mkfifoat: new module
44383         * modules/mkfifoat: New file.
44384         * lib/mkfifoat.c: Likewise.
44385         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44387         * modules/sys_stat (Makefile.am): Use them.
44388         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44389         * MODULES.html.sh (File system functions): Mention module.
44390         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44391         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44392         * modules/mkfifoat-tests: New test.
44393         * tests/test-mkfifoat.c: Likewise.
44394
44395         strchrnul: relax license
44396         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44397         okay.
44398         Reported by Jim Meyering.
44399
44400 2009-09-08  Eric Blake  <ebb9@byu.net>
44401
44402         fstatat: fix compilation on Solaris
44403         * lib/fstatat.c (includes): Add fcntl.h.
44404         Reported by Pádraig Brady.
44405
44406 2009-09-07  Eric Blake  <ebb9@byu.net>
44407
44408         rename: modernize replacement
44409         * modules/rename (Depends-on): Add stdio.
44410         (configure.ac): Declare witness.
44411         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44412         stdio take care of replacement.
44413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44414         * modules/stdio (Makefile.am): Substitute them.
44415         * lib/stdio.in.h (rename): Declare replacement.
44416         * lib/rename.c (includes): Allow cross-compilation to non-windows
44417         machines.
44418         * doc/posix-functions/rename.texi (rename): Improve
44419         documentation.
44420
44421         stdio: sort witness names
44422         * modules/stdio (Makefile.am): Sort replacements.
44423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44424         * lib/stdio.in.h: Likewise.
44425
44426         getcwd: minor cleanups
44427         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44428         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44429
44430         openat: provide more convenience names
44431         * modules/faccessat (configure.ac): Add C witness.
44432         * lib/unistd.in.h (readlinkat): Fix typo.
44433         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44434         convenience wrappers.
44435         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44436         wrappers in syntax checks.
44437
44438 2009-09-06  Eric Blake  <ebb9@byu.net>
44439
44440         doc: fix comments in recent patches
44441         * lib/faccessat.c: Mention correct function.
44442         * lib/fchmodat.c: Likewise.
44443         * lib/fchownat.c: Likewise.
44444         * lib/symlinkat.c: Likewise.
44445         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44446         constants.
44447
44448         faccessat, symlinkat: continue cleanup of previous patch
44449         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44450         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44451         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44453         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44454         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44455         set.
44456
44457 2009-09-06  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44460         (fstatat): Declare if GNULIB_FSTATAT is set.
44461         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44462         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44463         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44464         * modules/fcntl-h (Files): Remove m4/openat.m4.
44465         * modules/sys_stat (Files): Remove m4/openat.m4.
44466         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44467         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44468         * modules/unistd (Files): Remove m4/openat.m4.
44469         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44470         GNULIB_OPENAT.
44471         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44472         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44473         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44474         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44475         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44476         gl_OPENAT_DEFAULTS.
44477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44478         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44479         Don't require gl_OPENAT_DEFAULTS.
44480         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44481         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44482         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44483         (gl_OPENAT_DEFAULTS): Remove macro.
44484
44485 2009-09-06  Bruno Haible  <bruno@clisp.org>
44486
44487         * modules/openat (configure.ac): Remove unneeded witness.
44488
44489 2009-09-06  Bruno Haible  <bruno@clisp.org>
44490
44491         Set errno to ENOSYS when a function is entirely unsupported.
44492         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44493         EOPNOTSUPP.
44494         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44495         * modules/chown (Depends-on): Remove errno.
44496
44497 2009-09-06  Bruno Haible  <bruno@clisp.org>
44498
44499         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44500
44501 2009-09-06  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44504
44505 2009-09-06  Ben Pfaff  <blp@gnu.org>
44506             Bruno Haible  <bruno@clisp.org>
44507
44508         Work around a glibc bug in strtok_r.
44509         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44510         Undefine if UNDEFINE_STRTOK_R is set.
44511         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44513         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44514         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44515         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44516         UNDEFINE_STRTOK_R.
44517         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44518
44519 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44520
44521         exclude: minor fix
44522         * lib/exclude.c: Include wctype.h
44523
44524 2009-09-06  Akim Demaille  <demaille@gostai.com>
44525
44526         bootstrap: improve error message
44527         * build-aux/bootstrap (find_tool): Upon failure, report the list
44528         of candidates.
44529         Honor the initial value of the envvar.
44530
44531 2009-09-05  Eric Blake  <ebb9@byu.net>
44532
44533         symlinkat: new module
44534         * modules/symlinkat: New file.
44535         * lib/symlinkat.c: Likewise.
44536         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44538         * modules/unistd (Makefile.am): Use them.
44539         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44540         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44541         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44542         * MODULES.html.sh (File system functions): Mention module.
44543         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44544         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44545         * modules/symlinkat-tests: New test.
44546         * tests/test-symlinkat.c: Likewise.
44547
44548         test-openat-safer: add more checks
44549         * tests/test-openat-safer.c (main): Check more code paths.
44550
44551 2009-09-05  Jim Meyering  <meyering@redhat.com>
44552
44553         syntax-check: detect unnecessary inclusion of openat.h
44554         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44555
44556 2009-09-05  Bruno Haible  <bruno@clisp.org>
44557
44558         Support towlower, towupper.
44559         * doc/posix-functions/towlower.texi: Mention module wctype.
44560         * doc/posix-functions/towupper.texi: Likewise.
44561         * lib/wctype.in.h (towlower, towupper): New functions.
44562         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44563         (ASSERT): New macro.
44564         (e): New variable.
44565         (main): Test also towlower, towupper. Test WEOF argument.
44566         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44567
44568 2009-09-05  Bruno Haible  <bruno@clisp.org>
44569
44570         Fix conversion behaviour when the input is invalid.
44571         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44572         mark occurring in first pass of indirect conversion.
44573         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44574         input.
44575         Found by clang's static analyzer.
44576
44577 2009-09-05  Bruno Haible  <bruno@clisp.org>
44578
44579         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44580         where direct conversion is possible.
44581
44582 2009-09-04  Eric Blake  <ebb9@byu.net>
44583
44584         openat: fail with ENOENT on empty name
44585         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44586         buffer.
44587
44588         link-follow: fix logic bug in prior patch
44589         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44590         reversed sense of yes and no in prior patch.  Avoid confusing
44591         compilation failure with desired semantics.
44592
44593         link-follow: accommodate mingw and cross-compilation
44594         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44595         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44596         cross-compilation results to -1, to make linkat easier to
44597         implement when cross-compiling.  Trivially support mingw.
44598         * modules/link-follow (configure.ac): Call new name.
44599         * NEWS: Mention this.
44600
44601 2009-09-03  Eric Blake  <ebb9@byu.net>
44602
44603         faccessat: compile replacement
44604         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44605         needed.
44606
44607         fts: fix compilation error
44608         * lib/fts.c (includes): Re-add "openat.h", for
44609         openat_needs_fchdir.
44610
44611         faccessat: new module
44612         * modules/faccessat: New file.
44613         * lib/faccessat.c: Likewise.
44614         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44616         * modules/unistd (Makefile.am): Use it.
44617         * lib/unistd.in.h (faccessat): Declare it.
44618         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44619         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44620         * MODULES.html.sh (File system functions): Mention it.
44621         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44622         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44623
44624         euidaccess: prefer POSIX over non-standard implementation
44625         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44626         * lib/euidaccess.c (euidaccess): Use it if available.
44627
44628         openat: make template easier to use
44629         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44630         AT_FUNC_F2 to be undefined.
44631         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44632         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44633         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44634         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44635         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44636         Likewise.
44637         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44638         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44639         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44640         Likewise.
44641
44642         openat: declare in POSIX headers
44643         * NEWS: Mention this.
44644         * modules/openat (configure.ac): Declare witnesses.
44645         (Depends-on): Add fcntl-h, sys_stat, unistd.
44646         (Include): Mention correct headers.
44647         * modules/fcntl-h (Depends-on): Add link-warning.
44648         (Files): Add openat.m4.
44649         (Makefile.am): Substitute witnesses.
44650         * modules/sys_stat (Files, Makefile.am): Likewise.
44651         * modules/unistd (Files, Makefile.am): Likewise.
44652         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44653         (gl_OPENAT_DEFAULTS): New macro.
44654         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44657         (SYS_STAT_H): Remove unused variable.
44658         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44659         * lib/fcntl--.h (includes): Remove unneeded header.
44660         * lib/openat-safer.c (includes): Likewise.
44661         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44662         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44663         appropriate headers.
44664         (__OPENAT_PREFIX): Delete.
44665         * lib/fcntl.in.h (openat): Provide declaration.
44666         (AT_FDCWD): Fix Solaris bug.
44667         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44668         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44669         * lib/fchmodat.c (includes):  Adjust to find declaration.
44670         * lib/fchownat.c (includes): Likewise.
44671         * lib/mkdirat.c (includes): Likewise.
44672         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44673         still visible.
44674
44675 2009-09-02  Eric Blake  <ebb9@byu.net>
44676
44677         errno: use consistently
44678         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44679         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44680         * lib/canonicalize.c (ELOOP): Likewise.
44681         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44682         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44683         * lib/lchown.c (EOPNOTSUPP): Likewise.
44684         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44685         * lib/savewd.c (ESTALE): Likewise.
44686         * lib/settime.c (ENOSYS): Likewise.
44687         * lib/utimens.c (ENOSYS): Likewise.
44688         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44689         * lib/chdir-safer.c (ELOOP): Likewise.
44690         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44691         * modules/c-stack (Depends-on): Add errno.
44692         * modules/canonicalize (Depends-on): Likewise.
44693         * modules/chdir-safer (Depends-on): Likewise.
44694         * modules/fdopendir (Depends-on): Likewise.
44695         * modules/inet_ntop (Depends-on): Likewise.
44696         * modules/inet_pton (Depends-on): Likewise.
44697         * modules/lchown (Depends-on): Likewise.
44698         * modules/openat (Depends-on): Likewise.
44699         * modules/savewd (Depends-on): Likewise.
44700         * modules/settime (Depends-on): Likewise.
44701         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44702
44703         fts: avoid leaking fds
44704         * modules/fts (Depends-on): Add cloexec.
44705         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44706         flag.
44707
44708         fts: make directory fds more robust
44709         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44710         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44711
44712         backupfile, chdir-long, fts, savedir: make safer
44713         * lib/backupfile.c (includes): Use "dirent--.h", since
44714         numbered_backup can write to stderr during readdir.
44715         * lib/savedir.c (includes): Likewise.
44716         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44717         emulation can write to stderr on failure.
44718         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44719         * lib/getcwd.c: Document why opendir_safer is unused.
44720         * lib/glob.c: Likewise.
44721         * lib/scandir.c: Likewise.
44722         * lib/openat-proc.c: Likewise, for open_safer.
44723         * modules/backupfile (Depends-on): Add dirent-safer.
44724         * modules/savedir (Depends-on): Likewise.
44725         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44726         * modules/chdir-long (Depends-on): Add openat-safer.
44727
44728         openat-safer: new module
44729         * modules/openat-safer: New file.
44730         * lib/openat-safer.c: Likewise.
44731         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44732         * lib/fcntl-safer.h (openat_safer): Declare.
44733         * lib/fcntl--.h (openat): Override.
44734         * MODULES.html.sh (File descriptor based I/O): Mention it.
44735         * lib/openat.h: Add double-inclusion guards.
44736         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44737         "fcntl--.h", so we can implement openat.
44738         * modules/openat-safer-tests: New test.
44739         * tests/test-openat-safer.c: New file.
44740
44741         dirent-safer: new module
44742         * modules/dirent-safer: New file.
44743         * lib/dirent--.h: Likewise.
44744         * lib/dirent-safer.h: Likewise.
44745         * lib/opendir-safer.c: Likewise.
44746         * m4/dirent-safer.m4: Likewise.
44747         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44748         * modules/dirent-safer-tests: New test.
44749         * tests/test-dirent-safer.c: New file.
44750         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44751
44752         fdopendir: optimize on mingw
44753         * lib/unistd.in.h (_gl_directory_name): New prototype.
44754         * lib/fchdir.c (_gl_directory_name): Implement it.
44755         (fchdir): Use it to simplify implementation.
44756         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44757         fchdir, when available, to avoid calling [f]chdir().
44758
44759         fdopendir: split into its own module
44760         * lib/openat.c (fdopendir): Move...
44761         * lib/fdopendir.c: ...into new file.
44762         * modules/fdopendir: New module.
44763         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44764         * modules/openat (Depends-on): Add fdopendir.
44765         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44766         fdopendir here.
44767         * modules/savedir (Depends-on): Only need fdopendir, not full
44768         openat.
44769         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44770         * lib/openat.h (fdopendir): Drop prototype.
44771         * lib/dirent.in.h (fdopendir): Provide prototype.
44772         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44773         * modules/dirent (Makefile.am): Substitute them.
44774         * MODULES.html.sh (File system functions): Mention it.
44775         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44776         * modules/fdopendir-tests: New file.
44777         * tests/test-fdopendir.c: Likewise.
44778
44779         fchdir: use more consistent macro convention
44780         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44781         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44782         REPLACE_FCHDIR, rather than relying on config.h macros.
44783         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44784         inside a single make-time REPLACE_FCHDIR block, rather than using
44785         the config.h FCHDIR_REPLACEMENT.
44786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44787         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44788         Manage fstat replacement.
44789         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44790         REPLACE_FCHDIR.
44791         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44792         (Makefile.am): Substitute REPLACE_FCHDIR.
44793         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44794         FCHDIR_REPLACEMENT.
44795         * lib/dup-safer.c (dup_safer): Likewise.
44796         * lib/dup2.c (rpl_dup2): Likewise.
44797         * lib/dup3.c (rpl_dup3): Likewise.
44798         * lib/open.c (rpl_open): Likewise.
44799
44800         fchdir: simplify error handling, and support dup3
44801         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44802         stdbool, malloc-posix, realloc-posix.
44803         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44804         (ensure_dirs_slot): Return false on allocation failure.
44805         (rpl_dup2): Delete.
44806         (_gl_register_dup): New function.
44807         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44808         (_gl_register_fd): Close fd on allocation failure.
44809         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44810         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44811         prototype.
44812         (rpl_dup2_fchdir): Delete prototype.
44813         * lib/open.c (open): Update caller.
44814         * lib/dup2.c (dup2): Track fchdir metadata.
44815         * lib/dup3.c (dup3): Likewise.
44816         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44818
44819 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44820
44821         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44822         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44823         don't pass arguments to AC_OUTPUT.
44824
44825 2009-09-02  Bruno Haible  <bruno@clisp.org>
44826
44827         * modules/mkdtemp (License): Relicense under LGPLv2+.
44828         Reported by Paolo Bonzini.
44829
44830 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44831
44832         Replace uses of obsolete autoconf macros in Jim's modules.
44833         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44834         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44835         can evoke a warning from autoconf when run with -Wobsolete
44836         enabled.  They were declared obsolete for good reasons (see
44837         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44838         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44839         should not continue using the deprecated macros.
44840         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44841         obsolete Autoconf macros with modern counterparts.
44842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44843         * m4/dos.m4 (gl_AC_DOS): Likewise.
44844         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44846         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44847         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44848         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44850         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44851         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44852         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44853         Likewise.
44854         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44855         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44856         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44857         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44858         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44859         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44860
44861 2009-09-01  Eric Blake  <ebb9@byu.net>
44862
44863         fchdir: fix off-by-one bug in previous patch
44864         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44865         (_gl_unregister_fd): Delete useless if.
44866
44867 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44868
44869         maint.mk: sort the list of syntax-check rules
44870         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44871         easier to get a sense of progress when the rules are run sequentially
44872         and take a long time.
44873
44874 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44875
44876         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44877         * modules/netinet_in: Likewise.
44878         * modules/sys_file: Likewise.
44879         * modules/sys_ioctl: Likewise.
44880         * modules/sys_select: Likewise.
44881         * modules/sys_socket: Likewise.
44882         * modules/sys_stat: Likewise.
44883         * modules/sys_time: Likewise.
44884         * modules/sys_times: Likewise.
44885         * modules/sys_utsname: Likewise.
44886         * modules/sys_wait: Likewise.
44887
44888 2009-09-01  Jim Meyering  <meyering@redhat.com>
44889
44890         fts: help ensure that return values are not ignored
44891         * lib/fts_.h (__GNUC_PREREQ): Define.
44892         (__attribute_warn_unused_result__): Define.
44893         (fts_children, fts_close, fts_open, fts_read): Declare with
44894         __attribute_warn_unused_result__.
44895
44896         fts: fts_close now fails also when closing a dir file descriptor fails
44897         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44898         and propagate to caller, along with errno.
44899
44900         announce-gen: correct formatting in --help output
44901         * build-aux/announce-gen (usage): Move the one-line description in
44902         --help output "up", to where it belongs, just after Usage:.
44903
44904 2009-08-31  Eric Blake  <ebb9@byu.net>
44905
44906         fchdir: port to mingw
44907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44908         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44909         opened, then use a substitute.
44910         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44911         replacement.
44912         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44913         (_gl_register_fd): No need to check stat if open already filters
44914         all directories.
44915         (fchdir): Fix error condition to match POSIX.
44916         * modules/fchdir (Depends-on): Add sys_stat.
44917         * doc/posix-functions/open.texi (open): Document the limitation.
44918         * modules/fchdir-tests: New file.
44919         * tests/test-fchdir.c: Likewise.
44920
44921         canonicalize: allow cross-testing from cygwin to mingw
44922         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44923         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44924         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44925         Likewise.
44926         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44927         target does not support symlinks.
44928         * tests/test-canonicalize-lgpl.sh: Likewise.
44929
44930         chown: avoid compilation warning on mingw
44931         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44932         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44933         mingw.
44934         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44935         * modules/chown (Depends-on): Add errno.
44936
44937 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44938
44939         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44940         command.
44941
44942 2009-08-31  Jim Meyering  <meyering@redhat.com>
44943
44944         canonicalize: remove useless initialization
44945         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44946         initialization of local, "end".
44947
44948 2009-08-30  Bruno Haible  <bruno@clisp.org>
44949
44950         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44951         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44952         ENOSYS.
44953
44954 2009-08-30  Bruno Haible  <bruno@clisp.org>
44955
44956         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44957         /usr/xpg4/bin/tr when it exists.
44958         * tests/test-pipe-filter-gi1.sh: Likewise.
44959
44960 2009-08-30  Bruno Haible  <bruno@clisp.org>
44961
44962         Work around deficient /usr/bin/id program on Solaris.
44963         * tests/test-file-has-acl.sh (ID): New variable.
44964         * tests/test-set-mode-acl.sh (ID): Likewise.
44965         * tests/test-copy-acl.sh (ID): Likewise.
44966         * tests/test-copy-file.sh (ID): Likewise.
44967
44968 2009-08-30  Bruno Haible  <bruno@clisp.org>
44969
44970         New module 'xstriconveh'.
44971         * lib/xstriconveh.h: New file.
44972         * lib/xstriconveh.c: New file.
44973         * modules/xstriconveh: New file.
44974
44975 2009-08-30  Bruno Haible  <bruno@clisp.org>
44976
44977         Make it easier to use mem_cd_iconveh.
44978         * lib/striconveh.h (iconveh_t): New type.
44979         (iconveh_open, iconveh_close): New declarations.
44980         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44981         with a single 'const iconveh_t *' argument.
44982         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44983         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44984         with a single 'const iconveh_t *' argument.
44985         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44986         * tests/test-striconveh.c (main): Update.
44987         * NEWS: Mention the change.
44988
44989 2009-08-30  Bruno Haible  <bruno@clisp.org>
44990
44991         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44992         problem.
44993
44994 2009-08-30  Bruno Haible  <bruno@clisp.org>
44995
44996         Work around iconv_open problem on Solaris.
44997         * lib/iconv_open-solaris.gperf: New file.
44998         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44999         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45000         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45001         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45002         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45003         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45004
45005 2009-08-29  Jim Meyering  <meyering@redhat.com>
45006
45007         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45008         * top/maint.mk (cvs-check): Remove target; it was just an alias
45009         to the better-named vc-diff-check.
45010         (maintainer-distcheck): Remove rule.  It was used only from
45011         the (alpha/beta/major) target, and all of its commands but one
45012         were coreutils-specific.
45013         (vc-dist): Remove rule.
45014         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45015         Run vc-diff-check, not vc-dist.
45016         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45017
45018 2009-08-27  Bruno Haible  <bruno@clisp.org>
45019
45020         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45021         of 0.
45022
45023 2009-08-27  Bruno Haible  <bruno@clisp.org>
45024
45025         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45026         compilers.
45027         * doc/func.texi: Document the SunPRO C bug.
45028
45029 2009-08-27  Bruno Haible  <bruno@clisp.org>
45030
45031         Fix link error on Solaris.
45032         * tests/test-parse-duration.c (xstrdup): Remove function.
45033
45034 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45035
45036         ignore-value: handle pointer types, too
45037         * lib/ignore-value.h (__attribute__): Remove definition.
45038         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45039         of a more concise and more-often effective "(void) i" statement.
45040         (ignore_ptr): New function to suppress warnings from functions that
45041         return pointers, and to make it explicit that one function doesn't
45042         handle all cases.
45043
45044 2009-08-25  Bruno Haible  <bruno@clisp.org>
45045
45046         dup2: work around a Linux bug.
45047         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45048         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45049         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45050         Reported by Simon Josefsson.
45051
45052 2009-08-25  Jim Meyering  <meyering@redhat.com>
45053
45054         libguestfs uses gnulib
45055         * users.txt: Add libguestfs.
45056
45057 2009-08-24  Eric Blake  <ebb9@byu.net>
45058
45059         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45060         * lib/pipe2.c (includes): Add binary-io.h.
45061         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45062
45063 2009-08-24  Bruno Haible  <bruno@clisp.org>
45064
45065         Tolerate declared but missing accept4 syscall.
45066         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45067         available.
45068         * lib/sys_socket.in.h (accept4): If the function is already present,
45069         override it.
45070         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45071         * modules/accept4 (Makefile.am): Compile accept4.c always.
45072         Reported by Paolo Bonzini and Eric Blake.
45073
45074 2009-08-23  Bruno Haible  <bruno@clisp.org>
45075
45076         New module 'accept4'.
45077         * lib/sys_socket.in.h (accept4): New declaration.
45078         * lib/accept4.c: New file.
45079         * m4/accept4.m4: New file.
45080         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45081         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45082         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45083         HAVE_ACCEPT4.
45084         * modules/accept4: New file.
45085         * doc/glibc-functions/accept4.texi: Mention the new module.
45086
45087 2009-08-24  Jim Meyering  <meyering@redhat.com>
45088
45089         progname: also set global program_invocation_name, when possible
45090         Before this change, a libtool-enabled program that calls glibc's
45091         error function would report the program name as
45092         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45093         * modules/progname (configure.ac): Check for a declaration of
45094         program_invocation_name.
45095         * lib/progname.c:  Include <errno.h>.
45096         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45097         Set program_invocation_name.
45098
45099 2009-08-23  Bruno Haible  <bruno@clisp.org>
45100
45101         * lib/dup3.c: Include <string.h>.
45102
45103 2009-08-23  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45106         * lib/pipe2.c (pipe2): Likewise.
45107         Suggested by Eric Blake.
45108
45109 2009-08-23  Bruno Haible  <bruno@clisp.org>
45110
45111         Tolerate declared but missing dup3 syscall.
45112         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45113         * lib/unistd.in.h (dup3): If the function is already present,
45114         override it.
45115         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45116         * modules/dup3 (Makefile.am): Compile dup3.c always.
45117         Reported by Paolo Bonzini.
45118
45119 2009-08-23  Bruno Haible  <bruno@clisp.org>
45120
45121         Tolerate declared but missing pipe2 syscall.
45122         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45123         available.
45124         * lib/unistd.in.h (pipe2): If the function is already present,
45125         override it.
45126         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45127         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45128         Reported by Paolo Bonzini.
45129
45130 2009-08-23  Bruno Haible  <bruno@clisp.org>
45131
45132         * lib/pipe2.c (pipe2): Move #ifs inside function.
45133
45134 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45135
45136         quotearg: document limitations of quote_these_too
45137         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45138         those limitations are created.
45139         * lib/quotearg.h (set_char_quoting): Document that digits and
45140         letters that are special after backslash are not permitted.
45141         (quotearg_char): Cross-reference set_char_quoting documentation.
45142
45143 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45144
45145         quotearg: implement custom_quoting_style
45146         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45147         right_quote fields.
45148         (set_custom_quoting): New public function.
45149         (quotearg_buffer_restyled): Add left_quote and right_quote
45150         arguments, handle them very much like locale quoting, and update
45151         all uses.
45152         (quotearg_n_custom): New public function.
45153         (quotearg_n_custom_mem): New public function.
45154         (quotearg_custom): New public function.
45155         (quotearg_custom_mem): New public function.
45156         * lib/quotearg.h: Prototype and document new public functions.
45157         (enum quoting_style): For escape_quoting_style and
45158         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45159         ignored even though they're otherwise like c_quoting_style.
45160         Add custom_quoting_style member and document with comparison to
45161         clocale_quoting_style.
45162         * tests/test-quotearg.c (custom_quotes): New array.
45163         (custom_results): New array.
45164         (main): Extend to test custom quoting.
45165
45166 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45167
45168         quotearg: fix right quote escaping when it's in quote_these_too
45169         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45170         quote, be sure to prepend only one backslash.
45171         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45172         (main): Test it.
45173
45174 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45175
45176         quotearg-tests: test escaping of embedded locale quotes
45177         * tests/test-quotearg.c (struct result_strings): Add member for
45178         new input.
45179         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45180         (inputs): Add new input.
45181         (results_g): Add expected results.
45182         (flag_results): Likewise.
45183         (locale_results): Likewise.
45184         (compare_strings): Check those.
45185
45186 2009-08-23  Bruno Haible  <bruno@clisp.org>
45187
45188         Tests for module 'dup3'.
45189         * modules/dup3-tests: New file.
45190         * tests/test-dup3.c: New file.
45191
45192         New module 'dup3'.
45193         * lib/unistd.in.h (dup3): New declaration.
45194         * lib/dup3.c: New file.
45195         * m4/dup3.m4: New file.
45196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45197         HAVE_DUP3.
45198         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45199         * modules/dup3: New file.
45200         * doc/glibc-functions/dup3.texi: Mention the new module.
45201
45202 2009-08-23  Bruno Haible  <bruno@clisp.org>
45203
45204         Tweak the dup2 test.
45205         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45206         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45207         the test file is still empty. Fix argument order of lseek.
45208
45209 2009-08-23  Bruno Haible  <bruno@clisp.org>
45210
45211         Avoid test link errors when the modules getopt-gnu, gettext are used.
45212         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45214
45215 2009-08-23  Bruno Haible  <bruno@clisp.org>
45216
45217         Fix getdtablesize() on mingw.
45218         * lib/getdtablesize.c (getdtablesize): Implement differently.
45219         * lib/unistd.in.h (getdtablesize): Improve comment.
45220
45221 2009-08-23  Bruno Haible  <bruno@clisp.org>
45222
45223         New module 'mkostemp'.
45224         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45225         * lib/stdlib.in.h (mksotemp): New declaration.
45226         * lib/mkostemp.c: New file, from glibc with modifications.
45227         * lib/tempname.h (GT_FILE): Remove outdated comment.
45228         (gen_tempname): Add flags argument.
45229         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45230         (__GT_FILE): Map to 1.
45231         (small_open, large_open): Remove macros.
45232         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45233         * lib/mkstemp.c (mkstemp): Update.
45234         * lib/mkdtemp.c (mkdtemp): Likewise.
45235         * m4/mkostemp.m4: New file.
45236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45237         HAVE_MKOSTEMP.
45238         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45239         HAVE_MKOSTEMP.
45240         * modules/mkostemp: New file, based on modules/mkstemp.
45241         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45242         * NEWS: Mention the change.
45243
45244 2009-08-23  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45247         Reported by Eric Blake.
45248
45249 2009-08-23  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45252         Reported by Eric Blake.
45253
45254 2009-08-23  Bruno Haible  <bruno@clisp.org>
45255
45256         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45257         * modules/pipe2 (Depends-on): Likewise.
45258
45259 2009-08-23  Eric Blake  <ebb9@byu.net>
45260
45261         fcntl-h: add O_TTY_INIT support
45262         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45263         * tests/test-fcntl-h.c (o): Test it.
45264         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45265
45266         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45267         * modules/fcntl: Move <fcntl.h> header replacement...
45268         * modules/fcntl-h: ...to new name, so as not to collide with
45269         like-named function.
45270         * tests/test-fcntl.c: Rename...
45271         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45272         * modules/fcntl-tests: Rename...
45273         * modules/fcntl-h-tests: ...to this.  Update test file name.
45274         * modules/chdir-long (Depends-on): Update clients.
45275         * modules/chdir-safer (Depends-on): Likewise.
45276         * modules/fcntl-safer (Depends-on): Likewise.
45277         * modules/fts (Depends-on): Likewise.
45278         * modules/mkancesdirs (Depends-on): Likewise.
45279         * modules/mkdir-p (Depends-on): Likewise.
45280         * modules/open (Depends-on): Likewise.
45281         * modules/savewd (Depends-on): Likewise.
45282         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45283         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45284
45285 2009-08-22  Bruno Haible  <bruno@clisp.org>
45286
45287         * modules/binary-io (License): Relicense under LGPL.
45288         * modules/pipe2 (License): Likewise.
45289
45290 2009-08-22  Bruno Haible  <bruno@clisp.org>
45291
45292         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45293         return value.
45294         * lib/pipe-filter-gi.c (filter_init): Likewise.
45295         Reported by Eric Blake.
45296
45297 2009-08-22  Bruno Haible  <bruno@clisp.org>
45298
45299         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45300         * modules/pipe (Depends-on): Add pipe2.
45301
45302 2009-08-22  Bruno Haible  <bruno@clisp.org>
45303
45304         Tests for module 'pipe2'.
45305         * modules/pipe2-tests: New file.
45306         * tests/test-pipe2.c: New file.
45307
45308         New module 'pipe2'.
45309         * lib/unistd.in.h (pipe2): New declaration.
45310         * lib/pipe2.c: New file.
45311         * m4/pipe2.m4: New file.
45312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45313         HAVE_PIPE2.
45314         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45315         * modules/pipe2: New file.
45316         * doc/glibc-functions/pipe2.texi: Mention the new module.
45317
45318 2009-08-22  Bruno Haible  <bruno@clisp.org>
45319
45320         Reference some new glibc functions.
45321         * doc/glibc-functions/accept4.texi: New file.
45322         * doc/glibc-functions/dup3.texi: New file.
45323         * doc/glibc-functions/mkostemp.texi: New file.
45324         * doc/glibc-functions/pipe2.texi: New file.
45325         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45326         (Glibc sys/socket.h): Refer to accept4.
45327         (Glibc unistd.h): Refer to dup3, pipe2.
45328         Reported by Eric Blake.
45329
45330 2009-08-22  Jim Meyering  <meyering@redhat.com>
45331             Bruno Haible  <bruno@clisp.org>
45332
45333         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45334         This makes it so packages using automake-1.11's silent-rules option
45335         can print e.g., a single "GEN    configmake.h" line, rather than
45336         the 30+ statements that perform the job.  If you want to see the
45337         actual commands, you can still run "make V=1".
45338         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45339         so that make output is abbreviated when those variables are defined
45340         appropriately.
45341         * modules/argz: Likewise.
45342         * modules/arpa_inet: Likewise.
45343         * modules/byteswap: Likewise.
45344         * modules/configmake: Likewise.
45345         * modules/dirent: Likewise.
45346         * modules/errno: Likewise.
45347         * modules/fcntl: Likewise.
45348         * modules/float: Likewise.
45349         * modules/fnmatch: Likewise.
45350         * modules/getopt-posix: Likewise.
45351         * modules/glob: Likewise.
45352         * modules/iconv_open: Likewise.
45353         * modules/inttypes: Likewise.
45354         * modules/localcharset: Likewise.
45355         * modules/locale: Likewise.
45356         * modules/math: Likewise.
45357         * modules/netdb: Likewise.
45358         * modules/netinet_in: Likewise.
45359         * modules/poll: Likewise.
45360         * modules/posix_spawnp-tests: Likewise.
45361         * modules/sched: Likewise.
45362         * modules/search: Likewise.
45363         * modules/selinux-h: Likewise.
45364         * modules/signal: Likewise.
45365         * modules/spawn: Likewise.
45366         * modules/stdarg: Likewise.
45367         * modules/stdbool: Likewise.
45368         * modules/stddef: Likewise.
45369         * modules/stdint: Likewise.
45370         * modules/stdio: Likewise.
45371         * modules/stdlib: Likewise.
45372         * modules/string: Likewise.
45373         * modules/strings: Likewise.
45374         * modules/sys_file: Likewise.
45375         * modules/sys_ioctl: Likewise.
45376         * modules/sys_select: Likewise.
45377         * modules/sys_socket: Likewise.
45378         * modules/sys_stat: Likewise.
45379         * modules/sys_time: Likewise.
45380         * modules/sys_times: Likewise.
45381         * modules/sys_utsname: Likewise.
45382         * modules/sys_wait: Likewise.
45383         * modules/sysexits: Likewise.
45384         * modules/time: Likewise.
45385         * modules/unistd: Likewise.
45386         * modules/wchar: Likewise.
45387         * modules/wctype: Likewise.
45388
45389 2009-08-22  Jim Meyering  <meyering@redhat.com>
45390
45391         announce-gen: detect write failure
45392         * build-aux/announce-gen: Add Coda at end.
45393         Remove equivalent-but-more-verbose block at top.
45394
45395 2009-08-19  Akim Demaille  <demaille@gostai.com>
45396
45397         bootstrap: --help to stdout.
45398         * bootstrap (usage): Don't send --help to stderr.
45399         Use a here doc instead of a long string.
45400
45401 2009-08-21  Eric Blake  <ebb9@byu.net>
45402
45403         test-popen-safer: split from test-popen
45404         * tests/test-popen.c (main): Move...
45405         * tests/test-popen.h: ...into new file.
45406         * tests/test-popen-safer2.c: New file.
45407         * modules/popen-tests (Files): Add test-popen.h.
45408         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45409         Suggested by Bruno Haible.
45410
45411         test-fcntl-safer: split from test-open
45412         * tests/test-open.c (main): Move...
45413         * tests/test-open.h: ...into new file.
45414         * tests/test-fcntl-safer.c: New file.
45415         * modules/open-tests (Files): Add test-open.h.
45416         * modules/fcntl-safer-tests: New file.
45417         Suggested by Bruno Haible.
45418
45419         test-fopen-safer: split from test-fopen
45420         * tests/test-fopen.c (main): Move...
45421         * tests/test-fopen.h: ...into new file.
45422         * tests/test-fopen-safer.c: New file.
45423         * modules/fopen-tests (Files): Add test-fopen.h.
45424         * modules/fopen-safer-tests: New file.
45425         Suggested by Bruno Haible.
45426
45427 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45428
45429         popen-safer: test O_CLOEXEC at run-time.
45430         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45431
45432 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45433
45434         fcntl: move more flags to the header
45435         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45436         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45437         * lib/fcntl.in.h: Do both things here.
45438
45439 2009-08-21  Jim Meyering  <meyering@redhat.com>
45440
45441         consistently remove $@-t before redirecting to it
45442         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45443         * modules/alloca-opt: Likewise.
45444         * modules/byteswap: Likewise.
45445         * modules/fnmatch: Likewise.
45446         * modules/getopt-posix: Likewise.
45447         * modules/glob: Likewise.
45448         * modules/poll: Likewise.
45449         * modules/posix_spawnp-tests: Likewise.
45450         * modules/sys_socket: Likewise.
45451         * modules/sysexits: Likewise.
45452
45453 2009-08-21  Eric Blake  <ebb9@byu.net>
45454
45455         popen: simplify access to original popen
45456         * lib/popen.c (rpl_popen): No need to worry about popen being a
45457         macro.
45458         Reported by Bruno Haible.
45459
45460 2009-08-20  Eric Blake  <ebb9@byu.net>
45461
45462         build: avoid some compiler warnings
45463         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45464         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45465         type.
45466         (new_exclude_segment, excluded_file_pattern_p)
45467         (excluded_file_name_p): Reduce scope.
45468         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45469         old-style declaration.
45470
45471 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45472
45473         * tests/test-exclude1.sh: Handle Windows EOL.
45474         * tests/test-exclude2.sh: Likewise.
45475         * tests/test-exclude3.sh: Likewise.
45476         * tests/test-exclude4.sh: Likewise.
45477         * tests/test-exclude5.sh: Likewise.
45478         * tests/test-exclude6.sh: Likewise.
45479         * tests/test-exclude7.sh: Likewise.
45480
45481 2009-08-19  Akim Demaille  <demaille@gostai.com>
45482
45483         bootstrap: find sha1sum when named gsha1sum.
45484         * bootstrap (find_tool): New.
45485         ($SHA1SUM): New.
45486         Use it.
45487
45488 2009-08-20  Jim Meyering  <meyering@redhat.com>
45489
45490         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45491         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45492         expression that converts "." in a file name to "\." in the resulting
45493         regexp.  Start with a dummy statement, so that prior shell variable
45494         definitions are expanded portably.  Reported by Simon Josefsson.
45495
45496 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45497
45498         Fix polling for writeability of a screen buffer.
45499         * lib/poll.c: Distinguish input and screen buffers for the
45500         Win32 implementation.
45501         * lib/select.c: Likewise.
45502
45503 2009-08-19  Eric Blake  <ebb9@byu.net>
45504
45505         popen-safer: prevent popen from clobbering std descriptors
45506         * modules/popen-safer: New file.
45507         * lib/popen-safer.c: Likewise.
45508         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45509         * lib/stdio--.h (popen): Provide override.
45510         * lib/stdio-safer.h (popen_safer): Provide declaration.
45511         * tests/test-popen.c (includes): Partially test this.
45512         * modules/popen-safer-tests: New file, for more tests.
45513         * tests/test-popen-safer.c: Likewise.
45514         * MODULES.html.sh (file stream based Input/Output): Mention it.
45515
45516         tests: test some of the *-safer modules
45517         * modules/fopen-safer (Depends-on): Add fopen.
45518         * modules/fcntl-safer (Depends-on): Add fcntl.
45519         * modules/stdlib-safer (Depends-on): Add stdlib.
45520         (configure.ac): Set indicator.
45521         * modules/unistd-safer (configure.ac): Likewise.
45522         * modules/tmpfile-safer (configure.ac): Likewise.
45523         (Depends-on): Add tmpfile.
45524         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45525         active.
45526         * tests/test-fopen.c (includes): Test safer versions when they are
45527         in use.
45528         * tests/test-open.c (includes): Likewise.
45529
45530         popen: fix cygwin 1.5 bug when stdin closed
45531         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45532         * modules/popen: New file.
45533         * modules/popen-tests: Likewise.
45534         * tests/test-popen.c: Likewise.
45535         * m4/popen.m4: Likewise.
45536         * lib/popen.c: Likewise.
45537         * lib/stdio.in.h (popen): New declaration.
45538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45539         * modules/stdio (Makefile.am): Likewise.
45540         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45541
45542 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45543
45544         maint.mk: give full control over update-copyright exclusions
45545         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45546         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45547         (update-copyright): Don't force inclusion of top-level
45548         ChangeLog.  Don't force exclusion of all COPYING files, but make
45549         them the default exclusion instead.
45550
45551 2009-08-16  Bruno Haible  <bruno@clisp.org>
45552
45553         Fix test failures on Solaris 10.
45554         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45555         tests when Solaris iconv() is used.
45556         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45557         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45558         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45559         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45560         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45561
45562 2009-08-16  Bruno Haible  <bruno@clisp.org>
45563
45564         Fix test failures on Solaris 10.
45565         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45566         'tr' program and pass it as first argument.
45567         * tests/test-pipe-filter-gi1.sh: Likewise.
45568         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45569         program as first argument.
45570         * tests/test-pipe-filter-gi1.c (main): Likewise.
45571
45572 2009-08-16  Eric Blake  <ebb9@byu.net>
45573
45574         fpurge: fix previous commits
45575         * modules/fpurge (Makefile.am): Make replacement conditional,
45576         partially reverting 2007-04-29 change; missed in previous
45577         attempt.
45578         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45579         is missing.
45580
45581 2009-08-16  Bruno Haible  <bruno@clisp.org>
45582
45583         Clarify fpurge's effect on the file position.
45584         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45585         * tests/test-fpurge.c (main): Make a second pass for checking the file
45586         position.
45587
45588 2009-08-16  Bruno Haible  <bruno@clisp.org>
45589
45590         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45591         declaration of fpurge is missing.
45592         * tests/test-fpurge.c (main): Check that the file has not more contents
45593         than expected. Close the file before removing it.
45594
45595 2009-08-15  Eric Blake  <ebb9@byu.net>
45596
45597         fpurge: don't wrap working cygwin implementation
45598         * lib/fpurge.c (fpurge): Fix comment typo.
45599         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45600         1.7 to avoid replacement.
45601         * tests/test-fpurge.c (main): Enhance test.
45602
45603 2009-08-15  Eric Blake  <ebb9@byu.net>
45604         and Jim Meyering  <meyering@redhat.com>
45605
45606         test-update-copyright: skip if perl is insufficient
45607         * tests/test-update-copyright.sh: Failure to run maintainer tool
45608         should not cause testsuite failure on cygwin 1.5.
45609
45610 2009-08-14  Eric Blake  <ebb9@byu.net>
45611
45612         doc: mention more functions added in cygwin 1.7.0
45613         * doc/posix-headers/limits.texi (limits.h): Update for recent
45614         cygwin additions.
45615         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45616         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45617         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45618         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45619         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45620
45621 2009-08-14  Eric Blake  <ebb9@byu.net>
45622
45623         maint.mk: simplify update-copyright rule
45624         * top/maint.mk (update-copyright-local): Delete, and document how
45625         to do it in cfg.mk instead.
45626         (update-copyright-exclude-regexp): Delete, and document how to do
45627         it in .x-update-copyright instead.
45628         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45629         exclude ChangeLog.
45630
45631 2009-08-14  Bruno Haible  <bruno@clisp.org>
45632
45633         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45634
45635 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45636
45637         maint.mk: support update-copyright-env
45638         * top/maint.mk (update-copyright-env): Define place-holder.
45639         (update-copyright): Expand $(update-copyright-env) before
45640         invoking update-copyright.
45641
45642 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45643
45644         update-copyright: implement forced reformatting
45645         * build-aux/update-copyright: Implement and document
45646         UPDATE_COPYRIGHT_FORCE.
45647         * tests/test-update-copyright.sh: Test it.
45648
45649 2009-08-14  Eric Blake  <ebb9@byu.net>
45650         and Bruno Haible  <bruno@clisp.org>
45651
45652         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45653         * tests/test-locale.c: Revert previous patch related to NULL.
45654         * tests/test-stdio.c: Likewise.
45655         * tests/test-stdlib.c: Likewise.
45656         * tests/test-string.c: Likewise.
45657         * tests/test-unistd.c: Likewise.
45658         * modules/time-tests (Depends-on): Add verify.
45659         * modules/wchar-tests (Depends-on): Likewise.
45660         * tests/test-time.c: Test for NULL compliance.
45661         * tests/test-wchar.c: Likewise.
45662         * modules/locale (Depends-on): Add stddef.
45663         * modules/stdio (Depends-on): Likewise.
45664         * modules/stdlib (Depends-on): Likewise.
45665         * modules/string (Depends-on): Likewise.
45666         * modules/time (Depends-on): Likewise.
45667         * modules/unistd (Depends-on): Likewise.
45668         * modules/wchar (Depends-on): Likewise.
45669         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45670         * lib/stdlib.in.h (includes): Likewise.
45671         * lib/string.in.h (includes): Likewise.
45672         * lib/time.in.h (includes): Likewise.
45673         * lib/unistd.in.h (includes): Likewise.
45674         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45675         replaced.
45676         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45677         * m4/stddef_h.m4: New file.
45678         * modules/stddef: Likewise.
45679         * lib/stddef.in.h: Likewise.
45680         * modules/stddef-tests: Likewise.
45681         * tests/test-stddef.c: Likewise.
45682         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45683         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45684         * doc/posix-headers/locale.texi (locale.h): Likewise.
45685         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45686         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45687         * doc/posix-headers/string.texi (string.h): Likewise.
45688         * doc/posix-headers/time.texi (time.h): Likewise.
45689         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45690         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45691
45692 2009-08-14  Eric Blake  <ebb9@byu.net>
45693
45694         doc: improve git diff of texinfo files
45695         * .gitattributes: Add rule for *.texi files, with hint on how to
45696         use it.
45697         Copied from m4, and based on a report by Bruno Haible.
45698
45699 2009-08-14  Bruno Haible  <bruno@clisp.org>
45700
45701         Disable multithread support by default on Cygwin 1.5.x for real.
45702         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45703
45704 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45705
45706         update-copyright: much ado about intervals
45707         * build-aux/update-copyright: Implement and document
45708         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45709         of copyright year intervals.
45710         Also, document UPDATE_COPYRIGHT_YEAR.
45711         * tests/test-update-copyright.sh: Test it.
45712
45713         update-copyright: convert 2-digit to 4-digit years
45714         * build-aux/update-copyright: Implement and document.
45715         * tests/test-update-copyright.sh: Update.
45716
45717 2009-08-14  Jim Meyering  <meyering@redhat.com>
45718
45719         test-exclude: avoid coreutils "make check" failure
45720         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45721         just as in test-argmatch.c.
45722
45723 2009-08-13  Eric Blake  <ebb9@byu.net>
45724
45725         test-dup2: fix bad assumption
45726         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45727         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45728
45729         test-version-etc: fix CRLF portability issue
45730         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45731         recognize \r.
45732         * tests/test-argp-version-etc-1.sh: Likewise.
45733
45734         getopt: update client modules
45735         * modules/argp (Depends-on): Use getopt-gnu.
45736         * modules/git-merge-changelog (Depends-on): Likewise.
45737         * modules/long-options (Depends-on): Likewise.
45738         * modules/xstrtol (Depends-on): Likewise.
45739
45740 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45741
45742         * tests/test-version-etc.sh: Don't fail on different
45743         project/version.  Don't fail on CRLF differences.  Rewrite to use
45744         multiple -e instead of multiple sed forks, suggested by Eric Blake
45745         <ebb9@byu.net>.
45746         * tests/test-argp-version-etc-1.sh: Likewise.
45747
45748 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45749
45750         * tests/test-version-etc.sh: Don't fail on different
45751         project/version.
45752
45753 2009-08-12  Bruno Haible  <bruno@clisp.org>
45754
45755         Tests for modules 'getopt-posix', 'getopt-gnu'.
45756         * modules/getopt-posix-tests: New file.
45757         * tests/test-getopt.c: New file.
45758         * tests/test-getopt.h: New file.
45759         * tests/test-getopt_long.h: New file.
45760
45761         New modules 'getopt-posix', 'getopt-gnu'.
45762         * modules/getopt-gnu: New file, renamed from modules/getopt.
45763         * modules/getopt-posix: New file.
45764         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45765         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45766         (gl_GETOPT): Remove macro.
45767         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45768         Disable the test against BSD systems that declare optreset. Test
45769         against mingw bug. Test against lack of support of optional arguments
45770         on many platforms.
45771         * doc/glibc-headers/getopt.texi: Update module name and list of
45772         relevant platforms.
45773         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45774         'getopt-gnu' and more portability problems.
45775         * NEWS: Mention the changes.
45776
45777 2009-08-12  Bruno Haible  <bruno@clisp.org>
45778
45779         Ensure that optarg etc. get declared by <unistd.h>.
45780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45781         AC_USE_SYSTEM_EXTENSIONS.
45782         * modules/getopt (Depends-on): Add 'extensions'.
45783
45784 2009-08-12  Bruno Haible  <bruno@clisp.org>
45785
45786         Avoid test link errors.
45787         * modules/pipe-filter-ii-tests (Makefile.am): Define
45788         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45789         * modules/pipe-filter-gi-tests (Makefile.am): Define
45790         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45792
45793 2009-08-12  Bruno Haible  <bruno@clisp.org>
45794
45795         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45796         gl_GETOPT_SUBSTITUTE before.
45797         (gl_GETOPT): Use it.
45798         * m4/argp.m4 (gl_ARGP): Update.
45799         Reported by Sergey Poznyakoff.
45800
45801         * m4/getopt.m4: Reorder macros.
45802         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45803         (gl_GETOPT_SUBSTITUTE): Remove macro.
45804
45805 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45806
45807         Minor improvement in gitlog-to-changelog
45808
45809         * build-aux/gitlog-to-changelog: New option `--format' makes
45810         output format string configurable.
45811
45812 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45813
45814         Optimize exclude: use hash tables for non-wildcard patterns.
45815
45816         * lib/exclude.c: Include hash.h and mbuiter.h
45817         (struct exclude_pattern, exclude_segment): New data types.
45818         (struct exclude): Rewrite.
45819         (fnmatch_pattern_has_wildcards): New function.
45820         (new_exclude_segment, free_exclude_segment): New functions.
45821         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45822         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45823         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45824         * modules/exclude: Depend on hash and mbuiter.
45825
45826         * modules/exclude-tests: New file.
45827         * tests/test-exclude.c: New file.
45828         * tests/test-exclude1.sh: New file.
45829         * tests/test-exclude2.sh: New file.
45830         * tests/test-exclude3.sh: New file.
45831         * tests/test-exclude4.sh: New file.
45832         * tests/test-exclude5.sh: New file.
45833         * tests/test-exclude6.sh: New file.
45834         * tests/test-exclude7.sh: New file.
45835
45836 2009-08-12  Bruno Haible  <bruno@clisp.org>
45837
45838         Ensure that getopt() gets declared by <unistd.h>.
45839         * lib/unistd.in.h: Conditionally include getopt.h.
45840         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45841         Set GNULIB_UNISTD_H_GETOPT.
45842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45843         GNULIB_UNISTD_H_GETOPT.
45844         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45845
45846 2009-08-12  Bruno Haible  <bruno@clisp.org>
45847
45848         Clarify logic.
45849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45850         gl_replace_getopt instead of GETOPT_H.
45851
45852 2009-08-12  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/getopt.m4: Add comments.
45855
45856 2009-08-12  Bruno Haible  <bruno@clisp.org>
45857
45858         Disable multithread support by default on Cygwin 1.5.x.
45859         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45860         set gl_use_threads=no if not specified otherwise.
45861
45862 2009-08-11  Bruno Haible  <bruno@clisp.org>
45863
45864         Avoid compilation error on NetBSD 5.0.
45865         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45866         * tests/test-stdio.c: Likewise.
45867         * tests/test-stdlib.c: Likewise.
45868         * tests/test-string.c: Likewise.
45869         * tests/test-unistd.c: Likewise.
45870         Reported by Greg Troxel <gdt@ir.bbn.com>
45871         at <https://savannah.gnu.org/support/?106973>.
45872
45873 2009-08-11  Bruno Haible  <bruno@clisp.org>
45874
45875         * modules/dup2-tests (Depends-on): Remove close.
45876
45877         Undo 2009-07-19 commit.
45878         * modules/acl-tests (Depends-on): Remove close.
45879         * modules/binary-io-tests (Depends-on): Likewise.
45880         * modules/closein-tests (Depends-on): Likewise.
45881         * modules/flock-tests (Depends-on): Likewise.
45882         * modules/fsync-tests (Depends-on): Likewise.
45883         * modules/lseek-tests (Depends-on): Likewise.
45884         * modules/pipe-tests (Depends-on): Likewise.
45885         * modules/posix_spawn-tests (Depends-on): Likewise.
45886         * modules/posix_spawnp-tests (Depends-on): Likewise.
45887         * modules/stat-time-tests (Depends-on): Likewise.
45888         * modules/yesno-tests (Depends-on): Likewise.
45889
45890 2009-08-10  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45893
45894 2009-08-10  Bruno Haible  <bruno@clisp.org>
45895
45896         Fix a gcc warning.
45897         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45898
45899 2009-08-10  Bruno Haible  <bruno@clisp.org>
45900
45901         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45902         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45903         not only the first time.
45904         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45905         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45906         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45907         is 1, not only the the first time.
45908
45909 2009-08-10  Bruno Haible  <bruno@clisp.org>
45910
45911         Make it possible to use module 'gethostname' without module 'close'.
45912         * lib/unistd.in.h (close): Evoke a link error only if
45913         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45915         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45916         * modules/unistd (Makefile.am): Substitute
45917         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45918         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45919         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45920         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45921         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45922         * modules/sys_ioctl (Makefile.am): Substitute
45923         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45924         * modules/socket (configure.ac): On native Windows, set
45925         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45926         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45927         Reported by Sam Steingold <sds@gnu.org>.
45928
45929 2009-08-10  Bruno Haible  <bruno@clisp.org>
45930
45931         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45932         * modules/ioctl (configure.ac): Likewise.
45933
45934 2009-08-10  Bruno Haible  <bruno@clisp.org>
45935
45936         Avoid collision between gnulib wrapper and libintl wrapper.
45937         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45938         already defined in intl/printf.c.
45939         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45940         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45941
45942 2009-08-09  Bruno Haible  <bruno@clisp.org>
45943
45944         Make <sys/select.h> really self-contained, also on Solaris 10.
45945         * lib/sys_select.in.h: Include <string.h>.
45946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45947         Solaris 10 problem.
45948         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45949         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45950         Reported by Jim Meyering.
45951
45952 2009-08-09  Bruno Haible  <bruno@clisp.org>
45953
45954         Avoid warnings from 'aclocal' that are due to a use of macro name
45955         AM_XGETTEXT_OPTION that is not defined in automake.
45956         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45957         automake.
45958         * modules/error (configure.ac): Likewise.
45959         * modules/propername (configure.ac): Likewise.
45960         * modules/vasprintf (configure.ac): Likewise.
45961         * modules/verror (configure.ac): Likewise.
45962         * modules/xprintf (configure.ac): Likewise.
45963         * modules/xvasprintf (configure.ac): Likewise.
45964
45965 2009-08-08  Bruno Haible  <bruno@clisp.org>
45966
45967         Avoid compilation error in C++ mode.
45968         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45969         Reported by Sam Steingold <sds@gnu.org>.
45970
45971 2009-08-08  Bruno Haible  <bruno@clisp.org>
45972
45973         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45974         for the various Unix platforms.
45975         * doc/posix-headers/limits.texi: Update platforms list regarding
45976         HOST_NAME_MAX.
45977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45978
45979 2009-08-07  Jim Meyering  <meyering@redhat.com>
45980
45981         selinux-at: fix typo in a comment
45982         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45983         Spotted by Paolo Bonzini.
45984
45985         selinux-at: remove redundant m4 code, add documentation
45986         * modules/selinux-at (configure.ac): Remove redundant code.
45987         LIB_SELINUX is already set via the dependent module, selinux-h.
45988         (Include): Add quotes around selinux-at.h.
45989         * lib/selinux-at.h: Add documentation.
45990         Reported by Bruno Haible in
45991         http://marc.info/?l=gnulib-bug&m=124958988300749
45992
45993 2009-08-07  Bruno Haible  <bruno@clisp.org>
45994
45995         Avoid link error on MacOS X 10.3 and 10.4.
45996         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45997         on non-ELF systems.
45998         * lib/argp-pv.c (argp_program_version): Likewise.
45999         Reported by Simon Josefsson.
46000
46001 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46002
46003         * tests/test-version-etc.sh: Use $EXEEXT.
46004
46005 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46006
46007         update-copyright: update documentation to point to maint.mk
46008         * build-aux/update-copyright: Here.
46009
46010 2009-08-06  Jim Meyering  <meyering@redhat.com>
46011
46012         maint.mk: support update-copyright-local
46013         * top/maint.mk (update-copyright-local): Define place-holder.
46014         (update-copyright): Depend on $(update-copyright-local).
46015
46016 2009-08-06  Jim Meyering  <meyering@redhat.com>
46017
46018         selinux-at: new module
46019         Initially written for coreutils, this module will soon be
46020         used by findutils, too.
46021         * MODULES.html.sh [Misc]: Add selinux-at.
46022         * lib/selinux-at.h: New file, from coreutils.
46023         * lib/selinux-at.c: Likewise.
46024         * modules/selinux-at: Likewise.
46025         (License): Change from LGPL to GPL, since it depends
46026         on the GPL'd openat module.
46027
46028         doc: update README
46029         * README: Remove references to cogito.
46030         Remove cvs-repo-updating instructions from 2007.
46031         Don't imply that CVS is better if you have limited disk space.
46032
46033 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46034
46035         update-copyright: support C-style comments
46036         * build-aux/update-copyright: Implement and document.
46037         * tests/test-update-copyright.sh: Test.
46038
46039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46040
46041         update-copyright: support omitted "(C)"
46042         * build-aux/update-copyright: Implement and document.  Also,
46043         allow variable whitespace before "(C)".
46044         * tests/test-update-copyright.sh: Test.
46045
46046 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46047
46048         update-copyright: don't trip on non-FSF copyright statements
46049         * build-aux/update-copyright: Fix so that the first correctly
46050         formatted FSF copyright statement is recognized no matter what
46051         appears before it.  Update documentation.
46052         * tests/test-update-copyright.sh: Test that.
46053
46054 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46055
46056         update-copyright: clean up code a little
46057         * build-aux/update-copyright: Append "_re" to the name of any
46058         variable holding a regular expression.
46059         Replace "old" and "new" with "stmt" in variable names.
46060         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46061         handled correctly.
46062         Format code more consistently.
46063
46064 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46065
46066         update-copyright-tests: improve portability
46067         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46068         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46069
46070 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46071
46072         update-copyright: support @copyright{} and &copy;
46073         * build-aux/update-copyright: Implement and document.
46074         * tests/test-update-copyright.sh: Test.
46075
46076 2009-08-04  Jim Meyering  <meyering@redhat.com>
46077
46078         update-copyright-tests: correctly test EOL=\r\n handling
46079         * tests/test-update-copyright.sh: Put \r at the end of some lines
46080         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46081
46082         maint.mk: make update-copyright exclusion list more configurable
46083         * top/maint.mk (update-copyright): Default to excluding COPYING,
46084         but allow an override, in case someone does want to update that file.
46085
46086         maint.mk: don't update copyright date in COPYING
46087         * top/maint.mk (update-copyright): Exclude COPYING.
46088
46089         maint.mk: add a copyright-updating rule
46090         * top/maint.mk (update-copyright): New rule.
46091         Derived from coreutils/Makefile.am.
46092
46093         update-copyright: rename some variables
46094         * build-aux/update-copyright: Rename a few variables for clarity.
46095         Tweak syntax.  List Joel E. Denny as coauthor.
46096
46097 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46098
46099         update-copyright: fix bug for 2-digit last year and add tests
46100         * build-aux/update-copyright: Fix bug.
46101         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46102         specified.
46103         * modules/update-copyright-tests: New
46104         * tests/test-update-copyright.sh: New.
46105
46106 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46107
46108         update-copyright: handle leading tabs in line prefix
46109         * build-aux/update-copyright: Count leading tabs as 8 spaces
46110         when computing margin.  This helps with the formatting of
46111         ChangeLogs, for example.
46112         Fix documentation a little.
46113
46114 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46115
46116         update-copyright: support EOL=\r\n
46117         * build-aux/update-copyright: Implement that.
46118
46119 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46120
46121         update-copyright: automatically format copyright statements
46122         * build-aux/update-copyright: Implement that.
46123         Also, be a little more predictable and safer by always failing
46124         when the full copyright format is not perfectly recognized as an
46125         unbroken whole.  Discussed at
46126         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46127         Rewrite documentation.
46128
46129 2009-08-03  Bruno Haible  <bruno@clisp.org>
46130
46131         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46132
46133 2009-08-02  Bruno Haible  <bruno@clisp.org>
46134
46135         Tests for module 'uname'.
46136         * modules/uname-tests: New file.
46137         * tests/test-uname.c: New file.
46138
46139         New module 'uname'.
46140         * lib/uname.c: New file.
46141         * m4/uname.m4: New file.
46142         * modules/uname: New file.
46143         * doc/posix-functions/uname.texi: Mention the new module.
46144
46145 2009-08-02  Bruno Haible  <bruno@clisp.org>
46146
46147         Tests for module 'sys_utsname'.
46148         * modules/sys_utsname-tests: New file.
46149         * tests/test-sys_utsname.c: New file.
46150
46151         New module 'sys_utsname'.
46152         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46153         * m4/sys_utsname_h.m4: New file.
46154         * modules/sys_utsname: New file.
46155         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46156
46157 2009-08-02  Bruno Haible  <bruno@clisp.org>
46158
46159         Implicitly initialize the sockets library.
46160         * lib/gethostname.c: Include sockets.h.
46161         (rpl_gethostname): Invoke gl_sockets_startup.
46162         * lib/socket.c: Include sockets.h.
46163         (rpl_socket): Invoke gl_sockets_startup.
46164         * modules/gethostname (Depends-on): Add sockets.
46165         * modules/socket (Depends-on): Likewise.
46166         * tests/test-poll.c: Don't include sockets.h.
46167         (main): Don't invoke gl_sockets_startup.
46168         * tests/test-select.c: Don't include sockets.h.
46169         (main): Don't invoke gl_sockets_startup.
46170
46171 2009-08-02  Bruno Haible  <bruno@clisp.org>
46172
46173         Allow multiple calls to gl_sockets_startup.
46174         * lib/sockets.c (initialized_sockets_version): New variable.
46175         (gl_sockets_startup): Do nothing if already called for this or a higher
46176         version.
46177         (gl_sockets_cleanup): Reset initialized_sockets_version.
46178
46179 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46180
46181         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46182         different project/version.
46183
46184 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46185             Bruno Haible  <bruno@clisp.org>
46186
46187         Tests for module 'pipe-filter-gi'.
46188         * modules/pipe-filter-gi-tests: New file.
46189         * tests/test-pipe-filter-gi1.sh: New file.
46190         * tests/test-pipe-filter-gi1.c: New file.
46191         * tests/test-pipe-filter-gi2.sh: New file.
46192         * tests/test-pipe-filter-gi2-main.c: New file.
46193         * tests/test-pipe-filter-gi2-child.c: New file.
46194
46195         New module 'pipe-filter-gi'.
46196         * lib/pipe-filter-gi.c: New file.
46197         * modules/pipe-filter-gi: New file.
46198
46199 2009-08-02  Bruno Haible  <bruno@clisp.org>
46200             Paolo Bonzini  <bonzini@gnu.org>
46201
46202         Tests for module 'pipe-filter-ii'.
46203         * modules/pipe-filter-ii-tests: New file.
46204         * tests/test-pipe-filter-ii1.sh: New file.
46205         * tests/test-pipe-filter-ii1.c: New file.
46206         * tests/test-pipe-filter-ii2.sh: New file.
46207         * tests/test-pipe-filter-ii2-main.c: New file.
46208         * tests/test-pipe-filter-ii2-child.c: New file.
46209
46210         New module 'pipe-filter-ii'.
46211         * lib/pipe-filter.h: New file.
46212         * lib/pipe-filter-ii.c: New file.
46213         * lib/pipe-filter-aux.h: New file.
46214         * modules/pipe-filter-ii: New file.
46215
46216 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46217
46218         * lib/gc-libgcrypt.c: Change copyright to FSF.
46219         * lib/gc-gnulib.c: Likewise.
46220
46221 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46222
46223         * lib/gethostname.c: Include limits.h.
46224
46225 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46226             Bruno Haible  <bruno@clisp.org>
46227
46228         Ensure HOST_NAME_MAX as part of the gethostname module.
46229         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46230         define also HOST_NAME_MAX.
46231         * tests/test-gethostname.c: Include <limits.h>.
46232         (main): Check also HOST_NAME_MAX.
46233         * doc/posix-headers/limits.texi: Document the mingw problem.
46234
46235 2009-08-02  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46238         Add comments.
46239
46240 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46241
46242         * lib/gethostname.c: Add Windows wrapper.
46243         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46244         * modules/gethostname: Depend on sys_socket & errno, for also
46245         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46246         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46247
46248 2009-07-31  Jim Meyering  <meyering@redhat.com>
46249
46250         getloadavg: fix symbol name in comment
46251         * lib/getloadavg.c: Correct a typo I introduced when adding
46252         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46253         Matt Kraai spotted the problem.
46254
46255 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46256
46257         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46258         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46259         code also if ! defined N_NAME_POINTER.
46260         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46261         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46262         but the n_name member is a 12-byte array.
46263
46264 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46265
46266         update-copyright: generalize comment handling
46267         * build-aux/update-copyright: Handle copyright statements
46268         within more comment styles.
46269         Document usage.
46270         Report any file with an external copyright holder or parse failure.
46271
46272 2009-07-29  Jim Meyering  <meyering@redhat.com>
46273
46274         mktime: correct setting of REPLACE_MKTIME
46275         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46276
46277         update-copyright: new module
46278         * modules/update-copyright: New file.
46279         * build-aux/update-copyright: New file.
46280         * MODULES.html.sh (maint+release support): Add update-copyright.
46281
46282 2009-07-27  Bruno Haible  <bruno@clisp.org>
46283
46284         Fix compilation error when <ctime> is used and mktime is replaced.
46285         * lib/time.in.h (mktime): New declaration.
46286         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46287         REPLACE_MKTIME instead of defining mktime in config.h.
46288         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46289         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46290         Reported by Ross McFarland <rwmcfa1@neces.com>.
46291
46292 2009-07-27  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46295         Reported by Matt Kraai <mkraai@beckman.com>.
46296
46297 2009-07-25  Jim Meyering  <meyering@redhat.com>
46298
46299         maint.mk: avoid warnings about missing files
46300         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46301         diagnostic when .prev-version does not exist.
46302         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46303         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46304         nonexistent cfg.mk.
46305         Suggestions from Simon Josefsson.
46306
46307 2009-07-25  Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46310         defined as macros. Needed on QNX 6.4.1.
46311         Reported by Matt Kraai <mkraai@beckman.com>.
46312
46313 2009-07-23  Jim Meyering  <meyering@redhat.com>
46314
46315         maint.mk: invoke "make dist" with a working value of XZ_OPT
46316         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46317
46318 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46319
46320         Make fseeko.c compile on QNX.
46321         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46322
46323 2009-07-22  Peter Simons  <simons@cryp.to>
46324
46325         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46326         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46327         * lib/md4.h: Likewise.
46328         * lib/md5.h: Likewise.
46329         * lib/sha1.h: Likewise.
46330         * lib/sha256.h: Likewise.
46331         * lib/sha512.h: Likewise.
46332
46333         tests-sha1: don't assign literal string to 'char *' variable
46334         * tests/test-sha1.c (main): Declare locals with "const" to match
46335         attributes of the right hand side.
46336
46337 2009-07-21  Eric Blake  <ebb9@byu.net>
46338
46339         dup2: fix more mingw problems
46340         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46341         fd to itself.
46342         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46343         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46344         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46345         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46346         care of mingw bugs.
46347
46348 2009-07-21  Jim Meyering  <meyering@redhat.com>
46349
46350         vc-list-files: avoid failure when /bin/sh is dash
46351         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46352         On some Debian based systems, /bin/sh is a symlink to dash, and running
46353         this command would omit the "/" following each 'tests' prefix:
46354           dash -x build-aux/vc-list-files -C . tests
46355         That is because bash and dash work differently:
46356           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46357           bash ok
46358           dash odd
46359
46360 2009-07-21  Eric Blake  <ebb9@byu.net>
46361
46362         dup2-tests: test previous patch
46363         * modules/dup2-tests: New file.
46364         * tests/test-dup2.c: Likewise.
46365         * tests/test-open.c (main): Avoid unspecified behavior.
46366         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46367         test.
46368
46369         dup2: work around mingw and cygwin 1.5 bug
46370         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46372         * modules/unistd (Makefile.am): Substitute it.
46373         * lib/unistd.in.h (dup2): Declare the replacement.
46374         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46375         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46376         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46377         * modules/execute (Depends-on): Add dup2.
46378         * modules/fseterr (Depends-on): Likewise.
46379         * modules/pipe (Depends-on): Likewise.
46380         * modules/posix_spawn-internal (Depends-on): Likewise.
46381
46382 2009-07-21  Bruno Haible  <bruno@clisp.org>
46383
46384         * modules/.gitattributes: New file.
46385
46386 2009-07-20  Bruno Haible  <bruno@clisp.org>
46387
46388         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46389         (main): Use it.
46390
46391 2009-07-20  Eric Blake  <ebb9@byu.net>
46392
46393         test-pipe: make a bit more robust.
46394         * tests/test-pipe.c (myerr): Allow error messages regardless of
46395         what we do to stderr.
46396         (test_pipe): Rearrange to avoid deadlock.
46397         (child_main): Try a larger read, to ensure we avoided deadlock.
46398         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46399         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46400         if misused.
46401
46402 2009-07-19  Jim Meyering  <meyering@redhat.com>
46403
46404         fts: avoid false-positive cycle-detection
46405         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46406         for each new command line argument.
46407
46408 2009-07-19  Bruno Haible  <bruno@clisp.org>
46409
46410         Fix build error on mingw with the modules sys_select and unistd.
46411         * modules/acl-tests (Depends-on): Add close.
46412         * modules/binary-io-tests (Depends-on): Likewise.
46413         * modules/closein-tests (Depends-on): Likewise.
46414         * modules/flock-tests (Depends-on): Likewise.
46415         * modules/fsync-tests (Depends-on): Likewise.
46416         * modules/lseek-tests (Depends-on): Likewise.
46417         * modules/pipe-tests (Depends-on): Likewise.
46418         * modules/posix_spawn-tests (Depends-on): Likewise.
46419         * modules/posix_spawnp-tests (Depends-on): Likewise.
46420         * modules/stat-time-tests (Depends-on): Likewise.
46421         * modules/yesno-tests (Depends-on): Likewise.
46422
46423 2009-07-19  Bruno Haible  <bruno@clisp.org>
46424
46425         Unify conditionals.
46426         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46427         macros, not at the compiler macros.
46428         * lib/pipe.c: Likewise.
46429         * lib/execute.c: Likewise.
46430         * lib/spawni.c: Likewise.
46431
46432 2009-07-19  Bruno Haible  <bruno@clisp.org>
46433
46434         Fix handling of closed stdin/stdout/stderr on mingw.
46435         * lib/w32spawn.h: Include unistd.h.
46436         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46437         file descriptor with O_NOINHERIT flag.
46438         (fd_safer_noinherit): New function, based on fd-safer.c.
46439         (dup_safer_noinherit): New function, based on dup-safer.c.
46440         (undup_safer_noinherit): New function.
46441         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46442         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46443         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46444         instead of fd_safer.
46445         * tests/test-pipe.c: Include <windows.h>.
46446         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46447         result.
46448
46449         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46450         from main.
46451         (test_pipe): Pass an extra argument for disambiguation.
46452         (main): Invoke parent_main or child_main.
46453
46454         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46455         consistently.
46456
46457 2009-07-18  Eric Blake  <ebb9@byu.net>
46458
46459         test-pipe: fix mingw build
46460         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46461
46462 2009-07-18  Bruno Haible  <bruno@clisp.org>
46463
46464         * modules/pipe-tests (Makefile.am): Fix typo.
46465
46466 2009-07-18  Eric Blake  <ebb9@byu.net>
46467
46468         error: fix mingw build
46469         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46470         Reported by Bruno Haible.
46471
46472         error: avoid undefined use of stdout
46473         * lib/error.c (error, error_at_line): Check that fd 1 is open
46474         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46475         is handling faults and the close_stdout module wants to report the
46476         detection of closed stdout as an error.
46477
46478 2009-07-17  Eric Blake  <ebb9@byu.net>
46479
46480         pipe: be robust in face of closed fds
46481         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46482         should cause child to misbehave.
46483         * modules/pipe-tests: New module.
46484         * tests/test-pipe.c: New file.
46485         * tests/test-pipe.sh: New file.
46486         Reported by Akim Demaille.
46487
46488 2009-07-14  Bruno Haible  <bruno@clisp.org>
46489
46490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46491         Reported by anonymous kc.
46492
46493 2009-07-07  Jim Meyering  <meyering@redhat.com>
46494
46495         maint.mk: don't look for translatable strings in *.m4 or *.mk
46496         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46497         when searching for translatable strings.
46498
46499 2009-07-05  Jim Meyering  <meyering@redhat.com>
46500
46501         remove superfluous parentheses in STREQ definition
46502         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46503         * lib/getugroups.c (STREQ): Likewise.
46504         * lib/fnmatch.c (STREQ): Likewise.
46505         Spotted by Bruno Haible.
46506
46507 2009-07-04  Jim Meyering  <meyering@redhat.com>
46508
46509         argv-iter: new module
46510         * MODULES.html.sh: Add argv-iter.
46511         * lib/argv-iter.c, lib/argv-iter.h: New files.
46512         * modules/argv-iter: New file.
46513         * modules/argv-iter-tests: New file.
46514         * tests/test-argv-iter.c: Test it.
46515
46516 2009-07-04  Bruno Haible  <bruno@clisp.org>
46517
46518         Fix assertion.
46519         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46520         contains more exact copies of a given entry than file2, leave the extra
46521         copies unpaired rather than aborting.
46522         Reported by Eric Blake.
46523
46524 2009-07-02  Bruno Haible  <bruno@clisp.org>
46525
46526         Speedup git-merge-changelog for git cherry-pick.
46527         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46528         (entries_mapping_get): New function, extracted from compute_mapping.
46529         (entries_mapping_reverse_get): New function.
46530         (compute_mapping): Add a 'full' argument. Return the result in a
46531         'struct entries_mapping'.
46532         (main): Update. Access the mappings through entries_mapping_get.
46533         Reported by Eric Blake.
46534
46535 2009-07-02  Bruno Haible  <bruno@clisp.org>
46536
46537         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46538         best_i.
46539
46540 2009-07-02  Bruno Haible  <bruno@clisp.org>
46541
46542         Speed up approximate search for matching ChangeLog entries.
46543         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46544         argument. Call fstrcmp_bounded instead of fstrcmp.
46545         (compute_mapping, try_split_merged_entry, main): Update callers.
46546
46547 2009-07-02  Bruno Haible  <bruno@clisp.org>
46548
46549         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46550
46551 2009-06-30  Bruno Haible  <bruno@clisp.org>
46552
46553         Reduce the number of uc_is_cased calls.
46554         * lib/unicase.h (casing_suffix_context_t): Add
46555         'first_char_except_ignorable' field.
46556         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46557         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46558         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46559         Update initializer.
46560         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46561         case-ignorable characters.
46562         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46563         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46564         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46565         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46566         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46567
46568 2009-06-30  Bruno Haible  <bruno@clisp.org>
46569
46570         Tests for module 'unicase/ignorable'.
46571         * modules/unicase/ignorable-tests: New file.
46572         * tests/unicase/test-ignorable.c: New file, generated by
46573         gen-uni-tables.
46574
46575         Tests for module 'unicase/cased'.
46576         * modules/unicase/cased-tests: New file.
46577         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46578         * tests/unicase/test-predicate-part1.h: New file, derived from
46579         tests/unictype/test-predicate-part1.h.
46580         * tests/unicase/test-predicate-part2.h: New file, same as
46581         tests/unictype/test-predicate-part2.h.
46582
46583         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46584         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46585         (output_casing_properties): New function.
46586         (main): Call it.
46587         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46588         * lib/unicase/cased.c: Include unictype/bitmap.h.
46589         (uc_is_cased): Define through a bitmap lookup.
46590         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46591         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46592         (uc_is_case_ignorable): Define through a bitmap lookup.
46593         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46594         lib/unictype/bitmap.h.
46595         (Depends-on): Add inline. Clean up.
46596         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46597         lib/unictype/bitmap.h.
46598         (Depends-on): Add inline. Clean up.
46599         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46600         recognition.
46601         * tests/unicase/test-u16-tolower.c (main): Likewise.
46602         * tests/unicase/test-u32-tolower.c (main): Likewise.
46603
46604 2009-06-30  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46607         * lib/unicase/u16-casemap.c: Likewise.
46608         * lib/unicase/u32-casemap.c: Likewise.
46609
46610 2009-06-29  Bruno Haible  <bruno@clisp.org>
46611
46612         Define u32_casefold as a wrapper around u32_ct_casefold.
46613         * lib/unicase/u32-casefold.c: Update.
46614         * modules/unicase/u32-casefold (Depends-on): Add
46615         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46616         unicase/empty-suffix-context. Clean up.
46617
46618         Define u16_casefold as a wrapper around u16_ct_casefold.
46619         * lib/unicase/u16-casefold.c: Update.
46620         * modules/unicase/u16-casefold (Depends-on): Add
46621         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46622         unicase/empty-suffix-context. Clean up.
46623
46624         Define u8_casefold as a wrapper around u8_ct_casefold.
46625         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46626         * lib/unicase/u8-casefold.c: Update.
46627         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46628         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46629
46630         Define u32_totitle as a wrapper around u32_ct_totitle.
46631         * lib/unicase/u32-totitle.c: Update.
46632         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46633         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46634
46635         Define u16_totitle as a wrapper around u16_ct_totitle.
46636         * lib/unicase/u16-totitle.c: Update.
46637         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46638         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46639
46640         Define u8_totitle as a wrapper around u8_ct_totitle.
46641         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46642         functions.
46643         (FUNC): Delegate to U_CT_TOTITLE.
46644         * lib/unicase/u8-totitle.c: Update.
46645         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46646         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46647
46648         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46649         invocation.
46650         * modules/unicase/u32-tolower (Depends-on): Add
46651         unicase/empty-prefix-context, unicase/empty-suffix-context.
46652
46653         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46654         invocation.
46655         * modules/unicase/u16-tolower (Depends-on): Add
46656         unicase/empty-prefix-context, unicase/empty-suffix-context.
46657
46658         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46659         * modules/unicase/u8-tolower (Depends-on): Add
46660         unicase/empty-prefix-context, unicase/empty-suffix-context.
46661
46662         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46663         invocation.
46664         * modules/unicase/u32-toupper (Depends-on): Add
46665         unicase/empty-prefix-context, unicase/empty-suffix-context.
46666
46667         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46668         invocation.
46669         * modules/unicase/u16-toupper (Depends-on): Add
46670         unicase/empty-prefix-context, unicase/empty-suffix-context.
46671
46672         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46673         * modules/unicase/u8-toupper (Depends-on): Add
46674         unicase/empty-prefix-context, unicase/empty-suffix-context.
46675
46676         New module 'unicase/u32-ct-casefold'.
46677         * lib/unicase/u32-ct-casefold.c: New file.
46678         * modules/unicase/u32-ct-casefold: New file.
46679
46680         New module 'unicase/u16-ct-casefold'.
46681         * lib/unicase/u16-ct-casefold.c: New file.
46682         * modules/unicase/u16-ct-casefold: New file.
46683
46684         New module 'unicase/u8-ct-casefold'.
46685         * lib/unicase/u8-ct-casefold.c: New file.
46686         * lib/unicase/u-ct-casefold.h: New file, derived from
46687         lib/unicase/u-casefold.h.
46688         * modules/unicase/u8-ct-casefold: New file.
46689
46690         New module 'unicase/u32-ct-totitle'.
46691         * lib/unicase/u32-ct-totitle.c: New file.
46692         * modules/unicase/u32-ct-totitle: New file.
46693
46694         New module 'unicase/u16-ct-totitle'.
46695         * lib/unicase/u16-ct-totitle.c: New file.
46696         * modules/unicase/u16-ct-totitle: New file.
46697
46698         New module 'unicase/u8-ct-totitle'.
46699         * lib/unicase/u8-ct-totitle.c: New file.
46700         * lib/unicase/u-ct-totitle.h: New file, derived from
46701         lib/unicase/u-totitle.h.
46702         * modules/unicase/u8-ct-totitle: New file.
46703
46704         New module 'unicase/u32-ct-tolower'.
46705         * lib/unicase/u32-ct-tolower.c: New file.
46706         * modules/unicase/u32-ct-tolower: New file.
46707
46708         New module 'unicase/u16-ct-tolower'.
46709         * lib/unicase/u16-ct-tolower.c: New file.
46710         * modules/unicase/u16-ct-tolower: New file.
46711
46712         New module 'unicase/u8-ct-tolower'.
46713         * lib/unicase/u8-ct-tolower.c: New file.
46714         * modules/unicase/u8-ct-tolower: New file.
46715
46716         New module 'unicase/u32-ct-toupper'.
46717         * lib/unicase/u32-ct-toupper.c: New file.
46718         * modules/unicase/u32-ct-toupper: New file.
46719
46720         New module 'unicase/u16-ct-toupper'.
46721         * lib/unicase/u16-ct-toupper.c: New file.
46722         * modules/unicase/u16-ct-toupper: New file.
46723
46724         New module 'unicase/u8-ct-toupper'.
46725         * lib/unicase/u8-ct-toupper.c: New file.
46726         * modules/unicase/u8-ct-toupper: New file.
46727
46728         Add context arguments to u*_casemap functions.
46729         * lib/unicase/unicasemap.h: Include unicase.h.
46730         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46731         suffix_context arguments.
46732         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46733         functions.
46734         (FUNC): Add prefix_context and suffix_context arguments. Use
46735         uc_is_cased and uc_is_case_ignorable.
46736         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46737         * lib/unicase/u16-casemap.c: Likewise.
46738         * lib/unicase/u32-casemap.c: Likewise.
46739         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46740         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46741         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46742         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46743         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46744         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46745
46746         New module 'unicase/u32-suffix-context'.
46747         * lib/unicase/u32-suffix-context.c: New file.
46748         * modules/unicase/u32-suffix-context: New file.
46749
46750         New module 'unicase/u16-suffix-context'.
46751         * lib/unicase/u16-suffix-context.c: New file.
46752         * modules/unicase/u16-suffix-context: New file.
46753
46754         New module 'unicase/u8-suffix-context'.
46755         * lib/unicase/u8-suffix-context.c: New file.
46756         * lib/unicase/u-suffix-context.h: New file.
46757         * modules/unicase/u8-suffix-context: New file.
46758
46759         New module 'unicase/empty-suffix-context'.
46760         * lib/unicase/empty-suffix-context.c: New file.
46761         * modules/unicase/empty-suffix-context: New file.
46762
46763         New module 'unicase/u32-prefix-context'.
46764         * lib/unicase/u32-prefix-context.c: New file.
46765         * modules/unicase/u32-prefix-context: New file.
46766
46767         New module 'unicase/u16-prefix-context'.
46768         * lib/unicase/u16-prefix-context.c: New file.
46769         * modules/unicase/u16-prefix-context: New file.
46770
46771         New module 'unicase/u8-prefix-context'.
46772         * lib/unicase/u8-prefix-context.c: New file.
46773         * lib/unicase/u-prefix-context.h: New file.
46774         * lib/unicase/context.h: New file.
46775         * modules/unicase/u8-prefix-context: New file.
46776
46777         New module 'unicase/empty-prefix-context'.
46778         * lib/unicase/empty-prefix-context.c: New file.
46779         * modules/unicase/empty-prefix-context: New file.
46780
46781         New module 'unicase/ignorable'.
46782         * lib/unicase/ignorable.c: New file.
46783         * modules/unicase/ignorable: New file.
46784
46785         New module 'unicase/cased'.
46786         * lib/unicase/caseprop.h: New file.
46787         * lib/unicase/cased.c: New file.
46788         * modules/unicase/cased: New file.
46789
46790         New functions for case mapping of substrings.
46791         * lib/unicase.h (casing_prefix_context_t): New type.
46792         (unicase_empty_prefix_context): New variable.
46793         (u8_casing_prefix_context, u16_casing_prefix_context,
46794         u32_casing_prefix_context, u8_casing_prefixes_context,
46795         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46796         declarations.
46797         (casing_suffix_context_t): New type.
46798         (unicase_empty_suffix_context): New variable.
46799         (u8_casing_suffix_context, u16_casing_suffix_context,
46800         u32_casing_suffix_context, u8_casing_suffixes_context,
46801         u16_casing_suffixes_context, u32_casing_suffixes_context,
46802         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46803         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46804         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46805         declarations.
46806
46807 2009-06-28  Jim Meyering  <meyering@redhat.com>
46808
46809         boostrap: indent only with spaces
46810         * build-aux/bootstrap: Indent only with spaces, never TABs.
46811
46812         bootstrap: split long lines
46813         * build-aux/bootstrap: Keep line length < 80.
46814
46815         bootstrap: sync from coreutils
46816         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46817         just as autoreconf does.  Verify a list of prerequisite
46818         package-name,version-number pairs if defined in bootstrap.conf.
46819         Refer to README-prereq, if prerequisites are not satisfied.
46820
46821 2009-06-27  Eric Blake  <ebb9@byu.net>
46822
46823         tests: add test for bogus NULL definition
46824         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46825         * tests/test-stdlib.c: Likewise.
46826         * tests/test-string.c: Likewise.
46827         * tests/test-locale.c: Likewise.
46828         * tests/test-unistd.c: Likewise.
46829         * modules/stdio-tests (Depends-on): Add verify.
46830         * modules/stdlib-tests (Depends-on): Likewise.
46831         * modules/string-tests (Depends-on): Likewise.
46832         * modules/locale-tests (Depends-on): Likewise.
46833         * modules/unistd-tests (Depends-on): Likewise.
46834
46835 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46836
46837         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46838         self-explaining comment.
46839         * m4/selinux-selinux-h: Update serial.
46840         (gl_LIBSELINUX): New macro, adding a warning for missing development
46841         packages to code extracted from...
46842         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46843         Add warning for missing development packages here, too.
46844
46845 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46846
46847         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46848
46849 2009-06-25  Eric Blake  <ebb9@byu.net>
46850
46851         version-etc: fix regression
46852         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46853         gcc.
46854         (version_etc): Use it, to catch bugs with trailing NULL.
46855         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46856         (version_etc_va): Fix logic bug.
46857         * modules/version-etc-tests: Add test.
46858         * tests/test-version-etc.c: New file.
46859         * tests/test-version-etc.sh: Likewise.
46860
46861 2009-06-25  Sam Steingold  <sds@gnu.org>
46862
46863         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46864         mbtowc declaration.
46865
46866 2009-06-25  Eric Blake  <ebb9@byu.net>
46867
46868         fpurge: migrate into <stdio.h>
46869         * lib/fpurge.h: Delete...
46870         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46871         * lib/fpurge.c (fpurge): Change declaring header.
46872         * modules/fpurge (Files): Drop deleted file.
46873         (Depends-on): Add stdio.
46874         (configure.ac): Set witness.
46875         * modules/stdio (Makefile.am): Support fpurge macros.
46876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46877         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46878         * lib/fflush.c: Update client.
46879         * tests/test-fpurge.c: Likewise.
46880         * NEWS: Mention the change.
46881
46882 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46883
46884         * lib/argp-version-etc.c (program_authors): Add const
46885         qualifier.
46886         * lib/version-etc.c: Fix typos in the comments.
46887         * modules/argp-version-etc: Depends on version-etc.
46888
46889 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46890
46891         argp-version-etc: new module.
46892
46893         * lib/argp-version-etc.c: New file.
46894         * lib/argp-version-etc.h: New file.
46895         * modules/argp-version-etc: New file.
46896         * modules/argp-version-etc-tests: New file.
46897         * tests/test-argp-version-etc.c: New test.
46898         * tests/test-argp-version-etc-1.sh: New test.
46899
46900 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46901
46902         Provide additional interfaces and documentation for version-etc
46903         module.
46904
46905         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46906         interfaces.
46907         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46908         prototypes.
46909
46910 2009-06-24  Bruno Haible  <bruno@clisp.org>
46911
46912         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46913         HAVE_LIB${NAME} macro.
46914         Reported by Sam Steingold <sds@gnu.org>.
46915
46916 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46917
46918         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46919         needed.
46920
46921 2009-06-21  Bruno Haible  <bruno@clisp.org>
46922
46923         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46924         work.
46925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46926         together with LIB${NAME}, LTLIB${NAME}.
46927         Reported by Sam Steingold <sds@gnu.org>.
46928
46929 2009-06-20  Jim Meyering  <meyering@redhat.com>
46930
46931         tests: make sc_require_test_exit_idiom more generic
46932         * top/maint.mk (Exit_witness_file): New overridable variable.
46933         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46934         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46935
46936 2009-06-19  Jim Meyering  <meyering@redhat.com>
46937
46938         hash: reverse order of src/dst parameters in an internal interface
46939         * lib/hash.c (transfer_entries): Reverse order of parameters to
46940         put DST before SRC.  Adjust callers.
46941
46942         tests: test-hash: avoid wholesale duplication
46943         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46944         Instead, use a loop and add a single conditional.
46945
46946         tests: test-hash: allow seed selection via a command line argument
46947         * tests/test-hash.c (get_seed): New function.
46948         (main): Use it.
46949
46950 2009-06-19  Eric Blake  <ebb9@byu.net>
46951
46952         hash: avoid memory leak on allocation failure
46953         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46954         failure.  Factor repeated algorithm...
46955         (transfer_entries): ...into new helper routine.
46956         (hash_delete): React to hash_rehash return value.
46957
46958         hash: reduce memory pressure in hash_rehash no-op case
46959         * lib/hash.c (next_prime): Avoid overflow.
46960         (hash_initialize): Factor bucket size computation...
46961         (compute_bucket_size): ...into new helper function.
46962         (hash_rehash): Use new function and open coding to reduce memory
46963         pressure, and avoid a memory leak in USE_OBSTACK code.
46964         Reported by Jim Meyering.
46965
46966 2009-06-18  Eric Blake  <ebb9@byu.net>
46967
46968         hash: make rotation more obvious
46969         * modules/hash (Depends-on): Add bitrotate and stdint.
46970         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46971         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46972         (SIZE_MAX): Rely on headers for definition.
46973         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46974         (raw_hasher): Use rotr_sz.
46975         Suggested by Jim Meyering.
46976
46977         hash: fix memory leak in last patch
46978         * lib/hash.c (hash_rehash): Avoid memory leak.
46979
46980         hash: avoid no-op rehashing
46981         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46982
46983         hash: provide default callback functions
46984         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46985         (hash_initialize): Use them as defaults.
46986         * tests/test-hash.c (main): Test this.
46987
46988         hash: minor optimization
46989         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46990         when possible.
46991         (hash_initialize): Document this promise.
46992         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46993         * tests/test-hash.c (hash_compare_strings): Test this.
46994
46995 2009-06-18  Bruno Haible  <bruno@clisp.org>
46996
46997         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46998         going to be replaced anyway.
46999
47000 2009-06-18  Bruno Haible  <bruno@clisp.org>
47001
47002         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47003         in one place.
47004         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47005         be replaced anyway.
47006
47007 2009-06-18  Eric Blake  <ebb9@byu.net>
47008
47009         hash: check for resize before insertion
47010         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47011         threshold before insertion, so that a pathological hash_rehash
47012         that fills every bucket can still trigger another rehash.
47013
47014 2009-06-18  Jim Meyering  <meyering@redhat.com>
47015
47016         hash-tests: add a loop around the small tests
47017         * tests/test-hash.c (main): Repeat small tests with selected
47018         small initial table sizes.
47019
47020 2009-06-17  Eric Blake  <ebb9@byu.net>
47021
47022         hash: minor cleanups
47023         * lib/hash.h (hash_entry): Make opaque, by moving...
47024         * lib/hash.c (hash_entry): ...here.
47025         (hash_insert): Clarify restrictions on what can be inserted.
47026         (hash_get_next): Clarify when it is safe to remove an element
47027         during traversal.
47028         (check_tuning): Skip verification when tuning is known safe.
47029         (hash_initialize): Clarify restrictions on tuning.
47030
47031 2009-06-17  Jim Meyering  <jim@meyering.net>
47032         and Eric Blake  <ebb9@byu.net>
47033
47034         hash-tests: new module
47035         * modules/hash-tests: New file.
47036         * tests/test-hash.c: New file.
47037
47038 2009-06-17  Eric Blake  <ebb9@byu.net>
47039
47040         strstr-simple: document new module
47041         * MODULES.html.sh: Document new module.
47042
47043         strstr, strcasestr: replace on platforms with broken memchr
47044         * modules/strstr: Split into...
47045         * modules/strstr-simple: ...new module that does not care about
47046         performance, but does care about glibc bug.
47047         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47048         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47049         if platform memchr is broken, per Debian bug 521737.
47050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47051         memchr.
47052         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47053         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47054         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47055         * modules/mountlist (Depends-on): Add strstr-simple.
47056         * modules/gen-uni-tables (Depends-on): Likewise.
47057         * modules/argz (Depends-on): Add strstr.
47058
47059 2009-06-17  Bruno Haible  <bruno@clisp.org>
47060
47061         * modules/posix_spawn-internal (Depends-on): Add errno.
47062
47063 2009-06-17  Bruno Haible  <bruno@clisp.org>
47064
47065         Define missing ESTALE on Interix 3.5.
47066         * lib/errno.in.h (ESTALE): Assign a value if missing.
47067         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47068         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47069         missing.
47070         * doc/posix-headers/errno.texi: Mention the Interix bug.
47071         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47072
47073 2009-06-15  Eric Blake  <ebb9@byu.net>
47074
47075         memchr, memchr2: add valgrind exception
47076         * lib/memchr.valgrind: New file.
47077         * lib/memchr2.valgrind: New file.
47078         * modules/memchr (Files): Distribute valgrind file.
47079         * modules/memchr2 (Files): Likewise.
47080
47081         docs: memchr is no longer obsolete
47082         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47083         * lib/string.in.h (memchr): Simplify logic.
47084
47085 2009-06-14  Jim Meyering  <meyering@redhat.com>
47086
47087         link-follow: fix the "checking..." message to not mention trailing slash
47088         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47089         never considered trailing slashes.
47090
47091 2009-06-14  Bruno Haible  <bruno@clisp.org>
47092
47093         * m4/memchr.m4: Mention also the bug on IA-64.
47094         * doc/posix-functions/memchr.texi: Likewise.
47095
47096 2009-06-12  Eric Blake  <ebb9@byu.net>
47097
47098         memchr: detect broken x86_64 and alpha implementations
47099         * modules/memchr-tests (Depends-on): Move mmap detection...
47100         * modules/memchr (Depends-on): ...here.
47101         (configure.ac): Set indicator.
47102         * lib/string.in.h (memchr): Declare replacement.
47103         * modules/string (Makefile.am): Trigger replacement.
47104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47105         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47106         bugs.
47107         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47108         * modules/getpagesize (License): Relax license.
47109
47110 2009-06-11  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/idpriv.h: Add more references.
47113
47114 2009-06-08  Bruno Haible  <bruno@clisp.org>
47115
47116         Tests for module 'idpriv-droptemp'.
47117         * modules/idpriv-droptemp-tests: New file.
47118         * tests/test-idpriv-droptemp.sh: New file.
47119         * tests/test-idpriv-droptemp.su.sh: New file.
47120         * tests/test-idpriv-droptemp.c: New file.
47121
47122         New module 'idpriv-droptemp'.
47123         * lib/idpriv-droptemp.c: New file.
47124         * modules/idpriv-droptemp: New file.
47125
47126 2009-06-08  Bruno Haible  <bruno@clisp.org>
47127
47128         Tests for module 'idpriv-drop'.
47129         * modules/idpriv-drop-tests: New file.
47130         * tests/test-idpriv-drop.sh: New file.
47131         * tests/test-idpriv-drop.su.sh: New file.
47132         * tests/test-idpriv-drop.c: New file.
47133
47134         New module 'idpriv-drop'.
47135         * lib/idpriv.h: New file.
47136         * lib-idpriv-drop.c: New file.
47137         * m4/idpriv.m4: New file.
47138         * modules/idpriv-drop: New file.
47139
47140 2009-06-08  Bruno Haible  <bruno@clisp.org>
47141
47142         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47143         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47144         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47145         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47149
47150 2009-06-08  Eric Blake  <ebb9@byu.net>
47151
47152         test-strstr: use memory fence, when possible
47153         * tests/test-strstr.c (main): Use memory fence, in order to be
47154         more likely to trigger Debian bug 521737.
47155         * modules/strstr-tests (Files): Pull in additional files.
47156
47157         memchr: no longer obsolete, for wider field testing
47158         * modules/memchr (Status, Notice): Delete, this module is no
47159         longer obsolete.
47160         * modules/vasnprintf (Depends-on): Add memchr.
47161
47162 2009-06-07  Jim Meyering  <meyering@redhat.com>
47163
47164         hash: declare some functions with the warn_unused_result attribute
47165         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47166
47167 2009-06-07  Bruno Haible  <bruno@clisp.org>
47168
47169         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47170         Reported by Eric Blake.
47171
47172 2009-06-06  Eric Blake  <ebb9@byu.net>
47173
47174         test-alignof: fix typo with long double
47175         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47176         compiler error.
47177
47178 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47179
47180         Escape non-texinfo { and }s.
47181         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47182         markup error.
47183
47184 2009-06-04  Jim Meyering  <meyering@redhat.com>
47185
47186         gitlog-to-changelog: don't infloop on an empty commit log
47187         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47188         Reported by Boris Petersen <transacid@centerim.org>.
47189
47190 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47191
47192         version-etc: extend for packagers
47193         Add three new configure options, intended for packagers:
47194           --with-packager="packager name"
47195           --with-packager-version="packager-specific version"
47196           --with-packager-bug-reports="packager bug reporting"
47197         An example with coreutils:
47198           $ ./configure \
47199             --with-packager=Gentoo \
47200             --with-packager-bug-report=http://bugs.gentoo.org/ \
47201             --with-packager-version="patchset 1.6"
47202           $ ./src/ls --version | head -n2
47203           ls (GNU coreutils) 7.1-dirty
47204           Packaged by Gentoo (patchset 1.6)
47205         Note that the bug reporting info via --help doesn't show up because
47206         coreutils uses its own custom emit_bug_reporting_address() implementation
47207         in src/system.h.  If it didn't, it'd look like:
47208           $ ./src/ls --help | tail -n4
47209           Report bugs to <bug-coreutils@gnu.org>.
47210           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47211           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47212           General help using GNU software: <http://www.gnu.org/gethelp/>.
47213         * lib/version-etc.c: Print new information, if provided.
47214         * m4/version-etc.m4: New file.
47215         * modules/version-etc (Files): Add m4/version-etc.m4.
47216         (configure.ac): Add gl_VERSION_ETC.
47217
47218 2009-05-31  Bruno Haible  <bruno@clisp.org>
47219
47220         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47221         and 'int64_t'.
47222         * modules/alignof-tests (Dependencies): Add stdint.
47223         Reported by Eric Blake.
47224
47225 2009-05-31  Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47228         restriction due to compiler bugs.
47229         Reported by Eric Blake.
47230
47231 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47232             Bruno Haible  <bruno@clisp.org>
47233
47234         Fix test-alignof failure.
47235         * lib/alignof.h (alignof_slot): New macro.
47236         (alignof_type): New macro, with the same semantics as the previous
47237         'alignof'.
47238         (alignof): Alias to alignof_slot.
47239         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47240         check that the results are usable as constant expressions.
47241
47242 2009-05-31  Bruno Haible  <bruno@clisp.org>
47243
47244         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47245         * tests/test-memchr.c (main): Check that memchr does not read past the
47246         first occurrence of the byte.
47247         * tests/test-strstr.c (main): Update comment.
47248         Suggested by Eric Blake.
47249
47250 2009-05-30  Bruno Haible  <bruno@clisp.org>
47251
47252         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47253         detail how to use dumpbin.
47254         Reported by David Byron <dbyron@dbyron.com>.
47255
47256 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47257
47258         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47259
47260 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47261
47262         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47263
47264 2009-05-28  Bruno Haible  <bruno@clisp.org>
47265
47266         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47267         build-aux/ files.
47268
47269 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47270
47271         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47272
47273 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47274
47275         * gnulib-tool (sed_transform_main_lib_file)
47276         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47277         regexps.
47278
47279 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47280
47281         * tests/test-strstr.c: Add another self-test.
47282         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47283         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47284
47285 2009-05-23  Bruno Haible  <bruno@clisp.org>
47286
47287         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47288         change.
47289
47290 2009-05-21  Bruno Haible  <bruno@clisp.org>
47291
47292         Simplify use of mode_t varargs.
47293         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47294         uses 'mode_t' or 'int'.
47295         * lib/openat.c (openat): Likewise.
47296         * lib/open-safer.c (open_safer): Likewise.
47297         * m4/mode_t.m4: New file.
47298         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47299         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47300         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47301         * modules/open (Files): Add m4/mode_t.m4.
47302         * modules/openat (Files): Likewise.
47303         * modules/fcntl-safer (Files): Likewise.
47304         Suggested by Eric Blake.
47305
47306 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47307
47308         * doc/glibc-functions/fallocate.texi: New file.
47309         * doc/gnulib.texi: Include it.
47310
47311 2009-05-21  Eric Blake  <ebb9@byu.net>
47312             Bruno Haible  <bruno@clisp.org>
47313
47314         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47315         invocations.
47316         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47317
47318 2009-05-21  Eric Blake  <ebb9@byu.net>
47319             Bruno Haible  <bruno@clisp.org>
47320
47321         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47322         include_next. Fix of 2008-11-20 commit.
47323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47324         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47325         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47326         NEXT_MATH_H.
47327         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47328         instead of NEXT_MATH_H.
47329
47330 2009-05-21  Bruno Haible  <bruno@clisp.org>
47331
47332         Avoid redefinition warnings for SIZE_MAX.
47333         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47334         Reported by Simon Josefsson.
47335
47336 2009-05-21  Bruno Haible  <bruno@clisp.org>
47337
47338         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47339         AC_CACHE_VAL.
47340
47341 2009-05-20  Bruno Haible  <bruno@clisp.org>
47342
47343         Make zeroptr.h work on mingw.
47344         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47345         mprotect.
47346         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47347         * modules/memchr2-tests (configure.ac): Likewise.
47348         * modules/memcmp-tests (configure.ac): Likewise.
47349         * modules/memmem-tests (configure.ac): Likewise.
47350         * modules/memrchr-tests (configure.ac): Likewise.
47351         Reported by Simon Josefsson.
47352
47353 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47354
47355         * tests/test-glob.c: Include string.h for strcmp prototype.
47356
47357 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47358
47359         * modules/getdelim (Depends-on): Add explicit stdint, although it
47360         was implicitly already pulled in via realloc-posix.
47361         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47362
47363 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47364
47365         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47366         G. Christensen" <tgc@jupiterrise.com>.
47367         * m4/sys_socket_h.m4: Check for sa_family_t.
47368         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47369         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47370         * tests/test-sys_socket.c: Check that sa_family_t works.
47371
47372 2009-05-18  Eric Blake  <ebb9@byu.net>
47373
47374         maint.mk: allow gnulib_dir in VPATH build
47375         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47376
47377 2009-05-15  Jim Meyering  <meyering@redhat.com>
47378
47379         maint.mk: Give gnulib_dir a default definition.
47380         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47381         Thus, most packages no longer need to specify this variable in cfg.mk
47382
47383 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47384
47385         rename.m4: fix typos that would make non-mingw cross-configure fail
47386         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47387
47388 2009-05-13  Eric Blake  <ebb9@byu.net>
47389
47390         mmap-anon: avoid out-of-order autoconf expansion
47391         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47392         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47393         * modules/memchr-tests (Depends-on): Add extensions.
47394         * modules/memchr2-tests (Depends-on): Add extensions.
47395         * modules/memcmp-tests (Depends-on): Add extensions.
47396         * modules/memmem-tests (Depends-on): Add extensions.
47397         * modules/memrchr-tests (Depends-on): Add extensions.
47398
47399 2009-05-13  Bruno Haible  <bruno@clisp.org>
47400
47401         Make some tests ISO C 99 compliant.
47402         * tests/zerosize-ptr.h: New file.
47403         * tests/test-memchr.c: Include zerosize-ptr.h.
47404         (main): Use a zero-size object pointer instead of NULL.
47405         * tests/test-memchr2.c: Include zerosize-ptr.h.
47406         (main): Use a zero-size object pointer instead of NULL.
47407         * tests/test-memcmp.c: Include zerosize-ptr.h.
47408         (main): Use a zero-size object pointer instead of NULL.
47409         * tests/test-memmem.c: Include zerosize-ptr.h.
47410         (main): Use a zero-size object pointer instead of NULL.
47411         * tests/test-memrchr.c: Include zerosize-ptr.h.
47412         (main): Use a zero-size object pointer instead of NULL.
47413         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47414         m4/mmap-anon.m4.
47415         (Depends-on): Add getpagesize.
47416         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47417         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47418         m4/mmap-anon.m4.
47419         (Depends-on): Add getpagesize.
47420         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47421         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47422         m4/mmap-anon.m4.
47423         (Depends-on): Add getpagesize.
47424         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47425         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47426         m4/mmap-anon.m4.
47427         (Depends-on): Add getpagesize.
47428         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47429         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47430         m4/mmap-anon.m4.
47431         (Depends-on): Add getpagesize.
47432         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47433
47434 2009-05-12  Bruno Haible  <bruno@clisp.org>
47435
47436         Tests for module 'alignof'.
47437         * modules/alignof-tests: New file.
47438         * tests/test-alignof.c: New file.
47439
47440 2009-05-12  Bruno Haible  <bruno@clisp.org>
47441
47442         Fix alignof macro.
47443         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47444         vendor compilers that are always correct.
47445
47446 2009-05-12  Bruno Haible  <bruno@clisp.org>
47447
47448         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47449         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47450         not whether its fully works.
47451
47452 2009-05-12  Bruno Haible  <bruno@clisp.org>
47453
47454         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47455
47456 2009-05-12  Jim Meyering  <meyering@redhat.com>
47457
47458         * top/maint.mk: Adjust backslash alignment.
47459
47460 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47461
47462         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47463
47464 2009-05-11  Eric Blake  <ebb9@byu.net>
47465
47466         argp: avoid undefined behavior
47467         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47468         macros.
47469
47470 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47471
47472         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47473         user.name to prevent git commit from complaining.
47474
47475 2009-05-10  Bruno Haible  <bruno@clisp.org>
47476
47477         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47478         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47479         it rewrites every file name only once.
47480         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47481
47482 2009-05-08  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47485         instead of 'max'.
47486
47487 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47488
47489         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47490         sockaddr_storage test.
47491
47492 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47493
47494         * modules/sys_socket (Makefile.am): Substitute
47495         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47496         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47497         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47498         * tests/test-sys_socket.c: Check sockaddr_storage.
47499
47500 2009-05-08  Bruno Haible  <bruno@clisp.org>
47501
47502         New module 'alignof'.
47503         * lib/alignof.h: New file.
47504         * modules/alignof: New file.
47505
47506 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47507             Bruno Haible  <bruno@clisp.org>
47508
47509         Fix test-file-has-acl on FreeBSD.
47510         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47511         mask is implicitly added.
47512         * tests/test-file-has-acl.c: Include <signal.h>.
47513         (main): Terminate the test after 5 seconds.
47514         * modules/acl-tests (configure.ac): Check for alarm function.
47515
47516 2009-05-04  Bruno Haible  <bruno@clisp.org>
47517
47518         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47519         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47520         * modules/errno (configure.ac): Drop AC_REQUIRE.
47521         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47522         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47523
47524 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47525
47526         * modules/glob-tests: New module.
47527         * tests/test-glob.c: Add.
47528
47529 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47530
47531         * modules/fnmatch-tests: New module.
47532         * tests/test-fnmatch.c: Add.
47533
47534 2009-05-04  Eric Blake  <ebb9@byu.net>
47535
47536         maint: make the new no-submodule-changes rule VPATH-safe
47537         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47538
47539 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47540             Bruno Haible  <bruno@clisp.org>
47541
47542         acl: Fix infinite loop on FreeBSD.
47543         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47544         of return value from acl_get_entry.
47545         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47546         Likewise.
47547
47548 2009-05-03  Bruno Haible  <bruno@clisp.org>
47549
47550         * lib/acl-internal.h (acl_entries): Clarify return value.
47551         * lib/acl_entries.c (acl_entries): Likewise.
47552
47553 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47554
47555         Bug fix in acl module.
47556         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47557
47558 2009-05-03  Bruno Haible  <bruno@clisp.org>
47559
47560         Create gperf-generated file in the source dir, not in the build dir.
47561         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47562         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47563         * modules/unicase/locale-language (unicase/locale-languages.h):
47564         Likewise.
47565         * modules/unicase/special-casing (unicase/special-casing-table.h):
47566         Likewise.
47567         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47568         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47569         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47570         Reported by Ralf Wildenhues.
47571
47572 2009-05-03  Bruno Haible  <bruno@clisp.org>
47573
47574         * modules/fnmatch (Description, configure.ac): Taken from
47575         fnmatch-posix.
47576         * modules/fnmatch-posix: Turn into a symbolic reference to the
47577         'fnmatch' module, and deprecate.
47578         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47579
47580 2009-05-03  Bruno Haible  <bruno@clisp.org>
47581
47582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47583         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47584         Reported by Ralf Wildenhues.
47585
47586 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47587
47588         * m4/fnmatch.m4: Fix fnmatch re-define.
47589
47590 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47591
47592         priv-set: new module and tests; adapt write-any-file
47593         * lib/priv-set.c: New file.
47594         * lib/priv-set.h: New file.
47595         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47596         * lib/write-any-file.c: Simplify by using priv-set module.
47597         * m4/priv-set.m4: New file.
47598         * modules/priv-set: New file.
47599         * modules/unlinkdir: Add dependency on priv-set module.
47600         * modules/write-any-file: Likewise.
47601
47602         Tests for module 'priv-set'.
47603         * modules/priv-set-tests: New file.
47604         * tests/test-priv-set.c: New file.
47605
47606 2009-05-03  Jim Meyering  <meyering@redhat.com>
47607             Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47610         use the converted UTF-8 variant of the name instead.
47611
47612 2009-05-03  Jim Meyering  <meyering@redhat.com>
47613
47614         tests: tighten some getdate tests
47615         * tests/test-getdate.c (main): Tighten tests: require equality,
47616         not just greater than.  Set TZ envvar to UTC0.
47617
47618 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47619
47620         getdate: correctly interpret "next monday" when run on a Monday
47621         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47622         that e.g., "next tues" (when run on a tuesday) results in a date
47623         that is one week in the future, and not today's date.
47624         I.e., add a week when the wday is the same as the current one.
47625         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47626         and earlier by Martin Bernreuther and Jan Minář.
47627         * tests/test-getdate.c (main): Check that "next DAY" is always in
47628         the future and that "last DAY" is always in the past.
47629
47630 2009-05-02  Jim Meyering  <meyering@redhat.com>
47631
47632         build: ensure that a release build fails when a submodule is unclean
47633         * top/maint.mk (no-submodule-changes): New rule.
47634         (alpha beta major): Depend on it.
47635
47636 2009-05-02  Bruno Haible  <bruno@clisp.org>
47637
47638         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47639         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47640         shell variable gl_fnmatch_required to detect which variant is
47641         requested.
47642         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47643         gl_FUNC_FNMATCH_POSIX.
47644         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47645         exclude fnmatch-posix.
47646
47647 2009-05-02  Bruno Haible  <bruno@clisp.org>
47648
47649         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47650         * modules/mbsrtowcs (License): Change to LGPLv2+.
47651         * modules/strnlen1 (License): Likewise.
47652         Reported by Simon Josefsson.
47653
47654 2009-05-02  Bruno Haible  <bruno@clisp.org>
47655
47656         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47657         "cross".
47658         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47659         gnulib-tool was called with option --source-base=lib.
47660
47661 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47662
47663         Use automake *-local hooks without commands, for extensibility.
47664         * modules/localcharset (Makefile.am): Rename install-exec-local
47665         rule to install-exec-localcharset, and make it a prerequisite of
47666         install-exec-local.  Likewise, rename the uninstall-local rule to
47667         uninstall-localcharset, and make it a prerequisite of the former.
47668
47669 2009-05-01  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47672         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47673         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47675         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47676         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47677         m4/locale-zh.m4, m4/codeset.m4.
47678
47679         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47680         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47681         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47682         m4/locale-zh.m4.
47683
47684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47685         REPLACE_WCRTOMB if mbstate_t must be replaced.
47686         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47687         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47688
47689 2009-05-01  Bruno Haible  <bruno@clisp.org>
47690
47691         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47692         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47693         dngettext, dcngettext, textdomain, bindtextdomain,
47694         bind_textdomain_codeset): Undefine before redefining.
47695
47696 2009-04-30  Bruno Haible  <bruno@clisp.org>
47697
47698         Fix bug introduced on 2009-04-25.
47699         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47700         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47701         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47702         is defined.
47703         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47704         is defined.
47705         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47706         is defined.
47707         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47708
47709 2009-04-28  Bruno Haible  <bruno@clisp.org>
47710
47711         Comment tweaks.
47712         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47713         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47714         * lib/unicase.h (u*_casexfrm): Likewise.
47715         Reported by Paolo Bonzini.
47716
47717 2009-04-28  Bruno Haible  <bruno@clisp.org>
47718
47719         Fix a compilation error.
47720         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47721         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47722         Reported by Jim Meyering.
47723
47724 2009-04-27  Bruno Haible  <bruno@clisp.org>
47725
47726         New module 'libunistring'.
47727         * modules/libunistring: New file.
47728         * m4/libunistring.m4: New file.
47729         * MODULES.html.sh (Unicode string functions): Add it.
47730
47731 2009-04-27  Eric Blake  <ebb9@byu.net>
47732
47733         maint.mk: allow package-specific header to provide <config.h>
47734         * top/maint.mk (sc_require_config_h): New variable.
47735         (sc_require_config_h, sc_require_config_h_first): Use it.
47736
47737 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47738
47739         * top/maint.mk (sc_avoid_if_before_free): Except
47740         useless-if-before-free script.
47741
47742 2009-04-27  Eric Blake  <ebb9@byu.net>
47743
47744         maintainer-makefile: depend on all required helper scripts
47745         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47746         useless-if-before-free.
47747         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47748         version, rather than assuming gnulib checkout is available.
47749         Reported by Simen Josefsson.
47750
47751 2009-04-26  Bruno Haible  <bruno@clisp.org>
47752
47753         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47754         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47755         "../" or "..".
47756
47757 2009-04-26  Bruno Haible  <bruno@clisp.org>
47758
47759         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47760         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47761         AC_LIB_HAVE_LINKFLAGS.
47762
47763 2009-04-26  Bruno Haible  <bruno@clisp.org>
47764
47765         Simplify calling convention of u*_conv_from_encoding.
47766         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47767         u32_conv_from_encoding): Expect a resultbuf argument and return the
47768         result directly as a pointer.
47769         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47770         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47771         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47772         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47773         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47774         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47775         Update.
47776         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47777         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47778         * lib/vasnprintf.c (VASNPRINTF): Update.
47779         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47780         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47781         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47782         * NEWS: Mention the change.
47783
47784 2009-04-26  Bruno Haible  <bruno@clisp.org>
47785
47786         Simplify calling convention of u*_conv_to_encoding.
47787         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47788         u32_conv_to_encoding): Expect a resultbuf argument and return the
47789         result directly as a pointer.
47790         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47791         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47792         freeing scaled_offsets if mem_iconveha failed.
47793         * lib/unicase/u-casexfrm.h (FUNC): Update.
47794         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47795         * lib/vasnprintf.c (VASNPRINTF): Update.
47796         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47797         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47798         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47799         * NEWS: Mention the change.
47800
47801 2009-04-26  Bruno Haible  <bruno@clisp.org>
47802
47803         Avoid test failures on AIX and OSF/1.
47804         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47805         malloc(0).
47806         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47807         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47808         Likewise.
47809         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47810         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47811         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47812         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47813         * doc/posix-functions/malloc.texi: Document the portability problem
47814         related to malloc(0).
47815
47816 2009-04-26  Bruno Haible  <bruno@clisp.org>
47817
47818         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47819         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47820         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47821
47822 2009-04-25  Bruno Haible  <bruno@clisp.org>
47823
47824         Avoid link error when creating a namespace clean library.
47825         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47826         as macro with arguments if already defined as an alias.
47827         * lib/signbitf.c (gl_signbitf): Don't undefine.
47828         * lib/signbitd.c (gl_signbitd): Don't undefine.
47829         * lib/signbitl.c (gl_signbitl): Don't undefine.
47830
47831 2009-04-25  Jim Meyering  <meyering@redhat.com>
47832
47833         vc-list-files: fix another quoting bug
47834         * build-aux/vc-list-files: Avoid sed backslash expansion
47835         of pathological directory names.
47836
47837 2009-04-25  Eric Blake  <ebb9@byu.net>
47838
47839         vc-list-files: fix shell quoting error
47840         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47841         timestamp.
47842
47843 2009-04-25  Jim Meyering  <meyering@redhat.com>
47844
47845         vc-list-files: restore lost functionality with subdir argument
47846         * build-aux/vc-list-files: When given a non-"." sub-directory
47847         argument, substitute the $dir/ prefix back onto each resulting name.
47848         Otherwise, coreutils' root_tests check would fail.
47849
47850 2009-04-24  Eric Blake  <ebb9@byu.net>
47851
47852         vc-list-files: ignore git symlinks
47853         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47854         than ls-files, to ignore git symlinks.
47855
47856         maint.mk: import improvements from m4
47857         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47858         (move_if_change): Delete unused macro.
47859         (news-date-check, vc-diff-check): Support VPATH builds.
47860         (announcement): Likewise.  Split --bootstrap-tools list...
47861         (boostrap-tools): ...into separate list, which can be overridden
47862         in cfg.mk.
47863         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47864         requiring dependency on useless-if-before-free module.
47865         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47866         Support VPATH builds.
47867
47868 2009-04-24  Jim Meyering  <meyering@redhat.com>
47869
47870         maint.mk: remove coreutils-specific rules and variables
47871         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47872         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47873         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47874
47875         maint.mk: remove obsolete rule
47876         * top/maint.mk (rel-check): Remove rule.
47877         (WGET, WGETFLAGS): Remove now-unused variables.
47878
47879 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47880
47881         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47882         consistency.
47883
47884         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47885         '$(PATH_SEPARATOR)' instead of ':'.
47886
47887 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47888
47889         * lib/getopt1.c (main): Use 'const' for static array.
47890
47891 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47892
47893         * top/maint.mk: Sync with coreutils.
47894         * NEWS: Explain incompatibilities.
47895
47896 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47897             Bruno Haible  <bruno@clisp.org>
47898
47899         Fix cross-compilation results.
47900         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47901         statement, as third argument of AC_TRY_RUN.
47902         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47903         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47904         Likewise.
47905         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47906         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47907         Likewise.
47908         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47910         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47911
47912 2009-04-20  Bruno Haible  <bruno@clisp.org>
47913
47914         Avoid test failure on mingw.
47915         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47916
47917 2009-04-20  Bruno Haible  <bruno@clisp.org>
47918
47919         Avoid compilation error on mingw.
47920         * modules/localename-tests (Depends-on): Add locale.
47921
47922 2009-04-19  Bruno Haible  <bruno@clisp.org>
47923
47924         Support for building a shared library on Windows platforms.
47925         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47926         (main): Test the presence of UNINORM_NFC here.
47927         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47928         (main): Test the presence of UNINORM_NFD here.
47929         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47930         (main): Test the presence of UNINORM_NFKC here.
47931         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47932         (main): Test the presence of UNINORM_NFKD here.
47933
47934 2009-04-19  Bruno Haible  <bruno@clisp.org>
47935
47936         Avoid a compiler warning.
47937         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47938         Change type of variable 'sequence'.
47939
47940 2009-04-19  Bruno Haible  <bruno@clisp.org>
47941
47942         * modules/configmake (Makefile.am): When the contents of configmake.h
47943         does not change, arrange to preserve its modification time.
47944
47945 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47946
47947         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47948         gettext domain.
47949
47950 2009-04-16  Jim Meyering  <meyering@redhat.com>
47951
47952         useless-if-before-free: improve conversion code
47953         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47954         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47955
47956 2009-04-14  Bruno Haible  <bruno@clisp.org>
47957
47958         * modules/fcntl (Depends-on): Add extensions.
47959         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47960
47961 2009-04-12  Ben Pfaff  <blp@gnu.org>
47962
47963         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47964         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47965
47966 2009-03-20  Ben Pfaff  <blp@gnu.org>
47967
47968         Make rename replace existing destinations on Windows.
47969         * m4/rename.m4: Add test for Mingw.
47970         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47971         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47972         * doc/posix-functions/rename.texi: Document.
47973
47974 2009-04-10  Bruno Haible  <bruno@clisp.org>
47975
47976         New include file "iconveh.h".
47977         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47978         * lib/striconveh.h: Include it.
47979         (enum iconv_ilseq_handler): Remove definition.
47980         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47981         striconveh.h.
47982         * lib/striconveha.c: Include striconveh.h.
47983         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47984         * modules/striconveh (Files): Add lib/iconveh.h.
47985         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47986         lib/striconveh.h.
47987
47988 2009-04-10  Bruno Haible  <bruno@clisp.org>
47989
47990         * lib/uniconv.h: Update comment.
47991
47992 2009-04-10  Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47995         always.
47996         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47997         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47998         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47999         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48000         "unistring-notinline.h", so that the function gets defined always.
48001         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48002         * lib/unistr/u8-uctomb.c: Likewise.
48003         * lib/unistr/u16-mbtouc.c: Likewise.
48004         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48005         * lib/unistr/u16-uctomb.c: Likewise.
48006         * lib/unistr/u32-mbtouc.c: Likewise.
48007         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48008         * lib/unistr/u32-uctomb.c: Likewise.
48009
48010 2009-04-10  Bruno Haible  <bruno@clisp.org>
48011
48012         Mark 'utime' obsolete.
48013         * modules/utime (Status, Notice): New sections.
48014         Suggested by Jim Meyering.
48015
48016         Fix cross-compile guess for utime test.
48017         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48018         autoconf.
48019         * doc/posix-functions/utime.texi: Give more precisions.
48020         Reported by Jan <ipif@ymail.com>.
48021
48022 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48023
48024         filevercmp: correct today's change
48025         * lib/filevercmp.c: Also handle coreutils' test inputs.
48026         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48027
48028         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48029         for reporting it.
48030         * lib/filevercmp.c: Special handle for "", "." and "..".
48031         * tests/test-filevercmp.c: Enlarge the set suite.
48032
48033 2009-04-07  Jim Meyering  <meyering@redhat.com>
48034
48035         useless-if-before-free: show how to remove braced useless free, too
48036         * build-aux/useless-if-before-free: still only in a comment, though.
48037
48038 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48039
48040         maint.mk: import changes to syntax-check macros from coreutils
48041         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48042         Use them in the relevant macros.
48043
48044 2009-04-06  Bruno Haible  <bruno@clisp.org>
48045
48046         Fix unportable use of bit-fields.
48047         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48048         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48049         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48050
48051 2009-04-06  Bruno Haible  <bruno@clisp.org>
48052
48053         Avoid test failures on AIX and OSF/1.
48054         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48055         that malloc(0) = NULL.
48056         * tests/unicase/test-u8-tolower.c (check): Likewise.
48057         * tests/unicase/test-u8-totitle.c (check): Likewise.
48058         * tests/unicase/test-u8-toupper.c (check): Likewise.
48059         * tests/unicase/test-u16-casefold.c (check): Likewise.
48060         * tests/unicase/test-u16-tolower.c (check): Likewise.
48061         * tests/unicase/test-u16-totitle.c (check): Likewise.
48062         * tests/unicase/test-u16-toupper.c (check): Likewise.
48063         * tests/unicase/test-u32-casefold.c (check): Likewise.
48064         * tests/unicase/test-u32-tolower.c (check): Likewise.
48065         * tests/unicase/test-u32-totitle.c (check): Likewise.
48066         * tests/unicase/test-u32-toupper.c (check): Likewise.
48067         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48068         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48069         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48070         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48071         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48072         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48073         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48074         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48075         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48076         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48077         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48078         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48079
48080 2009-04-05  Bruno Haible  <bruno@clisp.org>
48081
48082         Work around an autoconf limitation.
48083         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48084         comment line if it would be longer than 3 KB.
48085
48086 2009-04-05  Bruno Haible  <bruno@clisp.org>
48087
48088         Avoid test failure with libiconv-1.13.
48089         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48090         of the expected test results.
48091
48092 2009-04-05  Bruno Haible  <bruno@clisp.org>
48093
48094         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48095         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48096         that it should be installed.
48097
48098 2009-04-05  Bruno Haible  <bruno@clisp.org>
48099
48100         * gnulib-tool: New option --copy-file.
48101         (func_usage): Document it.
48102         (func_dest_tmpfilename): Moved out of func_import.
48103         (func_add_file, func_update_file): New functions, extracted from
48104         func_import.
48105         (func_import): Update.
48106
48107 2009-04-05  Karl Berry  <karl@gnu.org>
48108
48109         * README: prominently mention gnulib-tool.
48110         Rearrange sections so getting the code is near the top.
48111
48112 2009-04-05  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/unicase.h: Mention u*_cmp2.
48115         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48116         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48117         * lib/unicase/ulc-casecmp.c: Likewise.
48118         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48119         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48120         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48121         unistr/u8-cmp.
48122         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48123         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48124         unistr/u16-cmp.
48125         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48126         unistr/u32-cmp.
48127
48128         * lib/uninorm.h: Mention u*_cmp2.
48129         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48130         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48131         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48132         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48133         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48134         unistr/u8-cmp.
48135         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48136         unistr/u16-cmp.
48137         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48138         unistr/u32-cmp.
48139
48140         New module 'unistr/u32-cmp2'.
48141         * lib/unistr/u32-cmp2.c: New file.
48142         * modules/unistr/u32-cmp2: New file.
48143
48144         New module 'unistr/u16-cmp2'.
48145         * lib/unistr/u16-cmp2.c: New file.
48146         * modules/unistr/u16-cmp2: New file.
48147
48148         New module 'unistr/u8-cmp2'.
48149         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48150         * lib/unistr/u8-cmp2.c: New file.
48151         * lib/unistr/u-cmp2.h: New file.
48152         * modules/unistr/u8-cmp2: New file.
48153
48154 2009-04-05  Bruno Haible  <bruno@clisp.org>
48155
48156         * lib/unictype.h (uc_property_is_valid): New macro.
48157         * tests/unictype/test-pr_byname.c (main): Use it.
48158
48159         * lib/unistr.h: Doc fixes.
48160         * lib/uniconv.h: Doc fixes.
48161         * lib/unictype.h: Doc fixes.
48162
48163 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48164
48165         Port coreutils 7.2 to Solaris 8.
48166
48167         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48168         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48169         for Solaris 8.  This is a bit of a hack, as it means it's the
48170         caller's responsibility to add -lnsl if needed, but most likely it
48171         won't be needed since only getaddrinfo uses this and getaddrinfo
48172         isn't needed on Solaris 8.
48173
48174         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48175         problem to Solaris 8 encountered with coreutils 7.2, which
48176         resulted in a message "fnmatch.c:292: warning: passing argument 4
48177         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48178         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48179
48180 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48181
48182         * m4/ld-version-script.m4: Add FIXME comment.
48183
48184 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48185
48186         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48187         SOVERSION variable.
48188
48189 2009-04-02  Bruno Haible  <bruno@clisp.org>
48190
48191         * Makefile (info, html, dvi, pdf): Combine the rules.
48192         Suggested by Jim Meyering.
48193
48194 2009-04-01  Bruno Haible  <bruno@clisp.org>
48195
48196         * Makefile (info, html, dvi, pdf): New targets.
48197         Reported by Reuben Thomas <rrt@sc3d.org>.
48198
48199 2009-04-01  Bruno Haible  <bruno@clisp.org>
48200
48201         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48202         can be put into PATH.
48203         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48204
48205 2009-04-01  Bruno Haible  <bruno@clisp.org>
48206
48207         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48208
48209 2009-04-01  Bruno Haible  <bruno@clisp.org>
48210
48211         Rename module 'visibility'.
48212         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48213         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48214         * doc/gnulib.texi: Update.
48215         * MODULES.html.sh (Misc): Update.
48216         * NEWS: Mention the change.
48217
48218 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48219
48220         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48221         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48222         Eric Blake <ebb9@byu.net> for review.
48223         * MODULES.html.sh: Add lib-msvc-compat.
48224         * doc/gnulib.texi: Link to new section.
48225         * m4/ld-output-def.m4: New file.
48226         * doc/ld-output-def.texi: New file.
48227
48228 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48229
48230         Rename ld-version-script to lib-symbol-versions.  Suggested by
48231         Bruno Haible <bruno@clisp.org>.
48232         * modules/ld-version-script: Renamed to lib-symbol-versions.
48233         * doc/ld-version-script.texi: Fix module name.
48234         * MODULES.html.sh: Add lib-symbol-versions.
48235
48236 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48237
48238         * modules/u64-tests: New file.
48239         * tests/test-u64.c: New file.
48240
48241 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48242
48243         * MODULES.html.sh: Mention u64.
48244         * modules/u64: New module.
48245         * modules/crypto/sha512: Depend on u64 module instead of providing
48246         u64.h.
48247
48248 2009-03-27  Eric Blake  <ebb9@byu.net>
48249
48250         test-strerror: make debugging EAI_SYSTEM easier
48251         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48252         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48253         failure was EAI_SYSTEM.
48254
48255 2009-03-25  Bruno Haible  <bruno@clisp.org>
48256
48257         Fix a problem with --enable-relocatable on Solaris 7.
48258         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48259         since 2008-02-24.
48260
48261 2009-03-25  Eric Blake  <ebb9@byu.net>
48262
48263         test-sockets: avoid gcc warning
48264         * tests/test-sockets.c (main): Silence compiler warning.
48265
48266 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         New modules nproc, pthread, contributed by Glen Lenker.
48269
48270         * MODULES.html.sh: Add pthread, nproc.
48271         * lib/nproc.c: New file.
48272         * lib/nproc.h: New file.
48273         * lib/pthread.in.h: New file.
48274         * m4/pthread.m4: New file.
48275         * modules/nproc: New file.
48276         * modules/pthread: New file.
48277
48278 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48279
48280         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48281         New variable.
48282
48283 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48284
48285         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48286         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48287         * tests/test-filevercmp.c: Add tests for backup suffixes.
48288
48289 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48290
48291         * modules/stdlib (Depends-on): Add stdint, needed when defining
48292         struct random_data on, for example, HP-UX 10.20.  Reported by
48293         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48294
48295 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48296
48297         * lib/readline.c (readline): Call fflush on stdout after printing
48298         prompt.
48299
48300 2009-03-20  Bruno Haible  <bruno@clisp.org>
48301
48302         Remove dependency from 'close' module to -lws2_32 on native Windows.
48303         * lib/close-hook.h: New file.
48304         * lib/close-hook.c: New file.
48305         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48306         w32sock.h.
48307         (_gl_close_fd_maybe_socket): Remove function.
48308         (rpl_close): Invoke execute_all_close_hooks instead of
48309         _gl_close_fd_maybe_socket.
48310         * lib/sockets.c: Include close-hook.h, w32sock.h.
48311         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48312         (close_sockets_hook): New variable.
48313         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48314         (gl_sockets_cleanup): Unregister it.
48315         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48316         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48317         * modules/close-hook: New file.
48318         * modules/close (Files): Remove lib/w32sock.h.
48319         (Depends-on): Add close-hook.
48320         (Link): Remove section.
48321         * modules/sockets (Files): Add lib/w32sock.h.
48322         (Depends-on): Add close-hook.
48323         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48324         invocation.
48325         * NEWS: Mention that LIB_CLOSE is gone.
48326
48327 2009-03-23  Eric Blake  <ebb9@byu.net>
48328
48329         signal-tests: test previous patch
48330         * tests/test-signal.c: New file.
48331         * modules/signal-tests: Likewise.
48332
48333         signal.h: always support 'volatile sig_atomic_t'
48334         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48335         (gl_SIGNAL_H_DEFAULTS): Add a default.
48336         * modules/signal (Makefile.am): Substitute if needed.
48337         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48338         users can blindly add volatile.
48339         * doc/posix-headers/signal.texi (signal.h): Document it.
48340         Reported by Matthew Woehlke.
48341
48342 2009-03-23  Jim Meyering  <meyering@redhat.com>
48343
48344         pathmax: PATH_MAX: use pathconf only when available
48345         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48346         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48347         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48348         This avoids a link failure in a PSP cross-compilation environment
48349         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48350
48351         * lib/vasnprintf.c (divide): Fix typo in comment.
48352
48353 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48354
48355         * gnulib-tool (func_filter_filelist): Fix comment.
48356
48357 2009-03-20  Bruno Haible  <bruno@clisp.org>
48358
48359         Make sockets.h self-contained.
48360         * lib/sockets.c: Include sockets.h first.
48361         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48362
48363 2009-03-19  Eric Blake  <ebb9@byu.net>
48364
48365         doc: mention more functions added in cygwin 1.7.0
48366         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48367         addition.
48368         * doc/posix-functions/log2f.texi: Likewise.
48369
48370 2009-03-19  Jim Meyering  <meyering@redhat.com>
48371
48372         fsusage: avoid syntax error due to statement-before-declaration
48373         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48374         after all declarations.  Reported by Matthew Woehlke in
48375         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48376
48377 2009-03-18  Eric Blake  <ebb9@byu.net>
48378
48379         build-aux/compile: sync from automake
48380         * build-aux/compile: New file, from automake.
48381         * config/srclist.txt: Mention build-aux/compile.
48382
48383 2009-03-17  Bruno Haible  <bruno@clisp.org>
48384
48385         * lib/git-merge-changelog.c: Fix typo in comment.
48386         Reported by Reuben Thomas <rrt@sc3d.org>.
48387
48388 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48389
48390         * m4/regex.m4: update and improve help for
48391         --without-included-regex.
48392
48393 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48394
48395         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48396         failure on missing include files.
48397
48398 2009-03-17  Eric Blake  <ebb9@byu.net>
48399
48400         doc: mention more functions added in cygwin 1.7.0
48401         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48402         addition.
48403         * doc/posix-functions/fwscanf.texi: Likewise.
48404         * doc/posix-functions/swprintf.texi: Likewise.
48405         * doc/posix-functions/swscanf.texi: Likewise.
48406         * doc/posix-functions/vfwprintf.texi: Likewise.
48407         * doc/posix-functions/vfwscanf.texi: Likewise.
48408         * doc/posix-functions/vswprintf.texi: Likewise.
48409         * doc/posix-functions/vswscanf.texi: Likewise.
48410         * doc/posix-functions/vwprintf.texi: Likewise.
48411         * doc/posix-functions/vwscanf.texi: Likewise.
48412         * doc/posix-functions/wcscasecmp.texi: Likewise.
48413         * doc/posix-functions/wcsdup.texi: Likewise.
48414         * doc/posix-functions/wcsftime.texi: Likewise.
48415         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48416         * doc/posix-functions/wprintf.texi: Likewise.
48417         * doc/posix-functions/wscanf.texi: Likewise.
48418         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48419
48420 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48421
48422         maint.mk: really add $(AM_MAKEFLAGS)
48423         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48424         was inadvertently omitted in the last commit.
48425         Spotted by Bruno Haible.
48426
48427         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48428         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48429         $(AM_MAKEFLAGS)' rather than plain `make'.
48430
48431         gnulib-tool: execute $MAKE not make
48432         * gnulib-tool: Default $MAKE to 'make'.
48433         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48434         than make.  Initialize $MAKE in the do-autobuild script.
48435
48436         gnulib-tool: use $MAKE not make in generated files
48437         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48438         make, in generated files.  Initialize $MAKE in the do-autobuild
48439         script.
48440
48441         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48442
48443         GNUmakefile: disable parallelism only for multiple, recursive targets
48444         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48445         additions in the Makefile.
48446         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48447         by Automake.
48448         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48449         are listed on the command line and at least one of them is
48450         listed in $(ALL_RECURSIVE_TARGETS).
48451
48452 2009-03-14  Bruno Haible  <bruno@clisp.org>
48453
48454         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48455         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48456         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48457         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48458         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48459         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48460         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48461         unistr/u8-uctomb.
48462         * modules/unistr/u8-strchr (Depends-on): Likewise.
48463         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48464         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48465         unistr/u16-uctomb.
48466         * modules/unistr/u16-strchr (Depends-on): Likewise.
48467         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48468
48469 2009-03-12  Bruno Haible  <bruno@clisp.org>
48470
48471         Work around select() bug on Interix 3.5.
48472         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48473         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48474         * m4/select.m4: New file.
48475         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48476         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48477         * modules/select (Files): Add m4/select.m4.
48478         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48479         * modules/nanosleep (Depends-on): Add select.
48480         * modules/poll (Depends-on): Likewise.
48481         * doc/posix-functions/select.texi: Mention the Interix bug.
48482         Reported by Markus Duft <mduft@gentoo.org>.
48483
48484         * lib/select.c: Renamed from lib/winsock-select.c.
48485         * modules/select (Files): Add lib/select.c, remove
48486         lib/winsock-select.c.
48487         (configure.ac): Update.
48488
48489 2009-03-12  Jim Meyering  <meyering@redhat.com>
48490
48491         avoid gcc warnings about unused macro definitions
48492         * lib/readtokens.c (STREQ): Remove unused definition.
48493         * lib/xmalloc.c (SIZE_MAX): Likewise.
48494         * lib/openat-die.c (N_): Likewise.
48495         * lib/mountlist.c (SIZE_MAX): Remove definition.
48496         Instead, include <stdint.h>.
48497         * lib/readutmp.c: Likewise.
48498         * modules/readutmp (Depends-on): Add stdint.
48499         * modules/mountlist (Depends-on): Add stdint.
48500         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48501
48502 2009-03-10  Bruno Haible  <bruno@clisp.org>
48503
48504         Tests for module 'mbmemcasecoll'.
48505         * modules/mbmemcasecoll-tests: New file.
48506         * tests/test-mbmemcasecoll1.sh: New file.
48507         * tests/test-mbmemcasecoll2.sh: New file.
48508         * tests/test-mbmemcasecoll3.sh: New file.
48509         * tests/test-mbmemcasecoll.c: New file.
48510
48511         New module 'mbmemcasecoll'.
48512         * lib/mbmemcasecoll.h: New file.
48513         * lib/mbmemcasecoll.c: New file.
48514         * modules/mbmemcasecoll: New file.
48515
48516         * tests/test-mbmemcasecmp.h: New file, extracted from
48517         tests/test-mbmemcasecmp.c.
48518         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48519         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48520         (main): Update.
48521         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48522
48523 2009-03-09  Bruno Haible  <bruno@clisp.org>
48524
48525         Tests for module 'mbmemcasecmp'.
48526         * modules/mbmemcasecmp-tests: New file.
48527         * tests/test-mbmemcasecmp1.sh: New file.
48528         * tests/test-mbmemcasecmp2.sh: New file.
48529         * tests/test-mbmemcasecmp3.sh: New file.
48530         * tests/test-mbmemcasecmp.c: New file.
48531
48532         New module 'mbmemcasecmp'.
48533         * lib/mbmemcasecmp.h: New file.
48534         * lib/mbmemcasecmp.c: New file.
48535         * modules/mbmemcasecmp: New file.
48536
48537 2009-03-09  Bruno Haible  <bruno@clisp.org>
48538
48539         Tests for module 'unicase/ulc-casecoll'.
48540         * modules/unicase/ulc-casecoll-tests: New file.
48541         * tests/unicase/test-ulc-casecoll1.sh: New file.
48542         * tests/unicase/test-ulc-casecoll2.sh: New file.
48543         * tests/unicase/test-ulc-casecoll.c: New file.
48544
48545         New module 'unicase/ulc-casecoll'.
48546         * lib/unicase.h (ulc_casecoll): New declaration.
48547         * lib/unicase/ulc-casecoll.c: New file.
48548         * modules/unicase/ulc-casecoll: New file.
48549
48550         New module 'unicase/ulc-casexfrm'.
48551         * lib/unicase.h (ulc_casexfrm): New declaration.
48552         * lib/unicase/ulc-casexfrm.c: New file.
48553         * modules/unicase/ulc-casexfrm: New file.
48554
48555 2009-03-09  Bruno Haible  <bruno@clisp.org>
48556
48557         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48558         invocations.
48559
48560         * m4/mbscasecmp.m4: Remove file.
48561         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48562         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48563
48564         * m4/mbscasestr.m4: Remove file.
48565         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48566         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48567
48568         * m4/mbschr.m4: Remove file.
48569         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48570         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48571
48572         * m4/mbscspn.m4: Remove file.
48573         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48574         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48575
48576         * m4/mbslen.m4: Remove file.
48577         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48578         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48579
48580         * m4/mbsncasecmp.m4: Remove file.
48581         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48582         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48583
48584         * m4/mbsnlen.m4: Remove file.
48585         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48586         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48587
48588         * m4/mbspbrk.m4: Remove file.
48589         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48590         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48591
48592         * m4/mbspcasecmp.m4: Remove file.
48593         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48594         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48595
48596         * m4/mbsrchr.m4: Remove file.
48597         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48598         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48599
48600         * m4/mbssep.m4: Remove file.
48601         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48602         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48603
48604         * m4/mbsspn.m4: Remove file.
48605         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48606         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48607
48608         * m4/mbsstr.m4: Remove file.
48609         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48610         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48611
48612         * m4/mbstok_r.m4: Remove file.
48613         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48614         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48615
48616         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48617
48618         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48619         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48620
48621         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48622
48623 2009-03-08  Bruno Haible  <bruno@clisp.org>
48624
48625         Tests for module 'unicase/ulc-casecmp'.
48626         * modules/unicase/ulc-casecmp-tests: New file.
48627         * tests/unicase/test-ulc-casecmp1.sh: New file.
48628         * tests/unicase/test-ulc-casecmp2.sh: New file.
48629         * tests/unicase/test-ulc-casecmp.c: New file.
48630
48631         New module 'unicase/ulc-casecmp'.
48632         * lib/unicase.h (ulc_casecmp): New declaration.
48633         * lib/unicase/ulc-casecmp.c: New file.
48634         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48635         'const SRC_UNIT *'.
48636         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48637         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48638         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48639         * modules/unicase/ulc-casecmp: New file.
48640
48641         Tests for module 'unicase/u32-is-cased'.
48642         * modules/unicase/u32-is-cased-tests: New file.
48643         * tests/unicase/test-u32-is-cased.c: New file.
48644
48645         Tests for module 'unicase/u16-is-cased'.
48646         * modules/unicase/u16-is-cased-tests: New file.
48647         * tests/unicase/test-u16-is-cased.c: New file.
48648
48649         Tests for module 'unicase/u8-is-cased'.
48650         * modules/unicase/u8-is-cased-tests: New file.
48651         * tests/unicase/test-u8-is-cased.c: New file.
48652         * tests/unicase/test-is-cased.h: New file.
48653
48654         New module 'unicase/u32-is-cased'.
48655         * lib/unicase/u32-is-cased.c: New file.
48656         * modules/unicase/u32-is-cased: New file.
48657
48658         New module 'unicase/u16-is-cased'.
48659         * lib/unicase/u16-is-cased.c: New file.
48660         * modules/unicase/u16-is-cased: New file.
48661
48662         New module 'unicase/u8-is-cased'.
48663         * lib/unicase/u8-is-cased.c: New file.
48664         * lib/unicase/u-is-cased.h: New file.
48665         * modules/unicase/u8-is-cased: New file.
48666
48667         Tests for module 'unicase/u32-is-casefolded'.
48668         * modules/unicase/u32-is-casefolded-tests: New file.
48669         * tests/unicase/test-u32-is-casefolded.c: New file.
48670
48671         Tests for module 'unicase/u16-is-casefolded'.
48672         * modules/unicase/u16-is-casefolded-tests: New file.
48673         * tests/unicase/test-u16-is-casefolded.c: New file.
48674
48675         Tests for module 'unicase/u8-is-casefolded'.
48676         * modules/unicase/u8-is-casefolded-tests: New file.
48677         * tests/unicase/test-u8-is-casefolded.c: New file.
48678         * tests/unicase/test-is-casefolded.h: New file.
48679
48680         New module 'unicase/u32-is-casefolded'.
48681         * lib/unicase/u32-is-casefolded.c: New file.
48682         * modules/unicase/u32-is-casefolded: New file.
48683
48684         New module 'unicase/u16-is-casefolded'.
48685         * lib/unicase/u16-is-casefolded.c: New file.
48686         * modules/unicase/u16-is-casefolded: New file.
48687
48688         New module 'unicase/u8-is-casefolded'.
48689         * lib/unicase/u8-is-casefolded.c: New file.
48690         * modules/unicase/u8-is-casefolded: New file.
48691
48692         Tests for module 'unicase/u32-is-titlecase'.
48693         * modules/unicase/u32-is-titlecase-tests: New file.
48694         * tests/unicase/test-u32-is-titlecase.c: New file.
48695
48696         Tests for module 'unicase/u16-is-titlecase'.
48697         * modules/unicase/u16-is-titlecase-tests: New file.
48698         * tests/unicase/test-u16-is-titlecase.c: New file.
48699
48700         Tests for module 'unicase/u8-is-titlecase'.
48701         * modules/unicase/u8-is-titlecase-tests: New file.
48702         * tests/unicase/test-u8-is-titlecase.c: New file.
48703         * tests/unicase/test-is-titlecase.h: New file.
48704
48705         New module 'unicase/u32-is-titlecase'.
48706         * lib/unicase/u32-is-titlecase.c: New file.
48707         * modules/unicase/u32-is-titlecase: New file.
48708
48709         New module 'unicase/u16-is-titlecase'.
48710         * lib/unicase/u16-is-titlecase.c: New file.
48711         * modules/unicase/u16-is-titlecase: New file.
48712
48713         New module 'unicase/u8-is-titlecase'.
48714         * lib/unicase/u8-is-titlecase.c: New file.
48715         * modules/unicase/u8-is-titlecase: New file.
48716
48717         Tests for module 'unicase/u32-is-lowercase'.
48718         * modules/unicase/u32-is-lowercase-tests: New file.
48719         * tests/unicase/test-u32-is-lowercase.c: New file.
48720
48721         Tests for module 'unicase/u16-is-lowercase'.
48722         * modules/unicase/u16-is-lowercase-tests: New file.
48723         * tests/unicase/test-u16-is-lowercase.c: New file.
48724
48725         Tests for module 'unicase/u8-is-lowercase'.
48726         * modules/unicase/u8-is-lowercase-tests: New file.
48727         * tests/unicase/test-u8-is-lowercase.c: New file.
48728         * tests/unicase/test-is-lowercase.h: New file.
48729
48730         New module 'unicase/u32-is-lowercase'.
48731         * lib/unicase/u32-is-lowercase.c: New file.
48732         * modules/unicase/u32-is-lowercase: New file.
48733
48734         New module 'unicase/u16-is-lowercase'.
48735         * lib/unicase/u16-is-lowercase.c: New file.
48736         * modules/unicase/u16-is-lowercase: New file.
48737
48738         New module 'unicase/u8-is-lowercase'.
48739         * lib/unicase/u8-is-lowercase.c: New file.
48740         * modules/unicase/u8-is-lowercase: New file.
48741
48742         Tests for module 'unicase/u32-is-uppercase'.
48743         * modules/unicase/u32-is-uppercase-tests: New file.
48744         * tests/unicase/test-u32-is-uppercase.c: New file.
48745
48746         Tests for module 'unicase/u16-is-uppercase'.
48747         * modules/unicase/u16-is-uppercase-tests: New file.
48748         * tests/unicase/test-u16-is-uppercase.c: New file.
48749
48750         Tests for module 'unicase/u8-is-uppercase'.
48751         * modules/unicase/u8-is-uppercase-tests: New file.
48752         * tests/unicase/test-u8-is-uppercase.c: New file.
48753         * tests/unicase/test-is-uppercase.h: New file.
48754
48755         New module 'unicase/u32-is-uppercase'.
48756         * lib/unicase/u32-is-uppercase.c: New file.
48757         * modules/unicase/u32-is-uppercase: New file.
48758
48759         New module 'unicase/u16-is-uppercase'.
48760         * lib/unicase/u16-is-uppercase.c: New file.
48761         * modules/unicase/u16-is-uppercase: New file.
48762
48763         New module 'unicase/u8-is-uppercase'.
48764         * lib/unicase/u8-is-uppercase.c: New file.
48765         * modules/unicase/u8-is-uppercase: New file.
48766
48767         New module 'unicase/u32-is-invariant'.
48768         * lib/unicase/u32-is-invariant.c: New file.
48769         * modules/unicase/u32-is-invariant: New file.
48770
48771         New module 'unicase/u16-is-invariant'.
48772         * lib/unicase/u16-is-invariant.c: New file.
48773         * modules/unicase/u16-is-invariant: New file.
48774
48775         New module 'unicase/u8-is-invariant'.
48776         * lib/unicase/u8-is-invariant.c: New file.
48777         * lib/unicase/invariant.h: New file.
48778         * lib/unicase/u-is-invariant.h: New file.
48779         * modules/unicase/u8-is-invariant: New file.
48780
48781         Tests for module 'unicase/u32-casecoll'.
48782         * modules/unicase/u32-casecoll-tests: New file.
48783         * tests/unicase/test-u32-casecoll.c: New file.
48784
48785         Tests for module 'unicase/u16-casecoll'.
48786         * modules/unicase/u16-casecoll-tests: New file.
48787         * tests/unicase/test-u16-casecoll.c: New file.
48788
48789         Tests for module 'unicase/u8-casecoll'.
48790         * modules/unicase/u8-casecoll-tests: New file.
48791         * tests/unicase/test-u8-casecoll.c: New file.
48792
48793         New module 'unicase/u32-casecoll'.
48794         * lib/unicase/u32-casecoll.c: New file.
48795         * modules/unicase/u32-casecoll: New file.
48796
48797         New module 'unicase/u16-casecoll'.
48798         * lib/unicase/u16-casecoll.c: New file.
48799         * modules/unicase/u16-casecoll: New file.
48800
48801         New module 'unicase/u8-casecoll'.
48802         * lib/unicase/u8-casecoll.c: New file.
48803         * lib/unicase/u-casecoll.h: New file.
48804         * modules/unicase/u8-casecoll: New file.
48805
48806         New module 'unicase/u32-casexfrm'.
48807         * lib/unicase/u32-casexfrm.c: New file.
48808         * modules/unicase/u32-casexfrm: New file.
48809
48810         New module 'unicase/u16-casexfrm'.
48811         * lib/unicase/u16-casexfrm.c: New file.
48812         * modules/unicase/u16-casexfrm: New file.
48813
48814         New module 'unicase/u8-casexfrm'.
48815         * lib/unicase/u8-casexfrm.c: New file.
48816         * lib/unicase/u-casexfrm.h: New file.
48817         * modules/unicase/u8-casexfrm: New file.
48818
48819         Tests for module 'unicase/u32-casecmp'.
48820         * modules/unicase/u32-casecmp-tests: New file.
48821         * tests/unicase/test-u32-casecmp.c: New file.
48822
48823         Tests for module 'unicase/u16-casecmp'.
48824         * modules/unicase/u16-casecmp-tests: New file.
48825         * tests/unicase/test-u16-casecmp.c: New file.
48826
48827         Tests for module 'unicase/u8-casecmp'.
48828         * modules/unicase/u8-casecmp-tests: New file.
48829         * tests/unicase/test-u8-casecmp.c: New file.
48830         * tests/unicase/test-casecmp.h: New file.
48831
48832         New module 'unicase/u32-casecmp'.
48833         * lib/unicase/u32-casecmp.c: New file.
48834         * modules/unicase/u32-casecmp: New file.
48835
48836         New module 'unicase/u16-casecmp'.
48837         * lib/unicase/u16-casecmp.c: New file.
48838         * modules/unicase/u16-casecmp: New file.
48839
48840         New module 'unicase/u8-casecmp'.
48841         * lib/unicase/u8-casecmp.c: New file.
48842         * lib/unicase/u-casecmp.h: New file.
48843         * modules/unicase/u8-casecmp: New file.
48844
48845         Tests for module 'unicase/u32-casefold'.
48846         * modules/unicase/u32-casefold-tests: New file.
48847         * tests/unicase/test-u32-casefold.c: New file.
48848
48849         Tests for module 'unicase/u16-casefold'.
48850         * modules/unicase/u16-casefold-tests: New file.
48851         * tests/unicase/test-u16-casefold.c: New file.
48852
48853         Tests for module 'unicase/u8-casefold'.
48854         * modules/unicase/u8-casefold-tests: New file.
48855         * tests/unicase/test-u8-casefold.c: New file.
48856
48857         New module 'unicase/u32-casefold'.
48858         * lib/unicase/u32-casefold.c: New file.
48859         * modules/unicase/u32-casefold: New file.
48860
48861         New module 'unicase/u16-casefold'.
48862         * lib/unicase/u16-casefold.c: New file.
48863         * modules/unicase/u16-casefold: New file.
48864
48865         New module 'unicase/u8-casefold'.
48866         * lib/unicase/u8-casefold.c: New file.
48867         * lib/unicase/u-casefold.h: New file.
48868         * modules/unicase/u8-casefold: New file.
48869
48870         New module 'unicase/tocasefold'.
48871         * lib/unicase/casefold.h: New file.
48872         * lib/unicase/tocasefold.c: New file.
48873         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48874         * modules/unicase/tocasefold: New file.
48875
48876         Tests for module 'unicase/u32-totitle'.
48877         * modules/unicase/u32-totitle-tests: New file.
48878         * tests/unicase/test-u32-totitle.c: New file.
48879
48880         Tests for module 'unicase/u16-totitle'.
48881         * modules/unicase/u16-totitle-tests: New file.
48882         * tests/unicase/test-u16-totitle.c: New file.
48883
48884         Tests for module 'unicase/u8-totitle'.
48885         * modules/unicase/u8-totitle-tests: New file.
48886         * tests/unicase/test-u8-totitle.c: New file.
48887
48888         New module 'unicase/u32-totitle'.
48889         * lib/unicase/u32-totitle.c: New file.
48890         * modules/unicase/u32-totitle: New file.
48891
48892         New module 'unicase/u16-totitle'.
48893         * lib/unicase/u16-totitle.c: New file.
48894         * modules/unicase/u16-totitle: New file.
48895
48896         New module 'unicase/u8-totitle'.
48897         * lib/unicase/u8-totitle.c: New file.
48898         * lib/unicase/u-totitle.h: New file.
48899         * modules/unicase/u8-totitle: New file.
48900
48901         Tests for module 'unicase/u32-tolower'.
48902         * modules/unicase/u32-tolower-tests: New file.
48903         * tests/unicase/test-u32-tolower.c: New file.
48904
48905         Tests for module 'unicase/u16-tolower'.
48906         * modules/unicase/u16-tolower-tests: New file.
48907         * tests/unicase/test-u16-tolower.c: New file.
48908
48909         Tests for module 'unicase/u8-tolower'.
48910         * modules/unicase/u8-tolower-tests: New file.
48911         * tests/unicase/test-u8-tolower.c: New file.
48912
48913         New module 'unicase/u32-tolower'.
48914         * lib/unicase/u32-tolower.c: New file.
48915         * modules/unicase/u32-tolower: New file.
48916
48917         New module 'unicase/u16-tolower'.
48918         * lib/unicase/u16-tolower.c: New file.
48919         * modules/unicase/u16-tolower: New file.
48920
48921         New module 'unicase/u8-tolower'.
48922         * lib/unicase/u8-tolower.c: New file.
48923         * modules/unicase/u8-tolower: New file.
48924
48925         Tests for module 'unicase/u32-toupper'.
48926         * modules/unicase/u32-toupper-tests: New file.
48927         * tests/unicase/test-u32-toupper.c: New file.
48928
48929         Tests for module 'unicase/u16-toupper'.
48930         * modules/unicase/u16-toupper-tests: New file.
48931         * tests/unicase/test-u16-toupper.c: New file.
48932
48933         Tests for module 'unicase/u8-toupper'.
48934         * modules/unicase/u8-toupper-tests: New file.
48935         * tests/unicase/test-u8-toupper.c: New file.
48936
48937         New module 'unicase/u32-toupper'.
48938         * lib/unicase/u32-toupper.c: New file.
48939         * modules/unicase/u32-toupper: New file.
48940
48941         New module 'unicase/u16-toupper'.
48942         * lib/unicase/u16-toupper.c: New file.
48943         * modules/unicase/u16-toupper: New file.
48944
48945         New module 'unicase/u8-toupper'.
48946         * lib/unicase/u8-toupper.c: New file.
48947         * modules/unicase/u8-toupper: New file.
48948
48949         New module 'unicase/u32-casemap'.
48950         * lib/unicase/u32-casemap.c: New file.
48951         * modules/unicase/u32-casemap: New file.
48952
48953         New module 'unicase/u16-casemap'.
48954         * lib/unicase/u16-casemap.c: New file.
48955         * modules/unicase/u16-casemap: New file.
48956
48957         New module 'unicase/u8-casemap'.
48958         * lib/unicase/unicasemap.h: New file.
48959         * lib/unicase/u8-casemap.c: New file.
48960         * lib/unicase/u-casemap.h: New file.
48961         * modules/unicase/u8-casemap: New file.
48962
48963         New module 'unicase/special-casing'.
48964         * lib/unicase/special-casing.h: New file.
48965         * lib/unicase/special-casing.c: New file.
48966         * lib/unicase/special-casing-table.gperf: New file, generated by
48967         gen-uni-tables.c.
48968         * modules/unicase/special-casing: New file.
48969
48970         Tests for module 'unicase/locale-language'.
48971         * modules/unicase/locale-language-tests: New file.
48972         * tests/unicase/test-locale-language.sh: New file.
48973         * tests/unicase/test-locale-language.c: New file.
48974
48975         New module 'unicase/locale-language'.
48976         * lib/unicase/locale-language.c: New file.
48977         * lib/unicase/locale-languages.gperf: New file.
48978         * modules/unicase/locale-language: New file.
48979
48980         Generate more tables for case conversion and case folding.
48981         * lib/gen-uni-tables.c (SCC_*): New enum items.
48982         (struct special_casing_rule): New type.
48983         (casing_rules, num_casing_rules, allocated_casing_rules): New
48984         variables.
48985         (add_casing_rule, fill_casing_rules): New functions.
48986         (struct casefold_rule): New type.
48987         (casefolding_rules, num_casefolding_rules,
48988         allocated_casefolding_rules): New variables.
48989         (fill_casefolding_rules): New function.
48990         (unicode_casefold): New variable.
48991         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48992         sort_casing_rules, output_casing_rules): New functions.
48993         (main): Accept to more arguments: SpecialCasing.txt and
48994         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48995         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48996         Output mapping for casefolding.
48997
48998         * lib/unicase.h: Include stdbool.h, uninorm.h.
48999         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49000         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49001         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49002         arguments.
49003         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49004         resultp arguments.
49005         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49006         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49007         resultp arguments.
49008         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49009         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49010         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49011         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49012         declarations.
49013         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49014
49015 2009-03-08  Bruno Haible  <bruno@clisp.org>
49016
49017         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49018         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49019         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49020         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49021
49022 2009-03-07  Bruno Haible  <bruno@clisp.org>
49023
49024         Adjust u*_normcmp, u*_normcoll API.
49025         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49026         u16_normcoll, u32_normcoll): Change failure conventions.
49027         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49028         errno and return -1.
49029         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49030
49031 2009-03-07  Bruno Haible  <bruno@clisp.org>
49032
49033         Tests for module 'uninorm/u32-normcoll'.
49034         * modules/uninorm/u32-normcoll-tests: New file.
49035         * tests/uninorm/test-u32-normcoll.c: New file.
49036
49037         Tests for module 'uninorm/u16-normcoll'.
49038         * modules/uninorm/u16-normcoll-tests: New file.
49039         * tests/uninorm/test-u16-normcoll.c: New file.
49040
49041         Tests for module 'uninorm/u8-normcoll'.
49042         * modules/uninorm/u8-normcoll-tests: New file.
49043         * tests/uninorm/test-u8-normcoll.c: New file.
49044
49045 2009-03-07  Bruno Haible  <bruno@clisp.org>
49046
49047         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49048         tests/uninorm/test-u32-normcmp.c.
49049         * tests/uninorm/test-u32-normcmp.c: Include it.
49050         (test_nonascii): New function, extracted from main. Add some more
49051         tests.
49052         (main): Invoke test_ascii and test_nonascii.
49053         * modules/uninorm/u32-normcmp-tests (Files): Add
49054         tests/uninorm/test-u32-normcmp.h.
49055         (Depends-on): Remove uninorm/u32-normcmp.
49056
49057         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49058         tests/uninorm/test-u16-normcmp.c.
49059         * tests/uninorm/test-u16-normcmp.c: Include it.
49060         (test_nonascii): New function, extracted from main. Add some more
49061         tests.
49062         (main): Invoke test_ascii and test_nonascii.
49063         * modules/uninorm/u16-normcmp-tests (Files): Add
49064         tests/uninorm/test-u16-normcmp.h.
49065         (Depends-on): Remove uninorm/u16-normcmp.
49066
49067         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49068         tests/uninorm/test-u8-normcmp.c.
49069         * tests/uninorm/test-u8-normcmp.c: Include it.
49070         (test_nonascii): New function, extracted from main. Add some more
49071         tests.
49072         (main): Invoke test_ascii and test_nonascii.
49073         * modules/uninorm/u8-normcmp-tests (Files): Add
49074         tests/uninorm/test-u8-normcmp.h.
49075         (Depends-on): Remove uninorm/u8-normcmp.
49076
49077 2009-03-07  Bruno Haible  <bruno@clisp.org>
49078
49079         New module 'uninorm/u32-normcoll'.
49080         * lib/uninorm/u32-normcoll.c: New file.
49081         * modules/uninorm/u32-normcoll: New file.
49082
49083         New module 'uninorm/u16-normcoll'.
49084         * lib/uninorm/u16-normcoll.c: New file.
49085         * modules/uninorm/u16-normcoll: New file.
49086
49087         New module 'uninorm/u8-normcoll'.
49088         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49089         declarations.
49090         * lib/uninorm/u8-normcoll.c: New file.
49091         * lib/uninorm/u-normcoll.h: New file.
49092         * modules/uninorm/u8-normcoll: New file.
49093
49094         New module 'uninorm/u32-normxfrm'.
49095         * lib/uninorm/u32-normxfrm.c: New file.
49096         * modules/uninorm/u32-normxfrm: New file.
49097
49098         New module 'uninorm/u16-normxfrm'.
49099         * lib/uninorm/u16-normxfrm.c: New file.
49100         * modules/uninorm/u16-normxfrm: New file.
49101
49102         New module 'uninorm/u8-normxfrm'.
49103         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49104         declarations.
49105         * lib/uninorm/u8-normxfrm.c: New file.
49106         * lib/uninorm/u-normxfrm.h: New file.
49107         * modules/uninorm/u8-normxfrm: New file.
49108
49109 2009-03-07  Bruno Haible  <bruno@clisp.org>
49110
49111         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49112         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49113         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49114
49115 2009-03-07  Bruno Haible  <bruno@clisp.org>
49116
49117         New module 'memxfrm'.
49118         * lib/memxfrm.h: New file.
49119         * lib/memxfrm.c: New file.
49120         * modules/memxfrm: New file.
49121
49122 2009-03-07  Bruno Haible  <bruno@clisp.org>
49123
49124         New module 'memcmp2'.
49125         * lib/memcmp2.h: New file.
49126         * lib/memcmp2.c: New file.
49127         * modules/memcmp2: New file.
49128
49129 2009-03-07  Bruno Haible  <bruno@clisp.org>
49130
49131         Tests for module 'uninorm/decomposing-form'.
49132         * modules/uninorm/decomposing-form-tests: New file.
49133         * tests/uninorm/test-decomposing-form.c: New file.
49134
49135         New module 'uninorm/decomposing-form'.
49136         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49137         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49138         Add 'decomposing_variant' field.
49139         * lib/uninorm/decomposing-form.c: New file.
49140         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49141         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49142         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49143         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49144         * modules/uninorm/decomposing-form: New file.
49145         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49146         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49147
49148 2009-03-07  Bruno Haible  <bruno@clisp.org>
49149
49150         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49151         strings.
49152
49153 2009-03-06  Bruno Haible  <bruno@clisp.org>
49154
49155         Tests for module 'uninorm/u32-normcmp'.
49156         * tests/uninorm/test-u32-normcmp.c: New file.
49157         * modules/uninorm/u32-normcmp-tests: New file.
49158
49159         Tests for module 'uninorm/u16-normcmp'.
49160         * tests/uninorm/test-u16-normcmp.c: New file.
49161         * modules/uninorm/u16-normcmp-tests: New file.
49162
49163         Tests for module 'uninorm/u8-normcmp'.
49164         * tests/uninorm/test-u8-normcmp.c: New file.
49165         * modules/uninorm/u8-normcmp-tests: New file.
49166
49167         New module 'uninorm/u32-normcmp'.
49168         * lib/uninorm/u32-normcmp.c: New file.
49169         * modules/uninorm/u32-normcmp: New file.
49170
49171         New module 'uninorm/u16-normcmp'.
49172         * lib/uninorm/u16-normcmp.c: New file.
49173         * modules/uninorm/u16-normcmp: New file.
49174
49175         New module 'uninorm/u8-normcmp'.
49176         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49177         declarations.
49178         * lib/uninorm/u8-normcmp.c: New file.
49179         * lib/uninorm/u-normcmp.h: New file.
49180         * modules/uninorm/u8-normcmp: New file.
49181
49182 2009-03-06  Bruno Haible  <bruno@clisp.org>
49183
49184         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49185         Reported by Eric Blake.
49186
49187 2009-03-06  Eric Blake  <ebb9@byu.net>
49188             Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49191         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49192         condition.
49193         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49194         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49195         condition.
49196         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49197
49198 2009-03-06  Eric Blake  <ebb9@byu.net>
49199
49200         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49201         to avoid compiler warnings.
49202         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49203
49204 2009-03-05  Bruno Haible  <bruno@clisp.org>
49205
49206         * tests/test-ftell.c (main): Disable test beyond end of file on
49207         FreeMiNT.
49208         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49209
49210 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49211
49212         * lib/filevercmp.c: Move hidden files up in ordering.
49213         * tests/test-filevercmp.c: Add tests for hidden files.
49214
49215 2009-03-04  Bruno Haible  <bruno@clisp.org>
49216
49217         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49218         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49219         AM_CFLAGS.
49220         Reported by Simon Josefsson.
49221
49222 2009-03-03  Bruno Haible  <bruno@clisp.org>
49223
49224         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49225         Reported by Simon Josefsson.
49226
49227         * doc/ld-version-script.texi: Update node reference.
49228
49229 2009-03-03  Bruno Haible  <bruno@clisp.org>
49230
49231         * modules/visibility (License): Change to 'unlimited'.
49232         Suggested by Simon Josefsson.
49233
49234 2009-03-03  Jim Meyering  <meyering@redhat.com>
49235
49236         unlinkdir: cannot_unlink_dir may modify process state
49237         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49238         it's neither thread-safe nor appropriate for use in a library.
49239
49240 2009-03-03  Eric Blake  <ebb9@byu.net>
49241
49242         test-closein: silence test under Darwin
49243         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49244         care if it dies from EPIPE or EBADF.
49245
49246 2009-03-03  Bruno Haible  <bruno@clisp.org>
49247
49248         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49249         earlier.
49250         * doc/visibility.texi: Fix @node and @section.
49251
49252 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49253
49254         * doc/gnulib.texi: Link to sections for ld version script and
49255         visibility.
49256         * doc/visibility.texi: Add @node and @section.
49257         * modules/ld-version-script: New module.
49258         * m4/ld-version-script.m4: New file.
49259         * doc/ld-version-script.texi: New file.
49260
49261 2009-03-02  David Lutterkort  <lutter@redhat.com>
49262
49263         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49265
49266 2009-03-02  Bruno Haible  <bruno@clisp.org>
49267
49268         * doc/visibility.texi: Mention libtool's -export-symbols option.
49269
49270 2009-03-02  Jim Meyering  <meyering@redhat.com>
49271
49272         announce-gen: new option: --no-print-checksums
49273         * build-aux/announce-gen (usage): Describe it.
49274         (print_checksums): Print a newline here, not in the [*] footnote.
49275         (main): Honor it.
49276
49277 2009-03-01  Bruno Haible  <bruno@clisp.org>
49278
49279         Use socklen_t in the native Windows replacements prototypes.
49280         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49281         instead of 'int'.
49282         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49283         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49284         * modules/getsockopt (Depends-on): Add socklen.
49285         * modules/setsockopt (Depends-on): Add socklen.
49286
49287 2009-03-01  Bruno Haible  <bruno@clisp.org>
49288
49289         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49290         least 4.2.
49291
49292 2009-03-01  Eric Blake  <ebb9@byu.net>
49293             Bruno Haible  <bruno@clisp.org>
49294
49295         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49296         error messages.
49297         * lib/wait-process.c (wait_subprocess): Omit error message about
49298         deadly signal sent to the child of termsigp != NULL.
49299
49300 2009-03-01  Eric Blake  <ebb9@byu.net>
49301
49302         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49303
49304 2009-03-01  Bruno Haible  <bruno@clisp.org>
49305
49306         Avoid a gcc warning.
49307         * tests/test-sched.c (b): Make global.
49308         Reported by Eric Blake.
49309
49310 2009-01-19  Martin Lambers  <marlam@marlam.de>
49311
49312         Provide POSIX semantics for socket timeout options on W32.
49313         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49314         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49315         * modules/setsockopt: Depend on sys_time module for struct timeval.
49316         * modules/getsockopt: Depend on sys_time module for struct timeval.
49317
49318 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49319
49320         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49321         __USE_GNU, for consistency with netdb.in.h.
49322         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49323
49324 2009-03-01  Bruno Haible  <bruno@clisp.org>
49325
49326         More support for FreeMiNT.
49327         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49329
49330 2009-03-01  Bruno Haible  <bruno@clisp.org>
49331
49332         More support for FreeMiNT.
49333         * lib/fpurge.c (fpurge): Correct last commit.
49334         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49335
49336 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49337
49338         Fix unportable awk script in vc-list-files.
49339         * build-aux/vc-list-files: In the replacement awk script, use
49340         substr with a second argument of 1, not zero.
49341         Report by Simon Josefsson.
49342
49343 2009-02-28  Bruno Haible  <bruno@clisp.org>
49344
49345         More support for FreeMiNT.
49346         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49347         to FreeMiNT today.
49348         * lib/fwriting.c (fwriting): Likewise.
49349         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49350
49351 2009-02-28  Bruno Haible  <bruno@clisp.org>
49352
49353         * tests/test-freadseek.c (main): Disable test beyond end of file on
49354         FreeMiNT.
49355         * tests/test-ftello.c (main): Likewise.
49356         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49357
49358 2009-02-28  Bruno Haible  <bruno@clisp.org>
49359
49360         Add tentative support for FreeMiNT.
49361         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49362         * lib/fpurge.c (fpurge): Likewise.
49363         * lib/freadable.c (freadable): Likewise.
49364         * lib/freading.c (freading): Likewise.
49365         * lib/freadptr.c (freadptr): Likewise.
49366         * lib/freadseek.c (freadptrinc): Likewise.
49367         * lib/fseeko.c (rpl_fseeko): Likewise.
49368         * lib/fseterr.c (fseterr): Likewise.
49369         * lib/fwritable.c (fwritable): Likewise.
49370         * lib/fwriting.c (fwriting): Likewise.
49371         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49372         Hourihane.
49373         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49374
49375 2009-02-28  Bruno Haible  <bruno@clisp.org>
49376
49377         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49378         SIGCHLD.
49379         Reported by Jim Meyering.
49380
49381 2009-02-28  Bruno Haible  <bruno@clisp.org>
49382
49383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49384         Mention the results of these tests on various platforms.
49385         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49386         order.
49387         * doc/posix-functions/printf.texi: Likewise.
49388         * doc/posix-functions/snprintf.texi: Likewise.
49389         * doc/posix-functions/sprintf.texi: Likewise.
49390         * doc/posix-functions/vfprintf.texi: Likewise.
49391         * doc/posix-functions/vprintf.texi: Likewise.
49392         * doc/posix-functions/vsnprintf.texi: Likewise.
49393         * doc/posix-functions/vsprintf.texi: Likewise.
49394         * doc/glibc-functions/obstack_printf.texi: Likewise.
49395         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49396
49397 2009-02-28  Bruno Haible  <bruno@clisp.org>
49398
49399         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49400         Reported by Loïc Minier <lool@dooz.org>.
49401
49402 2009-02-27  Bruno Haible  <bruno@clisp.org>
49403
49404         * gnulib-tool (func_import): Make the sed expression used to create the
49405         sed script for updating the .gitignore file POSIX compliant.
49406         Reported by Eric Blake.
49407
49408 2009-02-27  Bruno Haible  <bruno@clisp.org>
49409
49410         * gnulib-tool (sed): Don't alias as "sed --posix".
49411         Reported by Eric Blake.
49412
49413 2009-02-27  Bruno Haible  <bruno@clisp.org>
49414
49415         Avoid test link errors.
49416         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49417         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49418         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49419         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49421
49422 2009-02-27  Bruno Haible  <bruno@clisp.org>
49423
49424         Avoid spurious "(cached)" in configure output.
49425         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49426         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49427         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49428         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49429         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49430         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49431         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49432         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49433         Reported by Eric Blake.
49434
49435 2009-02-27  Eric Blake  <ebb9@byu.net>
49436
49437         printf: fix regression in previous patch
49438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49439
49440 2009-02-27  Bruno Haible  <bruno@clisp.org>
49441
49442         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49443         value.
49444         * lib/stdint.in.h: Likewise.
49445         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49446
49447 2009-02-27  Eric Blake  <ebb9@byu.net>
49448
49449         doc: mention more functions added in cygwin 1.7.0
49450         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49451         addition.
49452         * doc/posix-functions/open_wmemstream.texi: Likewise.
49453         * doc/posix-functions/wcsnlen.texi: Likewise.
49454         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49455         * doc/posix-functions/wcstod.texi: Likewise.
49456         * doc/posix-functions/wcstof.texi: Likewise.
49457         * doc/posix-functions/wcstoimax.texi: Likewise.
49458         * doc/posix-functions/wcstok.texi: Likewise.
49459         * doc/posix-functions/wcstoumax.texi: Likewise.
49460
49461         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49463         * doc/posix-functions/fprintf.texi: Update.
49464         * doc/posix-functions/printf.texi: Update.
49465         * doc/posix-functions/snprintf.texi: Update.
49466         * doc/posix-functions/sprintf.texi: Update.
49467         * doc/posix-functions/vfprintf.texi: Update.
49468         * doc/posix-functions/vprintf.texi: Update.
49469         * doc/posix-functions/vsnprintf.texi: Update.
49470         * doc/posix-functions/vsprintf.texi: Update.
49471         * doc/glibc-functions/obstack_printf.texi: Update.
49472         * doc/glibc-functions/obstack_vprintf.texi: Update.
49473
49474 2009-02-26  Eric Blake  <ebb9@byu.net>
49475
49476         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49477         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49478         compilation bug by using runtime conversion.
49479         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49480         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49481         * modules/ceill-tests (Files): Use nan.h.
49482         * modules/floorl-tests (Files): Likewise.
49483         * modules/frexpl-tests (Files): Likewise.
49484         * modules/isnanl-tests (Files): Likewise.
49485         * modules/ldexpl-tests (Files): Likewise.
49486         * modules/roundl-tests (Files): Likewise.
49487         * modules/truncl-tests (Files): Likewise.
49488         * tests/test-ceill.c (main): Use a working NaN.
49489         * tests/test-floorl.c (main): Likewise.
49490         * tests/test-frexpl.c (main): Likewise.
49491         * tests/test-isnan.c (test_long_double): Likewise.
49492         * tests/test-isnanl.h (main): Likewise.
49493         * tests/test-ldexpl.h (main): Likewise.
49494         * tests/test-roundl.h (main): Likewise.
49495         * tests/test-truncl.h (main): Likewise.
49496         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49497
49498 2009-02-26  Eric Blake  <ebb9@byu.net>
49499             Bruno Haible  <bruno@clisp.org>
49500
49501         Work around a *printf bug with %ls on Solaris.
49502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49503         precision is specified, sprintf stops converting the wide string
49504         argument when the number of bytes that have been produced by this
49505         conversion equals or exceeds the precision.
49506         * doc/posix-functions/fprintf.texi: Update.
49507         * doc/posix-functions/printf.texi: Update.
49508         * doc/posix-functions/snprintf.texi: Update.
49509         * doc/posix-functions/sprintf.texi: Update.
49510         * doc/posix-functions/vfprintf.texi: Update.
49511         * doc/posix-functions/vprintf.texi: Update.
49512         * doc/posix-functions/vsnprintf.texi: Update.
49513         * doc/posix-functions/vsprintf.texi: Update.
49514         * doc/glibc-functions/obstack_printf.texi: Update.
49515         * doc/glibc-functions/obstack_vprintf.texi: Update.
49516
49517 2009-02-26  Eric Blake  <ebb9@byu.net>
49518
49519         stdlib: favor compiler check of random.h
49520         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49521         to avoid an ObjC random.h installed by Swarm.
49522
49523 2009-02-26  Bruno Haible  <bruno@clisp.org>
49524
49525         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49526         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49527         Reported by Gary V. Vaughan <gary@gnu.org>.
49528
49529 2009-02-26  Bruno Haible  <bruno@clisp.org>
49530
49531         Fix *printf behaviour regarding the %ls directive.
49532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49533         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49534         NEED_PRINTF_DIRECTIVE_LS.
49535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49536         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49538         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49539         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49540         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49541         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49546         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49550         * doc/posix-functions/fprintf.texi: Update.
49551         * doc/posix-functions/printf.texi: Update.
49552         * doc/posix-functions/snprintf.texi: Update.
49553         * doc/posix-functions/sprintf.texi: Update.
49554         * doc/posix-functions/vfprintf.texi: Update.
49555         * doc/posix-functions/vprintf.texi: Update.
49556         * doc/posix-functions/vsnprintf.texi: Update.
49557         * doc/posix-functions/vsprintf.texi: Update.
49558         * doc/glibc-functions/obstack_printf.texi: Update.
49559         * doc/glibc-functions/obstack_vprintf.texi: Update.
49560         Reported by Eric Blake.
49561
49562 2009-02-25  Bruno Haible  <bruno@clisp.org>
49563
49564         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49565         with known value.
49566         Reported by Gary V. Vaughan <gary@gnu.org>.
49567
49568 2009-02-25  Bruno Haible  <bruno@clisp.org>
49569
49570         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49571         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49572         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49573         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49574         Reported by Gary V. Vaughan <gary@gnu.org>.
49575
49576 2009-02-25  Bruno Haible  <bruno@clisp.org>
49577
49578         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49579         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49580         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49581         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49582         Reported by Gary V. Vaughan <gary@gnu.org>.
49583
49584 2009-02-25  Eric Blake  <ebb9@byu.net>
49585
49586         tests: skip fseek/ftell tests if ungetc is broken
49587         * m4/ungetc.m4: New file.
49588         * modules/fseek-tests: Split test, so ungetc dependency is
49589         separate from rest of test.
49590         * modules/fseeko-tests: Likewise.
49591         * modules/ftell-tests: Likewise.
49592         * modules/ftello-tests: Likewise.
49593         * tests/test-fseek.c (main): Isolate ungetc dependency.
49594         * tests/test-fseeko.c (main): Likewise.
49595         * tests/test-ftell.c (main): Likewise.
49596         * tests/test-ftello.c (main): Likewise.
49597         * tests/test-fseek2.sh: New file.
49598         * tests/test-fseeko2.sh: Likewise.
49599         * tests/test-ftell2.sh: Likewise.
49600         * tests/test-ftello2.sh: Likewise.
49601
49602 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49603
49604         test-getaddrinfo: fix usage of skip return code 77
49605         * tests/test-gettaddrinfo.c: Return skip code 77 only
49606         for first occurrence of skip (4x77 is not 77)
49607
49608 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49609
49610         strtod: avoid C99 decl-after-statement
49611         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49612
49613 2009-02-24  Eric Blake  <ebb9@byu.net>
49614
49615         strtod: detect HP-UX 11.31 bug
49616         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49617         Reported by Gary V. Vaughan.
49618
49619 2009-02-23  Bruno Haible  <bruno@clisp.org>
49620
49621         Fix invalid read past end of memory block.
49622         * lib/vasnprintf.c (DCHAR_SET): Define.
49623         (local_wcslen): Define only when needed.
49624         (local_strnlen, local_wcsnlen): New functions.
49625         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49626         directives that involve a conversion ourselves.
49627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49628         wcsnlen, mbrtowc, wcrtomb.
49629         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49630         * tests/test-vasprintf-posix.c (test_function): Likewise.
49631         * tests/test-snprintf-posix.h (test_function): Likewise.
49632         * tests/test-sprintf-posix.h (test_function): Likewise.
49633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49634
49635 2009-02-22  Bruno Haible  <bruno@clisp.org>
49636
49637         Implement new clarified decomposition of Hangul syllables.
49638         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49639         of type LTV, return only a pairwise decomposition.
49640         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49641         Likewise.
49642         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49643         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49644         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49645
49646 2009-02-22  Bruno Haible  <bruno@clisp.org>
49647
49648         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49649         zero-length results and shrink excess allocated memory.
49650         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49651         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49652         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49653         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49654         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49655         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49656         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49657         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49658         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49659         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49660         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49661         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49662
49663 2009-02-21  Bruno Haible  <bruno@clisp.org>
49664
49665         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49666         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49667         spaces after a period. Put a space between a macro name and its
49668         argument list. Trivial rewordings.
49669         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49670         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49671         (main): Return 0 explicitly.
49672
49673 2009-02-21  Bruno Haible  <bruno@clisp.org>
49674
49675         Tests for module 'uninorm/filter'.
49676         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49677         * modules/uninorm/filter-tests: New file.
49678
49679         New module 'uninorm/filter'.
49680         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49681         uninorm_filter_flush, uninorm_filter_free): New declarations.
49682         * lib/uninorm/uninorm-filter.c: New file.
49683         * modules/uninorm/filter: New file.
49684
49685 2009-02-21  Bruno Haible  <bruno@clisp.org>
49686
49687         Tests for module 'uninorm/nfkc'.
49688         * tests/uninorm/test-nfkc.c: New file.
49689         * tests/uninorm/test-u8-nfkc.c: New file.
49690         * tests/uninorm/test-u16-nfkc.c: New file.
49691         * tests/uninorm/test-u32-nfkc.c: New file.
49692         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49693         * tests/uninorm/test-u32-nfkc-big.c: New file.
49694         * modules/uninorm/nfkc-tests: New file.
49695
49696         New module 'uninorm/nfkc'.
49697         * lib/uninorm/nfkc.c: New file.
49698         * modules/uninorm/nfkc: New file.
49699
49700         Tests for module 'uninorm/nfkd'.
49701         * tests/uninorm/test-nfkd.c: New file.
49702         * tests/uninorm/test-u8-nfkd.c: New file.
49703         * tests/uninorm/test-u16-nfkd.c: New file.
49704         * tests/uninorm/test-u32-nfkd.c: New file.
49705         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49706         * tests/uninorm/test-u32-nfkd-big.c: New file.
49707         * modules/uninorm/nfkd-tests: New file.
49708
49709         New module 'uninorm/nfkd'.
49710         * lib/uninorm/nfkd.c: New file.
49711         * modules/uninorm/nfkd: New file.
49712
49713         Tests for module 'uninorm/nfc'.
49714         * tests/uninorm/test-nfc.c: New file.
49715         * tests/uninorm/test-u8-nfc.c: New file.
49716         * tests/uninorm/test-u16-nfc.c: New file.
49717         * tests/uninorm/test-u32-nfc.c: New file.
49718         * tests/uninorm/test-u32-nfc-big.sh: New file.
49719         * tests/uninorm/test-u32-nfc-big.c: New file.
49720         * modules/uninorm/nfc-tests: New file.
49721
49722         New module 'uninorm/nfc'.
49723         * lib/uninorm/nfc.c: New file.
49724         * modules/uninorm/nfc: New file.
49725
49726         Tests for module 'uninorm/nfd'.
49727         * tests/uninorm/test-nfd.c: New file.
49728         * tests/uninorm/test-u8-nfd.c: New file.
49729         * tests/uninorm/test-u16-nfd.c: New file.
49730         * tests/uninorm/test-u32-nfd.c: New file.
49731         * tests/uninorm/test-u32-nfd-big.sh: New file.
49732         * tests/uninorm/test-u32-nfd-big.c: New file.
49733         * tests/uninorm/test-u32-normalize-big.h: New file.
49734         * tests/uninorm/test-u32-normalize-big.c: New file.
49735         * tests/uninorm/NormalizationTest.txt: New file, created from
49736         Unicode 5.1.0 NormalizationTest.txt.
49737         * modules/uninorm/nfd-tests: New file.
49738
49739         New module 'uninorm/nfd'.
49740         * lib/uninorm/nfd.c: New file.
49741         * modules/uninorm/nfd: New file.
49742
49743         New module 'uninorm/u32-normalize'.
49744         * lib/uninorm/u32-normalize.c: New file.
49745         * modules/uninorm/u32-normalize: New file.
49746
49747         New module 'uninorm/u16-normalize'.
49748         * lib/uninorm/u16-normalize.c: New file.
49749         * modules/uninorm/u16-normalize: New file.
49750
49751         New module 'uninorm/u8-normalize'.
49752         * lib/uninorm/u8-normalize.c: New file.
49753         * lib/uninorm/normalize-internal.h: New file.
49754         * lib/uninorm/u-normalize-internal.h: New file.
49755         * modules/uninorm/u8-normalize: New file.
49756
49757         New module 'uninorm/decompose-internal'.
49758         * lib/uninorm/decompose-internal.c: New file.
49759         * modules/uninorm/decompose-internal: New file.
49760
49761         Tests for module 'uninorm/composition'.
49762         * tests/uninorm/test-composition.c: New file.
49763         * modules/uninorm/composition-tests: New file.
49764
49765         New module 'uninorm/composition'.
49766         * lib/uninorm/composition.c: New file.
49767         * lib/uninorm/composition-table.gperf: New file, generated by
49768         gen-uni-tables.
49769         * modules/uninorm/composition: New file.
49770
49771         Tests for module 'uninorm/compat-decomposition'.
49772         * tests/uninorm/test-compat-decomposition.c: New file.
49773         * modules/uninorm/compat-decomposition-tests: New file.
49774
49775         New module 'uninorm/compat-decomposition'.
49776         * lib/uninorm/decompose-internal.h: New file.
49777         * lib/uninorm/compat-decomposition.c: New file.
49778         * modules/uninorm/compat-decomposition: New file.
49779
49780         Tests for module 'uninorm/canonical-decomposition'.
49781         * tests/uninorm/test-canonical-decomposition.c: New file.
49782         * modules/uninorm/canonical-decomposition-tests: New file.
49783
49784         New module 'uninorm/canonical-decomposition'.
49785         * lib/uninorm/canonical-decomposition.c: New file.
49786         * modules/uninorm/canonical-decomposition: New file.
49787
49788         Tests for module 'uninorm/decomposition'.
49789         * tests/uninorm/test-decomposition.c: New file.
49790         * modules/uninorm/decomposition-tests: New file.
49791
49792         New module 'uninorm/decomposition'.
49793         * lib/uninorm/decomposition.c: New file.
49794         * modules/uninorm/decomposition: New file.
49795
49796         New module 'uninorm/decomposition-table'.
49797         * lib/uninorm/decomposition-table.h: New file.
49798         * lib/uninorm/decomposition-table.c: New file.
49799         * lib/uninorm/decomposition-table1.h: New file, generated by
49800         gen-uni-tables.
49801         * lib/uninorm/decomposition-table2.h: New file, generated by
49802         gen-uni-tables.
49803         * modules/uninorm/decomposition-table: New file.
49804
49805         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49806         (UC_DECOMP_*): New enumeration items.
49807         (get_decomposition): New function.
49808         (struct decomp_table): New type.
49809         (output_decomposition, output_decomposition_tables): New functions.
49810         (unicode_composition_exclusions): New variable.
49811         (fill_composition_exclusions, debug_output_composition_tables): New
49812         functions.
49813         (main): Accept one more argument. Invoke fill_composition_exclusions.
49814         Output decomposition and composition tables.
49815
49816         New module 'uninorm/base'.
49817         * lib/uninorm.h: New file.
49818         * lib/unictype.h: Update comment.
49819         * modules/uninorm/base: New file.
49820
49821 2009-02-21  David Lutterkort  <lutter@redhat.com>
49822
49823         Tests for module 'safe-alloc'.
49824         * tests/test-safe-alloc.c: New file.
49825         * modules/safe-alloc-tests: New file.
49826
49827         New module 'safe-alloc'.
49828         * lib/safe-alloc.h: New file.
49829         * lib/safe-alloc.c: New file.
49830         * m4/safe-alloc.m4: New file.
49831         * modules/safe-alloc: New file.
49832         * doc/safe-alloc.texi: New file.
49833         * doc/gnulib.texi: Include it.
49834         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49835         safe-alloc.
49836
49837 2009-02-18  Bruno Haible  <bruno@clisp.org>
49838
49839         Fix link error on non-glibc systems.
49840         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49841         variable.
49842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49843
49844 2009-02-18  Jim Meyering  <meyering@redhat.com>
49845
49846         fts: avoid used-uninitialized error due to recent change
49847         * lib/fts.c (fts_read): Guard uses of the new member,
49848         parent->fts_n_dirs_remaining, since it's not relevant for
49849         the parent of a directory specified on the command-line.
49850
49851 2009-02-17  James Youngman  <jay@gnu.org>
49852             Bruno Haible  <bruno@clisp.org>
49853
49854         * m4/include_next.m4: Reformulate comment.
49855
49856 2009-02-16  Jim Meyering  <meyering@redhat.com>
49857
49858         fts: add #if guards so that the fts_lgpl module still builds
49859         * lib/fts.c: Guard just-added hash-table-using parts with
49860         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49861         Reported by Simon Josefsson.
49862
49863 2009-02-15  Bruno Haible  <bruno@clisp.org>
49864
49865         * modules/array-mergesort-tests: New file.
49866         * tests/test-array-mergesort.c: New file.
49867
49868         New module 'array-mergesort'.
49869         * modules/array-mergesort: New file.
49870         * lib/array-mergesort.h: New file.
49871
49872 2009-02-15  Bruno Haible  <bruno@clisp.org>
49873
49874         Fix 2009-02-07 commit.
49875         * lib/gen-uni-tables.c (output_predicate, output_category,
49876         output_combclass, output_bidi_category, output_decimal_digit,
49877         output_digit, output_numeric, output_mirror, output_scripts,
49878         output_ident_category, output_simple_mapping): Fix format directives.
49879         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49880
49881 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49882
49883         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49884         fixes are available from IBM.
49885
49886 2009-02-13  Jim Meyering  <meyering@redhat.com>
49887
49888         fts: arrange not to stat non-directories in more cases
49889         This makes GNU find (when it doesn't need to stat each file)
49890         *much* more efficient at traversing reiserfs file systems.
49891         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49892         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49893         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49894         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49895         (leaf_optimization_applies): New function.
49896         (LCO_hash, LCO_compare): New helper functions.
49897         (link_count_optimize_ok): New function.
49898         (fts_stat): Initialize new member (if dir).
49899         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49900         we've just stat'ed a directory.  Skip the stat call when possible.
49901         ---
49902         Note this AFS-related exchange:
49903         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49904         and note find's pioctl call in find/fstype.c.
49905         But that is necessary only if you want to enable the
49906         optimization for AFS, and for now, I don't.
49907
49908         fts: move a function definition "up" (no semantic change)
49909         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49910         "up" to precede upcoming use of a related function.
49911
49912 2009-02-11  Jim Meyering  <meyering@redhat.com>
49913
49914         fts: correct internal computation of nlinks (optimization-related)
49915         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49916         whether the current entry is a directory, so don't test it.
49917
49918 2009-02-10  Bruno Haible  <bruno@clisp.org>
49919
49920         Tests for module 'uniwbrk/ulc-wordbreaks'.
49921         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49922         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49923         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49924
49925         Tests for module 'uniwbrk/u32-wordbreaks'.
49926         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49927         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49928
49929         Tests for module 'uniwbrk/u16-wordbreaks'.
49930         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49931         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49932
49933         Tests for module 'uniwbrk/u8-wordbreaks'.
49934         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49935         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49936
49937 2009-02-10  Bruno Haible  <bruno@clisp.org>
49938
49939         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49940         property.
49941         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49942         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49943         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49944
49945 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49946
49947         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49948         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49949
49950 2009-02-10  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49953         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49954         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49955         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49956         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49957         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49958
49959 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49960
49961         * lib/sockets.h (gl_fd_to_handle): New function.
49962
49963         * tests/test-sockets.c: Call gl_fd_to_handle.
49964
49965 2009-02-09  Bruno Haible  <bruno@clisp.org>
49966
49967         * doc/havelib.texi: Document the conventions on bi-arch systems.
49968
49969 2009-02-08  Bruno Haible  <bruno@clisp.org>
49970
49971         Document the AC_LIB_LINKFLAGS macro.
49972         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49973         * doc/gnulib.texi: Include it.
49974
49975 2009-02-08  Bruno Haible  <bruno@clisp.org>
49976
49977         Fix wrong order of sections, compared to TOC.
49978         * doc/gnulib.texi: Include relocatable-maint.texi after the
49979         "Regular expressions" node, not before.
49980
49981 2009-02-08  Bruno Haible  <bruno@clisp.org>
49982
49983         Tests for module 'unicase/totitle'.
49984         * modules/unicase/totitle-tests: New file.
49985
49986         Tests for module 'unicase/tolower'.
49987         * modules/unicase/tolower-tests: New file.
49988
49989         Tests for module 'unicase/toupper'.
49990         * modules/unicase/toupper-tests: New file.
49991         * tests/unicase/test-mapping-part1.h: New file.
49992         * tests/unicase/test-mapping-part2.h: New file.
49993
49994         New module 'unicase/totitle'.
49995         * modules/unicase/totitle: New file.
49996         * lib/unicase/totitle.c: New file.
49997
49998         New module 'unicase/tolower'.
49999         * modules/unicase/tolower: New file.
50000         * lib/unicase/tolower.c: New file.
50001
50002         New module 'unicase/toupper'.
50003         * modules/unicase/toupper: New file.
50004         * lib/unicase/toupper.c: New file.
50005         * lib/unicase/simple-mapping.h: New file.
50006
50007         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50008         (mapping_table): New structure.
50009         (output_simple_mapping): New function.
50010         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50011         * modules/gen-uni-tables (Description): Update.
50012         * lib/unicase/toupper.h: New file, automatically generated by
50013         gen-uni-tables.
50014         * lib/unicase/tolower.h: New file, automatically generated by
50015         gen-uni-tables.
50016         * lib/unicase/totitle.h: New file, automatically generated by
50017         gen-uni-tables.
50018         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50019         gen-uni-tables.
50020         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50021         gen-uni-tables.
50022         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50023         gen-uni-tables.
50024
50025         New module 'unicase/base'.
50026         * modules/unicase/base: New file.
50027         * lib/unicase.h: New file.
50028
50029 2009-02-08  Bruno Haible  <bruno@clisp.org>
50030
50031         New module 'uniwbrk/ulc-wordbreaks'.
50032         * modules/uniwbrk/ulc-wordbreaks: New file.
50033         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50034
50035         New module 'uniwbrk/u32-wordbreaks'.
50036         * modules/uniwbrk/u32-wordbreaks: New file.
50037         * lib/uniwbrk/u32-wordbreaks.c: New file.
50038
50039         New module 'uniwbrk/u16-wordbreaks'.
50040         * modules/uniwbrk/u16-wordbreaks: New file.
50041         * lib/uniwbrk/u16-wordbreaks.c: New file.
50042
50043         New module 'uniwbrk/u8-wordbreaks'.
50044         * modules/uniwbrk/u8-wordbreaks: New file.
50045         * lib/uniwbrk/u8-wordbreaks.c: New file.
50046         * lib/uniwbrk/u-wordbreaks.h: New file.
50047
50048         New module 'uniwbrk/table'.
50049         * modules/uniwbrk/table: New file.
50050         * lib/uniwbrk/wbrktable.h: New file.
50051         * lib/uniwbrk/wbrktable.c: New file.
50052
50053         New module 'uniwbrk/wordbreak-property'.
50054         * modules/uniwbrk/wordbreak-property: New file.
50055         * lib/uniwbrk/wordbreak-property.c: New file.
50056
50057         * lib/gen-uni-tables.c (WBP_*): New enum items.
50058         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50059         (unicode_org_wbp): New variable.
50060         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50061         New functions.
50062         (wbp_table): New structure.
50063         (output_wbp, output_wbrk_tables): New functions.
50064         (main): Accept additional argument. Invoke fill_org_wbp,
50065         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50066         output_wbrk_tables.
50067         * modules/gen-uni-tables (Description): Update.
50068         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50069         gen-uni-tables.
50070
50071         New module 'uniwbrk/base'.
50072         * modules/uniwbrk/base: New file.
50073         * lib/uniwbrk.h: New file.
50074
50075 2009-02-08  Bruno Haible  <bruno@clisp.org>
50076
50077         Update to Unicode 5.1.0.
50078         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50079         U+2185..U+2188.
50080         (is_property_default_ignorable_code_point): Don't include characters
50081         of category Cc or Cs and not-a-characters.
50082         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50083         U+0D79, U+109E, U+109F, U+A60C.
50084         * lib/unictype/bidi_of.h: Regenerated.
50085         * lib/unictype/blocks.h: Regenerated.
50086         * lib/unictype/categ_C.h: Regenerated.
50087         * lib/unictype/categ_Cf.h: Regenerated.
50088         * lib/unictype/categ_Cn.h: Regenerated.
50089         * lib/unictype/categ_L.h: Regenerated.
50090         * lib/unictype/categ_Ll.h: Regenerated.
50091         * lib/unictype/categ_Lm.h: Regenerated.
50092         * lib/unictype/categ_Lo.h: Regenerated.
50093         * lib/unictype/categ_Lu.h: Regenerated.
50094         * lib/unictype/categ_M.h: Regenerated.
50095         * lib/unictype/categ_Mc.h: Regenerated.
50096         * lib/unictype/categ_Me.h: Regenerated.
50097         * lib/unictype/categ_Mn.h: Regenerated.
50098         * lib/unictype/categ_N.h: Regenerated.
50099         * lib/unictype/categ_Nd.h: Regenerated.
50100         * lib/unictype/categ_Nl.h: Regenerated.
50101         * lib/unictype/categ_No.h: Regenerated.
50102         * lib/unictype/categ_P.h: Regenerated.
50103         * lib/unictype/categ_Pd.h: Regenerated.
50104         * lib/unictype/categ_Pe.h: Regenerated.
50105         * lib/unictype/categ_Pf.h: Regenerated.
50106         * lib/unictype/categ_Pi.h: Regenerated.
50107         * lib/unictype/categ_Po.h: Regenerated.
50108         * lib/unictype/categ_Ps.h: Regenerated.
50109         * lib/unictype/categ_S.h: Regenerated.
50110         * lib/unictype/categ_Sk.h: Regenerated.
50111         * lib/unictype/categ_Sm.h: Regenerated.
50112         * lib/unictype/categ_So.h: Regenerated.
50113         * lib/unictype/categ_of.h: Regenerated.
50114         * lib/unictype/combining.h: Regenerated.
50115         * lib/unictype/ctype_alnum.h: Regenerated.
50116         * lib/unictype/ctype_alpha.h: Regenerated.
50117         * lib/unictype/ctype_graph.h: Regenerated.
50118         * lib/unictype/ctype_lower.h: Regenerated.
50119         * lib/unictype/ctype_print.h: Regenerated.
50120         * lib/unictype/ctype_punct.h: Regenerated.
50121         * lib/unictype/ctype_upper.h: Regenerated.
50122         * lib/unictype/decdigit.h: Regenerated.
50123         * lib/unictype/digit.h: Regenerated.
50124         * lib/unictype/mirror.h: Regenerated.
50125         * lib/unictype/numeric.h: Regenerated.
50126         * lib/unictype/pr_alphabetic.h: Regenerated.
50127         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50128         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50129         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50130         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50131         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50132         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50133         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50134         * lib/unictype/pr_combining.h: Regenerated.
50135         * lib/unictype/pr_dash.h: Regenerated.
50136         * lib/unictype/pr_decimal_digit.h: Regenerated.
50137         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50138         * lib/unictype/pr_deprecated.h: Regenerated.
50139         * lib/unictype/pr_diacritic.h: Regenerated.
50140         * lib/unictype/pr_extender.h: Regenerated.
50141         * lib/unictype/pr_format_control.h: Regenerated.
50142         * lib/unictype/pr_grapheme_base.h: Regenerated.
50143         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50144         * lib/unictype/pr_grapheme_link.h: Regenerated.
50145         * lib/unictype/pr_id_continue.h: Regenerated.
50146         * lib/unictype/pr_id_start.h: Regenerated.
50147         * lib/unictype/pr_ideographic.h: Regenerated.
50148         * lib/unictype/pr_ignorable_control.h: Regenerated.
50149         * lib/unictype/pr_lowercase.h: Regenerated.
50150         * lib/unictype/pr_math.h: Regenerated.
50151         * lib/unictype/pr_numeric.h: Regenerated.
50152         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50153         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50154         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50155         * lib/unictype/pr_other_id_continue.h: Regenerated.
50156         * lib/unictype/pr_other_lowercase.h: Regenerated.
50157         * lib/unictype/pr_other_math.h: Regenerated.
50158         * lib/unictype/pr_punctuation.h: Regenerated.
50159         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50160         * lib/unictype/pr_soft_dotted.h: Regenerated.
50161         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50162         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50163         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50164         * lib/unictype/pr_uppercase.h: Regenerated.
50165         * lib/unictype/pr_xid_continue.h: Regenerated.
50166         * lib/unictype/pr_xid_start.h: Regenerated.
50167         * lib/unictype/pr_zero_width.h: Regenerated.
50168         * lib/unictype/scripts.h: Regenerated.
50169         * lib/unictype/scripts_byname.gperf: Regenerated.
50170         * lib/unictype/sy_java_ident.h: Regenerated.
50171         * lib/unilbrk/lbrkprop1.h: Regenerated.
50172         * lib/unilbrk/lbrkprop2.h: Regenerated.
50173         * tests/unictype/test-categ_C.c: Regenerated.
50174         * tests/unictype/test-categ_Cf.c: Regenerated.
50175         * tests/unictype/test-categ_Cn.c: Regenerated.
50176         * tests/unictype/test-categ_L.c: Regenerated.
50177         * tests/unictype/test-categ_Ll.c: Regenerated.
50178         * tests/unictype/test-categ_Lm.c: Regenerated.
50179         * tests/unictype/test-categ_Lo.c: Regenerated.
50180         * tests/unictype/test-categ_Lu.c: Regenerated.
50181         * tests/unictype/test-categ_M.c: Regenerated.
50182         * tests/unictype/test-categ_Mc.c: Regenerated.
50183         * tests/unictype/test-categ_Me.c: Regenerated.
50184         * tests/unictype/test-categ_Mn.c: Regenerated.
50185         * tests/unictype/test-categ_N.c: Regenerated.
50186         * tests/unictype/test-categ_Nd.c: Regenerated.
50187         * tests/unictype/test-categ_Nl.c: Regenerated.
50188         * tests/unictype/test-categ_No.c: Regenerated.
50189         * tests/unictype/test-categ_P.c: Regenerated.
50190         * tests/unictype/test-categ_Pd.c: Regenerated.
50191         * tests/unictype/test-categ_Pe.c: Regenerated.
50192         * tests/unictype/test-categ_Pf.c: Regenerated.
50193         * tests/unictype/test-categ_Pi.c: Regenerated.
50194         * tests/unictype/test-categ_Po.c: Regenerated.
50195         * tests/unictype/test-categ_Ps.c: Regenerated.
50196         * tests/unictype/test-categ_S.c: Regenerated.
50197         * tests/unictype/test-categ_Sk.c: Regenerated.
50198         * tests/unictype/test-categ_Sm.c: Regenerated.
50199         * tests/unictype/test-categ_So.c: Regenerated.
50200         * tests/unictype/test-ctype_alnum.c: Regenerated.
50201         * tests/unictype/test-ctype_alpha.c: Regenerated.
50202         * tests/unictype/test-ctype_graph.c: Regenerated.
50203         * tests/unictype/test-ctype_lower.c: Regenerated.
50204         * tests/unictype/test-ctype_print.c: Regenerated.
50205         * tests/unictype/test-ctype_punct.c: Regenerated.
50206         * tests/unictype/test-ctype_upper.c: Regenerated.
50207         * tests/unictype/test-decdigit.h: Regenerated.
50208         * tests/unictype/test-digit.h: Regenerated.
50209         * tests/unictype/test-numeric.h: Regenerated.
50210         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50211         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50212         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50213         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50214         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50215         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50216         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50217         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50218         * tests/unictype/test-pr_combining.c: Regenerated.
50219         * tests/unictype/test-pr_dash.c: Regenerated.
50220         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50221         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50222         * tests/unictype/test-pr_deprecated.c: Regenerated.
50223         * tests/unictype/test-pr_diacritic.c: Regenerated.
50224         * tests/unictype/test-pr_extender.c: Regenerated.
50225         * tests/unictype/test-pr_format_control.c: Regenerated.
50226         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50227         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50228         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50229         * tests/unictype/test-pr_id_continue.c: Regenerated.
50230         * tests/unictype/test-pr_id_start.c: Regenerated.
50231         * tests/unictype/test-pr_ideographic.c: Regenerated.
50232         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50233         * tests/unictype/test-pr_lowercase.c: Regenerated.
50234         * tests/unictype/test-pr_math.c: Regenerated.
50235         * tests/unictype/test-pr_numeric.c: Regenerated.
50236         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50237         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50238         Regenerated.
50239         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50240         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50241         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50242         * tests/unictype/test-pr_other_math.c: Regenerated.
50243         * tests/unictype/test-pr_punctuation.c: Regenerated.
50244         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50245         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50246         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50247         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50248         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50249         * tests/unictype/test-pr_uppercase.c: Regenerated.
50250         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50251         * tests/unictype/test-pr_xid_start.c: Regenerated.
50252         * tests/unictype/test-pr_zero_width.c: Regenerated.
50253
50254         Update to Unicode 5.1.0.
50255         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50256         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50257         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50258         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50259         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50260         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50261         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50262         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50263         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50264         (nonspacing_table_ind): Update.
50265         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50266
50267         Update to Unicode 5.1.0.
50268         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50269         code transform.
50270         * lib/uniname/uniname.c (unicode_character_name,
50271         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50272         * lib/uniname/uninames.h: Regenerated.
50273         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50274
50275 2009-02-07  Bruno Haible  <bruno@clisp.org>
50276
50277         Merge gen-ctype and gen-lbrk into a single program.
50278         * lib/gen-uni-tables.c: New file, incorporating
50279         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50280         Add directory prefixes to the names of the generated files.
50281         * lib/unictype/gen-ctype.c: Remove file.
50282         * lib/unilbrk/gen-lbrk.c: Remove file.
50283         * modules/gen-uni-tables: New file.
50284         * modules/unictype/gen-ctype: Remove file.
50285         * modules/unilbrk/gen-lbrk: Remove file.
50286
50287 2009-02-07  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50290
50291         New module 'unistr/u32-strcoll'.
50292         * modules/unistr/u32-strcoll: New file.
50293         * lib/unistr/u32-strcoll.c: New file.
50294
50295         New module 'unistr/u16-strcoll'.
50296         * modules/unistr/u16-strcoll: New file.
50297         * lib/unistr/u16-strcoll.c: New file.
50298
50299         New module 'unistr/u8-strcoll'.
50300         * modules/unistr/u8-strcoll: New file.
50301         * lib/unistr/u8-strcoll.c: New file.
50302         * lib/unistr/u-strcoll.h: New file.
50303
50304 2009-02-07  Bruno Haible  <bruno@clisp.org>
50305
50306         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50307         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50308         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50309         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50310         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50311         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50312
50313 2009-02-07  Bruno Haible  <bruno@clisp.org>
50314
50315         Make 64-bit clean.
50316         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50317         output_combclass, output_bidi_category, output_decimal_digit,
50318         output_digit, output_numeric, output_mirror, output_scripts,
50319         output_ident_category): Use proper width specifier in format strings.
50320
50321 2009-02-07  Bruno Haible  <bruno@clisp.org>
50322
50323         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50324         failure behaviour.
50325
50326 2009-02-07  Jim Meyering  <meyering@redhat.com>
50327
50328         regex: avoid compilation failure with upcoming gcc-4.4
50329         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50330         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50331         "... error: integer overflow in preprocessor expression".
50332
50333 2009-02-05  Ben Pfaff  <blp@gnu.org>
50334
50335         Fix link errors on Windows when close module is used.
50336         * modules/close: Add $(LIB_CLOSE) to Link section.
50337         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50338         $(LIB_CLOSE) on Windows.
50339
50340 2009-02-05  Jim Meyering  <meyering@redhat.com>
50341
50342         still avoid unused-parameter warnings, but do it cleanly
50343         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50344         (get_fs_usage): Cast to void instead.
50345         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50346         (dev_from_mount_options, read_file_system_list): Cast to void.
50347         Prompted by Bruno Haible.
50348
50349 2009-02-04  Jim Meyering  <meyering@redhat.com>
50350
50351         fsusage.c: correct copyright year
50352         * lib/fsusage.c: Reflect year in which the change is pushed into
50353
50354         avoid misc. warnings
50355         * lib/fsusage.c (UNUSED_PARAM): Define.
50356         (get_fs_usage): Mark parameter "disk" as unused.
50357         * lib/getugroups.c (getgrent): Use "void" in prototype.
50358         * lib/mountlist.c: Mark unused parameters.
50359         (read_file_system_list): Declare a local with "const".
50360         * lib/nanosleep.c (getnow): Declare static.
50361         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50362
50363         dirfd: set errno upon failure
50364         * lib/dirfd.c: Include <errno.h>.
50365         Set errno to ENOTSUP when returning -1.
50366         * modules/dirfd (Depends-on): Add errno.
50367         Suggested by John Kodis <kodis@comcast.net>.
50368
50369 2009-02-01  Bruno Haible  <bruno@clisp.org>
50370
50371         Don't assume sizeof (long) >= sizeof (void *).
50372         * lib/memcmp.c: Include stdint.h.
50373         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50374         srcp2 to 'const byte *'.
50375         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50376         types to uintptr_t.
50377         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50378         * modules/memcmp (Depends-on): Add stdint.
50379         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50380
50381 2009-01-30  Eric Blake  <ebb9@byu.net>
50382
50383         fix more require-before-expand issues
50384         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50385         expand, AC_PROG_AWK.
50386         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50387
50388 2009-01-28  Eric Blake  <ebb9@byu.net>
50389
50390         version-etc: use consistent URL formatting
50391         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50392         Improve formatting.  Use fputs for string without %.
50393
50394 2009-01-28  Jim Meyering  <meyering@redhat.com>
50395
50396         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50397         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50398         "underquoted definition of NAME" from autoconf-2.59.
50399
50400 2009-01-28  Bruno Haible  <bruno@clisp.org>
50401
50402         * doc/gnulib.texi: Add "Obsolete modules" to index.
50403
50404 2009-01-28  Jim Meyering  <meyering@redhat.com>
50405
50406         useless-if-before-free: recognize more variants
50407         * build-aux/useless-if-before-free: Also recognize e.g.,
50408         if (NULL != p) free (p);
50409
50410 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50411
50412         test-getaddrinfo: skip (don't fail) this test when there's no network
50413         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50414         on the presumption that it means you lack network access.
50415
50416 2009-01-26  Jim Meyering  <meyering@redhat.com>
50417
50418         fflush: avoid warnings on modern systems
50419         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50420         pos and result, into scopes where they're used.
50421
50422 2009-01-26  Eric Blake  <ebb9@byu.net>
50423
50424         Silence warning reintroduced by recent extensions patch.
50425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50426         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50427         autoconf.
50428
50429         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50430         * m4/00gnulib.m4: New file.
50431         * gnulib-tool (func_get_filelist): Always use it.
50432         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50433         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50434
50435 2009-01-25  Bruno Haible  <bruno@clisp.org>
50436
50437         Make test-quotearg work on MacOS X and AIX.
50438         * tests/test-quotearg.sh: New file.
50439         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50440         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50441         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50442         include <libintl.h>.
50443         (fake_locale): Remove variable.
50444         (gettext, dgettext, dcgettext): Remove functions.
50445         (main): Instead of setting a fake locale, set a real locale. Call
50446         textdomain and bindtextdomain.
50447         * modules/quotearg-tests (Files): Add the new files.
50448         (Depends-on): Add gettext, setenv, unsetenv.
50449         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50450         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50451         Augment TESTS_ENVIRONMENT.
50452
50453 2009-01-25  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50456         fr_FR.ISO8859-1 locale on MacOS X.
50457         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50458         ja_JP.eucJP locale on MacOS X.
50459         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50460         zh_CN.GB18030 locale on MacOS X.
50461
50462 2009-01-25  Bruno Haible  <bruno@clisp.org>
50463
50464         Avoid link errors on MacOS X 10.3.
50465         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50466         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50467
50468 2009-01-25  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50471         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50472         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50473         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50474         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50475         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50476         posix_spawnattr_init, posix_spawnattr_setsigmask,
50477         posix_spawnattr_setflags, posix_spawnattr_destroy.
50478
50479         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50480         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50481         * modules/execute (Files): Remove m4/posix_spawn.m4.
50482         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50483         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50484         posix_spawnattr_init, posix_spawnattr_setsigmask,
50485         posix_spawnattr_setflags, posix_spawnattr_destroy.
50486
50487 2009-01-25  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/glthread/threadlib.c: Include <stdlib.h>.
50490
50491 2009-01-25  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/glthread/threadlib.c (dummy): New declaration.
50494
50495 2009-01-25  Bruno Haible  <bruno@clisp.org>
50496
50497         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50498         multibyte characters also for the GB18030 encoding. Don't crash when
50499         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50500
50501 2009-01-25  Bruno Haible  <bruno@clisp.org>
50502
50503         Avoid redefining 'struct random_data' on OSF/1 5.1.
50504         * lib/stdlib.in.h: Include <random.h> if it exists.
50505         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50506         HAVE_RANDOM_H. Include <random.h> when testing whether
50507         'struct random_data' exists.
50508         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50509
50510 2009-01-25  Bruno Haible  <bruno@clisp.org>
50511
50512         Don't install charset.alias on MacOS X >= 10.3.
50513         * lib/localcharset.c (DARWIN7): New macro.
50514         (get_charset_aliases): Hardcode the result for Darwin7.
50515         * modules/localcharset (install-exec-local): Don't install
50516         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50517
50518 2009-01-25  Bruno Haible  <bruno@clisp.org>
50519
50520         Don't install charset.alias on mingw and Cygwin.
50521         * modules/localcharset (install-exec-local): Don't install
50522         charset.alias on mingw and Cygwin, if the file does not yet exist.
50523         The result for these platforms is hardcoded in localcharset.c.
50524
50525 2009-01-25  Bruno Haible  <bruno@clisp.org>
50526
50527         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50528         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50529         before requiring AC_USE_SYSTEM_EXTENSIONS.
50530
50531 2009-01-25  Jim Meyering  <meyering@redhat.com>
50532
50533         c-strtod: avoid warnings
50534         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50535         "assignment discards qualifiers from pointer target type" warnings.
50536
50537 2009-01-24  Bruno Haible  <bruno@clisp.org>
50538
50539         Add support for non-UTF-8 locales on MacOS X.
50540         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50541         canonical encodings. For Darwin 7 and newer, don't map traditional
50542         encodings to UTF-8.
50543         Reported by Vincent Lefevre <vincent@vinc17.org>
50544         at <http://savannah.gnu.org/bugs/?25235>.
50545
50546 2009-01-24  Bruno Haible  <bruno@clisp.org>
50547
50548         * doc/gnulib.texi (Obsolete modules): New section.
50549         Reported by Mike Frysinger <vapier@gentoo.org>.
50550
50551 2009-01-24  Bruno Haible  <bruno@clisp.org>
50552
50553         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50554         (%.dvi): New rule.
50555
50556 2009-01-24  Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50559         Reported by Eric Blake.
50560
50561 2009-01-24  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50564         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50565         Reported by Gary V. Vaughan <gary@gnu.org>.
50566
50567 2009-01-24  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50570
50571 2009-01-23  Bruno Haible  <bruno@clisp.org>
50572
50573         Make c-strtod, c-strtold usable in libraries.
50574         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50575         (C_STRTOD): Call strdup instead of xstrdup.
50576         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50577         * modules/c-strtold (Depends-on): Likewise.
50578         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50579         * NEWS: Mention the change.
50580         Reported by Michael Gold <mgold@ncf.ca>.
50581
50582 2009-01-23  Jim Meyering  <meyering@redhat.com>
50583
50584         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50585         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50586         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50587
50588 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50589
50590         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50591         GNU CoreUtils.
50592         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50593         * modules/version-etc (Description): Update.
50594
50595 2009-01-22  Bruno Haible  <bruno@clisp.org>
50596
50597         Cache the C locale object.
50598         * lib/c-strtod.c (c_locale_cache): New variable.
50599         (c_locale): New function.
50600         (C_STRTOD): Use it, and don't call freelocale.
50601         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50602         Suggested by Paolo Bonzini.
50603
50604 2009-01-21  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50607         conditions other than overflow.
50608
50609 2009-01-21  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/c-strtod.c: Include errno.h.
50612         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50613         value from STRTOD_L and STRTOD.
50614
50615 2009-01-21  Bruno Haible  <bruno@clisp.org>
50616         and Jim Meyering  <meyering@redhat.com>
50617
50618         nanosleep: skip configure test (fail it) for apple universal builds
50619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50620         universal builds, assume that nanosleep does not work.
50621         * modules/nanosleep (Depends-on): Add multiarch.
50622
50623         mktime: skip configure test (fail it) for apple universal builds
50624         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50625         universal builds, assume that mktime does not work.
50626         * modules/mktime (Depends-on): Add multiarch.
50627
50628 2009-01-21  Eric Blake  <ebb9@byu.net>
50629
50630         multiarch: avoid expand-before-require warning
50631         * modules/multiarch (configure.ac): Require, rather than expand,
50632         gl_MULTIARCH.
50633         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50634         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50635         enforce that all clients require it.  Partial reversion of
50636         2008-12-29 patch.
50637
50638         error: avoid expand-before-require warning
50639         * modules/errno (configure.ac): Require, rather than expand,
50640         gl_HEADER_ERRNO_H.
50641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50642         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50643         enforce that all clients require it.
50644
50645         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50646         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50647         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50648         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50649
50650 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50651
50652         Revert:
50653         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50654
50655         regex: do not depend on obsolete modules.
50656         * modules/regex: Remove memcmp and memmove.
50657
50658 2009-01-20  Bruno Haible  <bruno@clisp.org>
50659
50660         Make the 'link' module link on Windows NT 4.
50661         * lib/link.c (_WIN32_WINNT): Don't define.
50662         (CreateHardLinkFuncType): New type.
50663         (CreateHardLinkFunc, initialized): New variables.
50664         (initialize): New function.
50665         (link): Invoke CreateHardLink indirectly through the function pointer.
50666
50667 2009-01-20  Bruno Haible  <bruno@clisp.org>
50668
50669         Fix compilation failure on mingw.
50670         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50671
50672 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50673
50674         * doc/c-strtod.texi: Mention a couple of restrictions.
50675
50676 2009-01-20  Jim Meyering  <meyering@redhat.com>
50677
50678         gettimeofday: move more declarations out of functions
50679         * lib/gettimeofday.c: Move extern declarations of tzset and
50680         gmtime out of containing functions.  Prompted by Bruno Haible.
50681
50682 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50683
50684         regex: do not depend on obsolete modules.
50685         * modules/regex: Remove memcmp and memmove.
50686
50687 2009-01-19  Bruno Haible  <bruno@clisp.org>
50688
50689         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50690         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50691         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50692         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50693         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50694
50695 2009-01-19  Bruno Haible  <bruno@clisp.org>
50696
50697         * tests/test-link.c: Include <errno.h>.
50698         (main): Exit with code 77 when a hard link cannot be created due to
50699         the file system.
50700         * tests/test-link.sh: Skip test when a hard link cannot be created due
50701         to the file system.
50702         Suggested by Eric Blake.
50703
50704 2009-01-19  Martin Lambers  <marlam@marlam.de>
50705
50706         * modules/link-tests: New file.
50707         * tests/test-link.sh: New file.
50708         * tests/test-link.c: New file.
50709
50710 2009-01-19  Eric Blake  <ebb9@byu.net>
50711
50712         doc: mention another function added in cygwin 1.7.0
50713         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50714         Another new function in cygwin 1.7.
50715
50716 2009-01-19  Bruno Haible  <bruno@clisp.org>
50717
50718         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50719         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50720         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50721         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50722         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50723         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50724         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50725         * m4/md4.m4 (gl_MD4): Likewise.
50726         * m4/md5.m4 (gl_MD5): Likewise.
50727         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50728         * m4/sha1.m4 (gl_SHA1): Likewise.
50729         * m4/sha256.m4 (gl_SHA256): Likewise.
50730         * m4/sha512.m4 (gl_SHA512): Likewise.
50731
50732 2009-01-19  Bruno Haible  <bruno@clisp.org>
50733
50734         * modules/uniname/uniname-tests (Depends-on): Add progname.
50735         * tests/uniname/test-uninames.c: Include progname.h.
50736         (main): Call set_program_name.
50737
50738         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50739         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50740         (main): Call set_program_name.
50741
50742         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50743         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50744         (main): Call set_program_name.
50745
50746         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50747         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50748         (main): Call set_program_name.
50749
50750         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50751         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50752         (main): Call set_program_name.
50753
50754         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50755         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50756         (main): Call set_program_name.
50757
50758         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50759         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50760         (main): Call set_program_name.
50761
50762         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50763         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50764         (main): Call set_program_name.
50765
50766         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50767         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50768         (main): Call set_program_name.
50769
50770 2009-01-19  Eric Blake  <ebb9@byu.net>
50771
50772         test-unistd: test previous patch
50773         * tests/test-unistd.c: Test *_FILENO macros.
50774
50775         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50776         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50777         Guarantee a definition.
50778         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50779         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50780         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50781         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50782         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50783         Likewise.
50784         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50785         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50786         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50787         Likewise.
50788         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50789         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50790         (STDERR_FILENO): Likewise.
50791         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50792         (STDERR_FILENO): Likewise.
50793         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50794         (STDERR_FILENO): Likewise.
50795         Reported by Elbert Pol.
50796
50797 2009-01-19  Eric Blake  <ebb9@byu.net>
50798
50799         doc: mention more functions added in cygwin 1.7.0
50800         * doc/posix-functions/abort.texi (abort): Update wording related
50801         to cygwin.
50802         * doc/posix-functions/daylight.texi (daylight): Likewise.
50803         * doc/posix-functions/optarg.texi (optarg): Likewise.
50804         * doc/posix-functions/optarg.texi (opterr): Likewise.
50805         * doc/posix-functions/optarg.texi (optind): Likewise.
50806         * doc/posix-functions/optarg.texi (optopt): Likewise.
50807         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50808         worked in 1.5.x, and was withdrawn in 1.7.
50809         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50810         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50811         cygwin versions.
50812         * doc/posix-functions/perror.texi (perror): Likewise.
50813         * doc/posix-functions/printf.texi (printf): Likewise.
50814         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50815         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50816         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50817         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50818         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50819         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50820         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50821         Likewise.
50822         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50823         Likewise.
50824         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50825         this function.
50826         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50827         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50828         Likewise.
50829         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50830         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50831         * doc/posix-functions/confstr.texi (confstr): Likewise.
50832         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50833         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50834         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50835         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50836         * doc/posix-functions/fputws.texi (fputws): Likewise.
50837         * doc/posix-functions/fwide.texi (fwide): Likewise.
50838         * doc/posix-functions/getwc.texi (getwc): Likewise.
50839         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50840         * doc/posix-functions/putwc.texi (putwc): Likewise.
50841         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50842         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50843         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50844         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50845         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50846         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50847         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50848         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50849         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50850         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50851         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50852
50853 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50854
50855         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50856         * lib/ioctl.c: Include <sys/ioctl.h>.
50857
50858 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50859
50860         * modules/getdate-tests (Depends-on): Add progname.
50861         * tests/test-getdate.c: Use progname module, to avoid link errors
50862         on non-glibc systems.
50863
50864 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50865
50866         * modules/filenamecat-tests (Depends-on): Add progname.
50867         * modules/fstrcmp-tests (Depends-on): Likewise.
50868
50869         * tests/test-filenamecat.c: Use progname module, to avoid link
50870         errors on non-glibc systems.
50871         * tests/test-fstrcmp.c: Likewise.
50872
50873 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50874
50875         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50876         * lib/gettimeofday.c: Move extern declaration out of function.
50877
50878 2009-01-18  Bruno Haible  <bruno@clisp.org>
50879
50880         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50881         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50882         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50883
50884 2009-01-18  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/strftime.c (MEMPCPY): Remove unused macro.
50887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50888
50889 2009-01-18  Martin Lambers  <marlam@marlam.de>
50890
50891         New module 'link'.
50892         * lib/unistd.in.h (link): New declaration.
50893         * lib/link.c: New file.
50894         * m4/link.m4: New file.
50895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50896         HAVE_LINK.
50897         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50898         * modules/link: New file.
50899         * doc/posix-functions/link.texi: Mention the new module.
50900
50901 2009-01-18  Bruno Haible  <bruno@clisp.org>
50902
50903         * tests/test-avltree_list.c (main): Call set_program_name.
50904         * tests/test-avltree_oset.c (main): Likewise.
50905         * tests/test-obstack-printf.c: Include progname.h.
50906         (main): Call set_program_name.
50907         * tests/test-quotearg.c: Include progname.h.
50908         (main): Call set_program_name.
50909         * tests/test-xmemdup0.c: Include progname.h.
50910         (main): Call set_program_name.
50911
50912 2009-01-18  Bruno Haible  <bruno@clisp.org>
50913
50914         New module 'alphasort'.
50915         * lib/dirent.in.h (alphasort): New declaration.
50916         * lib/alphasort.c: New file, from glibc with modifications.
50917         * m4/alphasort.m4: New file.
50918         * modules/alphasort: New file.
50919         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50920         HAVE_ALPHASORT.
50921         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50922         HAVE_ALPHASORT.
50923         * doc/posix-functions/alphasort.texi: Mention the new module and the
50924         portability problems.
50925
50926 2009-01-18  Bruno Haible  <bruno@clisp.org>
50927
50928         New module 'scandir'.
50929         * lib/dirent.in.h (scandir): New declaration.
50930         * lib/scandir.c: New file, from glibc with modifications.
50931         * m4/scandir.m4: New file.
50932         * modules/scandir: New file.
50933         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50934         HAVE_SCANDIR.
50935         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50936         HAVE_SCANDIR.
50937         * doc/posix-functions/scandir.texi: Mention the new module and the
50938         portability problems.
50939
50940 2009-01-17  Bruno Haible  <bruno@clisp.org>
50941
50942         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50943         Update documentation.
50944         (func_remove_suffix): Escape all dots in the suffix. Update
50945         documentation.
50946         (func_filter_filelist): Update documentation.
50947         Reported by Ralf Wildenhues.
50948
50949 2009-01-17  Bruno Haible  <bruno@clisp.org>
50950
50951         * modules/dprintf-posix-tests: New file.
50952         * tests/test-dprintf-posix.sh: New file.
50953         * tests/test-dprintf-posix.c: New file.
50954
50955         New modules 'dprintf', 'dprintf-posix'.
50956         * lib/stdio.in.h (dprintf): New declaration.
50957         * lib/dprintf.c: New file.
50958         * m4/dprintf.m4: New file.
50959         * m4/dprintf-posix.m4: New file.
50960         * modules/dprintf: New file.
50961         * modules/dprintf-posix: New file.
50962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50963         HAVE_DPRINTF, REPLACE_DPRINTF.
50964         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50965         HAVE_DPRINTF, REPLACE_DPRINTF.
50966         * doc/posix-functions/dprintf.texi: Mention the new modules.
50967
50968 2009-01-17  Bruno Haible  <bruno@clisp.org>
50969
50970         * modules/vdprintf-posix-tests: New file.
50971         * tests/test-vdprintf-posix.sh: New file.
50972         * tests/test-vdprintf-posix.c: New file.
50973
50974         New modules 'vdprintf', 'vdprintf-posix'.
50975         * lib/stdio.in.h (vdprintf): New declaration.
50976         * lib/vdprintf.c: New file.
50977         * m4/vdprintf.m4: New file.
50978         * m4/vdprintf-posix.m4: New file.
50979         * modules/vdprintf: New file.
50980         * modules/vdprintf-posix: New file.
50981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50982         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50983         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50984         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50985         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50986
50987 2009-01-17  Bruno Haible  <bruno@clisp.org>
50988
50989         Fix replacement of fopen on mingw.
50990         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50991         mingw.
50992
50993 2009-01-17  Bruno Haible  <bruno@clisp.org>
50994
50995         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50996         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50997
50998 2009-01-17  Bruno Haible  <bruno@clisp.org>
50999
51000         Avoid test-fflush2.sh failure on mingw.
51001         * tests/test-fflush2.c: Include binary-io.h.
51002         (main): Put standard input into binary mode.
51003         * modules/fflush-tests (Depends-on): Add binary-io.
51004
51005 2009-01-17  Bruno Haible  <bruno@clisp.org>
51006
51007         * lib/wchar.in.h: In another particular situation, include only the
51008         system's <wchar.h> file.
51009         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51010         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51011         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51012
51013 2009-01-17  Bruno Haible  <bruno@clisp.org>
51014
51015         Support for stripping executables in --enable-relocatable.
51016         * build-aux/install-reloc: Expect one more argument, or an environment
51017         variable RELOC_STRIP_PROG. If set, strip the destination program and
51018         its wrapper.
51019         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51020         RELOC_STRIP_PROG.
51021         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51022         to set RELOCATABLE_STRIP.
51023         * NEWS: Mention the new Makefile requirement.
51024
51025 2009-01-17  Bruno Haible  <bruno@clisp.org>
51026
51027         * build-aux/install-reloc: Remove debugging information left over by
51028         C compiler on MacOS X.
51029
51030 2009-01-17  Bruno Haible  <bruno@clisp.org>
51031
51032         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51033         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51034         _NSGetExecutablePath.
51035
51036 2009-01-16  Jim Meyering  <meyering@redhat.com>
51037
51038         strerror: avoid warnings about discarding "const"
51039         * lib/strerror.c (rpl_strerror): Instead of returning a const
51040         string from each and every "case", use a variable, and add a single
51041         cast after the switch.
51042
51043 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51044
51045         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51046
51047 2009-01-16  Bruno Haible  <bruno@clisp.org>
51048
51049         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51050         array initializer syntax that also works in C++ mode.
51051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51052
51053 2009-01-16  Jim Meyering  <meyering@redhat.com>
51054
51055         poll: suppress a warning
51056         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51057         to ignore "...unsigned expression < 0 is always false" warnings.
51058
51059 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51060
51061         poll: remove declarations of unused variables
51062         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51063         sockbuf and optlen.
51064
51065 2009-01-15  Bruno Haible  <bruno@clisp.org>
51066
51067         Make fflush-after-ungetc POSIX compliant on BSD systems.
51068         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51069         (clear_ungetc_buffer): Implement also for other systems.
51070         (rpl_fflush): On glibc systems, invoke
51071         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51072         clear_ungetc_buffer after fetching the stream's position, not before.
51073
51074 2009-01-15  Bruno Haible  <bruno@clisp.org>
51075
51076         Make fflush-after-ungetc POSIX compliant on glibc systems.
51077         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51078         after ungetc.
51079         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51080         (rpl_fflush): On glibc systems, simply call the system's fflush
51081         function after clearing the ungetc buffer.
51082         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51083         Instead, lseek only to the end of file, then use the system's fseeko
51084         for the rest. On glibc systems, reset the EOF indicator bit.
51085
51086 2009-01-15  Jim Meyering  <meyering@redhat.com>
51087
51088         openmp.m4: revert quote-adding change, for portability to older autoconf
51089         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51090         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51091         Simon Josefsson noticed the problem when using autoconf-2.61.
51092
51093 2009-01-15  Bruno Haible  <bruno@clisp.org>
51094
51095         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51096         * tests/test-fflush2.c (ASSERT): Always fail.
51097         (main): Add two tests for fflush() after ungetc(), taking into account
51098         the Austin Group's clarification.
51099         Suggested by Eric Blake.
51100
51101 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51102
51103         mktime.m4: remove K&R-style function prototypes
51104         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51105         for the Sun C++ compiler.
51106
51107 2009-01-14  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51110         while including <wchar.h>.
51111         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51112         the system's <wchar.h> file.
51113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51114
51115 2009-01-14  Bruno Haible  <bruno@clisp.org>
51116
51117         * m4/csharp.m4: Don't mention gettext on the serial number line.
51118         * m4/csharpexec.m4: Likewise.
51119         * m4/eaccess.m4: Likewise.
51120         * m4/javaexec.m4: Likewise.
51121         * m4/sig_atomic_t.m4: Likewise.
51122         * m4/tmpdir.m4: Likewise.
51123         * m4/intldir.m4: Bump gettext version.
51124         * m4/lib-ld.m4: Likewise.
51125
51126 2009-01-14  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/progname.c (set_program_name): Add more comments.
51129         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51130
51131 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51132
51133         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51134         were sys/stat.h does not define it.
51135
51136 2009-01-14  Jim Meyering  <meyering@redhat.com>
51137
51138         many *.m4 files: improve m4 quoting
51139         99% of this change was performed by running the following commands:
51140         git ls-files | grep '\.m4$' | xargs perl -pi \
51141           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51142           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51143           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51144           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51145         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51146         The remainder were to add Copyright dates, increment serial numbers,
51147         undo some changes in comments, exclude m4/intl.m4, and add quotes
51148         around the "1" in ",1" where the unusual spacing prohibited the
51149         above regexps from doing the job.  For more details, see
51150         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51151         * m4/acl.m4: Modified.
51152         * m4/afs.m4: Likewise.
51153         * m4/alloca.m4: Likewise.
51154         * m4/argp.m4: Likewise.
51155         * m4/argz.m4: Likewise.
51156         * m4/atexit.m4: Likewise.
51157         * m4/bison-i18n.m4: Likewise.
51158         * m4/bison.m4: Likewise.
51159         * m4/byteswap.m4: Likewise.
51160         * m4/c-stack.m4: Likewise.
51161         * m4/c-strtod.m4: Likewise.
51162         * m4/calloc.m4: Likewise.
51163         * m4/canonicalize-lgpl.m4: Likewise.
51164         * m4/chown.m4: Likewise.
51165         * m4/clock_time.m4: Likewise.
51166         * m4/codeset.m4: Likewise.
51167         * m4/copy-file.m4: Likewise.
51168         * m4/csharp.m4: Likewise.
51169         * m4/csharpcomp.m4: Likewise.
51170         * m4/csharpexec.m4: Likewise.
51171         * m4/d-ino.m4: Likewise.
51172         * m4/d-type.m4: Likewise.
51173         * m4/dirfd.m4: Likewise.
51174         * m4/double-slash-root.m4: Likewise.
51175         * m4/eaccess.m4: Likewise.
51176         * m4/eealloc.m4: Likewise.
51177         * m4/environ.m4: Likewise.
51178         * m4/errno_h.m4: Likewise.
51179         * m4/euidaccess.m4: Likewise.
51180         * m4/execute.m4: Likewise.
51181         * m4/fatal-signal.m4: Likewise.
51182         * m4/fchdir.m4: Likewise.
51183         * m4/fcntl_h.m4: Likewise.
51184         * m4/fileblocks.m4: Likewise.
51185         * m4/filenamecat.m4: Likewise.
51186         * m4/findprog.m4: Likewise.
51187         * m4/flexmember.m4: Likewise.
51188         * m4/fnmatch.m4: Likewise.
51189         * m4/fopen.m4: Likewise.
51190         * m4/fpending.m4: Likewise.
51191         * m4/fprintf-posix.m4: Likewise.
51192         * m4/free.m4: Likewise.
51193         * m4/frexp.m4: Likewise.
51194         * m4/frexpl.m4: Likewise.
51195         * m4/fsusage.m4: Likewise.
51196         * m4/ftruncate.m4: Likewise.
51197         * m4/gc-camellia.m4: Likewise.
51198         * m4/gc-random.m4: Likewise.
51199         * m4/gc.m4: Likewise.
51200         * m4/getaddrinfo.m4: Likewise.
51201         * m4/getcwd-abort-bug.m4: Likewise.
51202         * m4/getcwd-path-max.m4: Likewise.
51203         * m4/getdate.m4: Likewise.
51204         * m4/getdomainname.m4: Likewise.
51205         * m4/getgroups.m4: Likewise.
51206         * m4/gethostname.m4: Likewise.
51207         * m4/gethrxtime.m4: Likewise.
51208         * m4/getline.m4: Likewise.
51209         * m4/getloadavg.m4: Likewise.
51210         * m4/getndelim2.m4: Likewise.
51211         * m4/getpass.m4: Likewise.
51212         * m4/gettext.m4: Likewise.
51213         * m4/gettime.m4: Likewise.
51214         * m4/gettimeofday.m4: Likewise.
51215         * m4/gnulib-common.m4: Likewise.
51216         * m4/group-member.m4: Likewise.
51217         * m4/host-os.m4: Likewise.
51218         * m4/iconv.m4: Likewise.
51219         * m4/iconv_open.m4: Likewise.
51220         * m4/inet_ntop.m4: Likewise.
51221         * m4/inet_pton.m4: Likewise.
51222         * m4/inline.m4: Likewise.
51223         * m4/intldir.m4: Likewise.
51224         * m4/intlmacosx.m4: Likewise.
51225         * m4/intmax.m4: Likewise.
51226         * m4/intmax_t.m4: Likewise.
51227         * m4/inttypes.m4: Likewise.
51228         * m4/inttypes_h.m4: Likewise.
51229         * m4/inttypes-pri.m4: Likewise.
51230         * m4/isapipe.m4: Likewise.
51231         * m4/isnand.m4: Likewise.
51232         * m4/isnanf.m4: Likewise.
51233         * m4/isnanl.m4: Likewise.
51234         * m4/javacomp.m4: Likewise.
51235         * m4/javaexec.m4: Likewise.
51236         * m4/jm-winsz1.m4: Likewise.
51237         * m4/jm-winsz2.m4: Likewise.
51238         * m4/lchown.m4: Likewise.
51239         * m4/lcmessage.m4: Likewise.
51240         * m4/ldexpl.m4: Likewise.
51241         * m4/lib-ld.m4: Likewise.
51242         * m4/lib-link.m4: Likewise.
51243         * m4/libsigsegv.m4: Likewise.
51244         * m4/link-follow.m4: Likewise.
51245         * m4/localcharset.m4: Likewise.
51246         * m4/locale-fr.m4: Likewise.
51247         * m4/locale-ja.m4: Likewise.
51248         * m4/locale-tr.m4: Likewise.
51249         * m4/locale-zh.m4: Likewise.
51250         * m4/lock.m4: Likewise.
51251         * m4/longlong.m4: Likewise.
51252         * m4/ls-mntd-fs.m4: Likewise.
51253         * m4/lstat.m4: Likewise.
51254         * m4/malloc.m4: Likewise.
51255         * m4/mathl.m4: Likewise.
51256         * m4/mbrtowc.m4: Likewise.
51257         * m4/mbstate_t.m4: Likewise.
51258         * m4/mbswidth.m4: Likewise.
51259         * m4/memchr.m4: Likewise.
51260         * m4/memcmp.m4: Likewise.
51261         * m4/memcpy.m4: Likewise.
51262         * m4/memmem.m4: Likewise.
51263         * m4/memmove.m4: Likewise.
51264         * m4/mempcpy.m4: Likewise.
51265         * m4/memrchr.m4: Likewise.
51266         * m4/memset.m4: Likewise.
51267         * m4/minmax.m4: Likewise.
51268         * m4/mkdir-slash.m4: Likewise.
51269         * m4/mkdtemp.m4: Likewise.
51270         * m4/mktime.m4: Likewise.
51271         * m4/mmap-anon.m4: Likewise.
51272         * m4/mountlist.m4: Likewise.
51273         * m4/nanosleep.m4: Likewise.
51274         * m4/nls.m4: Likewise.
51275         * m4/nocrash.m4: Likewise.
51276         * m4/open.m4: Likewise.
51277         * m4/openat.m4: Likewise.
51278         * m4/openmp.m4: Likewise.
51279         * m4/pathmax.m4: Likewise.
51280         * m4/perl.m4: Likewise.
51281         * m4/physmem.m4: Likewise.
51282         * m4/pipe.m4: Likewise.
51283         * m4/po.m4: Likewise.
51284         * m4/poll.m4: Likewise.
51285         * m4/posixtm.m4: Likewise.
51286         * m4/posixver.m4: Likewise.
51287         * m4/printf-frexp.m4: Likewise.
51288         * m4/printf-frexpl.m4: Likewise.
51289         * m4/printf-posix.m4: Likewise.
51290         * m4/printf-posix-rpl.m4: Likewise.
51291         * m4/printf.m4: Likewise.
51292         * m4/progtest.m4: Likewise.
51293         * m4/putenv.m4: Likewise.
51294         * m4/readline.m4: Likewise.
51295         * m4/readlink.m4: Likewise.
51296         * m4/readutmp.m4: Likewise.
51297         * m4/realloc.m4: Likewise.
51298         * m4/regex.m4: Likewise.
51299         * m4/relocatable.m4: Likewise.
51300         * m4/relocatable-lib.m4: Likewise.
51301         * m4/rename-dest-slash.m4: Likewise.
51302         * m4/rename.m4: Likewise.
51303         * m4/rmdir-errno.m4: Likewise.
51304         * m4/rmdir.m4: Likewise.
51305         * m4/roundf.m4: Likewise.
51306         * m4/roundl.m4: Likewise.
51307         * m4/rpmatch.m4: Likewise.
51308         * m4/save-cwd.m4: Likewise.
51309         * m4/selinux-selinux-h.m4: Likewise.
51310         * m4/setenv.m4: Likewise.
51311         * m4/settime.m4: Likewise.
51312         * m4/sig2str.m4: Likewise.
51313         * m4/sig_atomic_t.m4: Likewise.
51314         * m4/signalblocking.m4: Likewise.
51315         * m4/signbit.m4: Likewise.
51316         * m4/sigpipe.m4: Likewise.
51317         * m4/sockets.m4: Likewise.
51318         * m4/sockpfaf.m4: Likewise.
51319         * m4/st_dm_mode.m4: Likewise.
51320         * m4/stat-time.m4: Likewise.
51321         * m4/stdbool.m4: Likewise.
51322         * m4/stdint.m4: Likewise.
51323         * m4/stdint_h.m4: Likewise.
51324         * m4/stpcpy.m4: Likewise.
51325         * m4/stpncpy.m4: Likewise.
51326         * m4/strcase.m4: Likewise.
51327         * m4/strchrnul.m4: Likewise.
51328         * m4/strcspn.m4: Likewise.
51329         * m4/strdup.m4: Likewise.
51330         * m4/strftime.m4: Likewise.
51331         * m4/strndup.m4: Likewise.
51332         * m4/strnlen.m4: Likewise.
51333         * m4/strpbrk.m4: Likewise.
51334         * m4/strptime.m4: Likewise.
51335         * m4/strsep.m4: Likewise.
51336         * m4/strtod.m4: Likewise.
51337         * m4/strtoimax.m4: Likewise.
51338         * m4/strtok_r.m4: Likewise.
51339         * m4/strtol.m4: Likewise.
51340         * m4/strtoll.m4: Likewise.
51341         * m4/strtoul.m4: Likewise.
51342         * m4/strtoull.m4: Likewise.
51343         * m4/strtoumax.m4: Likewise.
51344         * m4/strverscmp.m4: Likewise.
51345         * m4/threadlib.m4: Likewise.
51346         * m4/timegm.m4: Likewise.
51347         * m4/tm_gmtoff.m4: Likewise.
51348         * m4/tmpdir.m4: Likewise.
51349         * m4/tmpfile.m4: Likewise.
51350         * m4/tzset.m4: Likewise.
51351         * m4/uintmax_t.m4: Likewise.
51352         * m4/unlinkdir.m4: Likewise.
51353         * m4/unlocked-io.m4: Likewise.
51354         * m4/uptime.m4: Likewise.
51355         * m4/userspec.m4: Likewise.
51356         * m4/utimbuf.m4: Likewise.
51357         * m4/utime.m4: Likewise.
51358         * m4/utimes-null.m4: Likewise.
51359         * m4/utimes.m4: Likewise.
51360         * m4/vararrays.m4: Likewise.
51361         * m4/vasnprintf.m4: Likewise.
51362         * m4/vfprintf-posix.m4: Likewise.
51363         * m4/vprintf-posix.m4: Likewise.
51364         * m4/wait-process.m4: Likewise.
51365         * m4/wchar_t.m4: Likewise.
51366         * m4/wint_t.m4: Likewise.
51367         * m4/write-any-file.m4: Likewise.
51368         * m4/yield.m4: Likewise.
51369
51370 2009-01-13  Bruno Haible  <bruno@clisp.org>
51371
51372         Avoid test-copy-file.sh failures when ACL support insufficient.
51373         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51374         TESTS_ENVIRONMENT.
51375         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51376         Reported by Jim Meyering.
51377
51378 2009-01-13  Bruno Haible  <bruno@clisp.org>
51379
51380         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51381         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51382         * modules/unistdio/u8-printf-parse (Files): Likewise.
51383         * modules/unistdio/u32-printf-parse (Files): Likewise.
51384         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51385
51386 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51387
51388         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51389         and m4/inttypes_h.m4 too.
51390
51391 2009-01-12  Eric Blake  <ebb9@byu.net>
51392
51393         tests: IRIX 6.2 cc can't compile -0.0 into .data
51394         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51395         rather than at compile-time.
51396         * tests/test-floorl.c (minus_zero): Likewise.
51397         * tests/test-frexpl.c (minus_zero): Likewise.
51398         * tests/test-isnan.c (minus_zerol): Likewise.
51399         * tests/test-isnanl.h (minus_zero): Likewise.
51400         * tests/test-ldexpl.c (minus_zero): Likewise.
51401         * tests/test-roundl.c (minus_zero): Likewise.
51402         * tests/test-signbit.c (minus_zerol): Likewise.
51403         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51404         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51405         * tests/test-truncl.c (minus_zero): Likewise.
51406         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51407         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51408         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51409
51410 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51411
51412         regex: fix glibc bug 9697
51413         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51414         handling.
51415
51416 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51417
51418         regex: fix glibc bug 697
51419         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51420         being NULL also if there are no backreferences.
51421
51422 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51423
51424         regex: merge glibc changes
51425         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51426         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51427         re_string_skip_chars, re_string_reconstruct): Likewise.
51428         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51429
51430 2009-01-07  Jim Meyering  <meyering@redhat.com>
51431
51432         poll: filter through cppi
51433         * lib/poll.c: Indent cpp directives to reflect nesting.
51434
51435 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51436
51437         poll: don't return uninitialized
51438         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51439
51440 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51441
51442         avoid compile failure on AIX 6.1
51443         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51444         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51445
51446 2009-01-04  Jim Meyering  <meyering@redhat.com>
51447
51448         remove duplicate inclusion of <stdio.h>
51449         * tests/test-fprintf-posix.c: Likewise.
51450         * tests/test-printf-posix.c: Likewise.
51451         * tests/test-snprintf-posix.c: Likewise.
51452         * tests/test-sprintf-posix.c: Likewise.
51453         * tests/test-vasprintf-posix.c: Likewise.
51454         * tests/test-vfprintf-posix.c: Likewise.
51455         * tests/test-vprintf-posix.c: Likewise.
51456         * tests/test-vsnprintf-posix.c: Likewise.
51457         * tests/test-vsprintf-posix.c: Likewise.
51458
51459 2009-01-03  Jim Meyering  <meyering@redhat.com>
51460
51461         gnulib-tool: fix sed-based filtering
51462         * gnulib-tool (func_filter_filelist): Remove extra backslash
51463         in sed_fff_filter definition.
51464
51465 2009-01-02  Jim Meyering  <meyering@redhat.com>
51466
51467         strftime: avoid compilation failure on Solaris 2.6
51468         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51469         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51470         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51471         be available.  Reported by Tom G. Christensen.  Details in
51472         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51473
51474 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51475             Bruno Haible  <bruno@clisp.org>
51476
51477         Speed up gnulib-tool by doing more string processing through shell
51478         built-ins.
51479         * gnulib-tool (fast_func_append): New variable.
51480         (func_remove_prefix, func_remove_suffix): New functions.
51481         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51482         (func_filter_filelist): New function.
51483         (func_get_dependencies): Use func_remove_suffix instead of sed.
51484         (func_get_automake_snippet): Use func_filter_filelist instead of a
51485         subshell and sed invocation.
51486
51487 2009-01-01  Bruno Haible  <bruno@clisp.org>
51488
51489         Fix a security bug.
51490         * gnulib-tool (func_import, import, update): Don't allow the characters
51491         '"', '$', '`', '\' in macro arguments that become part of commands that
51492         are evaluated.
51493
51494 2009-01-01  Bruno Haible  <bruno@clisp.org>
51495
51496         * gnulib-tool (func_reset_sigpipe): Add more comments.
51497
51498 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51499
51500         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51501         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51502         already know the answer.
51503
51504 2009-01-01  Jim Meyering  <meyering@redhat.com>
51505
51506         * lib/version-etc.c (version_etc_va): Update copyright year.
51507
51508 2008-12-30  Bruno Haible  <bruno@clisp.org>
51509
51510         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51511         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51512         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51513
51514 2008-12-29  Eric Blake  <ebb9@byu.net>
51515
51516         multiarch: avoid autoconf AC_REQUIRE bug
51517         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51518         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51519         2.63 and older.
51520         Reported by Bruno Haible, and analyzed in
51521         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51522
51523 2008-12-29  Bruno Haible  <bruno@clisp.org>
51524
51525         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51526         files in subdirectories correctly.
51527         Reported by Ralf Wildenhues.
51528
51529 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51530
51531         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51532         rather than 'join FILE -', for Solaris join.
51533
51534 2008-12-29  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51537         quoting.
51538         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51539         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51540         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51541         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51542         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51543         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51544         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51545         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51546         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51547         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51548         * m4/nls.m4 (AM_NLS): Likewise.
51549         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51550         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51551         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51552         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51553         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51554         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51555         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51556         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51557         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51558         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51559         * m4/xsize.m4 (gl_XSIZE): Likewise.
51560         Suggested by Jim Meyering.
51561
51562 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51563
51564         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51565         * lib/parse-duration.c: use a switch instead of cascading if's.
51566
51567 2008-12-29  Eric Blake  <ebb9@byu.net>
51568
51569         wchar.h: supply WEOF on Irix 5.3
51570         * lib/wchar.in.h (wint_t): Also supply WEOF.
51571         * lib/wctype.in.h (wint_t): Likewise.
51572         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51573         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51574         Reported by Tom G. Christensen.
51575
51576 2008-12-26  Bruno Haible  <bruno@clisp.org>
51577
51578         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51579         i486, i586, i686.
51580
51581 2008-12-26  Bruno Haible  <bruno@clisp.org>
51582
51583         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51584
51585 2008-12-26  Bruno Haible  <bruno@clisp.org>
51586
51587         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51588         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51589         not __STDC_CONSTANT_MACROS.
51590         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51591
51592 2008-12-25  Bruno Haible  <bruno@clisp.org>
51593
51594         Add support for universal builds to vasnprintf.
51595         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51596         universal builds, guess no.
51597         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51598         * modules/vasprintf-posix (Depends-on): Likewise.
51599         * modules/fprintf-posix (Depends-on): Likewise.
51600         * modules/vfprintf-posix (Depends-on): Likewise.
51601         * modules/snprintf-posix (Depends-on): Likewise.
51602         * modules/vsnprintf-posix (Depends-on): Likewise.
51603         * modules/sprintf-posix (Depends-on): Likewise.
51604         * modules/vsprintf-posix (Depends-on): Likewise.
51605         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51606         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51607         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51608         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51609         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51610         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51611         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51612
51613         Add support for universal builds to <inttypes.h>.
51614         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51615         _SCNu64_PREFIX): In Apple
51616         universal builds, define directly, using _LP64.
51617         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51618         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51619         * modules/inttypes (Depends-on): Add multiarch.
51620         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51621
51622         Add support for universal builds to <stdint.h>.
51623         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51624         universal builds, define directly, using _LP64.
51625         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51626         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51627         and size_t.
51628         * modules/stdint (Depends-on): Add multiarch.
51629         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51630
51631         New module 'multiarch'.
51632         * modules/multiarch: New file.
51633         * m4/multiarch.m4: New file.
51634
51635 2008-12-25  Bruno Haible  <bruno@clisp.org>
51636
51637         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51638
51639 2008-12-25  Bruno Haible  <bruno@clisp.org>
51640
51641         * modules/btowc (License): Relicense under LGPLv2+.
51642         * modules/mbsinit (License): Likewise.
51643         * modules/mbrtowc (License): Likewise.
51644         * modules/wcrtomb (License): Likewise.
51645         * modules/streq (License): Likewise.
51646         Reported by David Lutterkort <lutter@redhat.com>.
51647
51648 2008-12-23  Bruno Haible  <bruno@clisp.org>
51649
51650         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51651
51652 2008-12-23  Bruno Haible  <bruno@clisp.org>
51653
51654         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51655         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51656         GETADDRINFO_LIB, not in LIBS.
51657         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51658         * modules/canon-host (Link): Likewise.
51659         * NEWS: Mention the change.
51660         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51661         GETADDRINFO_LIB.
51662
51663 2008-12-22  Bruno Haible  <bruno@clisp.org>
51664
51665         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51666         * doc/posix-functions/iswalpha_l.texi: Likewise.
51667         * doc/posix-functions/iswblank_l.texi: Likewise.
51668         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51669         * doc/posix-functions/iswctype_l.texi: Likewise.
51670         * doc/posix-functions/iswdigit_l.texi: Likewise.
51671         * doc/posix-functions/iswgraph_l.texi: Likewise.
51672         * doc/posix-functions/iswlower_l.texi: Likewise.
51673         * doc/posix-functions/iswprint_l.texi: Likewise.
51674         * doc/posix-functions/iswpunct_l.texi: Likewise.
51675         * doc/posix-functions/iswspace_l.texi: Likewise.
51676         * doc/posix-functions/iswupper_l.texi: Likewise.
51677         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51678         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51679         * doc/posix-functions/open_wmemstream.texi: Likewise.
51680         * doc/posix-functions/swscanf.texi: Likewise.
51681         * doc/posix-functions/towctrans_l.texi: Likewise.
51682         * doc/posix-functions/towlower.texi: Likewise.
51683         * doc/posix-functions/towlower_l.texi: Likewise.
51684         * doc/posix-functions/towupper.texi: Likewise.
51685         * doc/posix-functions/towupper_l.texi: Likewise.
51686         * doc/posix-functions/vfwprintf.texi: Likewise.
51687         * doc/posix-functions/vfwscanf.texi: Likewise.
51688         * doc/posix-functions/vswscanf.texi: Likewise.
51689         * doc/posix-functions/vwprintf.texi: Likewise.
51690         * doc/posix-functions/vwscanf.texi: Likewise.
51691         * doc/posix-functions/wcpcpy.texi: Likewise.
51692         * doc/posix-functions/wcpncpy.texi: Likewise.
51693         * doc/posix-functions/wcscasecmp.texi: Likewise.
51694         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51695         * doc/posix-functions/wcscoll_l.texi: Likewise.
51696         * doc/posix-functions/wcsdup.texi: Likewise.
51697         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51698         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51699         * doc/posix-functions/wcsnlen.texi: Likewise.
51700         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51701         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51702         * doc/posix-functions/wctrans_l.texi: Likewise.
51703         * doc/posix-functions/wctype_l.texi: Likewise.
51704         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51705         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51706         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51707         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51708         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51709         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51710         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51711         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51712         * doc/glibc-functions/wcschrnul.texi: Likewise.
51713         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51714         * doc/glibc-functions/wcstod_l.texi: Likewise.
51715         * doc/glibc-functions/wcstof_l.texi: Likewise.
51716         * doc/glibc-functions/wcstol_l.texi: Likewise.
51717         * doc/glibc-functions/wcstold_l.texi: Likewise.
51718         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51719         * doc/glibc-functions/wcstoq.texi: Likewise.
51720         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51721         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51722         * doc/glibc-functions/wcstouq.texi: Likewise.
51723         * doc/glibc-functions/wmempcpy.texi: Likewise.
51724
51725 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51726             Eric Blake  <ebb9@byu.net>
51727             Paolo Bonzini  <bonzini@gnu.org>
51728             Bruno Haible  <bruno@clisp.org>
51729
51730         Make c-stack work on Haiku.
51731         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51732         (c_stack_action): Use SA_ONSTACK flag.
51733
51734 2008-12-22  Bruno Haible  <bruno@clisp.org>
51735
51736         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51737
51738 2008-12-22  Bruno Haible  <bruno@clisp.org>
51739
51740         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51741         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51742         being overridden.
51743         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51744         New macros.
51745         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51747         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51748         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51749
51750 2008-12-22  Bruno Haible  <bruno@clisp.org>
51751
51752         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51753         from test code.
51754
51755 2008-12-22  Eric Blake  <ebb9@byu.net>
51756
51757         Avoid gcc warnings on cygwin.
51758         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51759         Avoid unused variable.
51760         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51761         Likewise.
51762
51763 2008-12-22  Bruno Haible  <bruno@clisp.org>
51764
51765         Remove HAVE_MBRTOWC conditionals.
51766         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51767         (mbscasecmp): Assume mbrtowc function.
51768         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51769         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51770         * lib/mbschr.c: Include mbuiter.h unconditionally.
51771         (mbschr): Assume mbrtowc function.
51772         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51773         (mbscspn): Assume mbrtowc function.
51774         * lib/mbslen.c: Include mbuiter.h unconditionally.
51775         (mbslen): Assume mbrtowc function.
51776         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51777         (mbsncasecmp): Assume mbrtowc function.
51778         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51779         (mbsnlen): Assume mbrtowc function.
51780         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51781         (mbspbrk): Assume mbrtowc function.
51782         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51783         (mbspcasecmp): Assume mbrtowc function.
51784         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51785         (mbsrchr): Assume mbrtowc function.
51786         * lib/mbssep.c: Include mbuiter.h unconditionally.
51787         (mbssep): Assume mbrtowc function.
51788         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51789         (mbsspn): Assume mbrtowc function.
51790         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51791         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51792         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51793         (mbstok_r): Assume mbrtowc function.
51794         * lib/propername.c: Include mbuiter.h unconditionally.
51795         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51796         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51797         (trim2): Assume mbrtowc function.
51798         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51799         (mbsnwidth): Assume mbrtowc function.
51800         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51801         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51802         fallback definitions.
51803         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51804
51805 2008-12-22  Bruno Haible  <bruno@clisp.org>
51806
51807         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51808
51809 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51810
51811         * modules/regex: Request emulations for the mb*/wc* functions we need.
51812         * m4/regex.m4: Don't look for those functions here.
51813         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51814
51815 2008-12-22  Bruno Haible  <bruno@clisp.org>
51816
51817         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51818
51819 2008-12-21  Bruno Haible  <bruno@clisp.org>
51820
51821         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51822         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51823         (Include): Remove conditionalization.
51824         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51825         (Include): Remove conditionalization.
51826         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51827         (Include): Remove conditionalization.
51828         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51829         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51830         * NEWS: Mention the change.
51831         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51832         via Sergey Poznyakoff <gray@gnu.org.ua>.
51833
51834 2008-12-21  Bruno Haible  <bruno@clisp.org>
51835
51836         * MODULES.html.sh (Extended multibyte and wide character utilities
51837         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51838         wcrtomb, wcsrtombs.
51839         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51840         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51841         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51842         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51843
51844 2008-12-21  Bruno Haible  <bruno@clisp.org>
51845
51846         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51847
51848 2008-12-21  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/wcsnrtombs-tests: New file.
51851         * tests/test-wcsnrtombs1.sh: New file.
51852         * tests/test-wcsnrtombs2.sh: New file.
51853         * tests/test-wcsnrtombs3.sh: New file.
51854         * tests/test-wcsnrtombs4.sh: New file.
51855         * tests/test-wcsnrtombs.c: New file.
51856
51857         New module 'wcsnrtombs'.
51858         * lib/wchar.in.h (wcsnrtombs): New declaration.
51859         * lib/wcsnrtombs.c: New file.
51860         * lib/wcsrtombs-state.c: New file.
51861         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51862         (internal_state): Remove variable.
51863         * m4/wcsnrtombs.m4: New file.
51864         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51865         compilation units.
51866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51867         HAVE_WCSNRTOMBS.
51868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51869         HAVE_WCSNRTOMBS.
51870         * modules/wcsnrtombs: New file.
51871         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51872         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51873
51874 2008-12-21  Bruno Haible  <bruno@clisp.org>
51875
51876         * modules/wcsrtombs-tests: New file.
51877         * tests/test-wcsrtombs1.sh: New file.
51878         * tests/test-wcsrtombs2.sh: New file.
51879         * tests/test-wcsrtombs3.sh: New file.
51880         * tests/test-wcsrtombs4.sh: New file.
51881         * tests/test-wcsrtombs.c: New file.
51882
51883         New module 'wcsrtombs'.
51884         * lib/wchar.in.h (wcsrtombs): New declaration.
51885         * lib/wcsrtombs.c: New file.
51886         * m4/wcsrtombs.m4: New file.
51887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51888         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51890         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51891         * modules/wcsrtombs: New file.
51892         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51893         bugs.
51894
51895 2008-12-21  Bruno Haible  <bruno@clisp.org>
51896
51897         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51898         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51899         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51900         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51901         if not correct.
51902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51903         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51904         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51905         m4/locale-zh.m4, m4/codeset.m4.
51906         * doc/posix-functions/wcrtomb.texi: Document the bug.
51907
51908 2008-12-21  Bruno Haible  <bruno@clisp.org>
51909
51910         Work around a btowc() bug on IRIX 6.5.
51911         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51912         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51913         REPLACE_WTOBC if not.
51914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51915         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51916         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51917
51918 2008-12-21  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/wcrtomb-tests: New file.
51921         * tests/test-wcrtomb.sh: New file.
51922         * tests/test-wcrtomb.c: New file.
51923
51924         New module 'wcrtomb'.
51925         * lib/wchar.in.h (wcrtomb): New declaration.
51926         * lib/wcrtomb.c: New file.
51927         * m4/wcrtomb.m4: New file.
51928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51929         HAVE_WCRTOMB.
51930         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51931         HAVE_WCRTOMB.
51932         * modules/wcrtomb: New file.
51933         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51934
51935 2008-12-21  Bruno Haible  <bruno@clisp.org>
51936
51937         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51938         * modules/mbsrtowcs (Files): Likewise.
51939         * modules/wctob (Files): Likewise.
51940         * modules/c-strcase-tests (Files): Likewise.
51941         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51942         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51943         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51944         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51945         * modules/vasnprintf-posix-tests (Files): Likewise.
51946
51947 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51948
51949         gitlog-to-changelog: pass all command-line arguments to git-log
51950         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51951         it is sometimes convenient to filter the commits in various ways.
51952         gitlog-to-changelog only allows --since to specify a start date,
51953         but git-log itself supports many other filtering mechanisms.
51954         At the moment, I want to filter by branch name.  Rather than
51955         adding a --branch option to gitlog-to-changelog, it seems more
51956         flexible to simply pass all options directly to git-log and let
51957         git do the work.  Notice that this effectively makes --since a
51958         redundant option for gitlog-to-changelog, but removing it would
51959         require current usage to change since calls would then require
51960         an additional '--'.
51961
51962 2008-12-21  Bruno Haible  <bruno@clisp.org>
51963
51964         * modules/mbsnrtowcs-tests: New file.
51965         * tests/test-mbsnrtowcs1.sh: New file.
51966         * tests/test-mbsnrtowcs2.sh: New file.
51967         * tests/test-mbsnrtowcs3.sh: New file.
51968         * tests/test-mbsnrtowcs4.sh: New file.
51969         * tests/test-mbsnrtowcs.c: New file.
51970
51971         New module 'mbsnrtowcs'.
51972         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51973         * lib/mbsnrtowcs.c: New file.
51974         * lib/mbsrtowcs-state.c: New file.
51975         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51976         (internal_state): Remove variable.
51977         * m4/mbsnrtowcs.m4: New file.
51978         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51979         compilation units.
51980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51981         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51982         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51983         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51984         * modules/mbsnrtowcs: New file.
51985         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51986         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51987         portability problem.
51988
51989 2008-12-21  Bruno Haible  <bruno@clisp.org>
51990
51991         Work around mbsrtowcs bug.
51992         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51993         (gl_FUNC_MBSRTOWCS): Invoke it.
51994         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51995         m4/locale-zh.m4.
51996         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51997
51998 2008-12-21  Bruno Haible  <bruno@clisp.org>
51999
52000         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52001
52002 2008-12-21  Bruno Haible  <bruno@clisp.org>
52003
52004         Update doc for AIX.
52005         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52006         16-bit wchar_t type.
52007         * doc/posix-functions/btowc.texi: Likewise.
52008         * doc/posix-functions/fgetwc.texi: Likewise.
52009         * doc/posix-functions/fgetws.texi: Likewise.
52010         * doc/posix-functions/fputwc.texi: Likewise.
52011         * doc/posix-functions/fputws.texi: Likewise.
52012         * doc/posix-functions/fwide.texi: Likewise.
52013         * doc/posix-functions/fwprintf.texi: Likewise.
52014         * doc/posix-functions/fwscanf.texi: Likewise.
52015         * doc/posix-functions/getwchar.texi: Likewise.
52016         * doc/posix-functions/getwc.texi: Likewise.
52017         * doc/posix-functions/iswalnum.texi: Likewise.
52018         * doc/posix-functions/iswalpha.texi: Likewise.
52019         * doc/posix-functions/iswblank.texi: Likewise.
52020         * doc/posix-functions/iswcntrl.texi: Likewise.
52021         * doc/posix-functions/iswctype.texi: Likewise.
52022         * doc/posix-functions/iswdigit.texi: Likewise.
52023         * doc/posix-functions/iswgraph.texi: Likewise.
52024         * doc/posix-functions/iswlower.texi: Likewise.
52025         * doc/posix-functions/iswprint.texi: Likewise.
52026         * doc/posix-functions/iswpunct.texi: Likewise.
52027         * doc/posix-functions/iswspace.texi: Likewise.
52028         * doc/posix-functions/iswupper.texi: Likewise.
52029         * doc/posix-functions/iswxdigit.texi: Likewise.
52030         * doc/posix-functions/mbrtowc.texi: Likewise.
52031         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52032         * doc/posix-functions/mbstowcs.texi: Likewise.
52033         * doc/posix-functions/mbtowc.texi: Likewise.
52034         * doc/posix-functions/putwchar.texi: Likewise.
52035         * doc/posix-functions/putwc.texi: Likewise.
52036         * doc/posix-functions/swprintf.texi: Likewise.
52037         * doc/posix-functions/tolower.texi: Likewise.
52038         * doc/posix-functions/toupper.texi: Likewise.
52039         * doc/posix-functions/towctrans.texi: Likewise.
52040         * doc/posix-functions/ungetwc.texi: Likewise.
52041         * doc/posix-functions/vswprintf.texi: Likewise.
52042         * doc/posix-functions/wcrtomb.texi: Likewise.
52043         * doc/posix-functions/wcscat.texi: Likewise.
52044         * doc/posix-functions/wcschr.texi: Likewise.
52045         * doc/posix-functions/wcscmp.texi: Likewise.
52046         * doc/posix-functions/wcscoll.texi: Likewise.
52047         * doc/posix-functions/wcscpy.texi: Likewise.
52048         * doc/posix-functions/wcscspn.texi: Likewise.
52049         * doc/posix-functions/wcsftime.texi: Likewise.
52050         * doc/posix-functions/wcslen.texi: Likewise.
52051         * doc/posix-functions/wcsncat.texi: Likewise.
52052         * doc/posix-functions/wcsncmp.texi: Likewise.
52053         * doc/posix-functions/wcsncpy.texi: Likewise.
52054         * doc/posix-functions/wcspbrk.texi: Likewise.
52055         * doc/posix-functions/wcsrchr.texi: Likewise.
52056         * doc/posix-functions/wcsrtombs.texi: Likewise.
52057         * doc/posix-functions/wcsspn.texi: Likewise.
52058         * doc/posix-functions/wcsstr.texi: Likewise.
52059         * doc/posix-functions/wcstod.texi: Likewise.
52060         * doc/posix-functions/wcstof.texi: Likewise.
52061         * doc/posix-functions/wcstoimax.texi: Likewise.
52062         * doc/posix-functions/wcstok.texi: Likewise.
52063         * doc/posix-functions/wcstold.texi: Likewise.
52064         * doc/posix-functions/wcstoll.texi: Likewise.
52065         * doc/posix-functions/wcstol.texi: Likewise.
52066         * doc/posix-functions/wcstombs.texi: Likewise.
52067         * doc/posix-functions/wcstoull.texi: Likewise.
52068         * doc/posix-functions/wcstoul.texi: Likewise.
52069         * doc/posix-functions/wcstoumax.texi: Likewise.
52070         * doc/posix-functions/wcswidth.texi: Likewise.
52071         * doc/posix-functions/wcsxfrm.texi: Likewise.
52072         * doc/posix-functions/wctob.texi: Likewise.
52073         * doc/posix-functions/wctomb.texi: Likewise.
52074         * doc/posix-functions/wctrans.texi: Likewise.
52075         * doc/posix-functions/wctype.texi: Likewise.
52076         * doc/posix-functions/wcwidth.texi: Likewise.
52077         * doc/posix-functions/wmemchr.texi: Likewise.
52078         * doc/posix-functions/wmemcmp.texi: Likewise.
52079         * doc/posix-functions/wmemcpy.texi: Likewise.
52080         * doc/posix-functions/wmemmove.texi: Likewise.
52081         * doc/posix-functions/wmemset.texi: Likewise.
52082         * doc/posix-functions/wprintf.texi: Likewise.
52083         * doc/posix-functions/wscanf.texi: Likewise.
52084
52085 2008-12-21  Bruno Haible  <bruno@clisp.org>
52086
52087         Update doc for HP-UX 11.11.
52088         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52089         in HP-UX version 11.00, not in all versions of HP-UX 11.
52090         * doc/posix-functions/fwide.texi: Likewise.
52091         * doc/posix-functions/fwprintf.texi: Likewise.
52092         * doc/posix-functions/fwscanf.texi: Likewise.
52093         * doc/posix-functions/inet_ntop.texi: Likewise.
52094         * doc/posix-functions/inet_pton.texi: Likewise.
52095         * doc/posix-functions/mbrlen.texi: Likewise.
52096         * doc/posix-functions/mbrtowc.texi: Likewise.
52097         * doc/posix-functions/mbsinit.texi: Likewise.
52098         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52099         * doc/posix-functions/swprintf.texi: Likewise.
52100         * doc/posix-functions/swscanf.texi: Likewise.
52101         * doc/posix-functions/towctrans.texi: Likewise.
52102         * doc/posix-functions/vfwprintf.texi: Likewise.
52103         * doc/posix-functions/vswprintf.texi: Likewise.
52104         * doc/posix-functions/vwprintf.texi: Likewise.
52105         * doc/posix-functions/wcrtomb.texi: Likewise.
52106         * doc/posix-functions/wcsrtombs.texi: Likewise.
52107         * doc/posix-functions/wcsstr.texi: Likewise.
52108         * doc/posix-functions/wctob.texi: Likewise.
52109         * doc/posix-functions/wctrans.texi: Likewise.
52110         * doc/posix-functions/wmemchr.texi: Likewise.
52111         * doc/posix-functions/wmemcmp.texi: Likewise.
52112         * doc/posix-functions/wmemcpy.texi: Likewise.
52113         * doc/posix-functions/wmemmove.texi: Likewise.
52114         * doc/posix-functions/wmemset.texi: Likewise.
52115         * doc/posix-functions/wprintf.texi: Likewise.
52116         * doc/posix-functions/wscanf.texi: Likewise.
52117
52118 2008-12-21  Bruno Haible  <bruno@clisp.org>
52119
52120         Work around a portability problem.
52121         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52122         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52123
52124 2008-12-20  Bruno Haible  <bruno@clisp.org>
52125
52126         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52127         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52128         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52130         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52131
52132         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52133         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52134         set.
52135         (GNULIB_defined_mbstate_t): New macro.
52136         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52137         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52138         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52139         reuses the system's mbrtowc function but works around the bugs.
52140         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52141         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52142         macros.
52143         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52144         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52145         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52146         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52147         REPLACE_MBSINIT if mbsinit needs to be overridden.
52148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52149         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52150         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52151         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52152         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52153         m4/locale-zh.m4.
52154         (Depends): Add mbsinit.
52155         * modules/mbsinit (Depends): Add mbrtowc.
52156         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52157
52158 2008-12-20  Bruno Haible  <bruno@clisp.org>
52159
52160         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52161         so that there are no conversion errors on AIX.
52162         * tests/test-mbsrtowcs.c (main): LIkewise.
52163
52164 2008-12-20  Bruno Haible  <bruno@clisp.org>
52165
52166         Work around wctob bug on Solaris <= 9.
52167         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52168         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52170         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52171         * modules/wctob (Files): Add m4/locale-fr.m4.
52172         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52173
52174 2008-12-20  Bruno Haible  <bruno@clisp.org>
52175
52176         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52177         /dev/null.
52178         * tests/test-select-in.sh: Likewise.
52179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52180
52181 2008-12-20  Bruno Haible  <bruno@clisp.org>
52182
52183         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52184         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52185         Cygwin 1.5.x.
52186
52187 2008-12-20  Bruno Haible  <bruno@clisp.org>
52188
52189         Ensure mbstate_t is defined on HP-UX 11.11.
52190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52191         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52192         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52193         AC_USE_SYSTEM_EXTENSIONS.
52194         * modules/fnmatch (Depends-on): Add extensions.
52195         * modules/mbrlen (Depends-on): Likewise.
52196         * modules/mbrtowc (Depends-on): Likewise.
52197         * modules/mbsinit (Depends-on): Likewise.
52198         * modules/mbsrtowcs (Depends-on): Likewise.
52199         * modules/mbswidth (Depends-on): Likewise.
52200         * modules/quotearg (Depends-on): Likewise.
52201         * modules/strftime (Depends-on): Likewise.
52202
52203 2008-12-20  Bruno Haible  <bruno@clisp.org>
52204
52205         Ensure wctob is declared on IRIX 6.5.
52206         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52207         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52208         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52210         of HAVE_WCTOB.
52211         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52212         HAVE_WCTOB.
52213         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52214
52215 2008-12-19  Bruno Haible  <bruno@clisp.org>
52216
52217         * modules/mbsrtowcs-tests: New file.
52218         * tests/test-mbsrtowcs1.sh: New file.
52219         * tests/test-mbsrtowcs2.sh: New file.
52220         * tests/test-mbsrtowcs3.sh: New file.
52221         * tests/test-mbsrtowcs4.sh: New file.
52222         * tests/test-mbsrtowcs.c: New file.
52223
52224         New module 'mbsrtowcs'.
52225         * lib/wchar.in.h (mbsrtowcs): New declaration.
52226         * lib/mbsrtowcs.c: New file.
52227         * m4/mbsrtowcs.m4: New file.
52228         * modules/mbsrtowcs: New file.
52229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52230         HAVE_MBSRTOWCS.
52231         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52232         HAVE_MBSRTOWCS.
52233         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52234
52235 2008-12-19  Bruno Haible  <bruno@clisp.org>
52236
52237         New module 'mbrlen'.
52238         * lib/wchar.in.h (mbrlen): New declaration.
52239         * lib/mbrlen.c: New file.
52240         * m4/mbrlen.m4: New file.
52241         * modules/mbrlen: New file.
52242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52243         HAVE_MBRLEN.
52244         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52245         HAVE_MBRLEN.
52246         * doc/posix-functions/mbrlen.texi: Document the new module.
52247
52248 2008-12-19  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52251         * modules/mbrtowc (Depends-on): Add verify.
52252         Suggested by Paul Eggert.
52253
52254 2008-12-18  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/mbsinit-tests: New file.
52257         * tests/test-mbsinit.sh: New file.
52258         * tests/test-mbsinit.c: New file.
52259
52260 2008-12-18  Bruno Haible  <bruno@clisp.org>
52261
52262         * modules/mbrtowc-tests: New file.
52263         * tests/test-mbrtowc1.sh: New file.
52264         * tests/test-mbrtowc2.sh: New file.
52265         * tests/test-mbrtowc3.sh: New file.
52266         * tests/test-mbrtowc4.sh: New file.
52267         * tests/test-mbrtowc.c: New file.
52268
52269         New module 'mbrtowc'.
52270         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52271         mbsinit and mbrtowc.
52272         (mbrtowc): New declaration.
52273         * lib/mbrtowc.c: New file.
52274         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52275         * modules/mbrtowc: New file.
52276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52277         HAVE_MBRTOWC.
52278         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52279         HAVE_MBRTOWC.
52280         * doc/posix-functions/mbrtowc.texi: Document the new module.
52281
52282 2008-12-18  Bruno Haible  <bruno@clisp.org>
52283
52284         New module 'wctob'.
52285         * lib/wchar.in.h (wctob): New declaration.
52286         * lib/wctob.c: New file.
52287         * m4/wctob.m4: New file.
52288         * modules/wctob: New file.
52289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52290         HAVE_WCTOB.
52291         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52292         * doc/posix-functions/wctob.texi: Document the new module.
52293
52294 2008-12-18  Bruno Haible  <bruno@clisp.org>
52295
52296         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52297         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52298
52299 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52300
52301         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52302         G. Christensen" <tgc@jupiterrise.com>.
52303
52304         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52305         G. Christensen" <tgc@jupiterrise.com>.
52306
52307         * lib/flock.c: Need to include string.h.  Reported by "Tom
52308         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52309         <ebb9@byu.net>.
52310
52311 2008-12-18  Bruno Haible  <bruno@clisp.org>
52312
52313         * m4/locale-ja.m4: New file, from GNU gettext.
52314
52315 2008-12-17  Bruno Haible  <bruno@clisp.org>
52316
52317         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52318         Suggested by Eric Blake.
52319
52320 2008-12-17  Bruno Haible  <bruno@clisp.org>
52321
52322         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52323
52324 2008-12-17  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52327         * modules/mbsinit (Depends-on): Add verify.
52328         Suggested by Paul Eggert.
52329
52330 2008-12-17  Bruno Haible  <bruno@clisp.org>
52331
52332         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52333         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52334         gl_FUNC_MBRTOWC.
52335         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52336         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52337         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52338         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52339         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52340         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52341         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52342         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52343         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52344         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52345         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52346         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52347         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52348         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52349         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52350         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52351         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52352         * modules/trim (configure.ac): Likewise.
52353
52354 2008-12-17  Bruno Haible  <bruno@clisp.org>
52355
52356         * modules/btowc-tests: New file.
52357         * tests/test-btowc1.sh: New file.
52358         * tests/test-btowc2.sh: New file.
52359         * tests/test-btowc.c: New file.
52360
52361         New module 'btowc'.
52362         * lib/wchar.in.h (btowc): New declaration.
52363         * lib/btowc.c: New file.
52364         * m4/btowc.m4: New file.
52365         * modules/btowc: New file.
52366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52367         HAVE_BTOWC.
52368         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52369         * doc/posix-functions/btowc.texi: Document the new module.
52370
52371 2008-12-17  Bruno Haible  <bruno@clisp.org>
52372
52373         New module 'mbsinit'.
52374         * lib/wchar.in.h (mbsinit): New declaration.
52375         * lib/mbsinit.c: New file.
52376         * m4/mbsinit.m4: New file.
52377         * modules/mbsinit: New file.
52378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52379         HAVE_MBSINIT.
52380         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52381         HAVE_MBSINIT.
52382         * doc/posix-functions/mbsinit.texi: Document the new module.
52383
52384 2008-12-16  Bruno Haible  <bruno@clisp.org>
52385
52386         * lib/unistd.in.h: Add comment.
52387         * tests/test-environ.c: Don't include <stdlib.h>.
52388
52389 2008-12-16  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/parse-duration.h (parse_duration): Document return value
52392         convention.
52393         * lib/parse-duration.c: Include specification header first. Add
52394         comments.
52395         (_): Remove macro.
52396         (parse_year_month_day, parse_hour_minute_second): Move side effects
52397         outside of strchr call.
52398         (parse_non_iso8601): Move side effects outside of isspace call.
52399         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52400         call.
52401
52402 2008-12-16  Bruno Haible  <bruno@clisp.org>
52403
52404         * tests/test-parse-duration.sh: Produce no output when the test
52405         succeeds.
52406
52407 2008-12-16  Bruno Haible  <bruno@clisp.org>
52408
52409         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52410         expressions.
52411
52412 2008-12-15  Bruno Haible  <bruno@clisp.org>
52413
52414         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52415         * doc/glibc-functions/flistxattr.texi: Likewise.
52416         * doc/glibc-functions/fopencookie.texi: Likewise.
52417         * doc/glibc-functions/fremovexattr.texi: Likewise.
52418         * doc/glibc-functions/fsetxattr.texi: Likewise.
52419         * doc/glibc-functions/getxattr.texi: Likewise.
52420         * doc/glibc-functions/lgetxattr.texi: Likewise.
52421         * doc/glibc-functions/listxattr.texi: Likewise.
52422         * doc/glibc-functions/llistxattr.texi: Likewise.
52423         * doc/glibc-functions/lremovexattr.texi: Likewise.
52424         * doc/glibc-functions/lsetxattr.texi: Likewise.
52425         * doc/glibc-functions/removexattr.texi: Likewise.
52426         * doc/glibc-functions/setxattr.texi: Likewise.
52427         * doc/posix-functions/open_memstream.texi: Likewise.
52428
52429 2008-12-15  Eric Blake  <ebb9@byu.net>
52430
52431         Update doc for cygwin 1.7.
52432         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52433         functions.
52434         * doc/posix-functions/fchmodat.texi: Likewise.
52435         * doc/posix-functions/fchownat.texi: Likewise.
52436         * doc/posix-functions/fdopendir.texi: Likewise.
52437         * doc/posix-functions/fmemopen.texi: Likewise.
52438         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52439         * doc/posix-functions/fstatat.texi: Likewise.
52440         * doc/posix-functions/futimens.texi: Likewise.
52441         * doc/posix-functions/gai_strerror.texi: Likewise.
52442         * doc/posix-functions/getaddrinfo.texi: Likewise.
52443         * doc/posix-functions/getnameinfo.texi: Likewise.
52444         * doc/posix-functions/if_freenameindex.texi: Likewise.
52445         * doc/posix-functions/if_indextoname.texi: Likewise.
52446         * doc/posix-functions/if_nameindex.texi: Likewise.
52447         * doc/posix-functions/if_nametoindex.texi: Likewise.
52448         * doc/posix-functions/insque.texi: Likewise.
52449         * doc/posix-functions/linkat.texi: Likewise.
52450         * doc/posix-functions/llrint.texi: Likewise.
52451         * doc/posix-functions/llrintf.texi: Likewise.
52452         * doc/posix-functions/llrintl.texi: Likewise.
52453         * doc/posix-functions/lockf.texi: Likewise.
52454         * doc/posix-functions/lrintl.texi: Likewise.
52455         * doc/posix-functions/mkdirat.texi: Likewise.
52456         * doc/posix-functions/mkfifoat.texi: Likewise.
52457         * doc/posix-functions/mknodat.texi: Likewise.
52458         * doc/posix-functions/mq_close.texi: Likewise.
52459         * doc/posix-functions/mq_getattr.texi: Likewise.
52460         * doc/posix-functions/mq_notify.texi: Likewise.
52461         * doc/posix-functions/mq_open.texi: Likewise.
52462         * doc/posix-functions/mq_receive.texi: Likewise.
52463         * doc/posix-functions/mq_send.texi: Likewise.
52464         * doc/posix-functions/mq_setattr.texi: Likewise.
52465         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52466         * doc/posix-functions/mq_timedsend.texi: Likewise.
52467         * doc/posix-functions/mq_unlink.texi: Likewise.
52468         * doc/posix-functions/open_memstream.texi: Likewise.
52469         * doc/posix-functions/openat.texi: Likewise.
52470         * doc/posix-functions/posix_fadvise.texi: Likewise.
52471         * doc/posix-functions/posix_fallocate.texi: Likewise.
52472         * doc/posix-functions/posix_madvise.texi: Likewise.
52473         * doc/posix-functions/posix_memalign.texi: Likewise.
52474         * doc/posix-functions/posix_openpt.texi: Likewise.
52475         * doc/posix-functions/readlinkat.texi: Likewise.
52476         * doc/posix-functions/remque.texi: Likewise.
52477         * doc/posix-functions/renameat.texi: Likewise.
52478         * doc/posix-functions/rintl.texi: Likewise.
52479         * doc/posix-functions/sem_unlink.texi: Likewise.
52480         * doc/posix-functions/shm_open.texi: Likewise.
52481         * doc/posix-functions/shm_unlink.texi: Likewise.
52482         * doc/posix-functions/signgam.texi: Likewise.
52483         * doc/posix-functions/sigset.texi: Likewise.
52484         * doc/posix-functions/stpcpy.texi: Likewise.
52485         * doc/posix-functions/stpncpy.texi: Likewise.
52486         * doc/posix-functions/strerror.texi: Likewise.
52487         * doc/posix-functions/strtod.texi: Likewise.
52488         * doc/posix-functions/symlinkat.texi: Likewise.
52489         * doc/posix-functions/unlinkat.texi: Likewise.
52490         * doc/posix-functions/utimensat.texi: Likewise.
52491         * doc/glibc-functions/bindresvport.texi: Likewise.
52492         * doc/glibc-functions/dn_expand.texi: Likewise.
52493         * doc/glibc-functions/exp10.texi: Likewise.
52494         * doc/glibc-functions/exp10f.texi: Likewise.
52495         * doc/glibc-functions/fgetxattr.texi: Likewise.
52496         * doc/glibc-functions/flistxattr.texi: Likewise.
52497         * doc/glibc-functions/fopencookie.texi: Likewise.
52498         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52499         * doc/glibc-functions/fremovexattr.texi: Likewise.
52500         * doc/glibc-functions/fsetxattr.texi: Likewise.
52501         * doc/glibc-functions/getifaddrs.texi: Likewise.
52502         * doc/glibc-functions/getxattr.texi: Likewise.
52503         * doc/glibc-functions/lgetxattr.texi: Likewise.
52504         * doc/glibc-functions/listxattr.texi: Likewise.
52505         * doc/glibc-functions/llistxattr.texi: Likewise.
52506         * doc/glibc-functions/lremovexattr.texi: Likewise.
52507         * doc/glibc-functions/lsetxattr.texi: Likewise.
52508         * doc/glibc-functions/pow10.texi: Likewise.
52509         * doc/glibc-functions/pow10f.texi: Likewise.
52510         * doc/glibc-functions/rcmd_af.texi: Likewise.
52511         * doc/glibc-functions/removexattr.texi: Likewise.
52512         * doc/glibc-functions/res_init.texi: Likewise.
52513         * doc/glibc-functions/res_mkquery.texi: Likewise.
52514         * doc/glibc-functions/res_query.texi: Likewise.
52515         * doc/glibc-functions/res_querydomain.texi: Likewise.
52516         * doc/glibc-functions/res_send.texi: Likewise.
52517         * doc/glibc-functions/rresvport_af.texi: Likewise.
52518         * doc/glibc-functions/setxattr.texi: Likewise.
52519         * doc/glibc-functions/strcasestr.texi: Likewise.
52520
52521 2008-12-15  Bruno Haible  <bruno@clisp.org>
52522
52523         Fix compilation error on OSF/1 4.0.
52524         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52525         <sys/time.h>, simply delegate to the system header.
52526         Reported by Daniel Richard G. <oss@teragram.com>.
52527
52528 2008-12-15  Bruno Haible  <bruno@clisp.org>
52529
52530         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52531         * doc/posix-functions/fchmodat.texi: Likewise.
52532         * doc/posix-functions/fchownat.texi: Likewise.
52533         * doc/posix-functions/fdopendir.texi: Likewise.
52534         * doc/posix-functions/fstatat.texi: Likewise.
52535         * doc/posix-functions/mkdirat.texi: Likewise.
52536         * doc/posix-functions/unlinkat.texi: Likewise.
52537
52538 2008-12-14  Bruno Haible  <bruno@clisp.org>
52539
52540         Update doc for POSIX:2008.
52541         * doc/posix-functions/faccessat.texi: New file.
52542         * doc/posix-functions/fchmodat.texi: New file.
52543         * doc/posix-functions/fchownat.texi: New file.
52544         * doc/posix-functions/fdopendir.texi: New file.
52545         * doc/posix-functions/fstatat.texi: New file.
52546         * doc/posix-functions/futimens.texi: New file.
52547         * doc/posix-functions/linkat.texi: New file.
52548         * doc/posix-functions/mkdirat.texi: New file.
52549         * doc/posix-functions/mkfifoat.texi: New file.
52550         * doc/posix-functions/mknodat.texi: New file.
52551         * doc/posix-functions/open_wmemstream.texi: New file.
52552         * doc/posix-functions/openat.texi: New file.
52553         * doc/posix-functions/psiginfo.texi: New file.
52554         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52555         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52556         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52557         * doc/posix-functions/readlinkat.texi: New file.
52558         * doc/posix-functions/renameat.texi: New file.
52559         * doc/posix-functions/strerror_l.texi: New file.
52560         * doc/posix-functions/symlinkat.texi: New file.
52561         * doc/posix-functions/unlinkat.texi: New file.
52562         * doc/posix-functions/utimensat.texi: New file.
52563         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52564
52565 2008-12-14  Bruno Haible  <bruno@clisp.org>
52566
52567         Update doc for POSIX:2008.
52568         * doc/posix-functions/alphasort.texi: Renamed from
52569         doc/glibc-functions/alphasort.texi.
52570         * doc/posix-functions/dirfd.texi: Renamed from
52571         doc/glibc-functions/dirfd.texi.
52572         * doc/posix-functions/dprintf.texi: Renamed from
52573         doc/glibc-functions/dprintf.texi.
52574         * doc/posix-functions/duplocale.texi: Renamed from
52575         doc/glibc-functions/duplocale.texi.
52576         * doc/posix-functions/fexecve.texi: Renamed from
52577         doc/glibc-functions/fexecve.texi.
52578         * doc/posix-functions/fmemopen.texi: Renamed from
52579         doc/glibc-functions/fmemopen.texi.
52580         * doc/posix-functions/freelocale.texi: Renamed from
52581         doc/glibc-functions/freelocale.texi.
52582         * doc/posix-functions/getdate_err.texi: Renamed from
52583         doc/glibc-functions/getdate_err.texi.
52584         * doc/posix-functions/isalnum_l.texi: Renamed from
52585         doc/glibc-functions/isalnum_l.texi.
52586         * doc/posix-functions/isalpha_l.texi: Renamed from
52587         doc/glibc-functions/isalpha_l.texi.
52588         * doc/posix-functions/isblank_l.texi: Renamed from
52589         doc/glibc-functions/isblank_l.texi.
52590         * doc/posix-functions/iscntrl_l.texi: Renamed from
52591         doc/glibc-functions/iscntrl_l.texi.
52592         * doc/posix-functions/isdigit_l.texi: Renamed from
52593         doc/glibc-functions/isdigit_l.texi.
52594         * doc/posix-functions/isgraph_l.texi: Renamed from
52595         doc/glibc-functions/isgraph_l.texi.
52596         * doc/posix-functions/islower_l.texi: Renamed from
52597         doc/glibc-functions/islower_l.texi.
52598         * doc/posix-functions/isprint_l.texi: Renamed from
52599         doc/glibc-functions/isprint_l.texi.
52600         * doc/posix-functions/ispunct_l.texi: Renamed from
52601         doc/glibc-functions/ispunct_l.texi.
52602         * doc/posix-functions/isspace_l.texi: Renamed from
52603         doc/glibc-functions/isspace_l.texi.
52604         * doc/posix-functions/isupper_l.texi: Renamed from
52605         doc/glibc-functions/isupper_l.texi.
52606         * doc/posix-functions/iswalnum_l.texi: Renamed from
52607         doc/glibc-functions/iswalnum_l.texi.
52608         * doc/posix-functions/iswalpha_l.texi: Renamed from
52609         doc/glibc-functions/iswalpha_l.texi.
52610         * doc/posix-functions/iswblank_l.texi: Renamed from
52611         doc/glibc-functions/iswblank_l.texi.
52612         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52613         doc/glibc-functions/iswcntrl_l.texi.
52614         * doc/posix-functions/iswctype_l.texi: Renamed from
52615         doc/glibc-functions/iswctype_l.texi.
52616         * doc/posix-functions/iswdigit_l.texi: Renamed from
52617         doc/glibc-functions/iswdigit_l.texi.
52618         * doc/posix-functions/iswgraph_l.texi: Renamed from
52619         doc/glibc-functions/iswgraph_l.texi.
52620         * doc/posix-functions/iswlower_l.texi: Renamed from
52621         doc/glibc-functions/iswlower_l.texi.
52622         * doc/posix-functions/iswprint_l.texi: Renamed from
52623         doc/glibc-functions/iswprint_l.texi.
52624         * doc/posix-functions/iswpunct_l.texi: Renamed from
52625         doc/glibc-functions/iswpunct_l.texi.
52626         * doc/posix-functions/iswspace_l.texi: Renamed from
52627         doc/glibc-functions/iswspace_l.texi.
52628         * doc/posix-functions/iswupper_l.texi: Renamed from
52629         doc/glibc-functions/iswupper_l.texi.
52630         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52631         doc/glibc-functions/iswxdigit_l.texi.
52632         * doc/posix-functions/isxdigit_l.texi: Renamed from
52633         doc/glibc-functions/isxdigit_l.texi.
52634         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52635         doc/glibc-functions/mbsnrtowcs.texi.
52636         * doc/posix-functions/mkdtemp.texi: Renamed from
52637         doc/glibc-functions/mkdtemp.texi.
52638         * doc/posix-functions/newlocale.texi: Renamed from
52639         doc/glibc-functions/newlocale.texi.
52640         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52641         doc/glibc-functions/nl_langinfo_l.texi.
52642         * doc/posix-functions/open_memstream.texi: Renamed from
52643         doc/glibc-functions/open_memstream.texi.
52644         * doc/posix-functions/opterr.texi: Renamed from
52645         doc/glibc-functions/opterr.texi.
52646         * doc/posix-functions/optind.texi: Renamed from
52647         doc/glibc-functions/optind.texi.
52648         * doc/posix-functions/optopt.texi: Renamed from
52649         doc/glibc-functions/optopt.texi.
52650         * doc/posix-functions/psignal.texi: Renamed from
52651         doc/glibc-functions/psignal.texi.
52652         * doc/posix-functions/scandir.texi: Renamed from
52653         doc/glibc-functions/scandir.texi.
52654         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52655         doc/glibc-functions/sched_get_priority_min.texi.
52656         * doc/posix-functions/signgam.texi: Renamed from
52657         doc/glibc-functions/signgam.texi.
52658         * doc/posix-functions/stpcpy.texi: Renamed from
52659         doc/glibc-functions/stpcpy.texi.
52660         * doc/posix-functions/stpncpy.texi: Renamed from
52661         doc/glibc-functions/stpncpy.texi.
52662         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52663         doc/glibc-functions/strcasecmp_l.texi.
52664         * doc/posix-functions/strcoll_l.texi: Renamed from
52665         doc/glibc-functions/strcoll_l.texi.
52666         * doc/posix-functions/strfmon_l.texi: Renamed from
52667         doc/glibc-functions/strfmon_l.texi.
52668         * doc/posix-functions/strftime_l.texi: Renamed from
52669         doc/glibc-functions/strftime_l.texi.
52670         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52671         doc/glibc-functions/strncasecmp_l.texi.
52672         * doc/posix-functions/strndup.texi: Renamed from
52673         doc/glibc-functions/strndup.texi.
52674         * doc/posix-functions/strnlen.texi: Renamed from
52675         doc/glibc-functions/strnlen.texi.
52676         * doc/posix-functions/strsignal.texi: Renamed from
52677         doc/glibc-functions/strsignal.texi.
52678         * doc/posix-functions/strxfrm_l.texi: Renamed from
52679         doc/glibc-functions/strxfrm_l.texi.
52680         * doc/posix-functions/timer_gettime.texi: Renamed from
52681         doc/glibc-functions/timer_gettime.texi.
52682         * doc/posix-functions/tolower_l.texi: Renamed from
52683         doc/glibc-functions/tolower_l.texi.
52684         * doc/posix-functions/toupper_l.texi: Renamed from
52685         doc/glibc-functions/toupper_l.texi.
52686         * doc/posix-functions/towctrans_l.texi: Renamed from
52687         doc/glibc-functions/towctrans_l.texi.
52688         * doc/posix-functions/towlower_l.texi: Renamed from
52689         doc/glibc-functions/towlower_l.texi.
52690         * doc/posix-functions/towupper_l.texi: Renamed from
52691         doc/glibc-functions/towupper_l.texi.
52692         * doc/posix-functions/uselocale.texi: Renamed from
52693         doc/glibc-functions/uselocale.texi.
52694         * doc/posix-functions/vdprintf.texi: Renamed from
52695         doc/glibc-functions/vdprintf.texi.
52696         * doc/posix-functions/wcpcpy.texi:
52697         Renamed from doc/glibc-functions/wcpcpy.texi.
52698         * doc/posix-functions/wcpncpy.texi: Renamed from
52699         doc/glibc-functions/wcpncpy.texi.
52700         * doc/posix-functions/wcscasecmp.texi: Renamed from
52701         doc/glibc-functions/wcscasecmp.texi.
52702         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52703         doc/glibc-functions/wcscasecmp_l.texi.
52704         * doc/posix-functions/wcscoll_l.texi: Renamed from
52705         doc/glibc-functions/wcscoll_l.texi.
52706         * doc/posix-functions/wcsdup.texi: Renamed from
52707         doc/glibc-functions/wcsdup.texi.
52708         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52709         doc/glibc-functions/wcsncasecmp.texi.
52710         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52711         doc/glibc-functions/wcsncasecmp_l.texi.
52712         * doc/posix-functions/wcsnlen.texi: Renamed from
52713         doc/glibc-functions/wcsnlen.texi.
52714         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52715         doc/glibc-functions/wcsnrtombs.texi.
52716         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52717         doc/glibc-functions/wcsxfrm_l.texi.
52718         * doc/posix-functions/wctrans_l.texi: Renamed from
52719         doc/glibc-functions/wctrans_l.texi.
52720         * doc/posix-functions/wctype_l.texi: Renamed from
52721         doc/glibc-functions/wctype_l.texi.
52722         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52723         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52724         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52725         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52726         these subsections.
52727         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52728         Remove sections.
52729
52730 2008-12-14  Bruno Haible  <bruno@clisp.org>
52731
52732         Update doc for POSIX:2008.
52733         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52734
52735 2008-12-14  Bruno Haible  <bruno@clisp.org>
52736
52737         Update doc for POSIX:2008.
52738         * doc/pastposix-functions/bcmp.texi: Renamed from
52739         doc/posix-functions/bcmp.texi.
52740         * doc/pastposix-functions/bcopy.texi: Renamed from
52741         doc/posix-functions/bcopy.texi.
52742         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52743         doc/posix-functions/bsd_signal.texi.
52744         * doc/pastposix-functions/bzero.texi: Renamed from
52745         doc/posix-functions/bzero.texi.
52746         * doc/pastposix-functions/ecvt.texi: Renamed from
52747         doc/posix-functions/ecvt.texi.
52748         * doc/pastposix-functions/fcvt.texi: Renamed from
52749         doc/posix-functions/fcvt.texi.
52750         * doc/pastposix-functions/ftime.texi: Renamed from
52751         doc/posix-functions/ftime.texi.
52752         * doc/pastposix-functions/gcvt.texi: Renamed from
52753         doc/posix-functions/gcvt.texi.
52754         * doc/pastposix-functions/getcontext.texi: Renamed from
52755         doc/posix-functions/getcontext.texi.
52756         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52757         doc/posix-functions/gethostbyaddr.texi.
52758         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52759         doc/posix-functions/gethostbyname.texi.
52760         * doc/pastposix-functions/getwd.texi: Renamed from
52761         doc/posix-functions/getwd.texi.
52762         * doc/pastposix-functions/h_errno.texi: Renamed from
52763         doc/posix-functions/h_errno.texi.
52764         * doc/pastposix-functions/index.texi: Renamed from
52765         doc/posix-functions/index.texi.
52766         * doc/pastposix-functions/makecontext.texi: Renamed from
52767         doc/posix-functions/makecontext.texi.
52768         * doc/pastposix-functions/mktemp.texi: Renamed from
52769         doc/posix-functions/mktemp.texi.
52770         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52771         doc/posix-functions/pthread_attr_getstackaddr.texi.
52772         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52773         doc/posix-functions/pthread_attr_setstackaddr.texi.
52774         * doc/pastposix-functions/rindex.texi: Renamed from
52775         doc/posix-functions/rindex.texi.
52776         * doc/pastposix-functions/scalb.texi: Renamed from
52777         doc/posix-functions/scalb.texi.
52778         * doc/pastposix-functions/setcontext.texi: Renamed from
52779         doc/posix-functions/setcontext.texi.
52780         * doc/pastposix-functions/swapcontext.texi: Renamed from
52781         doc/posix-functions/swapcontext.texi.
52782         * doc/pastposix-functions/ualarm.texi: Renamed from
52783         doc/posix-functions/ualarm.texi.
52784         * doc/pastposix-functions/usleep.texi: Renamed from
52785         doc/posix-functions/usleep.texi.
52786         * doc/pastposix-functions/vfork.texi: Renamed from
52787         doc/posix-functions/vfork.texi.
52788         * doc/pastposix-functions/wcswcs.texi: Renamed from
52789         doc/posix-functions/wcswcs.texi.
52790         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52791         (Function Substitutes): Update.
52792
52793 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52794
52795         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52796         m4/strerror.m4.
52797
52798 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52799             Bruno Haible  <bruno@clisp.org>
52800
52801         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52802
52803 2008-12-13  Bruno Haible  <bruno@clisp.org>
52804
52805         * modules/strtoull (Depends-on): Remove unistd.
52806
52807 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52808
52809         * modules/strtoull (Depends-on): Add stdlib.
52810
52811 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52812
52813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52814
52815 2008-12-10  Jim Meyering  <meyering@redhat.com>
52816
52817         gl_ASSERT: don't say assertions are disabled when they're not
52818         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52819         "checking whether to enable assertions... no", when they are in
52820         fact enabled.  This is solely a bug in the output of configure.
52821         In spite of saying "no", NDEBUG was not defined in that case.
52822         Also, as noted by Eric Blake, leave assertions enabled upon
52823         --enable-assert=INVALID.
52824
52825 2008-12-10  Bruno Haible  <bruno@clisp.org>
52826
52827         Change MODULES.html to refer to POSIX:2008 where possible.
52828         * MODULES.html.sh (POSIX2008_URL): New variable.
52829         (posix_headers): Remove sys/timeb, ucontext.
52830         (posix2001_headers): New variable.
52831         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52832         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52833         index, makecontext, mktemp, pthread_attr_getstackaddr,
52834         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52835         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52836         (posix2001_functions): New variable.
52837         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52838         otherwise.
52839
52840 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52841
52842         add missing include to parse-duration.c
52843         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52844         * modules/parse-duration (Depends-on): Add xalloc.
52845
52846         fix sed script reading maint.mk
52847         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52848         (syntax-check-rules): Use it.
52849
52850 2008-12-09  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52853         MacOS X 10.4/PowerPC.
52854         Reported by Simon Josefsson.
52855
52856 2008-12-08  Jim Meyering  <meyering@redhat.com>
52857
52858         work around mingw's lack of some S_IF definitions
52859         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52860         Reported by Simon Josefsson.
52861
52862 2008-12-08  Bruno Haible  <bruno@clisp.org>
52863
52864         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52865         applied to variables. Needed on MacOS X 10.4/PowerPC.
52866         Reported by Simon Josefsson.
52867
52868 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52869         and Eric Blake  <ebb9@byu.net>
52870
52871         assert: honor --enable-assert
52872         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52873         order to honor --enable-assert, rather than treating it as a
52874         synonym for --disable-assert.
52875
52876 2008-12-08  Jim Meyering  <meyering@redhat.com>
52877
52878         * lib/posixtm.c: Remove now-useless declaration of mktime.
52879
52880         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52881
52882 2008-12-07  Bruno Haible  <bruno@clisp.org>
52883
52884         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52885         test_once): Mark functions as static.
52886         * tests/test-tls.c (test_tls): Likewise.
52887
52888 2008-12-07  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52891         iconv_register_autodetect.
52892
52893 2008-12-07  Jim Meyering  <meyering@redhat.com>
52894
52895         posixtm.c: avoid a warning
52896         * lib/posixtm.c (posixtime): Don't initialize tm0.
52897         It's no longer needed to placate gcc4's -Wuninitialized,
52898         and the attempt to placate would elicit a new warning.
52899
52900         unicodeio.c: mark unused parameters
52901         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52902         (fallback_failure_callback): Likewise.
52903
52904 2008-12-07  Bruno Haible  <bruno@clisp.org>
52905
52906         * gnulib-tool (func_create_testdir): When building the tests
52907         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52908         Reported by Simon Josefsson.
52909
52910 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52911
52912         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52913
52914 2008-12-06  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52917         Suggested by Eric Blake.
52918
52919 2008-12-06  Bruno Haible  <bruno@clisp.org>
52920
52921         Fix a c-stack test failure on MacOS X.
52922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52923         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52924         handler for SIGBUS as well.
52925         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52926         install a signal handler for SIGBUS as well.
52927         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52928
52929 2008-12-06  Bruno Haible  <bruno@clisp.org>
52930
52931         Advocacy documentation.
52932         * doc/gnulib-intro.texi (Benefits): New section.
52933         * doc/gnulib.texi: Update.
52934
52935 2008-12-06  Bruno Haible  <bruno@clisp.org>
52936
52937         Document the 'manywarnings' module.
52938         * doc/manywarnings.texi: New file.
52939         * doc/gnulib.texi: Include it.
52940
52941 2008-12-05  Eric Blake  <ebb9@byu.net>
52942
52943         tests: silence some gcc warnings
52944         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52945         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52946         type mismatches.
52947
52948 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52949             Bruno Haible  <bruno@clisp.org>
52950
52951         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52952
52953 2008-11-29  Jim Meyering  <meyering@redhat.com>
52954
52955         unicodeio.c: mark unused parameters
52956         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52957         (fallback_failure_callback): Likewise.
52958
52959         fts: fix a thinko
52960         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52961         (set_stat_type): Return S_IF*-valued "type" directly.
52962         Prompted by James Youngman's spotting a related bug.
52963         Confirmed by further testing through find.
52964
52965         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52966         * lib/fts.c (D_TYPE): Define.
52967         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52968         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52969         (s_ifmt_shift_bits): New function.
52970         (set_stat_type): New function.
52971         (fts_build): When not calling fts_stat, call set_stat_type
52972         to propagate dirent.d_type info to fts_read caller.
52973         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52974         fts_statp->st_mode type information may be valid.
52975
52976 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52977
52978         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52979         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52980         <sds@gnu.org>.
52981
52982 2008-11-20  Bruno Haible  <bruno@clisp.org>
52983
52984         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52985         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52986         INCLUDE_NEXT.
52987         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52988         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52989         * modules/math (Makefile.am): Substitute
52990         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52992
52993 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52994             Bruno Haible  <bruno@clisp.org>
52995
52996         * lib/stdint.in.h: Define all type macros so that their expansion is
52997         a single typedef'ed token. Fixes a compilation failure in Boost which
52998         does "using ::int8_t;".
52999
53000 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53001
53002         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53003         gl_MANYWARN_ALL_GCC.
53004         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53005         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53006         * modules/manywarnings: New file.
53007         * MODULES.html.sh: Mention manywarnings module.
53008
53009 2008-11-18  Bruno Haible  <bruno@clisp.org>
53010
53011         * doc/gnulib-tool.texi (Unit tests): New section.
53012
53013 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53014
53015         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53016         paths like 'lib/po/foo.po'.
53017
53018 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53019
53020         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53021         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53022
53023 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53024
53025         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53026         parameter works.
53027
53028 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53029
53030         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53031
53032 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53033
53034         * modules/parse-duration-tests: New file.
53035         * tests/test-parse-duration.sh: New file.
53036         * tests/test-parse-duration.c: New file.
53037
53038         New module 'parse-duration'.
53039         * lib/parse-duration.h: New file.
53040         * lib/parse-duration.c: New file.
53041         * modules/parse-duration: New file.
53042
53043 2008-11-17  Bruno Haible  <bruno@clisp.org>
53044
53045         * tests/test-select-out.sh: Comment out the first pipe test.
53046         Reported by Simon Josefsson.
53047
53048 2008-11-17  Bruno Haible  <bruno@clisp.org>
53049
53050         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53052         gl_HOSTENT.
53053
53054 2008-11-17  Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53057         -lnetwork and -lnet. Needed for Haiku and BeOS.
53058
53059 2008-11-16  Bruno Haible  <bruno@clisp.org>
53060
53061         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53062
53063 2008-11-16  Bruno Haible  <bruno@clisp.org>
53064
53065         Avoid test failure on Haiku.
53066         * tests/test-fsync.c: Include <errno.h>.
53067         (main): Don't require that fsync (0) fails.
53068
53069 2008-11-15  Bruno Haible  <bruno@clisp.org>
53070
53071         New module 'hostent'.
53072         * modules/hostent: New file.
53073         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53074
53075 2008-11-15  Bruno Haible  <bruno@clisp.org>
53076
53077         New module 'servent'.
53078         * modules/servent: New file.
53079         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53080
53081 2008-11-15  Bruno Haible  <bruno@clisp.org>
53082
53083         Avoid generating same test program with two different rules.
53084         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53085         test-frexp to test-frexp-nolibm.
53086         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53087         test-frexpl to test-frexpl-nolibm.
53088
53089 2008-11-15  Bruno Haible  <bruno@clisp.org>
53090
53091         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53092         $(FREXPL_LIBM).
53093
53094 2008-11-15  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/netdb.in.h: Activate the definitions also when the system's
53097         <netdb.h> has 'struct addrinfo'.
53098         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53099         EAI_OVERFLOW or AI_NUMERICSERV.
53100         * doc/posix-headers/netdb.texi: Document the problem.
53101
53102 2008-11-15  Bruno Haible  <bruno@clisp.org>
53103
53104         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53105
53106         Make the 'sched' module work on platforms where <sched.h> exists but
53107         is incomplete (such as Haiku).
53108         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53109         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53110         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53111         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53112         HAVE_STRUCT_SCHED_PARAM.
53113         * modules/sched (Depends-on): Add include_next.
53114         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53115         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53116         * doc/posix-headers/sched.texi: Document the issue.
53117
53118 2008-11-13  Jim Meyering  <meyering@redhat.com>
53119
53120         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53121         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53122         test would fail due to the difference in the Report bugs to ...
53123         line.  The expected address is empty, "<>", while the actual
53124         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53125
53126 2008-11-12  Bruno Haible  <bruno@clisp.org>
53127
53128         lstat: don't compile lstat.c on systems lacking lstat
53129         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53130         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53131         Reported by Daniel P. Berrange via Jim Meyering.
53132
53133 2008-11-12  Jim Meyering  <meyering@redhat.com>
53134
53135         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53136
53137 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53138
53139         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53140         instead.
53141
53142 2008-11-12  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/unicodeio.c: Include unistr.h.
53145         (utf8_wctomb): Remove function.
53146         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53147
53148 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53149
53150         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53151         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53152         <bruno@clisp.org>.
53153         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53154
53155 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53156
53157         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53158         * doc/gnulib.texi: Add section for warnings.
53159
53160 2008-11-11  Bruno Haible  <bruno@clisp.org>
53161
53162         * lib/sockets.h: Add a comment.
53163
53164 2008-11-11  Karl Berry  <karl@gnu.org>
53165
53166         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53167
53168 2008-11-11  Eric Blake  <ebb9@byu.net>
53169
53170         fdl.texi: avoid git symlinks
53171         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53172
53173 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53174
53175         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53176
53177 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53178
53179         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53180         (gl_WARN_ADD): Substitute $2 if literal.
53181
53182 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53183
53184         * m4/warning.m4: Remove.
53185
53186 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53187
53188         * m4/warnings.m4: Almost complete rewrite. :-)
53189
53190 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53191
53192         * modules/warnings: New module.
53193         * m4/warnings.m4: New file.
53194         * MODULES.html.sh: Mention warnings module.
53195         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53196         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53197
53198 2008-11-10  Eric Blake  <ebb9@byu.net>
53199
53200         fdl.texi: make a symlink to the latest version
53201         * doc/standards.texi: Revert today's earlier change.
53202         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53203         * doc/fdl.texi: ...and replace this with a symlink to the newer
53204         fdl-1.3.texi.
53205
53206 2008-11-10  Bruno Haible  <bruno@clisp.org>
53207
53208         * tests/test-select-fd.c (main): Accept the result file name as fourth
53209         argument.
53210         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53211         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53212
53213 2008-11-10  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53216         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53217         as autoconf-substituted macros.
53218         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53219         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53220         gl_NETDB_H_DEFAULTS. Set these variables.
53221         * modules/netdb (Makefile.am): Substitute these variables.
53222
53223 2008-11-10  Eric Blake  <ebb9@byu.net>
53224
53225         standards.texi: include correct file for FDL 1.3
53226         * doc/standards.texi (GNU Free Documentation License): Change
53227         include file to pull in FDL 1.3, not 1.2.
53228
53229         fdl.texi: revert accidental change to license
53230         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53231
53232 2008-11-10  Bruno Haible  <bruno@clisp.org>
53233
53234         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53235         cross-compiling guesses also when the native compile gives no result.
53236
53237 2008-11-10  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/spawni.c (__spawni): Force variable into the stack.
53240
53241 2008-11-10  Bruno Haible  <bruno@clisp.org>
53242
53243         Add support for Haiku.
53244         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53245         glibc and BeOS, but also on Haiku.
53246         * lib/fpurge.c (fpurge): Likewise.
53247         * lib/freadable.c (freadable): Likewise.
53248         * lib/freadahead.c (freadahead): Likewise.
53249         * lib/freading.c (freading): Likewise.
53250         * lib/freadptr.c (freadptr): Likewise.
53251         * lib/freadseek.c (freadptrinc): Likewise.
53252         * lib/fseeko.c (rpl_fseeko): Likewise.
53253         * lib/fseterr.c (fseterr): Likewise.
53254         * lib/fwritable.c (fwritable): Likewise.
53255         * lib/fwriting.c (fwriting): Likewise.
53256         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53257
53258 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53259
53260         * lib/config.charset: Treat Haiku like BeOS.
53261
53262 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53263
53264         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53265         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53266
53267 2008-11-08  Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53270         AC_CACHE_CHECK.
53271
53272 2008-11-08  Bruno Haible  <bruno@clisp.org>
53273
53274         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53275
53276 2008-11-08  Bruno Haible  <bruno@clisp.org>
53277
53278         * tests/test-select-fd.c: New file.
53279         * tests/test-select-in.sh: New file.
53280         * tests/test-select-out.sh: New file.
53281         * tests/test-select-stdin.c: New file.
53282         * modules/select-tests (Files): Add the new files.
53283         (Depends-on): Add gettimeofday.
53284         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53285         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53286         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53287
53288 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53289             Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53292
53293 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53294
53295         * build-aux/pmccabe2html: Added support for C++ source files.
53296
53297 2008-11-05  Ben Pfaff  <blp@gnu.org>
53298
53299         Fix lib/close.c build on Windows.
53300         * modules/close (Files): Add lib/w32sock.h.
53301
53302 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53303
53304         Accept Bison's NEWS format.
53305         * build-aux/announce-gen (print_news_deltas): Tweak
53306         $re_prefix.
53307
53308 2008-11-04  Bruno Haible  <bruno@clisp.org>
53309
53310         * modules/random_r (Maintainer): Add glibc.
53311
53312 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53313
53314         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53315         by karl@freefriends.org (Karl Berry).
53316         * doc/alloca.texi: Likewise.
53317         * doc/c-ctype.texi: Likewise.
53318         * doc/c-strcase.texi: Likewise.
53319         * doc/c-strcaseeq.texi: Likewise.
53320         * doc/c-strcasestr.texi: Likewise.
53321         * doc/c-strstr.texi: Likewise.
53322         * doc/c-strtod.texi: Likewise.
53323         * doc/c-strtold.texi: Likewise.
53324         * doc/ctime.texi: Likewise.
53325         * doc/error.texi: Likewise.
53326         * doc/fdl.texi: Likewise.
53327         * doc/gcd.texi: Likewise.
53328         * doc/getdate.texi: Likewise.
53329         * doc/gnulib-intro.texi: Likewise.
53330         * doc/gnulib-tool.texi: Likewise.
53331         * doc/gnulib.texi: Likewise.
53332         * doc/inet_ntoa.texi: Likewise.
53333         * doc/maintain.texi: Likewise.
53334         * doc/make-stds.texi: Likewise.
53335         * doc/quote.texi: Likewise.
53336         * doc/regexprops-generic.texi: Likewise.
53337         * doc/standards.texi: Likewise.
53338         * doc/verify.texi: Likewise.
53339         * doc/visibility.texi: Likewise.
53340         * doc/gnulib.texi (GNU Free Documentation License): Include
53341         fdl-1.3.texi instead of fdl.texi.
53342
53343 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53344
53345         * doc/fdl-1.3.texi: New file, from
53346         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53347         * modules/fdl-1.3: Add.
53348         * MODULES.html.sh: Add fdl-1.3.
53349
53350 2008-11-03  Bruno Haible  <bruno@clisp.org>
53351
53352         Make determination of absolute name of header file work with AIX xlc.
53353         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53354         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53355         preprocessing.
53356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53357         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53358
53359 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53360
53361         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53362         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53363         <ludo@gnu.org>.
53364
53365 2008-11-02  Bruno Haible  <bruno@clisp.org>
53366
53367         Mark 'strpbrk' obsolete.
53368         * modules/strpbrk (Status, Notice): New sections.
53369         * modules/strtok_r (Depends-on): Add strpbrk.
53370
53371 2008-11-02  Bruno Haible  <bruno@clisp.org>
53372
53373         Mark 'strdup' obsolete.
53374         * modules/strdup (Status, Notice): New sections.
53375         * modules/findprog (Depends-on): Add strdup.
53376         * modules/getaddrinfo (Depends-on): Likewise.
53377         * modules/localename (Depends-on): Likewise.
53378         * modules/relocatable-lib (Depends-on): Likewise.
53379         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53380         * modules/relocatable-prog (Depends-on): Likewise.
53381         * modules/trim (Depends-on): Likewise.
53382         * modules/unictype/gen-ctype (Depends-on): Likewise.
53383         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53384
53385 2008-11-02  Bruno Haible  <bruno@clisp.org>
53386
53387         Mark 'strcspn' obsolete.
53388         * modules/strcspn (Status, Notice): New sections.
53389
53390 2008-11-02  Bruno Haible  <bruno@clisp.org>
53391
53392         Mark 'rmdir' obsolete.
53393         * modules/rmdir (Status, Notice): New sections.
53394         * modules/clean-temp (Depends-on): Add rmdir.
53395         * modules/openat (Depends-on): Likewise.
53396
53397 2008-11-02  Bruno Haible  <bruno@clisp.org>
53398
53399         Mark 'raise' obsolete.
53400         * modules/raise (Status, Notice): New sections.
53401         (Include): Specify <signal.h>.
53402         * modules/stdio (Depends-on): Add raise.
53403         * modules/write (Depends-on): Likewise.
53404
53405 2008-11-02  Bruno Haible  <bruno@clisp.org>
53406
53407         Mark 'memset' obsolete.
53408         * modules/memset (Status, Notice): New sections.
53409
53410 2008-11-02  Bruno Haible  <bruno@clisp.org>
53411
53412         Mark 'memmove' obsolete.
53413         * modules/memmove (Status, Notice): New sections.
53414         * modules/argp (Depends-on): Add memmove.
53415         * modules/argz (Depends-on): Likewise.
53416         * modules/canonicalize (Depends-on): Likewise.
53417         * modules/canonicalize-lgpl (Depends-on): Likewise.
53418         * modules/fts (Depends-on): Likewise.
53419         * modules/getcwd (Depends-on): Likewise.
53420         * modules/human (Depends-on): Likewise.
53421         * modules/regex (Depends-on): Likewise.
53422         * modules/striconveh (Depends-on): Likewise.
53423         * modules/trim (Depends-on): Likewise.
53424         * modules/unistr/u8-move (Depends-on): Likewise.
53425         * modules/unistr/u16-move (Depends-on): Likewise.
53426         * modules/unistr/u32-move (Depends-on): Likewise.
53427
53428 2008-11-02  Bruno Haible  <bruno@clisp.org>
53429
53430         Mark 'memcpy' obsolete.
53431         * modules/memcpy (Status, Notice): New sections.
53432
53433 2008-11-02  Bruno Haible  <bruno@clisp.org>
53434
53435         Mark 'memcmp' obsolete.
53436         * modules/memcmp (Status, Notice): New sections.
53437         * modules/argmatch (Depends-on): Add memchr.
53438         * modules/backupfile (Depends-on): Likewise.
53439         * modules/c-strcasestr (Depends-on): Likewise.
53440         * modules/crypto/des (Depends-on): Likewise.
53441         * modules/csharpcomp (Depends-on): Likewise.
53442         * modules/fnmatch (Depends-on): Likewise.
53443         * modules/git-merge-changelog (Depends-on): Likewise.
53444         * modules/isnand (Depends-on): Likewise.
53445         * modules/isnand-nolibm (Depends-on): Likewise.
53446         * modules/isnanf (Depends-on): Likewise.
53447         * modules/isnanf-nolibm (Depends-on): Likewise.
53448         * modules/isnanl (Depends-on): Likewise.
53449         * modules/isnanl-nolibm (Depends-on): Likewise.
53450         * modules/mbchar (Depends-on): Likewise.
53451         * modules/memcoll (Depends-on): Likewise.
53452         * modules/quotearg (Depends-on): Likewise.
53453         * modules/regex (Depends-on): Likewise.
53454         * modules/relocatable-prog (Depends-on): Likewise.
53455         * modules/same (Depends-on): Likewise.
53456         * modules/signbit (Depends-on): Likewise.
53457         * modules/strcasestr-simple (Depends-on): Likewise.
53458         * modules/unictype/gen-ctype (Depends-on): Likewise.
53459         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53460         * modules/uniname/uniname (Depends-on): Likewise.
53461         * modules/unistr/u8-cmp (Depends-on): Likewise.
53462
53463 2008-11-02  Bruno Haible  <bruno@clisp.org>
53464
53465         Mark 'memchr' obsolete.
53466         * modules/memchr (Status, Notice): New sections.
53467         * modules/argp (Depends-on): Add memchr.
53468         * modules/base64 (Depends-on): Likewise.
53469         * modules/c-strcasestr (Depends-on): Likewise.
53470         * modules/chdir-long (Depends-on): Likewise.
53471         * modules/fnmatch (Depends-on): Likewise.
53472         * modules/getsubopt (Depends-on): Likewise.
53473         * modules/git-merge-changelog (Depends-on): Likewise.
53474         * modules/glob (Depends-on): Likewise.
53475         * modules/strcasestr-simple (Depends-on): Likewise.
53476         * modules/strnlen (Depends-on): Likewise.
53477
53478 2008-11-02  Bruno Haible  <bruno@clisp.org>
53479
53480         Mark 'atexit' obsolete.
53481         * modules/atexit (Status, Notice): New sections.
53482         * modules/chdir-long (Depends-on): Add atexit.
53483         * modules/wait-process (Depends-on): Likewise.
53484
53485 2008-11-02  Bruno Haible  <bruno@clisp.org>
53486
53487         * gnulib-tool: New option --with-obsolete.
53488         (func_usage): Document it.
53489         (func_modules_transitive_closure): Drop obsolete dependencies if
53490         incobsolete is not true.
53491         (func_import): Read and save the incobsolete variable to the cache.
53492
53493 2008-11-02  Bruno Haible  <bruno@clisp.org>
53494
53495         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53496         * gnulib-tool: New option --extract-status.
53497         (func_usage): Document it.
53498         (sed_extract_prog): Recognize it.
53499         (func_get_status): New function.
53500
53501 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53502
53503         * modules/sockets (License): Change from LGPL to LGPLv2+.
53504
53505 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53506
53507         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53508
53509 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53510
53511         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53512         Mention times and sys_times.
53513         * modules/sys_times, modules/sys_times-tests: New modules.
53514         * modules/times, modules/times-tests: Likewise
53515         * m4/sys_times_h.m4: New file.
53516         * lib/sys_times.in.h: Likewise
53517         * lib/times.c: Likewise.
53518         * tests/test-sys_times.c: Likewise.
53519         * tests/test-times.c: Likewise.
53520         * doc/posix-headers/sys_times.texi: Update.
53521         * doc/posix-functions/times.texi: Update.
53522
53523 2008-10-28  Jim Meyering  <meyering@redhat.com>
53524
53525         * modules/tempname (Depends-on): Add lstat.
53526
53527         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53528
53529 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53530
53531         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53532         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53533         using idiom used elsewhere in gnulib.
53534
53535 2008-10-27  Jim Meyering  <meyering@redhat.com>
53536
53537         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53538
53539 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53540
53541         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53542         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53543         programs.
53544         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53545
53546 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53547
53548         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53549
53550 2008-10-27  Bruno Haible  <bruno@clisp.org>
53551
53552         * tests/test-lstat.c: Include <stdio.h>.
53553
53554 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53555
53556         * modules/lstat-tests: New module.
53557         * tests/test-lstat.c: New file.
53558
53559 2008-10-26  Jim Meyering  <meyering@redhat.com>
53560
53561         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53562
53563 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53564             Bruno Haible  <bruno@clisp.org>
53565
53566         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53567         * modules/configmake (Include): Add a note that the include must come
53568         after all system headers.
53569         * lib/javaversion.c: Include configmake.h after all other includes.
53570
53571 2008-10-26  Bruno Haible  <bruno@clisp.org>
53572
53573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53574         HAVE_STRUCT_RANDOM_DATA to 1.
53575         (gl_STDLIB_H): Simplify.
53576
53577 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53578
53579         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53580         substitute HAVE_STRUCT_RANDOM_DATA.
53581         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53582         random_data.
53583         * modules/stdlib (Makefile.am): Substitute
53584         HAVE_STRUCT_RANDOM_DATA.
53585
53586 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53587
53588         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53589         * doc/gnulib-intro.texi (Copyright): Likewise.
53590
53591 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53592
53593         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53594         findings.
53595
53596 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53597             Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/unistd.in.h: Include <winsock2.h>.
53600         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53601         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53602         Provide dummy declarations.
53603         (gethostname): Override.
53604         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53605         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53606         gl_PREREQ_SYS_H_WINSOCK2.
53607         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53608         * doc/posix-functions/gethostname.texi: More details.
53609
53610 2008-10-25  Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53613         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53614         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53615
53616         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53617         here ...
53618         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53619         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53620         gl_UNISTD_H_DEFAULTS.
53621
53622 2008-10-25  Eric Blake  <ebb9@byu.net>
53623
53624         signbit: avoid spurious compiler failure
53625         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53626         declarations inside function.
53627
53628 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53629             Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53632         * modules/random_r (Depends-on): Add stdint.
53633
53634 2008-10-24  Bruno Haible  <bruno@clisp.org>
53635
53636         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53637         Eggert.
53638         * modules/strerror (License): Likewise.
53639
53640 2008-10-24  Jim Meyering  <meyering@redhat.com>
53641
53642         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53643         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53644
53645 2008-10-24  Eric Blake  <ebb9@byu.net>
53646
53647         getgroups: fix compilation when getgroups is available
53648         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53649         but with <config.h> override of getgroups disabled.
53650
53651 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53652
53653         * doc/gnulib.texi (Header files): Add note about C++ problems.
53654         Explained by Bruno Haible <bruno@clisp.org>.
53655
53656 2008-10-23  Bruno Haible  <bruno@clisp.org>
53657
53658         Define a dummy SA_NODEFER macro on Interix.
53659         * lib/signal.in.h (SA_NODEFER): Define fallback.
53660         Reported by Aleksey Cheusov <cheusov@tut.by> via
53661         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53662
53663 2008-10-23  Bruno Haible  <bruno@clisp.org>
53664
53665         * modules/freadahead (License): Change to LGPLv2+.
53666         Suggested by Simon Josefsson.
53667
53668 2008-10-23  Jim Meyering  <meyering@redhat.com>
53669
53670         random_r: new module
53671         * modules/random_r: New file.
53672         * m4/random_r.m4: New file.
53673         * lib/random_r.c: New file, from glibc.
53674         * modules/random_r-tests: New file.
53675         * tests/test-random_r.c: New file.
53676         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53677          Declare.
53678         (RAND_MAX): Define.
53679         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53680         * modules/stdlib: Substitute them, too.
53681         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53682         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53683         * doc/glibc-functions/random_r.texi: Likewise.
53684         * doc/glibc-functions/setstate_r.texi: Likewise.
53685         * doc/glibc-functions/srandom_r.texi: Likewise.
53686         * config/srclist.txt: Mention it.
53687
53688 2008-10-23  David Lutterkort  <lutter@redhat.com>
53689
53690         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53691         link requirement
53692
53693 2008-10-23  Jim Meyering  <meyering@redhat.com>
53694
53695         selinux-h: mark parameters of stub functions as intentionally unused
53696         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53697         * lib/se-context.in.h: Likewise.
53698
53699 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53700
53701         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53702
53703 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53704
53705         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53706
53707 2008-10-22  Eric Blake  <ebb9@byu.net>
53708
53709         glthread/thread: avoid compiler warning
53710         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53711         Add unreachable abort to silence compiler.
53712
53713 2008-10-22  Eric Blake  <ebb9@byu.net>
53714
53715         netdb: also supply struct addrinfo for cygwin 1.5.x
53716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53717         older cygwin.
53718         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53719         cygwin.
53720         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53721
53722 2008-10-22  Bruno Haible  <bruno@clisp.org>
53723
53724         * users.txt: Update entry about pspp.
53725
53726 2008-10-21  Bruno Haible  <bruno@clisp.org>
53727
53728         Simplification.
53729         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53730         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53731
53732         Simplification.
53733         * lib/ioctl.c (ioctl): Don't undefine.
53734         * lib/socket.c (socket): Don't undefine.
53735
53736         Remove unused module indicator macros.
53737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53738         GNULIB_$1 as a C macro.
53739
53740         * doc/posix-functions/close.texi: Undo last change.
53741         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53742         Windows platforms.
53743
53744 2008-10-21  Bruno Haible  <bruno@clisp.org>
53745
53746         Add gethostname() declaration to <unistd.h>.
53747         * lib/unistd.in.h (gethostname): New declaration.
53748         * lib/gethostname.c: Include <unistd.h>.
53749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53750         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53752         and HAVE_GETHOSTNAME.
53753         * modules/gethostname (Depends-on): Add unistd.
53754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53755         (Include): Specify <unistd.h>.
53756         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53757         HAVE_GETHOSTNAME.
53758         * tests/test-gethostname.c: Include <unistd.h> first.
53759
53760 2008-10-21  Bruno Haible  <bruno@clisp.org>
53761
53762         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53763         * modules/select-tests (Depends-on): Likewise.
53764         Reported by Simon Josefsson.
53765
53766 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53767
53768         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53769         * lib/accept.c: New file, based on winsock.c.
53770         * lib/bind.c: New file, based on winsock.c.
53771         * lib/connect.c: New file, based on winsock.c.
53772         * lib/getpeername.c: New file, based on winsock.c.
53773         * lib/getsockname.c: New file, based on winsock.c.
53774         * lib/getsockopt.c: New file, based on winsock.c.
53775         * lib/ioctl.c: New file, based on winsock.c.
53776         * lib/listen.c: New file, based on winsock.c.
53777         * lib/recv.c: New file, based on winsock.c.
53778         * lib/recvfrom.c: New file, based on winsock.c.
53779         * lib/send.c: New file, based on winsock.c.
53780         * lib/sendto.c: New file, based on winsock.c.
53781         * lib/setsockopt.c: New file, based on winsock.c.
53782         * lib/shutdown.c: New file, based on winsock.c.
53783         * lib/socket.c: New file, based on winsock.c.
53784         * lib/w32sock.h: New file, based on winsock.c.
53785         * lib/winsock.c: Remove file.
53786         * modules/accept: Likewise.
53787         * modules/bind: Likewise.
53788         * modules/connect: Likewise.
53789         * modules/getpeername: Likewise.
53790         * modules/getsockname: Likewise.
53791         * modules/getsockopt: Likewise.
53792         * modules/ioctl: Likewise.
53793         * modules/listen: Likewise.
53794         * modules/recv: Likewise.
53795         * modules/recvfrom: Likewise.
53796         * modules/send: Likewise.
53797         * modules/sendto: Likewise.
53798         * modules/setsockopt: Likewise.
53799         * modules/shutdown: Likewise.
53800         * modules/socket: Use socket.c instead of winsock.c.
53801         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53802         * doc/posix-functions/accept.texi: Doc fix.
53803         * doc/posix-functions/bind.texi: Doc fix.
53804         * doc/posix-functions/close.texi: Doc fix.
53805         * doc/posix-functions/connect.texi: Doc fix.
53806         * doc/posix-functions/getpeername.texi: Doc fix.
53807         * doc/posix-functions/getsockname.texi: Doc fix.
53808         * doc/posix-functions/getsockopt.texi: Doc fix.
53809         * doc/posix-functions/ioctl.texi: Doc fix.
53810         * doc/posix-functions/listen.texi: Doc fix.
53811         * doc/posix-functions/recv.texi: Doc fix.
53812         * doc/posix-functions/recvfrom.texi: Doc fix.
53813         * doc/posix-functions/send.texi: Doc fix.
53814         * doc/posix-functions/sendto.texi: Doc fix.
53815         * doc/posix-functions/setsockopt.texi: Doc fix.
53816         * doc/posix-functions/shutdown.texi: Doc fix.
53817         * doc/posix-functions/socket.texi: Doc fix.
53818
53819 2008-10-20  Bruno Haible  <bruno@clisp.org>
53820
53821         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53822         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53823         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53824         as an alias for SIGABRT.
53825         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53826         (sigaction): Map it to SIGABRT.
53827         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53828
53829 2008-10-20  Bruno Haible  <bruno@clisp.org>
53830
53831         * lib/fts.c: Don't include lstat.h.
53832         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53833
53834         Move the lstat() declaration to <sys/stat.h>.
53835         * lib/lstat.h: Remove file.
53836         * lib/sys_stat.in.h: Add special invocation convention.
53837         (lstat): New declaration.
53838         * lib/lstat.c (orig_lstat): New function.
53839         (rpl_lstat): Use orig_lstat instead of lstat.
53840         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53841         AC_C_INLINE. Set REPLACE_LSTAT.
53842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53843         and REPLACE_LSTAT.
53844         * modules/lstat (Files): Remove lib/lstat.h.
53845         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53846         (Include): Specify <sys/stat.h> instead of lstat.h.
53847         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53848         REPLACE_LSTAT.
53849         * NEWS: Mention the change.
53850
53851 2008-10-20  Bruno Haible  <bruno@clisp.org>
53852
53853         * modules/posix_spawn-tests: New file.
53854         * tests/test-posix_spawn3.c: New file.
53855
53856 2008-10-20  Bruno Haible  <bruno@clisp.org>
53857
53858         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53859         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53860         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53861         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53862         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53863
53864 2008-10-20  Bruno Haible  <bruno@clisp.org>
53865
53866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53867         of posix_spawn on AIX 5.3.
53868
53869 2008-10-20  Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53872
53873 2008-10-20  Bruno Haible  <bruno@clisp.org>
53874
53875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53876         of AC_LANG_PROGRAM.
53877
53878 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53879
53880         * lib/netdb.in.h: Don't define GNU specific constants until they
53881         are supported or needed.  Reported by Bruno Haible
53882         <bruno@clisp.org>.
53883
53884 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53885
53886         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53887
53888 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53889
53890         * lib/getaddrinfo.h: Remove file.
53891         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53892         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53893         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53894         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53895         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53896         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53897         * tests/test-getaddrinfo.c: Likewise.
53898         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53899         * NEWS: Mention change.
53900
53901 2008-10-19  Bruno Haible  <bruno@clisp.org>
53902
53903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53904
53905 2008-10-19  Bruno Haible  <bruno@clisp.org>
53906
53907         * lib/wait-process.c: Include simply <sys/wait.h>.
53908         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53909         WIFSTOPPED): Remove fallback definitions.
53910         * modules/wait-process (Depends-on): Add sys_wait.
53911
53912         New module 'sys_wait'.
53913         * modules/sys_wait: New file.
53914         * lib/sys_wait.in.h: New file, partially copied from
53915         lib/wait-process.c.
53916         * m4/sys_wait_h.m4: New file.
53917         * doc/posix-headers/sys_wait.texi: Mention the new module.
53918
53919 2008-10-19  Bruno Haible  <bruno@clisp.org>
53920
53921         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53922
53923 2008-10-19  Bruno Haible  <bruno@clisp.org>
53924
53925         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53926         * lib/wait-process.c (WAIT_T): Remove type.
53927         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53928         (wait_subprocess): Update.
53929
53930 2008-10-19  Bruno Haible  <bruno@clisp.org>
53931
53932         New module 'atoll'.
53933         * modules/atoll: New file.
53934         * lib/stdlib.in.h (atoll): New declaration.
53935         * lib/atoll.c: New file, from glibc with modifications.
53936         * m4/atoll.m4: New file.
53937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53938         HAVE_ATOLL.
53939         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53940         * doc/posix-functions/atoll.texi: Mention the new module.
53941
53942 2008-10-19  Bruno Haible  <bruno@clisp.org>
53943
53944         Add strtoull() declaration to <stdlib.h>.
53945         * lib/stdlib.in.h (strtoull): New declaration.
53946         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53947         Set HAVE_STRTOULL.
53948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53949         HAVE_STRTOULL.
53950         * modules/strtoull (Depends-on): Add stdlib.
53951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53952         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53953         HAVE_STRTOULL.
53954
53955 2008-10-19  Bruno Haible  <bruno@clisp.org>
53956
53957         Add strtoll() declaration to <stdlib.h>.
53958         * lib/stdlib.in.h (strtoll): New declaration.
53959         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53960         Set HAVE_STRTOLL.
53961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53962         HAVE_STRTOLL.
53963         * modules/strtoll (Depends-on): Add stdlib.
53964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53965         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53966
53967 2008-10-19  Bruno Haible  <bruno@clisp.org>
53968
53969         * modules/bcopy (Depends-on): Add strings.
53970         (Include): Specify <strings.h>.
53971
53972 2008-10-19  Bruno Haible  <bruno@clisp.org>
53973
53974         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53975
53976 2008-10-19  Bruno Haible  <bruno@clisp.org>
53977
53978         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53979         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53980         mingw.
53981
53982 2008-10-19  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/atanl.c: Don't include isnanl.h.
53985         * lib/cosl.c: Likewise.
53986         * lib/ldexpl.c: Likewise.
53987         * lib/logl.c: Likewise.
53988         * lib/sinl.c: Likewise.
53989         * lib/sqrtl.c: Likewise.
53990         * lib/tanl.c: Likewise.
53991
53992         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53993         * lib/isnanf.h: Remove file.
53994         * lib/isnand.h: Remove file.
53995         * lib/isnanl.h: Remove file.
53996         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53997         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53998         macros.
53999         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54000         HAVE_ISNANF, don't define it as a C macro.
54001         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54002         HAVE_ISNAND, don't define it as a C macro.
54003         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54004         HAVE_ISNANL, don't define it as a C macro.
54005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54006         HAVE_ISNAN[FDL].
54007         * modules/isnanf (Files): Remove lib/isnanf.h.
54008         (Depends-on): Add math.
54009         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54010         (Include): Specify <math.h> instead of isnanf.h.
54011         * modules/isnand (Files): Remove lib/isnand.h.
54012         (Depends-on): Add math.
54013         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54014         (Include): Specify <math.h> instead of isnand.h.
54015         * modules/isnanl (Files): Remove lib/isnanl.h.
54016         (Depends-on): Add math.
54017         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54018         (Include): Specify <math.h> instead of isnanl.h.
54019         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54020         HAVE_ISNAN[FDL].
54021         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54022         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54023         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54024         * NEWS: Mention the change.
54025
54026 2008-10-18  Bruno Haible  <bruno@clisp.org>
54027
54028         Add getusershell(), setusershell(), endusershell() declarations to
54029         <unistd.h>.
54030         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54031         declarations.
54032         * lib/getusershell.c: Include unistd.h.
54033         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54034         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54035         HAVE_GETUSERSHELL.
54036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54037         and HAVE_GETUSERSHELL.
54038         * modules/getusershell (Depends-on): Add unistd, extensions.
54039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54040         (Include): Specify <unistd.h>.
54041         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54042         HAVE_GETUSERSHELL.
54043
54044 2008-10-18  Bruno Haible  <bruno@clisp.org>
54045
54046         Add a getloadavg() declaration to <stdlib.h>.
54047         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54048         getloadavg declaration.
54049         (getloadavg): New declaration.
54050         * lib/getloadavg.c: Include <stdlib.h> first.
54051         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54052         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54053         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54055         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54056         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54058         (Include): Specify <stdlib.h>.
54059         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54060         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54061
54062 2008-10-18  Bruno Haible  <bruno@clisp.org>
54063
54064         * lib/dirchownmod.c: Don't include lchmod.h.
54065
54066         Move the lchmod() declaration to <sys/stat.h>.
54067         * lib/lchmod.h: Remove file.
54068         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54069         (lchmod): New declaration, moved here from lib/lchown.h.
54070         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54071         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54073         and HAVE_LCHMOD.
54074         * modules/lchmod (Files): Remove lib/lchmod.h.
54075         (Depends-on): Add sys_stat, extensions.
54076         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54077         (Include): Specify <sys/stat.h> instead of lchmod.h.
54078         * modules/sys_stat (Depends-on): Add link-warning.
54079         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54080         definition of GL_LINK_WARNING.
54081         * NEWS: Mention the change.
54082
54083 2008-10-18  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/fchdir.c: Don't include dirfd.h.
54086         * lib/fts.c: Likewise.
54087         * lib/getcwd.c: Likewise.
54088         * lib/glob.c: Likewise.
54089
54090         Move the dirfd() declaration to <dirent.h>.
54091         * lib/dirfd.h: Remove file.
54092         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54093         (dirfd): New declaration.
54094         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54095         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54096         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54097         HAVE_DECL_DIRFD.
54098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54099         HAVE_DECL_DIRFD.
54100         * modules/dirfd (Files): Remove lib/dirfd.h.
54101         (Depends-on): Add dirent, extensions.
54102         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54103         (Include): Specify <dirent.h> instead of dirfd.h.
54104         * modules/dirent (Depends-on): Add link-warning.
54105         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54106         definition of GL_LINK_WARNING.
54107         * NEWS: Mention the change.
54108
54109 2008-10-18  Bruno Haible  <bruno@clisp.org>
54110
54111         Move the euidaccess() declaration to <unistd.h>.
54112         * lib/euidaccess.h: Remove file.
54113         * lib/unistd.in.h (euidaccess): New declaration.
54114         * lib/euidaccess.c: Don't include euidaccess.h.
54115         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54116         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54118         and HAVE_EUIDACCESS.
54119         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54120         (Depends-on): Add unistd.
54121         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54122         (Include): Specify <unistd.h> instead of euidaccess.h.
54123         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54124         HAVE_EUIDACCESS.
54125         * NEWS: Mention the change.
54126
54127 2008-10-18  Bruno Haible  <bruno@clisp.org>
54128
54129         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54130
54131         Move the getdomainname() declaration to <unistd.h>.
54132         * lib/getdomainname.h: Remove file.
54133         * lib/unistd.in.h (getdomainname): New declaration.
54134         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54135         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54136         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54137         HAVE_GETDOMAINNAME.
54138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54139         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54140         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54141         (Depends-on): Add unistd, extensions.
54142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54143         (Includes): Specify <unistd.h> instead of getdomainname.h.
54144         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54145         HAVE_GETDOMAINNAME.
54146         * NEWS: Mention the change.
54147
54148 2008-10-18  Bruno Haible  <bruno@clisp.org>
54149
54150         * modules/dirent: New file.
54151         * m4/dirent_h.m4: New file.
54152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54153         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54154         * modules/fchdir (Files): Remove lib/dirent.in.h.
54155         (Depends-on): Add dirent.
54156         (Makefile.am): Move rules to modules/dirent.
54157         * doc/posix-headers/dirent.texi: Mention the new module.
54158
54159 2008-10-18  Bruno Haible  <bruno@clisp.org>
54160
54161         Avoid -Wunused-parameter warnings in public gnulib header files.
54162         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54163         macro.
54164         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54165
54166 2008-10-18  Bruno Haible  <bruno@clisp.org>
54167
54168         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54169         * doc/glibc-functions/error.texi: Mention the module 'error'.
54170         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54171         * doc/glibc-functions/getdomainname.texi: Mention the module
54172         'getdomainname'.
54173         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54174         * doc/glibc-functions/getpagesize.texi: Mention the module
54175         'getpagesize'.
54176         * doc/glibc-functions/getusershell.texi: Mention the module
54177         'getusershell'.
54178         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54179         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54180         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54181         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54182         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54183         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54184         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54185         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54186         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54187         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54188         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54189         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54190         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54191         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54192
54193 2008-10-17  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54196         HP-UX and IRIX, use -0.0L.
54197         * tests/test-ceill.c (minus_zero): Likewise.
54198         * tests/test-floorl.c (minus_zero): Likewise.
54199         * tests/test-frexpl.c (minus_zero): Likewise.
54200         * tests/test-isnan.c (minus_zerol): Likewise.
54201         * tests/test-isnanl.h (minus_zero): Likewise.
54202         * tests/test-ldexpl.c (minus_zero): Likewise.
54203         * tests/test-roundl.c (minus_zero): Likewise.
54204         * tests/test-signbit.c (minus_zerol): Likewise.
54205         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54206         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54207         * tests/test-truncl.c (minus_zero): Likewise.
54208         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54209         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54210         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54211         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54212
54213 2008-10-17  Bruno Haible  <bruno@clisp.org>
54214
54215         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54216         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54217         that it gets activated only for gcc >= 3.0.
54218         * lib/dirent.in.h: Likewise.
54219         * lib/errno.in.h: Likewise.
54220         * lib/fcntl.in.h: Likewise.
54221         * lib/float.in.h: Likewise.
54222         * lib/iconv.in.h: Likewise.
54223         * lib/inttypes.in.h: Likewise.
54224         * lib/locale.in.h: Likewise.
54225         * lib/math.in.h: Likewise.
54226         * lib/netdb.in.h: Likewise.
54227         * lib/netinet_in.in.h: Likewise.
54228         * lib/search.in.h: Likewise.
54229         * lib/signal.in.h: Likewise.
54230         * lib/spawn.in.h: Likewise.
54231         * lib/stdarg.in.h: Likewise.
54232         * lib/stdint.in.h: Likewise.
54233         * lib/stdio.in.h: Likewise.
54234         * lib/stdlib.in.h: Likewise.
54235         * lib/string.in.h: Likewise.
54236         * lib/strings.in.h: Likewise.
54237         * lib/sys_file.in.h: Likewise.
54238         * lib/sys_ioctl.in.h: Likewise.
54239         * lib/sys_select.in.h: Likewise.
54240         * lib/sys_socket.in.h: Likewise.
54241         * lib/sys_stat.in.h: Likewise.
54242         * lib/sys_time.in.h: Likewise.
54243         * lib/sysexits.in.h: Likewise.
54244         * lib/time.in.h: Likewise.
54245         * lib/unistd.in.h: Likewise.
54246         * lib/wchar.in.h: Likewise.
54247         * lib/wctype.in.h: Likewise.
54248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54249
54250 2008-10-17  Jim Meyering  <meyering@redhat.com>
54251
54252         ignore-value: don't depend on inline module
54253         * modules/ignore-value (Depends-on): Remove 'inline'.
54254         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54255         Suggestion from Bruno Haible.
54256
54257 2008-10-17  Bruno Haible  <bruno@clisp.org>
54258
54259         New implementation of condition variables for Win32.
54260         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54261         (gl_linked_waitqueue_t): New type.
54262         (gl_cond_t): Use it.
54263         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54264         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54265         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54266         (glthread_cond_init_func, glthread_cond_wait_func,
54267         glthread_cond_timedwait_func, glthread_cond_signal_func,
54268         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54269         Reimplemented on the basis of gl_linked_waitqueue_t.
54270         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54271         gl_waitqueue_t.
54272         (gl_rwlock_t): Update.
54273         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54274
54275 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54276
54277         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54278         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54279
54280 2008-10-17  Jim Meyering  <meyering@redhat.com>
54281
54282         ignore-value: new module
54283         * modules/ignore-value: New file.
54284         * lib/ignore-value.h: New file.
54285         * MODULES.html.sh (Compiler warning management): New section,
54286         just for this module.  More to come.
54287
54288 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54289
54290         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54291         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54292         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54293
54294 2008-10-16  Jim Meyering  <meyering@redhat.com>
54295
54296         openat-die.c: avoid 'no previous prototype' warning
54297         * lib/openat-die.c: Include "openat.h".
54298         Reported by Reuben Thomas <rrt@sc3d.org>.
54299
54300 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54301
54302         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54303         * lib/netdb.in.h: Fix typo.
54304         Reported by Bruno Haible  <bruno@clisp.org>
54305
54306         * lib/netdb.in.h: Include sys/socket.h for platforms without
54307         netdb.h, to get structures like hostent on MinGW.
54308         * modules/netdb (Depends-on): Add sys_socket.
54309
54310 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54311
54312         * modules/netdb, modules/netdb-tests: New file.
54313         * m4/netdb_h.m4: New file.
54314         * lib/netdb.in.h: Add, currently just an empty file pending
54315         definitions.
54316         * tests/test-netdb.c: New file.
54317         * doc/posix-headers/netdb.texi: Mention that we replace it if
54318         needed.
54319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54320         netdb.
54321
54322 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54323
54324         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54325         with code.
54326
54327 2008-10-13  Bruno Haible  <bruno@clisp.org>
54328
54329         * lib/glthread/cond.c (glthread_cond_wait_func,
54330         glthread_cond_timedwait_func): Add a comment.
54331
54332 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54333
54334         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54335         * tests/test-select.c: Likewise,
54336
54337 2008-10-13  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/glthread/cond.c (glthread_cond_wait_func,
54340         glthread_cond_timedwait_func): Fix variable name.
54341         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54342
54343 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54344
54345         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54347         struct sockaddr.sa_len.
54348         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54349
54350 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54351
54352         * build-aux/pmccabe2html: Add css and css_url parameters.
54353
54354 2008-10-12  Bruno Haible  <bruno@clisp.org>
54355
54356         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54357         calling aclx_get.
54358         Reported by Rainer Tammer <tammer@tammer.net>.
54359
54360 2008-10-12  Bruno Haible  <bruno@clisp.org>
54361
54362         Use msvcrt aware primitives for creation/termination of Win32 threads.
54363         * lib/glthread/thread.c: Include <process.h>.
54364         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54365         (wrapper_func): Update signature.
54366         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54367
54368 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54369             Bruno Haible  <bruno@clisp.org>
54370
54371         Provide a Win32 implementation of the 'cond' module.
54372         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54373         * lib/glthread/cond.c (glthread_cond_init_func,
54374         glthread_cond_wait_func, glthread_cond_timedwait_func,
54375         glthread_cond_signal_func, glthread_cond_broadcast_func,
54376         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54377         * modules/cond (Dependencies): Add gettimeofday.
54378
54379 2008-10-11  Bruno Haible  <bruno@clisp.org>
54380
54381         Make sleep work on older versions of mingw.
54382         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54383         only whether it exists.
54384         * doc/posix-functions/sleep.texi: Mention the problem with older
54385         versions of mingw.
54386
54387 2008-10-11  Bruno Haible  <bruno@clisp.org>
54388
54389         New module 'shutdown'.
54390         * modules/shutdown: New file.
54391         * lib/sys_socket.in.h (shutdown): New declaration.
54392         * lib/winsock.c (shutdown): New function.
54393         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54394         GNULIB_SHUTDOWN.
54395         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54396         * doc/posix-functions/shutdown.texi: Document the new module.
54397
54398 2008-10-11  Jim Meyering  <meyering@redhat.com>
54399
54400         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54401
54402 2008-10-11  Bruno Haible  <bruno@clisp.org>
54403
54404         New module 'fclose'.
54405         * modules/fclose: New file.
54406         * lib/stdio.in.h (fclose): New declaration.
54407         * lib/fclose.c: New file.
54408         * m4/fclose.m4: New file.
54409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54410         REPLACE_FCLOSE.
54411         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54412         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54413         REPLACE_FCLOSE.
54414         * modules/close (Depends-on): fclose.
54415         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54416
54417 2008-10-11  Bruno Haible  <bruno@clisp.org>
54418
54419         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54420         set errno and don't call _close.
54421
54422 2008-10-10  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54425         ACL, not afterwards. Fixes test failure on Cygwin.
54426
54427 2008-10-09  Ben Pfaff  <blp@gnu.org>
54428
54429         * build-aux/announce-gen: Fix gnulib version related part of usage
54430         message.  Die with a useful error message if no tarballs are
54431         found.
54432
54433 2008-10-10  Jim Meyering  <meyering@redhat.com>
54434
54435         bootstrap: use git's --depth=N option only if it's supported
54436         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54437         recognize the --depth option.  Reported by Pádraig Brady.
54438
54439 2008-10-09  Bruno Haible  <bruno@clisp.org>
54440
54441         New module 'ioctl'.
54442         * modules/ioctl: New file.
54443         * lib/sys_socket.in.h (ioctl): Remove declaration.
54444         * lib/winsock.c: Include <sys/ioctl.h>.
54445         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54446         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54447         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54448         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54449         * doc/posix-functions/ioctl.texi: Mention the new module.
54450
54451 2008-10-09  Bruno Haible  <bruno@clisp.org>
54452
54453         New module 'sys_ioctl'.
54454         * lib/sys_ioctl.in.h: New file.
54455         * m4/sys_ioctl_h.m4: New file.
54456         * modules/sys_ioctl: New file.
54457         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54458
54459 2008-10-09  Bruno Haible  <bruno@clisp.org>
54460
54461         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54462         * lib/winsock.c: Include <stdarg.h>.
54463         (rpl_ioctl): Change to second argument 'int' and then varargs.
54464
54465 2008-10-09  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54468         when the sys_socket module is present and the system has <winsock2.h>.
54469
54470 2008-10-09  Bruno Haible  <bruno@clisp.org>
54471
54472         * doc/posix-functions/close.texi: Mention module 'close' instead of
54473         module 'sys_socket'.
54474
54475 2008-10-09  Bruno Haible  <bruno@clisp.org>
54476
54477         * doc/glibc-headers/sys_ioctl.texi: New file.
54478         * doc/gnulib.texi: Include it.
54479
54480 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54481             Bruno Haible  <bruno@clisp.org>
54482
54483         Combine the two replacements of 'close'.
54484         * lib/sys_socket.in.h (close): Define to a reminder to include
54485         <unistd.h>.
54486         (_gl_close_fd_maybe_socket): New declaration.
54487         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54488         * lib/winsock.c (close): Remove undefinition.
54489         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54490         needed for the gnulib module 'close'.
54491         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54492         define to an error symbol or to a warning, if suitable.
54493         * lib/close.c: Include <sys/socket.h>.
54494         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54495         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54496         UNISTD_H_HAVE_WINSOCK2_H.
54497         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54499         UNISTD_H_HAVE_WINSOCK2_H.
54500         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54501         (configure.ac): Set a module indicator.
54502         (Makefile.am): Substitute GNULIB_CLOSE.
54503         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54504         * modules/poll-tests (Depends-on): Add close.
54505         * modules/select-tests (Depends-on): Likewise.
54506
54507 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54508             Bruno Haible  <bruno@clisp.org>
54509
54510         New module 'close'.
54511         * modules/close: New file.
54512         * lib/unistd.in.h (close): Move declaration out of the
54513         FCHDIR_REPLACEMENT scope.
54514         (_gl_unregister_fd): New declaration.
54515         * lib/close.c: New file.
54516         * lib/fchdir.c (rpl_close): Remove function.
54517         * m4/close.m4: New file.
54518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54519         close.
54520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54521         REPLACE_CLOSE.
54522         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54523         REPLACE_CLOSE.
54524         * modules/fchdir (Depends-on): Add close.
54525
54526 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54527             Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/fcntl.in.h (open): Simplify conditionals.
54530         (_gl_register_fd): New declaration.
54531         * lib/fchdir.c (rpl_open): Remove function.
54532         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54533         also.
54534         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54536         open.
54537
54538 2008-10-09  Jim Meyering  <meyering@redhat.com>
54539
54540         GNUmakefile: use the more name-space-friendly "_version"
54541         * top/GNUmakefile (_dummy): Update.
54542         (_version): Rename from "version".
54543
54544 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54545             Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54548         rpl_close.
54549         (_gl_register_fd): New function, extracted from rpl_open.
54550         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54551         (rpl_open, rpl_opendir): Use _gl_register_fd.
54552
54553 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54554
54555         Fix organization of 'open' replacement.
54556         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54557         (gl_FUNC_OPEN): Use it.
54558         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54559
54560 2008-10-08  Bruno Haible  <bruno@clisp.org>
54561
54562         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54563
54564 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54565
54566         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54567         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54568         listen).
54569
54570 2008-10-08  Eric Blake  <ebb9@byu.net>
54571
54572         GNUmakefile: add 'make version' target
54573         * top/GNUmakefile (_curr-ver): Split version update rules...
54574         (version): ...into a target.
54575
54576 2008-10-07  Bruno Haible  <bruno@clisp.org>
54577
54578         Use a more portable replacement expression for -0.0L.
54579         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54580         instead of -0.0L. Fix m4 quotation.
54581
54582         * tests/test-signbit.c: Include <float.h>.
54583         (minus_zero): New variable.
54584         (test_signbitl): Use minus_zero instead of -zero.
54585         * modules/signbit-tests (Depends-on): Add float.
54586
54587         * tests/test-ceill.c: Include <float.h>.
54588         (zero): Remove variable.
54589         (minus_zero): New variable.
54590         (main): Use minus_zero instead of -zero.
54591         * modules/ceill-tests (Depends-on): Add float.
54592
54593         * tests/test-floorl.c: Include <float.h>.
54594         (zero): Remove variable.
54595         (minus_zero): New variable.
54596         (main): Use minus_zero instead of -zero.
54597         * modules/floorl-tests (Depends-on): Add float.
54598
54599         * tests/test-roundl.c: Include <float.h>.
54600         (zero): Remove variable.
54601         (minus_zero): New variable.
54602         (main): Use minus_zero instead of -zero.
54603         * modules/roundl-tests (Depends-on): Add float.
54604
54605         * tests/test-truncl.c: Include <float.h>.
54606         (zero): Remove variable.
54607         (minus_zero): New variable.
54608         (main): Use minus_zero instead of -zero.
54609         * modules/truncl-tests (Depends-on): Add float.
54610
54611         * tests/test-frexpl.c (zero): Remove variable.
54612         (minus_zero): New variable.
54613         (main): Use minus_zero instead of -zero.
54614         * modules/frexpl-tests (Depends-on): Add float.
54615
54616         * tests/test-isnan.c (zerol): Remove variable.
54617         (minus_zerol): New variable.
54618         (test_long_double): Use minus_zerol instead of -zerol.
54619         * modules/isnan-tests (Depends-on): Add float.
54620
54621         * tests/test-isnanl.h (zero): Remove variable.
54622         (minus_zero): New variable.
54623         (main): Use minus_zero instead of -zero.
54624         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54625         * modules/isnanl-tests (Depends-on): Add float.
54626
54627         * tests/test-ldexpl.c (zero): Remove variable.
54628         (minus_zero): New variable.
54629         (main): Use minus_zero instead of -zero.
54630         * modules/ldexpl-tests (Depends-on): Add float.
54631
54632         * tests/test-snprintf-posix.h (zerol): Remove variable.
54633         (minus_zerol): New variable.
54634         (test_function): Use minus_zerol instead of -zerol.
54635         * modules/snprintf-posix-tests (Depends-on): Add float.
54636         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54637
54638         * tests/test-sprintf-posix.h (zerol): Remove variable.
54639         (minus_zerol): New variable.
54640         (test_function): Use minus_zerol instead of -zerol.
54641         * modules/sprintf-posix-tests (Depends-on): Add float.
54642         * modules/vsprintf-posix-tests (Depends-on): Add float.
54643
54644         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54645         (minus_zerol): New variable.
54646         (test_function): Use minus_zerol instead of -zerol.
54647         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54648
54649         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54650         (minus_zerol): New variable.
54651         (test_function): Use minus_zerol instead of -zerol.
54652         * modules/vasprintf-posix-tests (Depends-on): Add float.
54653
54654 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54655
54656         * MODULES.html.sh (Support for building documentation): Mention
54657         pmccabe2html.  Sort entries.
54658
54659         Add pmccabe2html module, from gnupdf.
54660         * build-aux/pmccabe.css: New file.
54661         * build-aux/pmccabe2html: New file.
54662         * m4/pmccabe2html.m4: New file.
54663         * modules/pmccabe2html: New file.
54664
54665 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54666
54667         flock: new module
54668         * MODULES.html.sh: Add to list of modules.
54669         * lib/flock.c: flock implementation for Windows and Unix systems
54670         which have fcntl.
54671         * doc/glibc-functions/flock.texi: Update documentation.
54672         * lib/sys_file.in.h: <sys/file.h> header file.
54673         * m4/flock.m4: M4 macros.
54674         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54675         * modules/flock: flock module.
54676         * modules/flock-tests: flock tests module.
54677         * modules/sys_file: sys/file.h module.
54678         * tests/test-flock.c: test suite for flock.
54679
54680 2008-10-06  Jim Meyering  <meyering@redhat.com>
54681
54682         bootstrap: check for LT_INIT more portably still ;-)
54683         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54684         Spotted by Bruno Haible.
54685
54686 2008-10-06  Eric Blake  <ebb9@byu.net>
54687
54688         test-signbit: avoid tripping Irix cc bug on -0.0L
54689         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54690         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54691         entire testsuite consistent and avoids an Irix 6.2 bug.
54692
54693 2008-10-05  Bruno Haible  <bruno@clisp.org>
54694             Jim Meyering  <jim@meyering.net>
54695
54696         Add an option for ignoring EPIPE during close_stdout.
54697         * lib/closeout.h: Include <stdbool.h>.
54698         (close_stdout_set_ignore_EPIPE): New declaration.
54699         * lib/closeout.c: Include <stdbool.h>.
54700         (ignore_EPIPE): New variable.
54701         (close_stdout_set_ignore_EPIPE): New function.
54702         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54703         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54704         failure.
54705         * modules/closeout (Depends-on): Add stdbool.
54706
54707 2008-10-05  Bruno Haible  <bruno@clisp.org>
54708
54709         * modules/accept: New file.
54710         * modules/bind: New file.
54711         * modules/connect: New file.
54712         * modules/getpeername: New file.
54713         * modules/getsockname: New file.
54714         * modules/getsockopt: New file.
54715         * modules/listen: New file.
54716         * modules/recv: New file.
54717         * modules/recvfrom: New file.
54718         * modules/send: New file.
54719         * modules/sendto: New file.
54720         * modules/setsockopt: New file.
54721         * modules/socket: New file.
54722         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54723         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54724         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54725         the particular module is requested. Add a link warning when the
54726         particular module is not requested.
54727         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54728         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54729         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54730         the particular module is requested.
54731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54732         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54733         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54734         * modules/sys_socket (Depends-on): Add link-warning.
54735         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54736         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54737         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54738         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54739         GL_LINK_WARNING.
54740         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54741         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54742         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54743         * doc/posix-functions/getpeername.texi: Mention the new module
54744         'getpeername'.
54745         * doc/posix-functions/getsockname.texi: Mention the new module
54746         'getsockname'.
54747         * doc/posix-functions/getsockopt.texi: Mention the new module
54748         'getsockopt'.
54749         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54750         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54751         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54752         * doc/posix-functions/send.texi: Mention the new module 'send'.
54753         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54754         * doc/posix-functions/setsockopt.texi: Mention the new module
54755         'setsockopt'.
54756         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54757         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54758         listen, connect, accept.
54759         * modules/select-tests (Depends-on): Likewise.
54760
54761 2008-10-05  Bruno Haible  <bruno@clisp.org>
54762
54763         * lib/winsock.c (strerror): Remove unused #undef.
54764         (rpl_close): Remove unused local variable.
54765
54766         * modules/sys_socket (Depends-on); Add errno.
54767
54768 2008-10-05  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54771         (select): Add a link warning when the 'select' module is not used.
54772         * modules/sys_select (Depends-on): Add link-warning.
54773         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54774         Suggested by Paolo Bonzini.
54775
54776 2008-10-05  Jim Meyering  <meyering@redhat.com>
54777
54778         bootstrap: check for LT_INIT more portably
54779         * build-aux/bootstrap: Avoid using grep -E, since it's not
54780         portable enough.  Suggestion from Bruno Haible.
54781
54782 2008-10-05  Bruno Haible  <bruno@clisp.org>
54783
54784         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54785         as being fixed by gnulib.
54786
54787 2008-10-05  Bruno Haible  <bruno@clisp.org>
54788
54789         * modules/select-tests: New file, mostly copied from
54790         modules/sys_select-tests.
54791         * tests/test-select.c: New file, mostly copied from
54792         tests/test-sys_select.c.
54793         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54794         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54795         (Makefile.am): Remove test_sys_select_LDADD.
54796
54797         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54798         to an undefined symbol, for an error message.
54799         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54800         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54801         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54802         winsock-select.c here.
54803         * modules/sys_select (Files): Remove lib/winsock-select.c.
54804         (Depends-on): Remove alloca.
54805         (Makefile.am): Substitute GNULIB_SELECT.
54806         * modules/select: New file.
54807         * doc/posix-functions/select.texi: Update.
54808
54809 2008-10-05  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54812         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54813         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54814         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54815         getdtablesize.
54816         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54817         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54818
54819 2008-10-05  Bruno Haible  <bruno@clisp.org>
54820
54821         * modules/getdtablesize-tests: New file.
54822         * tests/test-getdtablesize.c: New file.
54823
54824         New module 'getdtablesize'.
54825         * lib/unistd.in.h (getdtablesize): New declaration.
54826         * lib/getdtablesize.c: New file.
54827         * m4/getdtablesize.m4: New file.
54828         * modules/getdtablesize: New file.
54829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54830         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54831         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54832         HAVE_GETDTABLESIZE.
54833         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54834
54835 2008-10-05  Bruno Haible  <bruno@clisp.org>
54836
54837         * modules/sched (Makefile.am): Fix typo.
54838         Reported by Simon Josefsson.
54839
54840 2008-10-05  Jim Meyering  <meyering@redhat.com>
54841
54842         bootstrap: check for LT_INIT, too
54843         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54844         are deprecated.  Suggestion from Ralf Wildenhues.
54845
54846 2008-10-05  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54849         overriding them by ours.
54850         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54851
54852 2008-10-05  Jim Meyering  <meyering@redhat.com>
54853
54854         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54855         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54856         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54857
54858 2008-10-04  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/dup2 (License): Change to LGPLv2+.
54861         * modules/sleep (License): Likewise.
54862         * modules/perror (License): Likewise.
54863         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54864         Blake.
54865         * modules/signal (License): Likewise.
54866         * modules/sigprocmask (License): Likewise.
54867         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54868         Meyering.
54869
54870 2008-10-04  Bruno Haible  <bruno@clisp.org>
54871
54872         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54873         Reported by Rainer Tammer <tammer@tammer.net>.
54874
54875 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54876             Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54879         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54880         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54881
54882 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54883
54884         filevercmp: new module
54885         * lib/filevercmp.h: New function filevercmp comparing version strings.
54886         * lib/filevercmp.c: Implementation of filevercmp function.
54887         * modules/filevercmp: Module metadata.
54888         * tests/test-filevercmp.c: Unit test for new module.
54889         * modules/filevercmp-tests: Unit test metadata.
54890         * MODULES.html.sh: Add filevercmp module.
54891
54892 2008-10-03  Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/c-ctype.h: Add comment.
54895         Reported by Jim Meyering.
54896
54897 2008-10-02  Bruno Haible  <bruno@clisp.org>
54898
54899         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54900
54901 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54902
54903         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54904         name of bootstrap.conf accordingly.
54905
54906 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54907
54908         * build-aux/bootstrap: Install git-merge-changelog configuration
54909         items into .gitconfig if needed.
54910
54911 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54912
54913         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54914         git repository, and initialize/update it accordingly.
54915
54916 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54917
54918         * modules/fsync-tests: New file.
54919         * tests/test-fsync.c: New file.
54920
54921         New module 'fsync'.
54922         * lib/fsync.c: New file.
54923         * m4/fsync.m4: New file.
54924         * modules/fsync: New file.
54925         * lib/unistd.in.h (fsync): New declaration.
54926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54927         GNULIB_FSYNC and HAVE_FSYNC.
54928         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54929         * MODULES.html.sh (posix_functions): Add fsync.
54930         * doc/posix-functions/fsync.texi: Mention the new module.
54931
54932 2008-10-02  Jim Meyering  <meyering@redhat.com>
54933
54934         fts.c: sync with similar code from coreutils' remove.c
54935         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54936         Guard also with "#if defined __linux__", since for now at least,
54937         this code is Linux-kernel-specific.
54938
54939 2008-10-02  Jim Meyering  <meyering@redhat.com>
54940
54941         fts: bug fixes
54942         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54943         Include <sys/vfs.h>, not <sys/statfs.h>.
54944
54945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54946         Include <sys/vfs.h>, not <sys/statfs.h>.
54947
54948 2008-10-01  Bruno Haible  <bruno@clisp.org>
54949
54950         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54952         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54953         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54954         * doc/posix-functions/posix_spawnp.texi: Likewise.
54955         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54956         whether posix_spawn actually works.
54957         * m4/pipe.m4 (gl_PIPE): Likewise.
54958         * modules/execute (Files): Add m4/posix_spawn.m4.
54959         * modules/pipe (Files): Add m4/posix_spawn.m4.
54960         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54961
54962 2008-10-01  Jim Meyering  <meyering@redhat.com>
54963
54964         remove trailing spaces
54965         * NEWS: Likewise.
54966         * lib/poll.c (poll): Likewise.
54967         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54968         * lib/winsock.c (rpl_close): Likewise.
54969         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54970         * modules/yield: Likewise.
54971         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54972         * tests/test-sys_select.c (connect_to_socket): Likewise.
54973
54974         fts.c: adjust a new interface to be more generally useful
54975         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54976         (fts_build): Adjust caller.
54977
54978 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54979
54980         * modules/cond-tests: New file.
54981         * tests/test-cond.c: New file.
54982
54983 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54984             Bruno Haible  <bruno@clisp.org>
54985
54986         * modules/cond (Dependencies): Add errno, time.
54987         * lib/glthread/cond.h: Include <time.h>.
54988         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54989         across platforms.
54990
54991 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54992             Bruno Haible  <bruno@clisp.org>
54993
54994         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54995
54996 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54997             Bruno Haible  <bruno@clisp.org>
54998
54999         * modules/tls-tests (Depends-on): Add thread, yield.
55000         (configure.ac): Remove all checks.
55001         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55002         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55003         gl_thread_self): Remove definitions. Include glthread/thread.h and
55004         glthread/yield.h instead.
55005         (test_tls): Pass an additional NULL argument to gl_thread_join.
55006
55007 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55008             Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/lock-tests (Depends-on): Add thread, yield.
55011         (configure.ac): Remove all checks.
55012         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55013         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55014         gl_thread_self): Remove definitions. Include glthread/thread.h and
55015         glthread/yield.h instead.
55016         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55017         additional NULL argument to gl_thread_join.
55018
55019 2008-09-30  Bruno Haible  <bruno@clisp.org>
55020
55021         Fix the Win32 implementation of the 'thread' module.
55022         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55023         pointer type.
55024         (gl_thread_self): Invoke gl_thread_self_func.
55025         (gl_thread_self_func): New declaration.
55026         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55027         (do_init_self_key, init_self_key): New functions.
55028         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55029         Remove some fields.
55030         (running_threads, running_lock): Remove variables.
55031         (get_current_thread_handle): New function.
55032         (gl_thread_self_func, wrapper_func, glthread_create_func,
55033         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55034         simplified.
55035
55036 2008-09-30  Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55039         files.
55040
55041 2008-09-30  Jim Meyering  <meyering@redhat.com>
55042
55043         fts.m4: correct the test for statfs.f_type
55044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55045         when checking for statfs.f_type.
55046
55047 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55048
55049         tests: avoid some compiler warnings
55050         * tests/test-memchr.c (main): Pass NULL indirectly.
55051         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55052
55053 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55054
55055         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55056         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55057         exactly specified dayshifts.
55058         (dayshift): New rule.
55059         (rel): Add dayshift.
55060         (relative_time_table) [tomorrow, yesterday, today, now]:
55061         Use tDAY_SHIFT in place of tDAY_UNIT.
55062         * tests/test-getdate.c: Add tests for now-disallowed countable
55063         dayshifts, e.g., "4 yesterday ago".
55064
55065 2008-09-29  Bruno Haible  <bruno@clisp.org>
55066
55067         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55068         * tests/test-posix_spawn1.in.sh: Renamed from
55069         tests/test-posix_spawn.in.sh.
55070         * tests/test-posix_spawn2.c: New file.
55071         * tests/test-posix_spawn2.in.sh: New file.
55072         * modules/posix_spawnp-tests (Files): Update.
55073         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55074
55075 2008-09-29  Bruno Haible  <bruno@clisp.org>
55076
55077         Propagate effects of putenv/setenv/unsetenv to child processes.
55078         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55079         * lib/pipe.c (create_pipe): Likewise.
55080
55081 2008-09-29  Bruno Haible  <bruno@clisp.org>
55082
55083         Enable use of shell scripts as executables in mingw.
55084         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55085         run the program as a shell script.
55086         * lib/pipe.c (create_pipe): Likewise.
55087         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55088         resulting array.
55089
55090 2008-09-29  Eric Blake  <ebb9@byu.net>
55091
55092         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55093
55094 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55095
55096         * doc/posix-functions/accept.texi: Update mingw problems.
55097         * doc/posix-functions/bind.texi: Update mingw problems.
55098         * doc/posix-functions/close.texi: Update mingw problems.
55099         * doc/posix-functions/connect.texi: Update mingw problems.
55100         * doc/posix-functions/getpeername.texi: Update mingw problems.
55101         * doc/posix-functions/getsockname.texi: Update mingw problems.
55102         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55103         * doc/posix-functions/ioctl.texi: Update mingw problems.
55104         * doc/posix-functions/listen.texi: Update mingw problems.
55105         * doc/posix-functions/recv.texi: Update mingw problems.
55106         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55107         * doc/posix-functions/select.texi: Update mingw problems.
55108         * doc/posix-functions/send.texi: Update mingw problems.
55109         * doc/posix-functions/sendto.texi: Update mingw problems.
55110         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55111         * doc/posix-functions/socket.texi: Update mingw problems.
55112
55113 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55114             Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/sys_select.in.h: Include sys/time.h.
55117         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55118         * modules/sys_select: Depend on sys_time.
55119         * tests/test-sys_select.c: Test that sys/select.h defines struct
55120         timeval fully.
55121
55122 2008-09-29  Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55125         * lib/sys_select.in.h: Likewise.
55126
55127 2008-09-29  Bruno Haible  <bruno@clisp.org>
55128
55129         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55130
55131 2008-09-29  Bruno Haible  <bruno@clisp.org>
55132
55133         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55134         Set LIBSOCKET instead of augmenting LIBS.
55135         * modules/sockets (Link): New section.
55136         * modules/sockets-tests (test_sockets_LDADD): New variable.
55137         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55138         * modules/poll-tests (test_poll_LDADD): New variable.
55139         * NEWS: Document the change.
55140
55141 2008-09-29  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55144         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55145         ARPA_INET_H directly.
55146         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55147
55148 2008-09-28  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55151         from gl_HEADER_SYS_SOCKET.
55152         (gl_HEADER_SYS_SOCKET): Invoke it.
55153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55154
55155 2008-09-28  Bruno Haible  <bruno@clisp.org>
55156
55157         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55158         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55159         Needed on OSF/1 4.0.
55160
55161 2008-09-28  Bruno Haible  <bruno@clisp.org>
55162
55163         Override open more carefully.
55164         * lib/open.c (orig_open): New function.
55165         (rpl_open): Use orig_open instead of open.
55166         * lib/fcntl.in.h: Add special invocation convention.
55167         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55168         (gl_FUNC_OPEN): Invoke it.
55169
55170         Override freopen more carefully.
55171         * lib/freopen.c (orig_freopen): New function.
55172         (rpl_freopen): Use orig_freopen instead of freopen.
55173         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55174         (gl_FUNC_FREOPEN): Invoke it.
55175
55176         Override fopen more carefully.
55177         * lib/fopen.c (orig_fopen): New function.
55178         (rpl_fopen): Use orig_fopen instead of fopen.
55179         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55180         (gl_FUNC_FOPEN): Invoke it.
55181         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55182
55183 2008-09-28  Bruno Haible  <bruno@clisp.org>
55184
55185         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55186         SIGPIPE.
55187
55188 2008-09-28  Bruno Haible  <bruno@clisp.org>
55189
55190         * tests/test-sigaction.c (handler, main): Disable the check whether
55191         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55192         glibc systems with LinuxThreads.
55193
55194 2008-09-28  Bruno Haible  <bruno@clisp.org>
55195
55196         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55197
55198         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55199         with AIX xlc.
55200         * lib/fcntl.in.h (open): Likewise.
55201         Reported by Rainer Tammer <tammer@tammer.net>.
55202
55203 2008-09-28  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/posix_spawnp-tests: New file.
55206         * tests/test-posix_spawn.c: New file.
55207         * tests/test-posix_spawn.in.sh: New file.
55208
55209         New module 'posix_spawnp'.
55210         * modules/posix_spawnp: New file.
55211         * lib/spawnp.c: New file, from GNU libc with modifications.
55212         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55213
55214         New module 'posix_spawn'.
55215         * modules/posix_spawn: New file.
55216         * lib/spawn.c: New file, from GNU libc with modifications.
55217         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55218
55219         New module 'posix_spawnattr_destroy'.
55220         * modules/posix_spawnattr_destroy: New file.
55221         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55222         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55223         module.
55224
55225         New module 'posix_spawnattr_setsigmask'.
55226         * modules/posix_spawnattr_setsigmask: New file.
55227         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55228         modifications.
55229         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55230         new module.
55231
55232         New module 'posix_spawnattr_getsigmask'.
55233         * modules/posix_spawnattr_getsigmask: New file.
55234         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55235         modifications.
55236         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55237         new module.
55238
55239         New module 'posix_spawnattr_setsigdefault'.
55240         * modules/posix_spawnattr_setsigdefault: New file.
55241         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55242         modifications.
55243         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55244         new module.
55245
55246         New module 'posix_spawnattr_getsigdefault'.
55247         * modules/posix_spawnattr_getsigdefault: New file.
55248         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55249         modifications.
55250         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55251         new module.
55252
55253         New module 'posix_spawnattr_setschedpolicy'.
55254         * modules/posix_spawnattr_setschedpolicy: New file.
55255         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55256         modifications.
55257         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55258         new module.
55259
55260         New module 'posix_spawnattr_getschedpolicy'.
55261         * modules/posix_spawnattr_getschedpolicy: New file.
55262         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55263         modifications.
55264         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55265         new module.
55266
55267         New module 'posix_spawnattr_setschedparam'.
55268         * modules/posix_spawnattr_setschedparam: New file.
55269         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55270         modifications.
55271         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55272         new module.
55273
55274         New module 'posix_spawnattr_getschedparam'.
55275         * modules/posix_spawnattr_getschedparam: New file.
55276         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55277         modifications.
55278         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55279         new module.
55280
55281         New module 'posix_spawnattr_setpgroup'.
55282         * modules/posix_spawnattr_setpgroup: New file.
55283         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55284         modifications.
55285         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55286         module.
55287
55288         New module 'posix_spawnattr_getpgroup'.
55289         * modules/posix_spawnattr_getpgroup: New file.
55290         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55291         modifications.
55292         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55293         module.
55294
55295         New module 'posix_spawnattr_setflags'.
55296         * modules/posix_spawnattr_setflags: New file.
55297         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55298         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55299         module.
55300
55301         New module 'posix_spawnattr_getflags'.
55302         * modules/posix_spawnattr_getflags: New file.
55303         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55304         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55305         module.
55306
55307         New module 'posix_spawnattr_init'.
55308         * modules/posix_spawnattr_init: New file.
55309         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55310         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55311         module.
55312
55313         New module 'posix_spawn_file_actions_destroy'.
55314         * modules/posix_spawn_file_actions_destroy: New file.
55315         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55316         modifications.
55317         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55318         the new module.
55319
55320         New module 'posix_spawn_file_actions_addopen'.
55321         * modules/posix_spawn_file_actions_addopen: New file.
55322         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55323         modifications.
55324         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55325         the new module.
55326
55327         New module 'posix_spawn_file_actions_adddup2'.
55328         * modules/posix_spawn_file_actions_adddup2: New file.
55329         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55330         modifications.
55331         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55332         the new module.
55333
55334         New module 'posix_spawn_file_actions_addclose'.
55335         * modules/posix_spawn_file_actions_addclose: New file.
55336         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55337         modifications.
55338         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55339         the new module.
55340
55341         New module 'posix_spawn_file_actions_init'.
55342         * modules/posix_spawn_file_actions_init: New file.
55343         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55344         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55345         new module.
55346
55347         New module 'posix_spawn-internal'.
55348         * modules/posix_spawn-internal: New file.
55349         * lib/spawn_int.h: New file, from GNU libc with modifications.
55350         * lib/spawni.c: New file, from GNU libc with modifications.
55351         * m4/posix_spawn.m4: New file.
55352
55353         New module 'spawn'.
55354         * modules/spawn: New file.
55355         * lib/spawn.in.h: New file, from GNU libc with modifications.
55356         * m4/spawn_h.m4: New file.
55357         * doc/posix-headers/spawn.texi: Mention the new module.
55358
55359 2008-09-28  Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/sched-tests: New file.
55362         * tests/test-sched.c: New file.
55363
55364         New module 'sched'.
55365         * modules/sched: New file.
55366         * lib/sched.in.h: New file.
55367         * m4/sched_h.m4: New file.
55368         * doc/posix-headers/sched.texi: Mention the new module.
55369
55370 2008-09-27  Eric Blake  <ebb9@byu.net>
55371
55372         Fix previous patch, and tweak references to $0.
55373         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55374         (func_version, func_gnulib_dir): Don't call this program
55375         gnulib-tool.
55376         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55377         with using $0 in function.
55378         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55379         (func_fatal_error): Reuse the name the user invoked us with.
55380
55381 2008-09-27  Bruno Haible  <bruno@clisp.org>
55382
55383         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55384         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55385         (gl_ICONV_H): Not here.
55386         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55387         instead of assigning ICONV_H directly.
55388
55389         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55391         WCHAR_H directly.
55392
55393 2008-09-27  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55396         * modules/arpa_inet (Depends-on): Add link-warning.
55397         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55398         * modules/unistd (Makefile.am): Likewise.
55399
55400 2008-09-26  Bruno Haible  <bruno@clisp.org>
55401
55402         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55403         variables.
55404         (func_version): Essentially copied from gnulib-tool.
55405         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55406         func_readlink): Copied from gnulib-tool.
55407
55408 2008-09-26  Bruno Haible  <bruno@clisp.org>
55409
55410         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55411         invoking git-version-gen.
55412
55413 2008-09-26  Bruno Haible  <bruno@clisp.org>
55414
55415         * posix-modules: Update to directory names changed on 2008-01-19.
55416         Remove commas in output before splitting into words. No more need to
55417         avoid 'ftruncate' since 2007-02-19.
55418
55419 2008-09-26  Bruno Haible  <bruno@clisp.org>
55420
55421         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55422
55423 2008-09-26  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55426         * modules/fwriteerror (Depends-on): Add errno.
55427
55428 2008-09-26  Bruno Haible  <bruno@clisp.org>
55429
55430         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55431         * tests/test-vc-list-files-cvs.sh: Likewise.
55432
55433 2008-09-26  Bruno Haible  <bruno@clisp.org>
55434
55435         * doc/posix-headers/sys_resource.texi: Reorder items.
55436
55437 2008-09-26  Jim Meyering  <meyering@redhat.com>
55438
55439         fts: tweak inode comparison function
55440         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55441         inode numbers, as documented.
55442
55443         fts: sort dirent entries on inode number before traversing
55444         This avoids a quadratic, seek-related performance penalty when
55445         operating on a directory containing many entries (measurable at 10k;
55446         3.5 hours at 2 million entries with a cold cache) on certain types
55447         of file systems, including ext3 and ext4, but not tmpfs.
55448         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55449         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55450         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55451         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55452         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55453         (fts_build): Set the stat.st_ino member from D_INO.
55454         If it is likely to be useful, sort dirent entries on inode number.
55455
55456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55457         and the struct statfs.f_type member.
55458         * modules/fts (Depends-on): Add d-ino.
55459
55460 2008-09-26  Bruno Haible  <bruno@clisp.org>
55461
55462         * modules/sigpipe-die (Depends-on): Add sigpipe.
55463
55464         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55465         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55466         and GNULIB_STDIO_H_SIGPIPE are set.
55467         * lib/stdio-write.c: New file.
55468         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55469         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55470         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55471         REPLACE_STDIO_WRITE_FUNCS.
55472         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55473         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55474         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55475         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55476         * modules/stdio (Files): Add lib/stdio-write.c.
55477         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55478         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55479         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55480         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55481         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55482         REPLACE_FPRINTF_POSIX.
55483         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55484         REPLACE_PRINTF_POSIX.
55485         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55486         REPLACE_VFPRINTF_POSIX.
55487         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55488         REPLACE_VPRINTF_POSIX.
55489         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55490         SIGPIPE issue.
55491         * doc/posix-functions/fputc.texi: Likewise.
55492         * doc/posix-functions/fputs.texi: Likewise.
55493         * doc/posix-functions/fwrite.texi: Likewise.
55494         * doc/posix-functions/printf.texi: Likewise.
55495         * doc/posix-functions/putc.texi: Likewise.
55496         * doc/posix-functions/putchar.texi: Likewise.
55497         * doc/posix-functions/puts.texi: Likewise.
55498         * doc/posix-functions/vfprintf.texi: Likewise.
55499         * doc/posix-functions/vprintf.texi: Likewise.
55500
55501         * modules/safe-write (Depends-on): Add write.
55502
55503         * modules/sigpipe-tests: New file.
55504         * tests/test-sigpipe.c: New file.
55505         * tests/test-sigpipe.sh: New file.
55506
55507         * modules/write: New file.
55508         * lib/unistd.in.h: Include <sys/types.h>.
55509         (write): New declaration.
55510         * lib/write.c: New file.
55511         * m4/write.m4: New file.
55512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55513         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55514         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55515         GNULIB_WRITE, REPLACE_WRITE.
55516         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55517         and the SIGPIPE issue.
55518
55519         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55520         (raise): New declaration.
55521         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55522         (ext_signal): New function.
55523         (rpl_raise): New function.
55524         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55525         GNULIB_SIGNAL_H_SIGPIPE.
55526         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55527         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55528
55529         * modules/sigpipe: New file.
55530         * m4/sigpipe.m4: New file.
55531
55532 2008-09-25  Derek Price  <derek@ximbiot.com>
55533             Bruno Haible  <bruno@clisp.org>
55534
55535         * gnulib-tool (func_import): Report all license incompatibilities, not
55536         just the first one.
55537
55538 2008-09-25  Bruno Haible  <bruno@clisp.org>
55539
55540         * gnulib-tool (func_import): When computing the edits, consider not
55541         only the Makefile.ams that exist but also those that will be generated.
55542
55543 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55544
55545         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55546         fixes gnulib-tool --test warning about duplicate dependency.
55547
55548 2008-09-25  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool: Don't ask the user to perform edits in the generated
55551         Makefile.ams.
55552         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55553         apply to the Makefile.am being generated.
55554         (func_emit_tests_Makefile_am): Execute edits that apply to the
55555         Makefile.am being generated.
55556         (func_import): Setup list of Makefile.am edits before emitting the
55557         Makefile.ams, not at the end.
55558         (func_create_testdir): Update.
55559         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55560
55561 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55562
55563         * gnulib-tool (func_import): Store the --tests-base option in the
55564         comment in gnulib-cache.m4.
55565
55566 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55567
55568         * NEWS: Document increased portability that sys_select now provides.
55569
55570         * lib/sys_select.in.h: Install select wrapper.
55571         * lib/sys_socket.in.h: Use more descriptive name when there is no
55572         select wrapper.
55573         * lib/winsock-select.c: New.
55574         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55575         Require gl_HEADER_SYS_SOCKET.
55576         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55577         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55578         * tests/test-sys_select.c: Add functional tests.
55579
55580 2008-09-24  Eric Blake  <ebb9@byu.net>
55581
55582         open, fopen: close fd leak in last patch
55583         * lib/open.c (rpl_open): Close fd before returning error.
55584         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55585         * doc/posix-functions/open.texi (open): Document that Irix also
55586         has the bug.
55587         * doc/posix-functions/fopen.texi (fopen): Likewise.
55588         Reported by Paolo Bonzini.
55589
55590 2008-09-24  Bruno Haible  <bruno@clisp.org>
55591
55592         Ensure that a filename ending in a slash cannot be used to access a
55593         non-directory.
55594         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55595         to check whether it's really a directory.
55596         * lib/fopen.c: Include fcntl.h, unistd.h.
55597         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55598         and fdopen().
55599         * modules/fopen (Depends-on): Add unistd.
55600         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55601         * tests/test-fopen.c (main): Likewise.
55602         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55603         * doc/posix-functions/fopen.texi: Likewise.
55604         Reported by Eric Blake.
55605
55606 2008-09-23  Eric Blake  <ebb9@byu.net>
55607
55608         c-stack: avoid compiler optimizations when provoking overflow
55609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55610         recursion harder to optimize, to ensure a stack overflow occurs.
55611         * tests/test-c-stack.c (recurse): Likewise.
55612         Borrowed from libsigsegv.
55613
55614         c-stack: work around Irix sigaltstack bug
55615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55616         whether sigaltstack uses wrong end of stack_t (copied in part from
55617         libsigsegv).
55618         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55619         Irix bug, without requiring an over-allocation.
55620         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55621         bug.
55622
55623         fopen: document mingw bug on directories
55624         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55625         not allowing a stream visiting a directory, even though reading
55626         from such a stream is not portable.
55627
55628 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55629
55630         * lib/poll.c: Rewrite.
55631         * modules/poll: Depend on alloca.
55632
55633 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55634
55635         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55636         instead define prototypes for a full set of wrappers.  Ensure
55637         that Cygwin does not use the compatibility code, which is only
55638         for MinGW.
55639         * lib/winsock.c: New.
55640         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55641         * modules/sys_socket: Add lib/winsock.c.
55642
55643         * modules/poll-tests: Add errno and perror.
55644         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55645
55646 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55647
55648         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55649
55650 2008-09-23  Bruno Haible  <bruno@clisp.org>
55651
55652         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55653         * doc/glibc-functions/*: Likewise.
55654
55655 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55656
55657         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55658         success.
55659
55660 2008-09-22  Eric Blake  <ebb9@byu.net>
55661             Bruno Haible  <bruno@clisp.org>
55662
55663         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55664         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55665         supply %A but mishandle pseudo-NaN.
55666         Reported by Simon Josefsson.
55667
55668 2008-09-21  Bruno Haible  <bruno@clisp.org>
55669
55670         * tests/test-lock.c (main): Tweak skip message.
55671         * tests/test-tls.c (main): Likewise.
55672
55673 2008-09-21  Bruno Haible  <bruno@clisp.org>
55674
55675         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55676         whether 'struct sigaction' has sa_sigaction here...
55677         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55678         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55679
55680 2008-09-21  Bruno Haible  <bruno@clisp.org>
55681
55682         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55683         section.
55684         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55685         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55686         the new section.
55687         (Support for obsolete systems lacking POSIX:2001): New section.
55688         (String handling <string.h>): Move strdup to the new section.
55689         Suggested by Simon Josefsson and Paolo Bonzini.
55690
55691 2008-09-21  Bruno Haible  <bruno@clisp.org>
55692
55693         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55694         exponents in %e and %g results on 'long double'. Needed for mingw's
55695         improved *printf functions.
55696         * tests/test-vasprintf-posix.c (test_function): Likewise.
55697         * tests/test-snprintf-posix.h (test_function): Likewise.
55698         * tests/test-sprintf-posix.h (test_function): Likewise.
55699         Reported by Eric Blake.
55700
55701 2008-09-21  Bruno Haible  <bruno@clisp.org>
55702
55703         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55704         * tests/test-sprintf-posix.h (test_function): Likewise.
55705
55706 2008-09-21  Bruno Haible  <bruno@clisp.org>
55707
55708         * modules/getpass (Depends-on): Add strdup-posix.
55709
55710         New module 'strdup-posix'.
55711         * modules/strdup-posix: New file.
55712         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55713         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55715         REPLACE_STRDUP.
55716         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55717         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55719         strdup-posix.
55720
55721         * modules/strdup (Depends-on): Remove malloc-posix.
55722
55723 2008-09-20  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55726         Wildenhues.
55727
55728 2008-09-20  Bruno Haible  <bruno@clisp.org>
55729
55730         Ensure that wint_t gets defined on IRIX 5.3.
55731         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55732         * lib/wctype.in.h (wint_t): Likewise.
55733         (__wctype_wint_t): Remove type.
55734         (isw*): Use wint_t instead of __wctype_wint_t.
55735         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55736         * modules/wchar (Files): Add m4/wint_t.m4.
55737         (Makefile.am): Substitute HAVE_WINT_T.
55738         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55739         * tests/test-wctype.c: Check that wint_t is defined.
55740         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55741         * doc/posix-headers/wctype.texi: Likewise.
55742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55743
55744 2008-09-18  Bruno Haible  <bruno@clisp.org>
55745
55746         * gnulib-tool (func_exit): Update comment.
55747
55748 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55749
55750         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55751         assumes strdup exists and does not depend on strdup to return
55752         ENOMEM on out of memory conditions.
55753
55754 2008-09-18  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55757         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55758         digits for the exponent.
55759
55760 2008-09-18  Jim Meyering  <meyering@redhat.com>
55761             Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/vasnprintf.c (decimal_point_char): Define also if
55764         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55765
55766 2008-09-16  Bruno Haible  <bruno@clisp.org>
55767         and Eric Blake  <ebb9@byu.net>
55768
55769         vasnprintf: support Irix 5.3
55770         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55771         that mishandle long double infinity.
55772         Reported by Tom G. Christensen.
55773
55774 2008-09-16  Bruno Haible  <bruno@clisp.org>
55775
55776         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55777         Solaris 9.
55778         * doc/glibc-functions/alphasort.texi: Likewise.
55779         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55780
55781 2008-09-16  Jim Meyering  <meyering@redhat.com>
55782
55783         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55784         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55785         a umask modification leak out of a subshell.  Otherwise, the
55786         opensolaris /bin/sh would be accepted and thus cause unwarranted
55787         failures in the coreutils test suite.
55788
55789 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55790
55791         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55792         to succeed.
55793
55794 2008-09-16  Jim Meyering  <meyering@redhat.com>
55795
55796         avoid spurious test failure when library is built without ACL support
55797         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55798         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55799         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55800         * tests/test-copy-acl.sh: Likewise.
55801
55802 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55803
55804         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55805         based on character occurrence counts.
55806
55807 2008-09-15  Eric Blake  <ebb9@byu.net>
55808
55809         tests: avoid some compiler warnings
55810         * tests/test-memchr.c (main): Pass NULL indirectly.
55811         * tests/test-closein.c (main): Avoid unused variable.
55812
55813 2008-09-15  Bruno Haible  <bruno@clisp.org>
55814
55815         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55816         are missing on OpenBSD 4.0 individually.
55817         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55818
55819 2008-09-15  Bruno Haible  <bruno@clisp.org>
55820
55821         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55822         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55823         * doc/posix-functions/perror.texi: Likewise.
55824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55825         is missing.
55826         Reported by Eric Blake.
55827
55828         * lib/errno.in.h: Use replacement values >= 2000.
55829         Reported by Eric Blake.
55830
55831 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55832
55833         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55834         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55835         limit.
55836         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55837         compareseq was aborted.
55838
55839 2008-09-14  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55842         yvec_edit_count.
55843         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55844         (fstrcmp_bounded): Simplify result computation accordingly.
55845
55846 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55847
55848         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55849         (fstrcmp): Define in terms of fstrcmp_bounded.
55850         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55851         lower_bound argument.
55852         Return quickly if the result is certainly < lower_bound.
55853         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55854
55855 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55856
55857         * lib/diffseq.h (EARLY_ABORT): New macro.
55858         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55859         evaluates to true.
55860
55861 2008-09-14  Bruno Haible  <bruno@clisp.org>
55862
55863         * modules/perror-tests: New file.
55864         * tests/test-perror.sh: New file.
55865         * tests/test-perror.c: New file.
55866
55867         New module 'perror'.
55868         * lib/stdio.in.h (perror): New declaration.
55869         * lib/perror.c: New file.
55870         * m4/perror.m4: New file.
55871         * modules/perror: New file.
55872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55873         * doc/posix-functions/perror.texi: Mention the perror module.
55874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55875         REPLACE_PERROR.
55876         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55877         REPLACE_PERROR.
55878
55879 2008-09-14  Bruno Haible  <bruno@clisp.org>
55880
55881         * modules/stdio (Makefile.am): Reorder to match the order in
55882         lib/stdio.in.h.
55883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55884
55885 2008-09-13  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55888
55889 2008-09-13  Bruno Haible  <bruno@clisp.org>
55890
55891         Extend strerror to cover the added errno values.
55892         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55893         (rpl_strerror): Provide error messages for the added errno values and
55894         for the WSA* values.
55895         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55896         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55897         strerror.
55898         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55899         * modules/strerror (Depends-on): Add errno.
55900         * doc/posix-functions/strerror.texi: Document the change.
55901         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55902         and EOVERFLOW.
55903
55904 2008-09-13  Bruno Haible  <bruno@clisp.org>
55905
55906         * modules/EOVERFLOW: Remove file.
55907         * m4/eoverflow.m4: Remove file.
55908         * modules/EOVERFLOW-tests: Remove file.
55909         * tests/test-EOVERFLOW.c: Remove file.
55910         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55911         * modules/ftell (Depends-on): Likewise.
55912         * modules/getdelim (Depends-on): Likewise.
55913         * modules/getugroups (Depends-on): Likewise.
55914         * modules/poll (Depends-on): Likewise.
55915         * modules/snprintf (Depends-on): Likewise.
55916         * modules/sprintf-posix (Depends-on): Likewise.
55917         * modules/vasnprintf (Depends-on): Likewise.
55918         * modules/vasprintf (Depends-on): Likewise.
55919         * modules/vfprintf-posix (Depends-on): Likewise.
55920         * modules/vsnprintf (Depends-on): Likewise.
55921         * modules/vsprintf-posix (Depends-on): Likewise.
55922         * modules/xvasprintf (Depends-on): Likewise.
55923         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55924         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55925         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55926         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55927         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55928         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55929         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55930         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55931         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55932         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55933         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55934         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55935         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55936         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55937         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55938         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55939         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55940         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55941         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55942         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55943         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55944         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55945         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55946         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55947         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55948         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55949         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55950         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55951         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55952         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55953         * MODULES.html.sh: Remove EOVERFLOW.
55954         * NEWS: Mention the change.
55955
55956 2008-09-13  Bruno Haible  <bruno@clisp.org>
55957
55958         * modules/errno-tests: New file.
55959         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55960
55961         * lib/errno.in.h: New file.
55962         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55963         * modules/errno: New file.
55964         * doc/posix-headers/errno.texi: Update documentation.
55965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55966
55967 2008-09-13  Bruno Haible  <bruno@clisp.org>
55968
55969         * tests/test-poll.c: Use #if for native Windows, rather than testing
55970         __MSVCRT__.
55971
55972 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55973             Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/glob.c: Don't include <pwd.h> on native Windows.
55976         (WINDOWS32): New macro.
55977         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55978
55979 2008-09-13  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55982         (ETIMEDOUT): Remove macro.
55983         (glthread_cond_timedwait_multithreaded): New declaration.
55984         (glthread_cond_timedwait): Use it.
55985         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55986         (glthread_cond_timedwait_multithreaded): New function.
55987
55988 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55989
55990         * modules/poll-tests: Do not check for io.h.
55991         * tests/test-poll.c: Check for __MSVCRT__ instead.
55992
55993 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55994
55995         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55996         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55997         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55998
55999 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56000
56001         * modules/poll-tests: New.
56002         * tests/test-poll.c: New.
56003
56004 2008-09-12  Eric Blake  <ebb9@byu.net>
56005
56006         frexp: test for NetBSD failure on -0.0
56007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56008         not all, bugs from NetBSD 3.0 have been fixed.
56009         * doc/posix-functions/frexp.texi (frexp): Document bug.
56010         Reported by Thomas Klausner.
56011
56012         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56013         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56014         literal -0.0.
56015         Reported by Jonathan C. Patschke <jp@centtech.com>.
56016
56017 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56018
56019         * lib/glthread/cond.h: Use dummy implementation also if
56020         USE_WIN32_THREADS.
56021
56022 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56023
56024         * modules/fnmatch-posix (License): Change to LGPLv2+.
56025         * modules/fnmatch-gnu (License): Likewise.
56026
56027 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56028
56029         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56030
56031 2008-09-11  Jim Meyering  <meyering@redhat.com>
56032
56033         * users.txt: Add gtk-vnc.
56034
56035 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56036
56037         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56038         rotate amounts.
56039
56040         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56041         required for 16-bit and 8-bit rotates.
56042         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56043         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56044         UINT8_MAX instead of hard-coded constants.
56045         Suggested by Paul Eggert.
56046
56047 2008-09-07  Bruno Haible  <bruno@clisp.org>
56048
56049         * tests/test-striconveh.c (main): Check behaviour when converting from
56050         UTF-7.
56051
56052         Make striconveh work better with stateful encodings.
56053         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56054         that iconv does not increment the inptr when returning -1/EINVAL.
56055
56056 2008-09-07  Bruno Haible  <bruno@clisp.org>
56057
56058         * build-aux/config.rpath: Update according to libtool-2.2.6.
56059         * build-aux/config.libpath: Likewise.
56060
56061 2008-09-06  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56064         * lib/freadptr.c (freadptr): Likewise.
56065         * lib/freadseek.c (freadptrinc): Likewise.
56066         Reported by Simon Josefsson.
56067
56068 2008-09-06  Bruno Haible  <bruno@clisp.org>
56069
56070         * modules/freadptr (License): Change to LGPLv2+.
56071         * modules/freadseek (License): Likewise.
56072         Suggested by Eric Blake.
56073
56074         * modules/memchr2 (License): Change to LGPLv2+.
56075         Approved by Eric Blake.
56076
56077 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56078             Bruno Haible  <bruno@clisp.org>
56079
56080         Make gnulib-tool work with native 'sed' on AIX.
56081         * gnulib-tool (sed_noop): New variable.
56082         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56083         func_add_or_update, func_create_testdir): Use it to initialize sed
56084         script variables.
56085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56086
56087 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56088             Bruno Haible  <bruno@clisp.org>
56089
56090         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56091         also works after #include directives.
56092
56093 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56094
56095         getdate.y: reject an out-of-range timezone value
56096         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56097         the range [-24...+24].  When specified with only one or two digits,
56098         * tests/test-getdate.c: Tests for the fix.
56099         * doc/getdate.texi: Document this change.
56100
56101 2008-09-03  Bruno Haible  <bruno@clisp.org>
56102
56103         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56104
56105 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56106
56107         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56108         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56109         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56110         Blake <ebb9@byu.net>.
56111
56112         * tests/test-bitrotate.c: Add more test vectors.
56113
56114 2008-09-02  Eric Blake  <ebb9@byu.net>
56115
56116         vasnprintf-posix: handle large precision via %.*d
56117         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56118         when handling it ourselves.
56119         * tests/test-vasnprintf-posix.c (test_function): Add test.
56120         * tests/test-snprintf-posix.h (test_function): Likewise.
56121         * tests/test-sprintf-posix.h (test_function): Likewise.
56122         * tests/test-vasprintf-posix.c (test_function): Likewise.
56123         Reported by Alain Guibert.
56124
56125 2008-09-01  Eric Blake  <ebb9@byu.net>
56126
56127         c-stack: make configure-time check more robust
56128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56129         successful sigaction call.
56130         Reported by Tom G. Christensen.
56131
56132 2008-09-01  Bruno Haible  <bruno@clisp.org>
56133
56134         New module 'findprog-lgpl'.
56135         * modules/findprog-lgpl: New file.
56136         * lib/findprog-lgpl.c: New file.
56137         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56138         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56139         to decide whether to use strdup or xstrdup, concatenated_filename or
56140         xconcatenated_filename.
56141
56142 2008-09-01  Bruno Haible  <bruno@clisp.org>
56143
56144         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56145         'xconcat-filename' (GPL).
56146         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56147         (License): Change to LGPLv2+.
56148         * modules/xconcat-filename: New file.
56149         * lib/concat-filename.h (concatenated_filename): Change specification.
56150         (xconcatenated_filename): New declaration.
56151         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56152         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56153         memory situations.
56154         * lib/xconcat-filename.c: New file.
56155         * NEWS: Mention the change.
56156         * lib/findprog.c: Include concat-filename.h, not filename.h.
56157         (find_in_path): Use xconcatenated_filename instead of
56158         concatenated_filename.
56159         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56160         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56161         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56162         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56163         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56164         instead of concatenated_filename.
56165         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56166         (execute_java_class): Use xconcatenated_filename instead of
56167         concatenated_filename.
56168         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56169         * modules/javacomp (Depends-on): Likewise.
56170         * modules/javaexec (Depends-on): Likewise.
56171
56172 2008-09-01  Bruno Haible  <bruno@clisp.org>
56173
56174         Split module 'filename' into 'filename' and 'concat-filename'.
56175         * modules/filename: Keep only lib/filename.h.
56176         (License): Change to LGPLv2+.
56177         * modules/concat-filename: New file, extracted from modules/filename.
56178         * lib/filename.h (concatenated_filename): Remove declaration.
56179         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56180         * lib/concat-filename.c: Include concat-filename.h.
56181         * NEWS: Mention the change.
56182
56183 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56184
56185         * lib/bitrotate.h (rotl8, rotr8): Add.
56186
56187         * modules/bitrotate (configure.ac): Need
56188         AC_REQUIRE([AC_C_INLINE]).
56189         (Description): Mention stdint.h.  Reported by Bruno Haible
56190         <bruno@clisp.org>.
56191
56192         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56193         Paolo Bonzini <bonzini@gnu.org>.
56194
56195 2008-08-31  Bruno Haible  <bruno@clisp.org>
56196
56197         Assume Solaris specific bi-arch conventions on Solaris systems.
56198         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56199         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56201         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56202         like acl_libdirstem.
56203         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56204         acl_libdirstem.
56205         * NEWS: Mention the change.
56206         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56207
56208 2008-08-31  Jim Meyering  <meyering@redhat.com>
56209
56210         * lib/strftime.h: Add comments describing the two added arguments.
56211
56212         remove duplicate #include directives
56213         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56214         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56215
56216 2008-08-31  Bruno Haible  <bruno@clisp.org>
56217
56218         New module 'sigpipe-die'.
56219         * modules/sigpipe-die: New file.
56220         * lib/sigpipe-die.h: New file.
56221         * lib/sigpipe-die.c: New file.
56222         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56223
56224 2008-08-31  Bruno Haible  <bruno@clisp.org>
56225
56226         Don't override previously installed signal handlers.
56227         * lib/fatal-signal.c (saved_sigactions): New variable.
56228         (uninstall_handlers): Reset the signal to the saved handler, not
56229         to SIG_DFL (except when ignored).
56230         (install_handlers): Save the previous handlers.
56231
56232 2008-08-30  Bruno Haible  <bruno@clisp.org>
56233
56234         * gnulib-tool (func_reset_sigpipe): New function.
56235         (func_get_automake_snippet, func_modules_transitive_closure,
56236         func_import): Invoke it before a join command that reads from stdin,
56237         to avoid "echo: write error: Broken pipe" error messages on stderr.
56238         Reported by Sam Steingold <sds@gnu.org>.
56239
56240 2008-08-30  Bruno Haible  <bruno@clisp.org>
56241
56242         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56243         Code copied from m4/open.m4.
56244         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56245         access and the filename ends in a slash. Code copied from lib/open.c.
56246         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56247         * tests/test-fopen.c (main): Check against bug with trailing slash.
56248
56249 2008-08-29  Bruno Haible  <bruno@clisp.org>
56250
56251         Avoid some "gcc -pedantic" warnings.
56252         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56253         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56254         * lib/dirent.in.h: Likewise.
56255         * lib/fcntl.in.h: Likewise.
56256         * lib/float.in.h: Likewise.
56257         * lib/iconv.in.h: Likewise.
56258         * lib/inttypes.in.h: Likewise.
56259         * lib/locale.in.h: Likewise.
56260         * lib/math.in.h: Likewise.
56261         * lib/netinet_in.in.h: Likewise.
56262         * lib/search.in.h: Likewise.
56263         * lib/signal.in.h: Likewise.
56264         * lib/stdarg.in.h: Likewise.
56265         * lib/stdint.in.h: Likewise.
56266         * lib/stdio.in.h: Likewise.
56267         * lib/stdlib.in.h: Likewise.
56268         * lib/string.in.h: Likewise.
56269         * lib/strings.in.h: Likewise.
56270         * lib/sys_select.in.h: Likewise.
56271         * lib/sys_socket.in.h: Likewise.
56272         * lib/sys_stat.in.h: Likewise.
56273         * lib/sys_time.in.h: Likewise.
56274         * lib/sysexits.in.h: Likewise.
56275         * lib/time.in.h: Likewise.
56276         * lib/unistd.in.h: Likewise.
56277         * lib/wchar.in.h: Likewise.
56278         * lib/wctype.in.h: Likewise.
56279         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56280         * modules/fchdir (Makefile.am): Likewise.
56281         * modules/fcntl (Makefile.am): Likewise.
56282         * modules/float (Makefile.am): Likewise.
56283         * modules/iconv_open (Makefile.am): Likewise.
56284         * modules/inttypes (Makefile.am): Likewise.
56285         * modules/locale (Makefile.am): Likewise.
56286         * modules/math (Makefile.am): Likewise.
56287         * modules/netinet_in (Makefile.am): Likewise.
56288         * modules/search (Makefile.am): Likewise.
56289         * modules/signal (Makefile.am): Likewise.
56290         * modules/stdarg (Makefile.am): Likewise.
56291         * modules/stdint (Makefile.am): Likewise.
56292         * modules/stdio (Makefile.am): Likewise.
56293         * modules/stdlib (Makefile.am): Likewise.
56294         * modules/string (Makefile.am): Likewise.
56295         * modules/strings (Makefile.am): Likewise.
56296         * modules/sys_select (Makefile.am): Likewise.
56297         * modules/sys_socket (Makefile.am): Likewise.
56298         * modules/sys_stat (Makefile.am): Likewise.
56299         * modules/sys_time (Makefile.am): Likewise.
56300         * modules/sysexits (Makefile.am): Likewise.
56301         * modules/time (Makefile.am): Likewise.
56302         * modules/unistd (Makefile.am): Likewise.
56303         * modules/wchar (Makefile.am): Likewise.
56304         * modules/wctype (Makefile.am): Likewise.
56305         Reported by Reuben Thomas <rrt@sc3d.org>.
56306
56307 2008-08-29  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56310         any more.
56311
56312 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56313
56314         * MODULES.html.sh (Misc): Add bitrotate.
56315
56316         * modules/bitrotate: New file.
56317
56318         * lib/bitrotate.h: New file.
56319
56320         * modules/bitrotate-tests: New file.
56321
56322         * tests/test-bitrotate.c: New file.
56323
56324         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56325         on the bitrotate module.
56326
56327         * lib/arctwo.c: Use new bitrotate module.
56328
56329 2008-08-29  Jim Meyering  <meyering@redhat.com>
56330
56331         bootstrap: merge changes from coreutils
56332         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56333         of copied files.  Remove a kludge, now that this is fixed.
56334         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56335         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56336         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56337
56338 2008-08-29  Bruno Haible  <bruno@clisp.org>
56339
56340         * MODULES.html.sh: Remove --cvs-urls option.
56341
56342 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56343
56344         maint.mk: adjust to file name change
56345         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56346
56347 2008-08-28  Jim Meyering  <meyering@redhat.com>
56348
56349         * modules/getndelim2 (License): Relicense to LGPLv2+.
56350         Approved by Richard Stallman for the version of 1995, and by
56351         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56352
56353 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56354
56355         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56356         dummy if one is not available.  Do not touch them if
56357         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56358         (getc_maybe_unlocked): New.
56359         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56360
56361 2008-08-26  Eric Blake  <ebb9@byu.net>
56362
56363         doc/INSTALL: resync from autoconf
56364         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56365         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56366         moving...
56367         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56368         * INSTALL: Regenerate.
56369         * INSTALL.ISO: New file.
56370         * INSTALL.UTF-8: Likewise.
56371
56372 2008-08-26  Jim Meyering  <meyering@redhat.com>
56373
56374         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56375         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56376         these definitions conditional, so that they may be overridden, too.
56377
56378 2008-08-26  Bruno Haible  <bruno@clisp.org>
56379
56380         Generate INSTALL file variants with prettier quotes.
56381         * doc/Makefile (INSTALL_PRELUDE): New macro.
56382         (INSTALL): Use it.
56383         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56384
56385 2008-08-26  Bruno Haible  <bruno@clisp.org>
56386
56387         Run makeinfo in an English locale.
56388         * doc/Makefile (MAKEINFO): New variable.
56389
56390 2008-08-26  Bruno Haible  <bruno@clisp.org>
56391
56392         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56393         Suggested by Eric Blake.
56394
56395 2008-08-25  Bruno Haible  <bruno@clisp.org>
56396
56397         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56398
56399 2008-08-25  Eric Blake  <ebb9@byu.net>
56400
56401         c-stack: test that stack overflow can be caught
56402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56403         that platform allows handling stack overflow; at least OS/2 EMX
56404         has sigaltstack, but crashes before transferring control to
56405         handler on stack overflow.
56406         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56407         check for HAVE_STACK_OVERFLOW_HANDLING.
56408         Reported by Elbert Pol.
56409
56410 2008-08-25  Bruno Haible  <bruno@clisp.org>
56411
56412         * doc/posix-functions/strftime.texi: Fix description of strftime
56413         module.
56414
56415 2008-08-24  Bruno Haible  <bruno@clisp.org>
56416
56417         * tests/uniwidth/test-uc_width2.c: New file.
56418         * tests/uniwidth/test-uc_width2.sh: New file.
56419         * modules/uniwidth/width-tests (Files): Add the new files.
56420         (TESTS): Add uniwidth/test-uc_width2.sh.
56421         (TESTS_ENVIRONMENT): New variable.
56422         (check_PROGRAMS): Add test-uc_width2.
56423         (test_uc_width2_SOURCES): New variable.
56424
56425         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56426         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56427         not 0x00AB.
56428         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56429
56430 2008-08-22  Eric Blake  <ebb9@byu.net>
56431
56432         test-lock, test-tls: mention why a test is skipped
56433         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56434         skipped.
56435         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56436
56437         count-one-bits: relax license
56438         * modules/count-one-bits (License): Relicense to LGPLv2+.
56439         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56440
56441 2008-08-22  Andreas Schwab  <schwab@suse.de>
56442
56443         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56444         Remove spurious space in assignment.
56445
56446 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56447
56448         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56449         Paul Eggert <eggert@CS.UCLA.EDU>.
56450
56451 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56452
56453         * modules/gettext: Add m4/threadlib.m4.
56454
56455 2008-08-19  Eric Blake  <ebb9@byu.net>
56456
56457         test-c-stack: fix compilation failure on FreeBSD 5.0
56458         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56459         headers before <sys/resource.h>.
56460         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56461         the bug.
56462         Reported by Nelson H. F. Beebe.
56463
56464         strverscmp: migrate from "strverscmp.h" to <string.h>
56465         * modules/string (Makefile.am): Add new hooks.
56466         * modules/strverscmp (Files): Remove strverscmp.h.
56467         (Depends-on): Add string.
56468         (configure.ac): Add indicator.
56469         (Include): Mention new header.
56470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56471         defaults.
56472         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56473         results.
56474         * lib/strverscmp.h: Delete.
56475         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56476         * tests/test-strverscmp.c (includes): Adjust client.
56477         * lib/check-version.c (includes): Likewise.
56478         * NEWS: Document the change.
56479
56480         strverscmp: add unit test
56481         * modules/strverscmp-tests: New file.
56482         * tests/test-strverscmp.c: Likewise.
56483
56484 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56485
56486         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56487         regarding Windows crypto stuff, from Mono.
56488
56489 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56490
56491         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56492         if present, for intel RND.  Return error on failures.
56493
56494 2008-08-18  Ben Pfaff  <blp@gnu.org>
56495
56496         gitlog-to-changelog: give better diagnostic for failed pipe-open
56497         * build-aux/gitlog-to-changelog: Improve error message: suggest
56498         that the version of Git may be too old.
56499
56500 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56501
56502         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56503         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56504
56505 2008-08-18  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56508         pthread_in_use().
56509
56510 2008-08-18  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/glthread/threadlib.c: Include <pthread.h>.
56513
56514 2008-08-18  Bruno Haible  <bruno@clisp.org>
56515
56516         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56517         glthread_recursive_lock_* macros.
56518         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56519         Fix syntax error.
56520
56521 2008-08-18  Bruno Haible  <bruno@clisp.org>
56522
56523         * lib/glthread/thread.c: Avoid forcing a context switch right after
56524         thread creation.
56525
56526 2008-08-17  Bruno Haible  <bruno@clisp.org>
56527
56528         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56529         * lib/glthread/thread.h: Provide Win32 specific implementation.
56530         * modules/thread (Files): Add lib/glthread/thread.c.
56531         (Depends-on): Add lock.
56532         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56533
56534 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56535
56536         New module 'yield'.
56537         * modules/yield: New file.
56538         * lib/glthread/yield.h: New file.
56539         * m4/yield.m4: New file.
56540         * MODULES.html.sh (Multithreading): Add yield.
56541
56542 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56543
56544         New module 'thread'.
56545         * modules/thread: New file.
56546         * lib/glthread/thread.h: New file.
56547         * m4/thread.m4: New file.
56548         * MODULES.html.sh (Multithreading): Add thread.
56549
56550 2008-08-17  Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/glthread/lock.h: Include <stdlib.h> always.
56553         * lib/glthread/tls.h: Likewise.
56554         * lib/glthread/cond.h: Likewise.
56555
56556 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56557
56558         New module 'cond'.
56559         * modules/cond: New file.
56560         * lib/glthread/cond.h: New file.
56561         * lib/glthread/cond.c: New file.
56562         * m4/cond.m4: New file.
56563         * MODULES.html.sh (Multithreading): Add cond.
56564
56565 2008-08-16  Eric Blake  <ebb9@byu.net>
56566
56567         c-stack: fix regression on Irix 5.3 from 2008-06-21
56568         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56569         sa_sigaction...
56570         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56571         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56572         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56573         * modules/signal (Makefile.am): Use the value.
56574         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56575         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56576         * doc/posix-headers/signal.texi (signal.h): Document this
56577         portability issue.
56578         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56579         Reported by Tom G. Christensen.
56580
56581 2008-08-17  Bruno Haible  <bruno@clisp.org>
56582
56583         New module 'threadlib'.
56584         * modules/threadlib: New file.
56585         * lib/glthread/threadlib.c: New file, extracted from
56586         lib/glthread/lock.c.
56587         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56588         functions.
56589         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56590         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56591         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56592         macros.
56593         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56594         (gl_DISABLE_THREADS): Remove macro.
56595         * modules/lock (Files): Remove build-aux/config.rpath.
56596         (Depends-on): Remove havelib. Add threadlib.
56597         (configure.ac-early): Remove section.
56598         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56599         * modules/tls (Depends-on): Remove lock. Add threadlib.
56600         (Link): New section, copied from threadlib.
56601         * MODULES.html.sh (Multithreading): Add threadlib.
56602
56603 2008-08-14  Bruno Haible  <bruno@clisp.org>
56604
56605         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56606         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56607         glthread_rwlock_unlock, glthread_rwlock_destroy,
56608         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56609         glthread_recursive_lock_destroy): Define as macros always.
56610         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56611         glthread_lock_lock.
56612         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56613         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56614         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56615         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56616         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56617         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56618         (glthread_recursive_lock_lock_func): Renamed from
56619         glthread_recursive_lock_lock.
56620         (glthread_recursive_lock_unlock_func): Renamed from
56621         glthread_recursive_lock_unlock.
56622         (glthread_recursive_lock_destroy_func): Renamed from
56623         glthread_recursive_lock_destroy.
56624
56625 2008-08-14  Bruno Haible  <bruno@clisp.org>
56626
56627         * lib/glthread/lock.h: Renamed from lib/lock.h.
56628         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56629         * lib/glthread/tls.h: Renamed from lib/tls.h.
56630         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56631         * lib/fstrcmp.c: Update includes.
56632         * lib/strsignal.c: Update includes.
56633         * modules/lock (Files, Makefile.am): Update.
56634         (Include): Change to "glthread/lock.h".
56635         * modules/tls (Files, Makefile.am): Update.
56636         (Include): Change to "glthread/tls.h".
56637         * tests/test-lock.c: Update includes.
56638         * tests/test-tls.c: Update includes.
56639         * NEWS: Mention the renamed header files.
56640
56641 2008-08-11  Jim Meyering  <meyering@redhat.com>
56642
56643         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56644
56645 2008-08-11  Eric Blake  <ebb9@byu.net>
56646
56647         test-c-stack: avoid C99-ism
56648         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56649         before statement.
56650         Reported by Alain Guibert.
56651
56652 2008-08-10  Jim Meyering  <meyering@redhat.com>
56653
56654         ensure that return value of uinttostr et al are not ignored
56655         * lib/inttostr.h (__GNUC_PREREQ): Define.
56656         (__attribute_warn_unused_result__): Define.
56657         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56658
56659 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56660
56661         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56662         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56663
56664 2008-08-07  Jim Meyering  <meyering@redhat.com>
56665
56666         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56667
56668         * modules/mkstemp (License): Relicense under LGPLv2+.
56669         * modules/tempname (License): Likewise.
56670
56671 2008-08-06  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/poll.c (poll): Further micro-optimization.
56674
56675 2008-08-06  Jim Meyering  <meyering@redhat.com>
56676
56677         inet_pton.c: use locale-independent tolower
56678         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56679         (inet_pton6): Use c_tolower rather than tolower.
56680         * modules/inet_pton (Depends-on): Add c-ctype.
56681
56682 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56683
56684         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56685         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56686
56687 2008-08-06  Jim Meyering  <meyering@redhat.com>
56688
56689         * modules/inet_pton (License): Relicense under LGPLv2+.
56690
56691 2008-08-03  Bruno Haible  <bruno@clisp.org>
56692
56693         Additional non-aborting API for lock and tls.
56694         * lib/lock.h: Include <errno.h>.
56695         (glthread_lock_init): New macro/function.
56696         (gl_lock_init): Define as wrapper around glthread_lock_init.
56697         (glthread_lock_lock): New macro/function.
56698         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56699         (glthread_lock_unlock): New macro/function.
56700         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56701         (glthread_lock_destroy): New macro/function.
56702         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56703         (glthread_rwlock_init): New macro/function.
56704         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56705         (glthread_rwlock_rdlock): New macro/function.
56706         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56707         (glthread_rwlock_wrlock): New macro/function.
56708         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56709         (glthread_rwlock_unlock): New macro/function.
56710         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56711         (glthread_rwlock_destroy): New macro/function.
56712         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56713         (glthread_recursive_lock_init): New macro/function.
56714         (gl_recursive_lock_init): Define as wrapper around
56715         glthread_recursive_lock_init.
56716         (glthread_recursive_lock_lock): New macro/function.
56717         (gl_recursive_lock_lock): Define as wrapper around
56718         glthread_recursive_lock_lock.
56719         (glthread_recursive_lock_unlock): New macro/function.
56720         (gl_recursive_lock_unlock): Define as wrapper around
56721         glthread_recursive_lock_unlock.
56722         (glthread_recursive_lock_destroy): New macro/function.
56723         (gl_recursive_lock_destroy): Define as wrapper around
56724         glthread_recursive_lock_destroy.
56725         (glthread_once): New macro/function.
56726         (gl_once): Define as wrapper around glthread_once.
56727         Update function declarations.
56728         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56729         glthread_rwlock_init. Return error code.
56730         (glthread_rwlock_rdlock_multithreaded): Renamed from
56731         glthread_rwlock_rdlock. Return error code.
56732         (glthread_rwlock_wrlock_multithreaded): Renamed from
56733         glthread_rwlock_wrlock. Return error code.
56734         (glthread_rwlock_unlock_multithreaded): Renamed from
56735         glthread_rwlock_unlock. Return error code.
56736         (glthread_rwlock_destroy_multithreaded): Renamed from
56737         glthread_rwlock_destroy. Return error code.
56738         (glthread_recursive_lock_init_multithreaded): Renamed from
56739         glthread_recursive_lock_init. Return error code.
56740         (glthread_recursive_lock_lock_multithreaded): Renamed from
56741         glthread_recursive_lock_lock. Return error code.
56742         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56743         glthread_recursive_lock_unlock. Return error code.
56744         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56745         glthread_recursive_lock_destroy. Return error code.
56746         (glthread_once_call): Make static.
56747         (glthread_once_multithreaded): Renamed from glthread_once.
56748         * lib/tls.h: Include <errno.h>.
56749         (glthread_tls_key_init): New macro/function.
56750         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56751         (glthread_tls_set): New macro/function.
56752         (gl_tls_set): Define as wrapper around glthread_tls_set.
56753         (glthread_tls_key_destroy): New macro/function.
56754         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56755         Update function declarations.
56756         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56757         glthread_tls_get.
56758         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56759
56760 2008-08-04  Eric Blake  <ebb9@byu.net>
56761
56762         gnumakefile: use space, not TAB, outside of targets
56763         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56764
56765 2008-08-02  Jim Meyering  <meyering@redhat.com>
56766
56767         getdate.y: avoid locale-dependent date parsing failure
56768         In Turkish locales, getdate would fail to recognize keywords
56769         containing a lowercase "i".  The solution is not to rely on
56770         locale-sensitive case-conversion.
56771         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56772         (lookup_word): Use c_toupper in place of toupper.
56773         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56774         Reported by Vefa Bicakci <bicave@superonline.com> in
56775         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56776         * modules/getdate (Depends-on): Add c-ctype.
56777
56778 2008-08-02  Bruno Haible  <bruno@clisp.org>
56779
56780         * gnulib-tool (func_import): When updating or creating a .gitignore
56781         file, prepend each added line with a slash, and ignore leading slashes
56782         from the existing lines.
56783         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56784
56785 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56786
56787         Portability fix for GNU make 3.79.1.
56788         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56789         versions do not understand.
56790
56791 2008-08-01  Bruno Haible  <bruno@clisp.org>
56792
56793         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56794         * tests/test-isnanf.h (zero): New variable.
56795         (main): Avoid literal -0.0f.
56796         * tests/test-isnand.h (zero): New variable.
56797         (main): Avoid literal -0.0.
56798         * tests/test-isnanl.h (zero): New variable.
56799         (main): Avoid literal -0.0L.
56800         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56801         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56802         -0.0, -0.0L.
56803         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56804         (test_signbitd): Avoid literal -0.0.
56805         (test_signbitl): Avoid literal -0.0L.
56806         * tests/test-ceilf1.c (zero): New variable.
56807         (main): Avoid literal -0.0f.
56808         * tests/test-ceill.c (zero): New variable.
56809         (main): Avoid literal -0.0L.
56810         * tests/test-floorf1.c (zero): New variable.
56811         (main): Avoid literal -0.0f.
56812         * tests/test-floorl.c (zero): New variable.
56813         (main): Avoid literal -0.0L.
56814         * tests/test-roundf1.c (zero): New variable.
56815         (main): Avoid literal -0.0f.
56816         * tests/test-round1.c (zero): New variable.
56817         (main): Avoid literal -0.0.
56818         * tests/test-roundl.c (zero): New variable.
56819         (main): Avoid literal -0.0L.
56820         * tests/test-truncf1.c (zero): New variable.
56821         (main): Avoid literal -0.0f.
56822         * tests/test-trunc1.c (zero): New variable.
56823         (main): Avoid literal -0.0.
56824         * tests/test-truncl.c (zero): New variable.
56825         (main): Avoid literal -0.0L.
56826         * tests/test-frexp.c (zero): New variable.
56827         (main): Avoid literal -0.0.
56828         * tests/test-frexpl.c (zero): New variable.
56829         (main): Avoid literal -0.0L.
56830         * tests/test-ldexpl.c (zero): New variable.
56831         (main): Avoid literal -0.0L.
56832         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56833         (zerod, zerol): New variables.
56834         (test_function): Avoid literals -0.0, -0.0L.
56835         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56836         (zerod, zerol): New variables.
56837         (test_function): Avoid literals -0.0, -0.0L.
56838         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56839         (zerod, zerol): New variables.
56840         (test_function): Avoid literals -0.0, -0.0L.
56841         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56842         (zerod, zerol): New variables.
56843         (test_function): Avoid literals -0.0, -0.0L.
56844         * tests/test-strtod.c (zero): New variable.
56845         (main): Avoid literal -0.0.
56846         Reported by Jonathan C. Patschke <jp@centtech.com>.
56847
56848 2008-07-31  Jim Meyering  <meyering@redhat.com>
56849
56850         sha256.h: correct definition of SHA224_DIGEST_SIZE
56851         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56852         Reported by Paulie Pena IV <paulie4@gmail.com>.
56853         Define as 224 / 8, rather than as a literal.
56854         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56855         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56856         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56857
56858 2008-07-31  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56861         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56862         Reported by Jonathan Patschke <jp@centtech.com>.
56863
56864 2008-07-31  Bruno Haible  <bruno@clisp.org>
56865
56866         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56867         Reported by Paolo Bonzini <bonzini@gnu.org>.
56868
56869 2008-07-30  Eric Blake  <ebb9@byu.net>
56870
56871         test-strtod: allow compilation without -lm
56872         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56873         Reported by Dennis Clarke <blastwave@gmail.com>.
56874
56875 2008-07-28  Jim Meyering  <meyering@redhat.com>
56876
56877         bootstrap: work also when there are no .po files in po/
56878         * build-aux/bootstrap (update_po_files): Complete the change
56879         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56880
56881 2008-07-27  Jim Meyering  <meyering@redhat.com>
56882
56883         * users.txt: Add zile.
56884
56885 2008-07-26  Ben Pfaff  <blp@gnu.org>
56886
56887         Add missing dependencies on new m4/exponent[fdl].m4 files.
56888         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56889         * modules/isnand-nolibm: Add m4/exponentd.m4.
56890         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56891         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56892         m4/isnan[fdl].m4, because the macros actually used moved.
56893         Reported by Jim Meyering.
56894
56895 2008-07-14  Ben Pfaff  <blp@gnu.org>
56896
56897         Add isinf module.
56898         * lib/isinf.c: New file.
56899         * lib/math.in.h: Define isinf macro if we have decided to replace
56900         it.
56901         * m4/isinf.m4: New file.
56902         * m4/math_h.m4: Initialize and substitute variables for isinf
56903         module.
56904         * modules/isinf: New file.
56905         * modules/isinf-tests: New file.
56906         * modules/math: Add substitutions for new module.
56907         * tests/test-isinf.c: New file.
56908         * doc/posix-functions/isinf.texi: Mention new module.
56909         * MODULES.html.sh: Mention new module.
56910
56911 2008-07-14  Ben Pfaff  <blp@gnu.org>
56912
56913         Factor out some macros for use by additional modules.
56914         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56915         exponentf.m4.
56916         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56917         exponentd.m4.
56918         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56919         file exponentl.m4.
56920         * m4/exponentf.m4: New file.
56921         * m4/exponentd.m4: New file.
56922         * m4/exponentl.m4: New file.
56923         * modules/isnanf: Use new file m4/exponentf.m4.
56924         * modules/isnand: Use new file m4/exponentd.m4.
56925         * modules/isnanl: Use new file m4/exponentl.m4.
56926
56927 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56928
56929         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56930         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56931         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56932         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56933
56934         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56935         readlink on platforms without PATH_MAX.
56936
56937 2008-07-21  Eric Blake  <ebb9@byu.net>
56938
56939         Warn, not fail, on stale version.
56940         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56941
56942         Don't allow installation with stale devel version number.
56943         * top/GNUmakefile (_is-install-target): New macro.
56944         (_curr-ver): Forbid installation with stale version number.
56945
56946 2008-07-20  Bruno Haible  <bruno@clisp.org>
56947
56948         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56949         TESTS_ENVIRONMENT.
56950         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56951
56952 2008-07-20  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/c-stack.h (c_stack_action): Add documentation.
56955         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56956
56957 2008-07-20  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56960         * modules/readlink (License): Likewise.
56961
56962 2008-07-17  Eric Blake  <ebb9@byu.net>
56963
56964         * modules/c-stack (Link): Fix typo.
56965
56966         Make c-stack use libsigsegv, when available.
56967         * modules/c-stack (Depends-on): Add libsigsegv.
56968         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56969         needed.
56970         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56971         (segv_handler, overflow_handler, c_stack_action)
56972         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56973         implementation when libsigsegv is available, but only when using
56974         the library is necessary.
56975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56976         comment, explaining why XSI check fails on Linux.
56977         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56978         * tests/test-c-stack2.sh: Tweak skip message.
56979         * NEWS: Document new link-time requirements.
56980
56981 2008-07-16  Eric Blake  <ebb9@byu.net>
56982
56983         c-stack: Expose false positives when not using libsigsegv.
56984         * modules/c-stack-tests (Files): Expand test.
56985         * tests/test-c-stack.c (main): Add means to conditionally trigger
56986         non-overflow SIGSEGV.
56987         * tests/test-c-stack2.sh: New file.
56988
56989 2008-07-14  Bruno Haible  <bruno@clisp.org>
56990
56991         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56992         Reported by Eric Blake.
56993
56994 2008-07-14  Sam Steingold  <sds@gnu.org>
56995             Bruno Haible  <bruno@clisp.org>
56996
56997         New module libsigsegv.
56998         * modules/libsigsegv: New file.
56999         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57000         modifications.
57001         * MODULES.html.sh (Signal handling): New section.
57002
57003 2008-07-14  Bruno Haible  <bruno@clisp.org>
57004
57005         * modules/unictype/ctype-* (Description): Add the word "function".
57006         Improves the resulting doc in MODULES.html.
57007
57008 2008-07-12  Ben Pfaff  <blp@gnu.org>
57009
57010         Add longlong module.
57011         * modules/longlong: New file.
57012
57013 2008-07-12  Bruno Haible  <bruno@clisp.org>
57014
57015         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57016         to empty.
57017
57018 2008-07-10  Ben Pfaff  <blp@gnu.org>
57019
57020         Add isnan module.
57021         * doc/posix-functions/isnan.texi: Mention new module.
57022         * lib/math.in.h: Define isnan macro if we have decided to replace
57023         it.
57024         * m4/isnan.m4: New file.
57025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57026         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57027         also.
57028         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57029         redundancy.
57030         * m4/math_h.m4: Initialize and substitute variables for isnan
57031         module.
57032         * modules/isnan: New file.
57033         * modules/isnan-tests: New file.
57034         * modules/math: Add substitutions for new module.
57035         * tests/test-isnan.c: New file.
57036         * MODULES.html.sh: Mention new module.
57037
57038 2008-07-10  Ben Pfaff  <blp@gnu.org>
57039
57040         Add isnanf module.
57041         * lib/isnanf.m4: New file.
57042         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57043         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57044         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57045         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57046         * modules/isnanf: New file.
57047         * modules/isnanf-tests: New file.
57048         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57049         files.
57050         * tests/test-isnanf-nolibm.c: factored most of its contents into
57051         new file tests/test-isnanf.h.
57052         * tests/test-isnanf.h: New file.
57053         * tests/test-isnanf.c: New file.
57054         * MODULES.html.sh: Mention new module.
57055         * doc/glibc-functions/isnanf.texi: Mention new module.
57056
57057 2008-07-10  Ben Pfaff  <blp@gnu.org>
57058
57059         Add isnand module.
57060         * lib/isnand.h: New file.
57061         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57062         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57063         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57064         functionality also.
57065         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57066         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57067         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57068         * modules/isnand: New file.
57069         * modules/isnand-tests: New file.
57070         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57071         files.
57072         * tests/test-isnand-nolibm.c: factored most of its contents into
57073         new file tests/test-isnand.h.
57074         * tests/test-isnand.h: New file.
57075         * tests/test-isnand.c: New file.
57076         * MODULES.html.sh: Mention new module.
57077
57078 2008-07-10  Ben Pfaff  <blp@gnu.org>
57079
57080         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57081         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57082         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57083         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57084         * modules/isnanf-nolibm: Update references to renamed files.
57085         * modules/isnand-nolibm: Likewise.
57086         * modules/isnanf-nolibm-tests: Likewise.
57087         * modules/isnand-nolibm-tests: Likewise.
57088         * lib/frexp.c: Likewise.
57089         * lib/isfinite.c: Likewise.
57090         * lib/signbitd.c: Likewise.
57091         * lib/signbitf.c: Likewise.
57092         * lib/vasnprintf.c: Likewise.
57093         * tests/test-ceilf1.c: Likewise.
57094         * tests/test-ceilf2.c: Likewise.
57095         * tests/test-floorf1.c: Likewise.
57096         * tests/test-floorf2.c: Likewise.
57097         * tests/test-frexp.c: Likewise.
57098         * tests/test-round1.c: Likewise.
57099         * tests/test-round2.c: Likewise.
57100         * tests/test-roundf1.c: Likewise.
57101         * tests/test-strtod.c: Likewise.
57102         * tests/test-trunc1.c: Likewise.
57103         * tests/test-trunc2.c: Likewise.
57104         * tests/test-truncf1.c: Likewise.
57105         * tests/test-truncf2.c: Likewise.
57106         * NEWS: Mention the renamed header files.
57107
57108 2008-07-11  Jim Meyering  <meyering@redhat.com>
57109
57110         vc-list-files: make the last-resort awk code more portable
57111         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57112         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57113         does not support it.
57114
57115 2008-07-10  Eric Blake  <ebb9@byu.net>
57116
57117         Work with tar's bootstrap.
57118         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57119         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57120         an m4 comment.
57121
57122 2008-07-09  Jim Meyering  <meyering@redhat.com>
57123
57124         posix-shell.m4: fix typo that made this test malfunction
57125         * m4/posix-shell.m4: Remove capitalization in variable name.
57126
57127 2008-07-08  Bruno Haible  <bruno@clisp.org>
57128
57129         * m4/onceonly.m4: Update comments.
57130         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57131
57132 2008-07-04  Jim Meyering  <meyering@redhat.com>
57133
57134         * users.txt: Add vc-dwim.
57135         (bison, coreutils): Use the gitweb URL.
57136
57137 2008-07-03  Jim Meyering  <meyering@redhat.com>
57138
57139         * users.txt: Add libffcall.  From Sam Steingold.
57140
57141 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57142
57143         getdate.y: do not ignore TZ with relative day, month or year offset
57144         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57145         relative-date-handling, since otherwise, the latter would clobber the
57146         sole output (an updated Start value) of the tz-handling block.
57147         * tests/test-getdate.c: Tests for the fix
57148
57149 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57150
57151         Recognize 'foo_LIBRARIES += libgnu.a'.
57152         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57153         makefile snippet has already specified an installation location,
57154         also using '+='.
57155
57156 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57157
57158         getdate.y: factor out common actions
57159         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57160         Use them in place of open-coded actions.
57161
57162 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57163
57164         Add self-test for getdate module.
57165         * modules/getdate-tests: New file.
57166         * tests/test-getdate.c: New file.
57167
57168 2008-06-29  Bruno Haible  <bruno@clisp.org>
57169
57170         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57171         .gitignore.
57172         Reported by Sylvain Beucler <beuc@beuc.net>.
57173
57174 2008-06-29  Bruno Haible  <bruno@clisp.org>
57175
57176         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57177         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57178
57179 2008-06-29  Bruno Haible  <bruno@clisp.org>
57180
57181         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57182         EXTRA_DIST.
57183         Reported by Sylvain Beucler <beuc@beuc.net>.
57184
57185 2008-06-26  Jim Meyering  <meyering@redhat.com>
57186
57187         make several modules depend on the "open" module
57188         This provides slightly increased consistency when opening-for-write
57189         the name of a non-directory spelled with a trailing slash.
57190         * modules/chdir-safer: Likewise.
57191         * modules/chown: Likewise.
57192         * modules/clean-temp: Likewise.
57193         * modules/copy-file: Likewise.
57194         * modules/fchdir: Likewise.
57195         * modules/fcntl-safer: Likewise.
57196         * modules/pipe: Likewise.
57197         * modules/utime: Likewise.
57198         Prompted by Eric Blake and Bruno Haible.
57199
57200 2008-06-24  Andreas Schwab  <schwab@suse.de>
57201
57202         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57203         literals can be used as initializers for global variables.
57204
57205 2008-06-23  Eric Blake  <ebb9@byu.net>
57206
57207         Make gnulib-cache.m4 easier to diff.
57208         * gnulib-tool (func_import): Allow newlines when reading cached
57209         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57210
57211 2008-06-23  Bruno Haible  <bruno@clisp.org>
57212
57213         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57214         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57215         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57216         m4/signalblocking.m4.
57217         (gl_PREREQ_SIGACTION): Don't invoke it.
57218         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57219         gl_PREREQ_SIG_HANDLER_H.
57220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57221         Don't check for sigaction here.
57222
57223 2008-06-23  Bruno Haible  <bruno@clisp.org>
57224
57225         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57226         (install_handlers): Don't set the SA_RESETHAND flag.
57227
57228 2008-06-23  Bruno Haible  <bruno@clisp.org>
57229
57230         * m4/sigaction.m4: Comment fixes.
57231         * lib/signal.in.h: Likewise.
57232
57233 2008-06-23  Eric Blake  <ebb9@byu.net>
57234
57235         Fix typo.
57236         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57237
57238         Avoid SA_ namespace.
57239         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57240         Reported by Ralf Wildenhues.
57241
57242         Avoid test failure due to SA_RESTORER.
57243         * tests/test-sigaction.c (SA_MASK): New macro.
57244         (main): Avoid failing due to extension flags being set.
57245         Reported by Jim Meyering.
57246
57247         Revert use of sig-handler.h in sigprocmask.c.
57248         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57249         it requires the existence of struct sigaction.
57250         * lib/sigprocmask.c (handler_t): Restore typedef.
57251         (rpl_signal, old_handlers): Use local type.
57252
57253 2008-06-22  Bruno Haible  <bruno@clisp.org>
57254
57255         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57256         conditionally.
57257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57258
57259 2008-06-22  Bruno Haible  <bruno@clisp.org>
57260
57261         * doc/posix-functions/siginterrupt.texi: Move note.
57262
57263         * lib/signal.in.h (SA_RESTART): New macro.
57264         * lib/sigaction.c: Update comment.
57265
57266         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57267
57268         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57269         (gl_PREREQ_SIGPROCMASK): Invoke it.
57270         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57271
57272         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57273
57274         * lib/sigprocmask.c: Update a comment.
57275
57276 2008-06-21  Eric Blake  <ebb9@byu.net>
57277
57278         Use sigaction module rather than signal().
57279         * modules/c-stack (Depends-on): Add sigaction.
57280         * modules/fatal-signal (Depends-on): Likewise.
57281         * modules/nanosleep (Depends-on): Likewise.
57282         * modules/sigprocmask (Files): Add sig-handler.h.
57283         * modules/sigaction (Files): Likewise.
57284         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57285         Eggert.
57286         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57287         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57288         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57289         (init_fatal_signals): Likewise.
57290         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57291         (siginterrupt): Delete fallback.
57292         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57293         instead.
57294         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57295         siginterrupt.
57296
57297         New module sigaction, for mingw.
57298         * modules/sigaction: New module...
57299         * modules/sigaction-tests: ...and its test.
57300         * m4/sigaction.m4: New file.
57301         * lib/sigaction.c: Likewise.
57302         * tests/test-sigaction.c: Likewise.
57303         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57304         * modules/signal (Makefile.am): Likewise.
57305         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57306         needed.
57307         * doc/posix-headers/signal.texi (signal.h): Mention provided
57308         types.
57309         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57310         that sigaction is preferable.
57311         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57312         module.
57313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57314         sigaction.
57315
57316         Improve robustness of sigprocmask by overriding signal.
57317         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57318         is in use.
57319         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57320         (SIGKILL, SIGSTOP): Provide fallbacks.
57321         (rpl_signal): Implement.
57322         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57323         signal can be called inside handlers.
57324
57325         Fix nanosleep module on mingw.
57326         * modules/nanosleep (Depends-on): Add sys_select.
57327         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57328
57329         Fix licensing of sigprocmask.
57330         * modules/raise (License): Relicense as LGPL.
57331
57332 2008-06-21  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57335         result if it contains question marks.
57336         Reported by Michael Geng <linux@michaelgeng.de>.
57337
57338 2008-06-19  Bruno Haible  <bruno@clisp.org>
57339
57340         Fix CVS-ism.
57341         * doc/gnulib.texi: Include updated-stamp.texi.
57342         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57343         (updated-stamp.texi): New rule.
57344         (gnulib.info): Depend on it.
57345         * doc/.gitignore: Add updated-stamp.texi.
57346         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57347
57348 2008-06-19  Bruno Haible  <bruno@clisp.org>
57349
57350         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57351         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57352
57353 2008-06-19  Eric Blake  <ebb9@byu.net>
57354
57355         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57356         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57357         Reported by Stepan Kasal.
57358
57359 2008-06-18  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57362         Reported by Eric Blake.
57363
57364 2008-06-18  Eric Blake  <ebb9@byu.net>
57365
57366         Work around cygwin 1.5.25 strsignal bug.
57367         * tests/test-strsignal.c: Allow for const char *.
57368         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57369
57370 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57371
57372         * users.txt: Update URL to article and add author/date
57373         information.
57374
57375 2008-06-17  Bruno Haible  <bruno@clisp.org>
57376
57377         New macro gl_DISABLE_THREADS.
57378         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57379         if the user did not pass --enable-threads or --disable-threads option.
57380         (gl_DISABLE_THREADS): New macro.
57381         Reported by Eric Blake <ebb9@byu.net>.
57382
57383 2008-06-17  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57386         when the macro ignores it.
57387         Based on a patch by Eric Blake <ebb9@byu.net>.
57388
57389 2008-06-17  Bruno Haible  <bruno@clisp.org>
57390
57391         * modules/tls (License): Change to LGPLv2+.
57392         Reported by Eric Blake.
57393
57394 2008-06-17  Eric Blake  <ebb9@byu.net>
57395
57396         Simplify c-stack prerequisites.
57397         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57399         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57400         check.
57401         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57402         <sys/resource.h>.
57403
57404         Move c-stack test into testsuite.
57405         * modules/c-stack-tests: New file.
57406         * lib/c-stack.c [DEBUG]: Move test program...
57407         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57408         fail test if sigaltstack is lacking.
57409         * tests/test-c-stack.sh: New driver file.
57410
57411 2008-06-16  Eric Blake  <ebb9@byu.net>
57412
57413         Use raise module consistently.
57414         * modules/fatal-signal (Depends-on): Add raise.
57415         * modules/sigprocmask (Depends-on): Likewise.
57416         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57417         * lib/sigprocmask.c (sigprocmask): Likewise.
57418         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57419         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57420
57421         Fix compliance bug in sigpending.
57422         * lib/sigprocmask.c (sigpending): Return pending array via
57423         parameter, not return value.
57424
57425 2008-06-14  Eric Blake  <ebb9@byu.net>
57426
57427         Improve obstack-printf test code.
57428         * tests/test-obstack-printf.c (test_function): Fix comment, and
57429         simplify usage of obstack_* in macros.  Add a test for coverage.
57430         Reported by Bruno Haible.
57431
57432 2008-06-14  Bruno Haible  <bruno@clisp.org>
57433
57434         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57435         array size as a constant, not as a const variable.
57436         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57437         AC_USE_SYSTEM_EXTENSIONS.
57438         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57439         Test whether the obstack_printf function actually exists.
57440         * modules/obstack-printf (Depends-on): Add extensions.
57441         (Include): Remove obstack.h.
57442         * modules/obstack-printf-posix (Depends-on): Add extensions.
57443         (Include): Remove obstack.h.
57444
57445 2008-06-13  Eric Blake  <ebb9@byu.net>
57446
57447         Add obstack-printf and obstack-printf-posix modules.
57448         * modules/obstack-printf: New file.
57449         * modules/obstack-printf-posix: Likewise.
57450         * MODULES.html.sh (Misc): Mention them.
57451         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57452         Likewise.
57453         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57454         Likewise.
57455         * modules/stdio (Makefile.am): Accomodate new modules.
57456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57457         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57458         Declare.
57459         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57460         functions.
57461         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57462         (gl_REPLACE_OBSTACK_PRINTF): New macros
57463         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57464         * tests/test-obstack-printf.c: New file.
57465         * modules/obstack-printf-tests: Likewise.
57466         * modules/obstack-printf-posix-tests: Likewise.
57467
57468 2008-06-11  Bruno Haible  <bruno@clisp.org>
57469
57470         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57471         * lib/open.c: Include errno.h.
57472         (open): Fail when attempting to write to a file that has a trailing
57473         slash.
57474         * tests/test-open.c (main): Test against trailing slash bug.
57475         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57476
57477 2008-06-10  Bruno Haible  <bruno@clisp.org>
57478
57479         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57480         for $? to work inside the trap command, with various /bin/sh-s.
57481         * tests/test-vc-list-files-cvs.sh: Likewise.
57482
57483 2008-06-10  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/acl-internal.h: Don't include gettext.h here.
57486         * lib/set-mode-acl.c: Include gettext.h here.
57487         * lib/copy-acl.c: Likewise.
57488
57489 2008-06-10  Bruno Haible  <bruno@clisp.org>
57490
57491         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57492         * lib/wait-process.c (wait_subprocess): Likewise.
57493         * lib/execute.h (execute): Add termsigp argument.
57494         * lib/execute.c (execute): Likewise.
57495         * lib/csharpcomp.c (compile_csharp_using_pnet,
57496         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57497         * lib/csharpexec.c (execute_csharp_using_pnet,
57498         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57499         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57500         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57501         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57502         is_jikes_present): Update.
57503         * lib/javaexec.c (execute_java_class): Update.
57504         * lib/javaversion.c (execute_and_read_line): Update.
57505         * NEWS: Document the changes.
57506         Reported by Eric Blake.
57507
57508 2008-06-10  Eric Blake  <ebb9@byu.net>
57509
57510         Add missing include.
57511         * tests/test-strstr.c (includes): Add <signal.h>.
57512         * tests/test-strcasestr.c (includes): Likewise.
57513         * tests/test-memmem.c (includes): Likewise.
57514
57515 2008-06-10  Bruno Haible  <bruno@clisp.org>
57516
57517         * lib/wait-process.c (wait_subprocess): Add an assertion.
57518
57519 2008-06-10  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57522
57523 2008-06-10  Bruno Haible  <bruno@clisp.org>
57524
57525         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57526         using alarm().
57527         * tests/test-strcasestr.c (main): Likewise.
57528         * tests/test-strstr.c (main): Likewise.
57529
57530 2008-06-09  Bruno Haible  <bruno@clisp.org>
57531
57532         Work around the Solaris 10 ACE ACLs ABI change.
57533         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57534         declare if ACL_NO_TRIVIAL is present.
57535         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57536         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57537         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57538         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57539         define if ACL_NO_TRIVIAL is present.
57540         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57541         and use the current ABI.
57542         (file_has_acl): Use same #if condition as elsewhere.
57543         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57544         in use, and use the current ABI.
57545         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57546         Reported by Jim Meyering.
57547
57548 2008-06-09  Eric Blake  <ebb9@byu.net>
57549
57550         Work around environments that (stupidly) ignore SIGALRM.
57551         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57552         before using alarm().
57553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57555         Reported by Ian Beckwith <ianb@erislabs.net>.
57556
57557         Produce autobuild blurb earlier in log.
57558         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57559
57560 2008-06-09  Jim Meyering  <meyering@redhat.com>
57561         and OndÅ™ej Vašík  <ovasik@redhat.com>
57562
57563         utimens.c: correct kernel bug work-around
57564         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57565         failure, not success, and the kernel bug we're trying to work
57566         around affects not just the utimensat call, but also the fallback
57567         futimens call.
57568         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57569         not success.
57570         [HAVE_FUTIMENS]: Use the same work-around, here.
57571
57572 2008-06-09  Jim Meyering  <meyering@redhat.com>
57573
57574         add more guards around definition of ACE_-related code
57575         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57576         ALLOW and ACE_OWNER are also defined.
57577
57578 2008-06-08  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/acl-internal.h: Add me as co-author.
57581         * lib/file-has-acl.c: Likewise.
57582         * lib/set-mode-acl.c: Likewise.
57583         * lib/copy-acl.c: Likewise.
57584
57585 2008-06-08  Bruno Haible  <bruno@clisp.org>
57586
57587         Add support for AIX ACLs.
57588         * lib/acl-internal.h (acl_nontrivial): New declaration.
57589         * lib/file-has-acl.c (acl_nontrivial): New function.
57590         (file_has_acl): Add implementation using AIX 4 ACL API.
57591         * lib/set-mode-acl.c (qset_acl): Likewise.
57592         * lib/copy-acl.c (qcopy_acl): Likewise.
57593
57594 2008-06-08  Bruno Haible  <bruno@clisp.org>
57595
57596         Add support for HP-UX ACLs.
57597         * lib/acl-internal.h (acl_nontrivial): New declaration.
57598         * lib/file-has-acl.c (acl_nontrivial): New function.
57599         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57600         * lib/set-mode-acl.c (qset_acl): Likewise.
57601         * lib/copy-acl.c (qcopy_acl): Likewise.
57602
57603 2008-06-08  Bruno Haible  <bruno@clisp.org>
57604
57605         Add support for Cygwin ACLs.
57606         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57607         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57608         the chmod_or_fchmod call.
57609         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57610
57611 2008-06-08  Bruno Haible  <bruno@clisp.org>
57612
57613         Fix bug with setuid modes in Solaris 10+ code.
57614         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57615         succeeded, when the mode contains some special bits.
57616
57617 2008-06-08  Bruno Haible  <bruno@clisp.org>
57618
57619         Add support for Solaris 7..10 ACLs.
57620         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57621         declarations.
57622         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57623         functions.
57624         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57625         * lib/set-mode-acl.c (qset_acl): Likewise.
57626         * lib/copy-acl.c (qcopy_acl): Likewise.
57627
57628 2008-06-08  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57631         declaration.
57632         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57633         (acl_access_nontrivial): Remove MacOS X case.
57634         (file_has_acl): Use acl_extended_nontrivial.
57635         * lib/copy-acl.c (qcopy_acl): Likewise.
57636
57637 2008-06-08  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57640
57641 2008-06-08  Jim Meyering  <meyering@redhat.com>
57642
57643         * modules/acl (Maintainer): Add Bruno Haible.
57644
57645 2008-06-07  Bruno Haible  <bruno@clisp.org>
57646
57647         Improve support for Tru64 ACLs.
57648         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57649         ACL on OSF/1.
57650
57651 2008-06-07  Bruno Haible  <bruno@clisp.org>
57652
57653         Add support for MacOS X ACLs.
57654         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57655         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57656         * lib/set-mode-acl.c (qset_acl): Likewise.
57657         * lib/copy-acl.c (qcopy_acl): Likewise.
57658
57659 2008-06-07  Bruno Haible  <bruno@clisp.org>
57660
57661         Fix memory leak introduced on 2008-05-22.
57662         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57663         use.
57664
57665 2008-06-07  Bruno Haible  <bruno@clisp.org>
57666
57667         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57668         to construct an empty ACL.
57669
57670 2008-06-07  Bruno Haible  <bruno@clisp.org>
57671
57672         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57673         precisely.
57674         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57675
57676 2008-06-07  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57679         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57680
57681 2008-06-07  Bruno Haible  <bruno@clisp.org>
57682
57683         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57684         regardless of POSIX.
57685         * doc/posix-functions/_longjmp.texi: Likewise.
57686         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57687         SystemV platform in this case.
57688
57689 2008-06-06  Eric Blake  <ebb9@byu.net>
57690
57691         Document abort() bugs.
57692         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57693
57694         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57695         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57696         sigsetjmp.
57697         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57698         siglongjmp, but only as a macro.
57699         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57700         is obsolete.
57701         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57702
57703         Tweak documentation to cover cygwin argz bugs.
57704         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57705         argz bug fix; no code change needed since no cygwin releases
57706         occurred between the last fix and the bug being tested.
57707         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57708         module and recently fixed cygwin bugs.
57709         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57710         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57711         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57712         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57713         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57714         Likewise.
57715         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57716         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57717         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57718         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57719         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57720         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57721         Likewise.
57722
57723         Avoid gcc warning on cygwin.
57724         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57725         !ACL_NO_TRIVIAL]: Avoid unused variable.
57726
57727 2008-06-05  Eric Blake  <ebb9@byu.net>
57728
57729         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57730         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57731         git-version-gen fails to come up with a version.
57732         Reported by Simon Josefsson.
57733
57734 2008-06-05  Jim Meyering  <meyering@redhat.com>
57735             Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         utimens.c: work around a probable Linux kernel bug
57738         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57739         appears to be a kernel bug that causes utimensat to return 280
57740         instead of 0, indicating success.
57741
57742 2008-06-04  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57745         2008-06-01 commit.
57746
57747 2008-06-04  Bruno Haible  <bruno@clisp.org>
57748
57749         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57750         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57751         (file_has_acl): Use it. Save errno afterwards.
57752         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57753
57754 2008-06-03  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57757         draft code. Simplify #ifs.
57758         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57759         Put Solaris code after POSIX-draft code. Fix comments regarding
57760         Solaris 10, HP-UX. Mention Cygwin.
57761         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57762
57763 2008-06-03  Eric Blake  <ebb9@byu.net>
57764
57765         Provide fallback for older kernels.
57766         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57767         Provide runtime fallback if kernel lacks support.
57768         Reported by Mike Frysinger.
57769
57770 2008-06-02  Bruno Haible  <bruno@clisp.org>
57771
57772         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57773         it exists.
57774
57775 2008-06-02  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57778         * lib/copy-acl.c (qcopy_acl): Update comment.
57779
57780 2008-06-02  Bruno Haible  <bruno@clisp.org>
57781
57782         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57783         like ACL APIs.
57784
57785 2008-06-02  Bruno Haible  <bruno@clisp.org>
57786
57787         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57788         * tests/test-set-mode-acl.sh: Likewise.
57789         * tests/test-copy-acl.sh: Likewise.
57790         * tests/test-copy-file.sh: Likewise.
57791
57792 2008-06-02  Bruno Haible  <bruno@clisp.org>
57793
57794         * tests/test-file-has-acl.sh: Remove unused code.
57795
57796 2008-06-01  Bruno Haible  <bruno@clisp.org>
57797
57798         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57799         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57800         messages.
57801         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57802
57803 2008-06-01  Bruno Haible  <bruno@clisp.org>
57804
57805         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57806         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57807         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57808         APIs.
57809         * modules/acl-tests (configure.ac): Remove tests now contained in
57810         m4/acl.m4.
57811
57812 2008-06-02  Jim Meyering  <meyering@redhat.com>
57813
57814         announce-gen: use a better key-server host name
57815         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57816         it may be more consistently reliable.  Suggested by Werner Koch
57817         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57818
57819 2008-06-01  Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57822         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57823
57824 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57825
57826         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57827
57828 2008-06-01  Bruno Haible  <bruno@clisp.org>
57829
57830         New ACL tests.
57831         * tests/test-file-has-acl.sh: New file.
57832         * tests/test-file-has-acl.c: New file.
57833         * tests/test-set-mode-acl.sh: New file.
57834         * tests/test-set-mode-acl.c: New file.
57835         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57836         * tests/test-copy-acl.c: New file.
57837         * modules/acl-tests: New file, based on modules/copy-file-tests.
57838         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57839         (Depends-on): Add acl-tests.
57840         (configure.ac): Remove checks.
57841         (Makefile.am): Don't create test-sameacls program here any more.
57842
57843 2008-06-01  Bruno Haible  <bruno@clisp.org>
57844
57845         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57846         * tests/test-sameacls.c: Include progname.h.
57847         (main): Invoke set_program_name. Portability fixes for MacOS X,
57848         Solaris, HP-UX.
57849
57850 2008-06-01  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57853         function.
57854         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57855
57856 2008-06-01  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/rpmatch (Depends-on): Add strdup.
57859
57860 2008-06-01  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/pipe.c: Include unistd-safer.h.
57863         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57864         * modules/pipe (Depends-on): Add unistd-safer.
57865
57866 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57867
57868         * modules/autobuild (configure.ac): Call AB_INIT.
57869
57870 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57871
57872         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57873         Suggested by Bruno Haible <bruno@clisp.org>.
57874
57875 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57876
57877         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57878         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57879         <bruno@clisp.org>.
57880
57881 2008-05-29  Eric Blake  <ebb9@byu.net>
57882
57883         Prefer new POSIX 200x interfaces over futimesat.
57884         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57885         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57886         when available.
57887         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57888
57889 2008-05-28  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/stpcpy (License): Change to LGPLv2+.
57892         Requested by David Lutterkort <dlutter@redhat.com>.
57893
57894 2008-05-27  Bruno Haible  <bruno@clisp.org>
57895
57896         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57897         current mingw.
57898         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57899
57900 2008-05-27  Bruno Haible  <bruno@clisp.org>
57901
57902         * modules/iconv_open (Link): New section, from module 'iconv'.
57903         * modules/striconv (Link): Likewise.
57904         * modules/striconveh (Link): Likewise.
57905         * modules/xstriconv (Link): Likewise.
57906         * modules/unicodeio (Link): Likewise.
57907         * modules/propername (Link): Likewise.
57908         Reported by Jim Meyering.
57909
57910 2008-05-26  Jim Meyering  <meyering@redhat.com>
57911
57912         sha256: do not artificially restrict buffer length to be < 2^32
57913         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57914         uint32_t to size_t.
57915         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57916         to match.
57917
57918         avoid unaligned access errors, e.g., on sparc
57919         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57920         direct access through a possibly-unaligned uint64* pointer.
57921         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57922         direct access through a possibly-unaligned uint32* pointer.
57923         Prompted by this patch from Tom "spot" Callaway:
57924         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57925
57926         sha512.c: fix typo in comment
57927         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57928
57929 2008-05-25  Bruno Haible  <bruno@clisp.org>
57930
57931         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57932         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57933         (Makefile.am): Update lib_SOURCES.
57934
57935 2008-05-25  Bruno Haible  <bruno@clisp.org>
57936
57937         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57938
57939 2008-05-25  Jim Meyering  <meyering@redhat.com>
57940
57941         useless-if-before-free: freed expr may have white-space differences
57942         * build-aux/useless-if-before-free: Recognize cases in which the
57943         freed expression differs from the tested one in embedded white
57944         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57945         $1 was used, so we can't make any regexp shy.  Improved tests now
57946         detect this.
57947
57948         useless-if-before-free: accept white space in the expression.
57949         * build-aux/useless-if-before-free: For now, any white space
57950         in the expression must be identical in the free argument.
57951
57952         useless-if-before-free: efficiency tweak
57953         * build-aux/useless-if-before-free: Make the expression-matching
57954         regexp "shy".
57955         Make the *outer* regexp shy, not the expr-matching one.
57956
57957         update code-in-comment to accept cast of free arg
57958         * build-aux/useless-if-before-free: Update regexp.
57959
57960 2008-05-25  Bruno Haible  <bruno@clisp.org>
57961
57962         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57963         * modules/copy-file-tests (Files, Makefile.am): Update.
57964         * tests/test-copy-file.c (func_test_copy): Update.
57965
57966 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57967
57968         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57969
57970 2008-05-23  Bruno Haible  <bruno@clisp.org>
57971
57972         Improve support for ACLs on OSF/1.
57973         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57974         Remove fallback for unknown flavors of ACLs.
57975
57976 2008-05-22  Bruno Haible  <bruno@clisp.org>
57977
57978         Add support for ACLs on OSF/1.
57979         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57980         replacements.
57981         (acl_free_text): New macro fallback.
57982         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57983         acl_free.
57984         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57985         acl_free_text function. Require AC_C_INLINE.
57986
57987 2008-05-22  Bruno Haible  <bruno@clisp.org>
57988
57989         Make copy_acl work on MacOS X 10.5.
57990         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57991         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57992         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57993         If MODE_INSIDE_ACL, don't assume that every system has the same text
57994         representation for ACLs as FreeBSD.
57995         * lib/copy-acl.c (copy_acl): Add support for platforms with
57996         !MODE_INSIDE_ACL.
57997         * lib/file-has-acl.c (file_has_acl): Likewise.
57998         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57999         FreeBSD, MacOS X, or IRIX, respectively.
58000
58001 2008-05-22  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/acl.h: Don't include <sys/acl.h>.
58004         (GETACLCNT): Move fallback to lib/acl-internal.h.
58005         * lib/acl-internal.h: Include <sys/acl.h> here.
58006         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58007
58008 2008-05-22  Bruno Haible  <bruno@clisp.org>
58009
58010         Split off copy_acl function to separate file.
58011         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58012         * lib/acl.c (copy_acl): Moved function to separate file.
58013         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58014         * modules/acl (Files): Add lib/copy-acl.c.
58015         (Makefiles.am): Augment lib_SOURCES.
58016
58017 2008-05-22  Bruno Haible  <bruno@clisp.org>
58018
58019         * modules/copy-file-tests: New file.
58020         * tests/test-copy-file.sh: New file.
58021         * tests/test-copy-file.c: New file.
58022         * tests/test-copy-file-sameacls.c: New file.
58023
58024 2008-05-22  Eric Blake  <ebb9@byu.net>
58025
58026         Avoid gcc warning.
58027         * tests/test-memcmp.c (main): Pass NULL indirectly.
58028
58029 2008-05-21  Bruno Haible  <bruno@clisp.org>
58030
58031         Add reference doc about ACLs.
58032         * doc/acl-resources.txt: New file.
58033         * doc/acl-cygwin.txt: New file.
58034
58035 2008-05-21  Bruno Haible  <bruno@clisp.org>
58036
58037         Avoid one more warning from gcc.
58038         * lib/vasnprintf.c (IF_LINT): Update comments.
58039         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58040
58041 2008-05-21  Jim Meyering  <meyering@redhat.com>
58042
58043         avoid a warning from gcc
58044         * lib/vasnprintf.c (IF_LINT): Define.
58045         (scale10_round_decimal_long_double):
58046         Use it to avoid a "may be used uninitialized" warning.
58047         (scale10_round_decimal_double): Likewise.
58048
58049 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58050
58051         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58052         declared.
58053
58054 2008-05-20  Bruno Haible  <bruno@clisp.org>
58055
58056         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58057         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58058
58059 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58060
58061         * modules/memcmp-tests: New file.
58062         * tests/test-memcmp.c: New file.
58063
58064 2008-05-19  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/propername (Notice, configure.ac): Put quoted "..." into
58067         --keyword option.
58068         * lib/propername.h: Update comments accordingly.
58069         Reported by Eric Blake.
58070
58071 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58072
58073         * modules/getpass-gnu (Depends-on): Add fseeko.
58074
58075 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58076
58077         * modules/base64-tests: New file.
58078
58079 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58080
58081         * lib/base64.c (base64_decode_ctx): If a decode context structure
58082         was passed in use it to ignore newlines.  If a context structure
58083         was _not_ passed in, continue to treat newlines as garbage (this
58084         is the historical behavior).  Formerly base64_decode.
58085         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58086         takes a decode context structure.
58087         * lib/base64.h (base64_decode): Macro for four-argument calls.
58088         (base64_decode_alloc): Likewise.
58089         * lib/base64.c (base64_decode_ctx): If a decode context structure
58090         was passed in use it to ignore newlines.  If a context structure
58091         was _not_ passed in, continue to treat newlines as garbage (this
58092         is the historical behavior).  Formerly base64_decode.
58093         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58094         takes a decode context structure.
58095         * lib/base64.h (base64_decode): Macro for four-argument calls.
58096         (base64_decode_alloc): Likewise.
58097
58098 2008-05-19  Jim Meyering  <meyering@redhat.com>
58099
58100         avoid a warning from gcc
58101         * lib/trim.c (IF_LINT): Define.
58102         (trim2): Use it to avoid a "may be used uninitialized" warning.
58103
58104         Fix doc typo.
58105         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58106
58107 2008-05-19  Bruno Haible  <bruno@clisp.org>
58108
58109         * doc/glibc-functions/getpass.texi: Document limits of other
58110         implementations.
58111
58112 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58113             Bruno Haible <bruno@clisp.org>
58114
58115         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58116
58117 2008-05-18  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/propername: New file, from GNU gettext.
58120         * lib/propername.h: New file, from GNU gettext.
58121         * lib/propername.c: New file, from GNU gettext.
58122         * MODULES.html.sh (Internationalization functions): Add propername.
58123
58124 2008-05-16  Jim Meyering  <meyering@redhat.com>
58125             Bruno Haible  <bruno@clisp.org>
58126
58127         Avoid some warnings from "gcc -Wshadow".
58128         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58129
58130 2008-05-15  Eric Blake  <ebb9@byu.net>
58131
58132         Extend previous patch to cygwin 1.7.0.
58133         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58134         fast implementation in cygwin >= 1.7.0.
58135         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58137
58138 2008-05-15  Bruno Haible  <bruno@clisp.org>
58139
58140         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58141         implementation in glibc >= 2.9.
58142         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58144
58145 2008-05-15  Bruno Haible  <bruno@clisp.org>
58146
58147         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58148         (Unicode string functions): Add unilbrk/*.
58149         Reported by Karl Berry.
58150
58151 2008-05-15  Eric Blake  <ebb9@byu.net>
58152
58153         Fix violation of <stdbool.h> replacement in regex.
58154         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58155         * lib/regexec.c (re_search_internal): Likewise.
58156         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58157
58158 2008-05-15  Jim Meyering  <meyering@redhat.com>
58159
58160         avoid distracting test output when git or cvs is not found
58161         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58162         * tests/test-vc-list-files-git.sh: Likewise.
58163
58164 2008-05-15  Eric Blake  <ebb9@byu.net>
58165
58166         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58167         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58168         glibc version.
58169         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58170         * doc/posix-functions/strstr.texi (strstr): Likewise.
58171         * lib/str-two-way.h (MAX): Sychronize with glibc.
58172
58173 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58174
58175         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58176         opr.ctx_type.
58177         (calc_first): Initialize constraint field.
58178         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58179         Fix grammar.
58180         (duplicate_node): Merge constraint field for all node types.
58181         (calc_eclosure_iter): Look at constraint field for all node types.
58182         * lib/regex_internal.c (create_cd_newstate): Don't look at
58183         opr.ctx_type.
58184
58185 2008-05-14  Bruno Haible  <bruno@clisp.org>
58186
58187         Help GCC to do better code generation.
58188         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58189         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58190         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58191         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58192         Declare with attribute 'malloc' if supported.
58193
58194 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58195
58196         use "echo STR|wc -c" rather than unportable "expr length STR"
58197         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58198         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58199
58200 2008-05-14  Jim Meyering  <meyering@redhat.com>
58201
58202         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58203         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58204         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58205         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58206         via Collin Lasse.
58207
58208 2008-05-14  Eric Blake  <ebb9@byu.net>
58209
58210         Avoid quadratic growth in gl_LIBSOURCES.
58211         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58212         Suggested by Bruno Haible.
58213
58214         Test xmemdup0.
58215         * modules/xmemdup0-tests: New file.
58216         * tests/test-xmemdup0.c: Likewise.
58217
58218 2008-05-13  Eric Blake  <ebb9@byu.net>
58219
58220         Split xmemdup0 into its own module.
58221         * modules/xmemdup0: New file.
58222         * lib/xmemdup0.h: Likewise.
58223         * lib/xmemdup0.c: Likewise.
58224         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58225         * lib/xalloc.h (xmemdup0): Remove.
58226         * lib/xmalloc.c (xmemdup0): Likewise.
58227
58228 2008-05-13  Eric Blake  <ebb9@byu.net>
58229             Bruno Haible  <bruno@clisp.org>
58230
58231         Reduce number of forks required during autoconf.
58232         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58233         and gl_LIBSOURCES_DIR.
58234         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58235         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58236         m4_syscmd per file.
58237         <m4_foreach_w>: Move...
58238         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58239
58240 2008-05-13  Eric Blake  <ebb9@byu.net>
58241
58242         * gnulib-tool: Fix various comment typos.
58243
58244 2008-05-12  Bruno Haible  <bruno@clisp.org>
58245
58246         Tailor the linebreaking algorithm.
58247         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58248
58249 2008-05-12  Bruno Haible  <bruno@clisp.org>
58250
58251         Update to Unicode 5.0.0.
58252         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58253         LBP_JV, LBP_JT. Redistribute values.
58254         (unilbrk_table): Change size.
58255         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58256         Unicode TR#14 rev. 22.
58257         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58258         LBP_JV, LBP_JT. Redistribute values.
58259         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58260         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58261         Update.
58262         * lib/unilbrk/lbrkprop1.h: Regenerated.
58263         * lib/unilbrk/lbrkprop2.h: Regenerated.
58264         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58265         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58266         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58267         Likewise.
58268         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58269         Likewise.
58270         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58271         result.
58272         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58273         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58274         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58275         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58276         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58277         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58278
58279 2008-05-11  Bruno Haible  <bruno@clisp.org>
58280
58281         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58282
58283 2008-05-11  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58286         * modules/unilbrk/gen-lbrk: New file.
58287
58288 2008-05-11  Bruno Haible  <bruno@clisp.org>
58289
58290         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58291         * m4/sha512.m4 (gl_SHA512): Likewise.
58292
58293 2008-05-11  Jim Meyering  <meyering@redhat.com>
58294
58295         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58296         * modules/crypto/sha256: New file.
58297         * modules/crypto/sha512: Likewise.
58298         * lib/sha256.c: Likewise.
58299         * lib/sha256.h: Likewise.
58300         * lib/sha512.c: Likewise.
58301         * lib/sha512.h: Likewise.
58302         * lib/u64.h: Likewise.
58303         * m4/sha256.m4: Likewise.
58304         * m4/sha512.m4: Likewise.
58305         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58306
58307 2008-05-10  Bruno Haible  <bruno@clisp.org>
58308
58309         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58310         (Input/Output <stdio.h>): Add xprintf.
58311         (Signal handling <signal.h>): Add strsignal.
58312         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58313         (Core language properties): Add func.
58314         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58315         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58316         strings.
58317         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58318         (Input/output): New section.
58319         (File system functions): Add openat-die, stat-macros.
58320         (Networking functions): Add sockets.
58321         (Unicode string functions): Add unictype/*.
58322         (Support for building libraries and executables): Add gperf.
58323         (Support for building documentation): Add agpl-3.0.
58324         (Misc): Add nocrash.
58325
58326 2008-05-10  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/unictype/gen-ctype: New file.
58329
58330 2008-05-10  Jim Meyering  <meyering@redhat.com>
58331
58332         Make chdir-safer.c more efficient on a system with no symlinks.
58333         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58334         also if ELOOP is zero.  Suggested by Bruno Haible.
58335
58336         Make chdir-safer.c slightly safer.
58337         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58338         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58339
58340         Avoid compile failure on systems without ELOOP (like mingw).
58341         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58342         Reported by Bruno Haible.
58343
58344 2008-05-10  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58347         (is_utf8_encoding): Use a case-insensitive comparison.
58348         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58349         streq.
58350
58351 2008-05-10  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58354         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58355         * lib/unilbrk/ulc-common.h (iconv_string_length,
58356         iconv_string_keeping_offsets): Remove declarations.
58357         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58358         Don't include <iconv.h>, streq.h, xsize.h.
58359         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58360         conversion.
58361         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58362         <iconv.h>, streq.h, xsize.h.
58363         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58364         conversion.
58365         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58366         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58367         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58368         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58369
58370 2008-05-10  Bruno Haible  <bruno@clisp.org>
58371
58372         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58373         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58374
58375         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58376         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58377
58378         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58379         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58380
58381         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58382         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58383
58384         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58385         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58386
58387         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58388         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58389
58390         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58391         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58392
58393         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58394         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58395
58396 2008-05-10  Bruno Haible  <bruno@clisp.org>
58397
58398         Split up 'linebreak' module.
58399         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58400         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58401         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58402         modifications.
58403         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58404         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58405         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58406         lib/linebreak.c.
58407         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58408         lib/linebreak.c.
58409         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58410         lib/linebreak.c.
58411         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58412         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58413         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58414         lib/linebreak.c.
58415         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58416         lib/linebreak.c.
58417         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58418         lib/linebreak.c.
58419         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58420         lib/linebreak.c.
58421         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58422         lib/linebreak.c.
58423         * modules/unilbrk/base: New file.
58424         * modules/unilbrk/tables: New file.
58425         * modules/unilbrk/u8-possible-linebreaks: New file.
58426         * modules/unilbrk/u16-possible-linebreaks: New file.
58427         * modules/unilbrk/u32-possible-linebreaks: New file.
58428         * modules/unilbrk/ulc-common: New file.
58429         * modules/unilbrk/ulc-possible-linebreaks: New file.
58430         * modules/unilbrk/u8-width-linebreaks: New file.
58431         * modules/unilbrk/u16-width-linebreaks: New file.
58432         * modules/unilbrk/u32-width-linebreaks: New file.
58433         * modules/unilbrk/ulc-width-linebreaks: New file.
58434         * lib/linebreak.h: Remove file.
58435         * lib/linebreak.c: Remove file.
58436         * m4/linebreak.m4: Remove file.
58437         * modules/linebreak: Remove file.
58438         * NEWS: Mention the changes.
58439
58440 2008-05-09  Eric Blake  <ebb9@byu.net>
58441
58442         Add xmemdup0.
58443         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58444         implementation.
58445         * lib/xmalloc.c (xmemdup0): New C implementation.
58446
58447 2008-05-08  Bruno Haible  <bruno@clisp.org>
58448
58449         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58450
58451 2008-05-07  Eric Blake  <ebb9@byu.net>
58452
58453         Support cross-compilation of <wctype.h>.
58454         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58455         AC_CACHE_CHECK.
58456
58457 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58458
58459         * build-aux/vc-list-files: Add support for bzr.
58460
58461 2008-05-03  Jim Meyering  <meyering@redhat.com>
58462
58463         avoid failed assertion with tight malloc
58464         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58465
58466 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58467
58468         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58469         are needed from arpa/inet.h.
58470         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58471         Reported by Bruno Haible.
58472
58473 2008-05-02  Jim Meyering  <meyering@redhat.com>
58474
58475         avoid compilation error on FreeBSD 6
58476         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58477
58478 2008-05-01  Jim Meyering  <meyering@redhat.com>
58479
58480         useless-if-before-free: correct --help's exit status description
58481         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58482         for one or more matches, etc.  Reported by Bruno Haible.
58483
58484         vc-list-files: make the stand-alone gnulib test work
58485         * modules/vc-list-files-tests (configure.ac):
58486         Define and AC_SUBST abs_aux_dir.
58487         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58488         $(abs_top_srcdir) to each script and having each of them
58489         duplicate the work of setting PATH, set PATH here, using
58490         the new variable, abs_aux_dir instead.
58491         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58492         * tests/test-vc-list-files-git.sh: Likewise.
58493         Reported by Bruno Haible.
58494
58495 2008-05-01  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58498         reallocation. Rename 'done' to 'found_delimiter'.
58499
58500 2008-05-01  Jim Meyering  <meyering@redhat.com>
58501
58502         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58503         * build-aux/vc-list-files: Use `...`, not $(...).
58504
58505 2008-04-30  Jim Meyering  <meyering@redhat.com>
58506
58507         add tests for vc-list-files
58508         * modules/vc-list-files-tests: New module.
58509         * tests/test-vc-list-files-cvs.sh: New file.
58510         * tests/test-vc-list-files-git.sh: New file.
58511
58512         avoid a warning from gcc
58513         * lib/getndelim2.c (IF_LINT): Define.
58514         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58515
58516         vc-list-files: work properly with build-aux/cvsu, too
58517         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58518         to all cvs-based clauses.
58519
58520         vc-list-files: work properly in the CVS+awk case, too
58521         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58522
58523         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58524         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58525         take more than one file argument, so .  Add quotes, just in case $dir
58526         ever contains a shell meta-character.  Prompted by Soren Hansen in
58527         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58528
58529 2008-04-29  Eric Blake  <ebb9@byu.net>
58530
58531         Optimize getndelim2 to use block operations when possible.
58532         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58533         freadseek, and memchr2.
58534         * lib/getndelim2.c (getndelim2): Use them for block reads.
58535
58536 2008-04-29  Bruno Haible  <bruno@clisp.org>
58537
58538         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58539         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58540         * modules/inet_ntop (Depends-on): Add extensions.
58541         * modules/inet_pton (Depends-on): Likewise.
58542         Reported by Simon Josefsson.
58543
58544 2008-04-29  Jim Meyering  <meyering@redhat.com>
58545
58546         When the is more than one match in a block, match all of them.
58547         * build-aux/useless-if-before-free: Iterate through each block
58548         until there are no more matches.
58549
58550         Fix broken useless-if-before-free script.
58551         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58552         the expression to match cast of argument to free-like function.
58553
58554 2008-04-29  Eric Blake  <ebb9@byu.net>
58555
58556         Use new header.
58557         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58558
58559 2008-04-29  Jim Meyering  <meyering@redhat.com>
58560
58561         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58562         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58563         by gnulib to exist and to declare e.g., inet_ntop.
58564         Don't include "inet_ntop.h", now removed.
58565
58566         * m4/arpa_inet_h.m4: Remove trailing blanks.
58567
58568 2008-04-29  Eric Blake  <ebb9@byu.net>
58569
58570         Silence valgrind on safe reads beyond potential array bounds.
58571         * lib/rawmemchr.valgrind: New file.
58572         * lib/strchrnul.valgrind: Likewise.
58573         * modules/rawmemchr (Files): Distribute new file.
58574         * modules/strchrnul (Files): Likewise.
58575         Suggested by Bruno Haible.
58576
58577 2008-04-29  Bruno Haible  <bruno@clisp.org>
58578
58579         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58580         (inet_ntop, inet_pton): Change portability warning's wording.
58581         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58582         Invoke gl_CHECK_NEXT_HEADERS.
58583         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58584         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58585         set ARPA_INET_H.
58586         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58587         * modules/arpa_inet (Description): No longer only for systems that
58588         lack it.
58589         (Depends-on): Add include_next.
58590         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58591         HAVE_ARPA_INET_H.
58592
58593 2008-04-29  Jim Meyering  <meyering@redhat.com>
58594
58595         * modules/mkdir (License): Re-license as LGPLv2+.
58596
58597 2008-04-29  Bruno Haible  <bruno@clisp.org>
58598
58599         * modules/rawmemchr (Maintainer): Set to Eric.
58600         * modules/strchrnul (Maintainer): Likewise.
58601
58602 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58603
58604         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58605         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58606
58607         * modules/arpa_inet (arpa/inet.h): Use them.
58608
58609 2008-04-28  Eric Blake  <ebb9@byu.net>
58610
58611         Test getndelim2.
58612         * modules/getndelim2-tests: New file.
58613         * tests/test-getndelim2.c: Likewise.
58614         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58615         stream.
58616         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58617
58618         * MODULES.html.sh: Document new module.
58619
58620 2008-04-20  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/c-stack.c (die): Use raise.
58623         * modules/c-stack (Depends-on): Add raise.
58624
58625 2008-04-28  Bruno Haible  <bruno@clisp.org>
58626
58627         Expect rpmatch to be declared.
58628         * lib/yesno.c (rpmatch): Remove declaration.
58629
58630         Declare rpmatch.
58631         * lib/stdlib.in.h (rpmatch): New declaration.
58632         * lib/rpmatch.c: Include <stdlib.h> first.
58633         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58634         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58636         HAVE_RPMATCH.
58637         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58639         (Include): Set to <stdlib.h>.
58640         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58641         HAVE_RPMATCH.
58642         * NEWS: Document the change.
58643
58644 2008-04-28  Bruno Haible  <bruno@clisp.org>
58645
58646         Change rpmatch to use nl_langinfo when appropriate.
58647         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58648         (N_): New macro.
58649         (localized_pattern): New function/macro.
58650         (try): Remove match, nomatch arguments. Copy the pattern into safe
58651         memory before caching it.
58652         (rpmatch): Use localized_pattern. Add translator comments.
58653         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58654         Suggested by Eric Blake.
58655         * modules/rpmatch (Depends-on): Add stdbool.
58656
58657 2008-04-28  Eric Blake  <ebb9@byu.net>
58658
58659         Add rawmemchr module, matching glibc.
58660         * modules/string (Makefile.am): New indicator.
58661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58662         * lib/string.in.h (rawmemchr): Declare when appropriate.
58663         * modules/rawmemchr: New file.
58664         * m4/rawmemchr.m4: Likewise.
58665         * lib/rawmemchr.c: Likewise.
58666         * modules/rawmemchr-tests: Likewise.
58667         * tests/test-rawmemchr.c: Likewise.
58668         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58669         module.
58670         * modules/strchrnul (Depends-on): Add rawmemchr.
58671         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58672
58673         Whitespace cleanup.
58674         * tests/test-strchrnul.c: Reindent.
58675         * lib/strchrnul.c: Likewise.
58676
58677         Optimize and test strchrnul.
58678         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58679         * modules/strchrnul-tests: New file.
58680         * tests/test-strchrnul.c: Likewise.
58681
58682         Remove intprops dependency.
58683         * modules/memchr (Depends-on): Remove intprops.
58684         * modules/memrchr (Depends-on): Likewise.
58685         * modules/memchr2 (Depends-on): Likewise.
58686         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58687         * lib/memrchr.c (__memrchr): Likewise.
58688         * lib/memrchr2.c (memchr2): Likewise.
58689         Reported by Simon Josefsson.
58690
58691 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58692
58693         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58694         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58695
58696 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58697
58698         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58699
58700         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58701
58702         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58703
58704         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58705         declarations.
58706         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58707
58708         * m4/inet_pton.m4: Don't check for header files.
58709
58710         * m4/inet_ntop.m4: Don't check for header files.
58711
58712 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58713
58714         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58715         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58716         trigger for cygwin).
58717         Reported by Bruno Haible  <bruno@clisp.org>.
58718
58719 2008-04-28  Bruno Haible  <bruno@clisp.org>
58720
58721         * doc/posix-functions/strdup.texi: Mention mingw problem.
58722
58723 2008-04-27  Bruno Haible  <bruno@clisp.org>
58724
58725         * modules/stat-time-tests (Depends-on): Add sleep.
58726         * tests/test-stat-time.c (force_unlink): New function.
58727         (cleanup): Use it.
58728         (test_mtime): Remove the ctime related tests.
58729         (test_ctime): New function, containing the ctime related tests.
58730         (main): Call test_ctime, except on native Windows platforms.
58731
58732 2008-04-27  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/rpmatch.c (rpmatch): Add some comments.
58735         Reported by James Youngman <jay@gnu.org>.
58736
58737 2008-04-27  Bruno Haible  <bruno@clisp.org>
58738
58739         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58740         quiet NaNs.
58741
58742 2008-04-27  Bruno Haible  <bruno@clisp.org>
58743
58744         Make test-yesno.sh work on mingw.
58745         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58746         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58747         (main): Set stdin to binary mode.
58748         * modules/yesno-tests (Depends-on): Add binary-io.
58749
58750 2008-04-27  Bruno Haible  <bruno@clisp.org>
58751
58752         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58753         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58754         argument that lie outside the IEEE 854 domain.
58755         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58756         (gl_ISFINITE): Use it.
58757         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58758
58759 2008-04-27  Bruno Haible  <bruno@clisp.org>
58760
58761         Allow local renaming in config.h.
58762         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58763
58764 2008-04-27  Bruno Haible  <bruno@clisp.org>
58765
58766         * lib/memchr.c (__memchr): Change type of 'i'.
58767         * lib/memchr2.c (memchr2): Likewise.
58768
58769 2008-04-26  Eric Blake  <ebb9@byu.net>
58770         and Bruno Haible  <bruno@clisp.org>
58771
58772         Optimize and test memrchr.
58773         * modules/memrchr (Depends-on): Add intprops.
58774         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58775         * modules/memrchr-tests: New file.
58776         * tests/test-memrchr.c: New file.
58777
58778 2008-04-26  Bruno Haible  <bruno@clisp.org>
58779
58780         Add tentative support for DragonFly BSD.
58781         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58782         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58783         fp.
58784         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58785         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58786         * lib/fpurge.c (fpurge): Likewise.
58787         * lib/freadable.c (freaadable): Likewise.
58788         * lib/freadahead.c (freadahead): Likewise.
58789         * lib/freading.c (freading): Likewise.
58790         * lib/freadptr.c (freadptr): Likewise.
58791         * lib/freadseek.c (freadptrinc): Likewise.
58792         * lib/fseeko.c (fseeko): Likewise.
58793         * lib/fseterr.c (fseterr): Likewise.
58794         * lib/fwritable.c (fwritable): Likewise.
58795         * lib/fwriting.c (fwriting): Likewise.
58796
58797 2008-04-26  Bruno Haible  <bruno@clisp.org>
58798
58799         * lib/stdio-impl.h: New file.
58800         * lib/fbufmode.c: Include stdio-impl.h.
58801         (fbufmode): Use fp_, remove redundant #defines.
58802         * lib/fflush.c: Include stdio-impl.h.
58803         (clear_ungetc_buffer): Remove redundant #defines.
58804         * lib/fpurge.c: Include stdio-impl.h.
58805         (fpurge): Remove redundant #defines.
58806         * lib/freadable.c: Include stdio-impl.h.
58807         (freadable): Remove redundant #defines.
58808         * lib/freadahead.c: Include stdio-impl.h.
58809         (freadahead): Remove redundant #defines.
58810         * lib/freading.c: Include stdio-impl.h.
58811         (freading): Remove redundant #defines.
58812         * lib/freadptr.c: Include stdio-impl.h.
58813         (freadptr): Remove redundant #defines.
58814         * lib/freadseek.c: Include stdio-impl.h.
58815         (freadptrinc): Remove redundant #defines.
58816         * lib/fseeko.c: Include stdio-impl.h.
58817         (rpl_fseeko): Remove redundant #defines.
58818         * lib/fseterr.c: Include stdio-impl.h.
58819         (fseterr): Remove redundant #defines.
58820         * lib/fwritable.c: Include stdio-impl.h.
58821         (fwritable: Remove redundant #defines.
58822         * lib/fwriting.c: Include stdio-impl.h.
58823         (fwriting): Remove redundant #defines.
58824         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58825         * modules/fflush (Files): Likewise.
58826         * modules/fpurge (Files): Likewise.
58827         * modules/freadable (Files): Likewise.
58828         * modules/freadahead (Files): Likewise.
58829         * modules/freading (Files): Likewise.
58830         * modules/freadptr (Files): Likewise.
58831         * modules/freadseek (Files): Likewise.
58832         * modules/fseeko (Files): Likewise.
58833         * modules/fseterr (Files): Likewise.
58834         * modules/fwritable (Files): Likewise.
58835         * modules/fwriting (Files): Likewise.
58836
58837 2008-04-26  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58840         restore_seek_optimization, update_fpos_cache): New functions, extracted
58841         from rpl_fflush.
58842         (rpl_fflush): Use them.
58843         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58844         (gl_REPLACE_FFLUSH): Use it.
58845
58846 2008-04-26  Bruno Haible  <bruno@clisp.org>
58847
58848         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58849         on Solaris.
58850         * tests/test-xstrtoimax.sh: Likewise.
58851         * tests/test-xstrtoumax.sh: Likewise.
58852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58853
58854 2008-04-26  Bruno Haible  <bruno@clisp.org>
58855
58856         * modules/memchr-tests: New file.
58857         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58858
58859 2008-04-26  Eric Blake  <ebb9@byu.net>
58860             Bruno Haible  <bruno@clisp.org>
58861
58862         * lib/memchr.c: Include intprops.h.
58863         (__memchr): Optimize parallel detection of matching bytes. Rename local
58864         variables. Add explanatory comments.
58865
58866 2008-04-26  Bruno Haible  <bruno@clisp.org>
58867
58868         Fix module 'memchr', broken since 2000-10-28.
58869         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58870
58871 2008-04-26  Bruno Haible  <bruno@clisp.org>
58872
58873         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58874         comments.
58875
58876 2008-04-25  Eric Blake  <ebb9@byu.net>
58877
58878         Use native fstatat on cygwin 1.7.0.
58879         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58880         first.
58881
58882 2008-04-23  Eric Blake  <ebb9@byu.net>
58883
58884         Improve memchr2 performance.
58885         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58886         NUL bytes.
58887         * modules/memchr2 (Depends-on): Use intprops.h.
58888
58889 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58890
58891         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58892         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58893         <blp@cs.stanford.edu>.
58894
58895 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58896
58897         * lib/arpa_inet.in.h: New file.
58898
58899         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58900         (Makefile.am): Sed in substitute header file.
58901
58902         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58903         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58904
58905         * modules/inet_ntop (configure.ac): Use
58906         gl_ARPA_INET_MODULE_INDICATOR.
58907
58908         * modules/inet_pton (configure.ac): Use
58909         gl_ARPA_INET_MODULE_INDICATOR.
58910
58911 2008-04-22  Jim Meyering  <meyering@redhat.com>
58912
58913         * modules/verify (License): Re-license as LGPLv2+.
58914
58915 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58916
58917         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58918         parameter to void* as per POSIX standard (MinGW uses char*).
58919
58920 2008-04-21  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58923         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58924         Define to replacements if REPLACE_ISWCNTRL is 1.
58925         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58926         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58927         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58928         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58929         what it fixes.
58930         * doc/posix-functions/iswalpha.texi: Likewise.
58931         * doc/posix-functions/iswblank.texi: Likewise.
58932         * doc/posix-functions/iswcntrl.texi: Likewise.
58933         * doc/posix-functions/iswdigit.texi: Likewise.
58934         * doc/posix-functions/iswgraph.texi: Likewise.
58935         * doc/posix-functions/iswlower.texi: Likewise.
58936         * doc/posix-functions/iswprint.texi: Likewise.
58937         * doc/posix-functions/iswpunct.texi: Likewise.
58938         * doc/posix-functions/iswspace.texi: Likewise.
58939         * doc/posix-functions/iswupper.texi: Likewise.
58940         * doc/posix-functions/iswxdigit.texi: Likewise.
58941         Reported by Alain Guibert.
58942
58943 2008-04-21  Bruno Haible  <bruno@clisp.org>
58944
58945         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58946         Patch by Alain Guibert.
58947
58948 2008-04-21  Bruno Haible  <bruno@clisp.org>
58949
58950         Fix test failures on mingw.
58951         * tests/test-xstrtol.c (print_no_progname): New function.
58952         (main): Install it in error_print_progname hook.
58953         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58954         * tests/test-xstrtoimax.sh: Likewise.
58955         * tests/test-xstrtoumax.sh: Likewise.
58956
58957 2008-04-21  Bruno Haible  <bruno@clisp.org>
58958
58959         Fix test failure on mingw.
58960         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58961
58962 2008-04-21  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58965         Actually assign a value.
58966
58967 2008-04-20  Bruno Haible  <bruno@clisp.org>
58968
58969         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58970         take 2.
58971         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58972         'canonicalize-lgpl' module is also used.
58973         * lib/canonicalize-lgpl.c: Undo last change.
58974         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58975
58976 2008-04-20  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58979         config.h. Provide _mkdir based fallback for mingw.
58980         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58981         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58982         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58983         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58984         rather than defining mkdir in config.h.
58985         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58986         (gl_SYS_STAT_H_DEFAULTS): New macro.
58987         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58988         HAVE_IO_H any more.
58989         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58990         HAVE_DECL_MKDIR and HAVE_IO_H.
58991
58992 2008-04-20  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/isapipe.c: Port to native Windows platforms.
58995
58996 2008-04-20  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58999
59000 2008-04-21  Eric Blake  <ebb9@byu.net>
59001
59002         Work around preprocessors that don't handle UINTMAX_MAX.
59003         * lib/memchr2.c (memchr2): Avoid embedded #if.
59004         Reported by Alain Guibert, fix suggested by Bruno Haible.
59005
59006 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59007
59008         * doc/posix-functions/strftime.texi (strftime): Explain better
59009         Windows incompatibility.  Suggested by Micah Cowan
59010         <micah@cowan.name>.
59011
59012 2008-04-20  Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59015         unistr/u8-mblen.
59016
59017 2008-04-20  Bruno Haible  <bruno@clisp.org>
59018
59019         Fix test failure on platforms with non-GNU iconv.
59020         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59021         (U_TO_U8): Use it, rather than u16_to_u8.
59022         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59023         units at the end of the input string.
59024         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59025
59026 2008-04-20  Bruno Haible  <bruno@clisp.org>
59027
59028         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59029         when the resulting length is 0.
59030         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59031
59032 2008-04-20  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59035         works.
59036         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59037
59038 2008-04-20  Bruno Haible  <bruno@clisp.org>
59039
59040         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59041         * modules/tsearch-tests (configure.ac): Test for initstate function.
59042
59043 2008-04-20  Bruno Haible  <bruno@clisp.org>
59044
59045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59046         for nlink_t if missing.
59047         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59048
59049 2008-04-19  Bruno Haible  <bruno@clisp.org>
59050
59051         Work around snprintf bug on Linux libc5.
59052         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59054         gl_SNPRINTF_SIZE1.
59055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59056         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59057         that test failed.
59058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59059         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59060         * modules/snprintf (Files): Add m4/printf.m4.
59061         * modules/vsnprintf (Files): Likewise.
59062         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59063         * doc/posix-functions/vsnprintf.texi: Likewise.
59064
59065 2008-04-19  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59068         from 0.0058 to less than 10^-7.
59069
59070 2008-04-19  Bruno Haible  <bruno@clisp.org>
59071
59072         Fix rounding when a precision is given.
59073         * lib/vasnprintf.c (is_borderline): New function.
59074         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59075         9...9x.
59076         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59077         %e, %g.
59078         * tests/test-vasprintf-posix.c (test_function): Likewise.
59079         * tests/test-snprintf-posix.h (test_function): Likewise.
59080         * tests/test-sprintf-posix.h (test_function): Likewise.
59081         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59082         * tests/test-printf-posix.h (test_function): Likewise.
59083         * tests/test-printf-posix.output: Update.
59084         Reported by John Darrington <john@darrington.wattle.id.au> via
59085         Ben Pfaff <blp@cs.stanford.edu>.
59086
59087 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59088
59089         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59090         Suggested by Bruno Haible <bruno@clisp.org>.
59091
59092 2008-04-17  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59095         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59096         implementation.
59097         Patch by Bruce Merry <bmerry@gmail.com>.
59098
59099 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59100
59101         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59102         doesn't work under Windows.
59103
59104 2008-04-16  Bruno Haible  <bruno@clisp.org>
59105
59106         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59107         New macros.
59108         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59109         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59110         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59111         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59112         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59113         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59114         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59115         macros.
59116         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59117         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59118         Northern Sotho, Uighur.
59119
59120 2008-04-16  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59123         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59124         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59125         Reported by Daniel Bergström <daniel@octocode.com>.
59126
59127 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59128             Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59131         function.
59132         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59133         New functions, mostly extracted from gl_locale_name_default.
59134         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59135
59136 2008-04-16  Eric Blake  <ebb9@byu.net>
59137
59138         Adjust strtod detection to catch glibc 2.7 bug.
59139         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59140         Reported by John Gatewood Ham.
59141
59142 2008-04-16  Bruno Haible  <bruno@clisp.org>
59143
59144         Add tentative support for Linux libc5.
59145         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59146         * lib/fpurge.c (fpurge): Likewise.
59147         * lib/freadable.c (freadable): Likewise.
59148         * lib/freadahead.c (freadahead): Likewise.
59149         * lib/freading.c (freading): Likewise.
59150         * lib/freadptr.c (freadptr): Likewise.
59151         * lib/freadseek.c (freadptrinc): Likewise.
59152         * lib/fseeko.c (rpl_fseeko): Likewise.
59153         * lib/fseterr.c (fseterr): Likewise.
59154         * lib/fwritable.c (fwritable): Likewise.
59155         * lib/fwriting.c (fwriting): Likewise.
59156         Reported by Alain Guibert <alguibert+bts@free.fr>.
59157
59158 2008-04-15  Bruno Haible  <bruno@clisp.org>
59159
59160         * modules/mathl (configure.ac): Define module indicator.
59161
59162 2008-04-15  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/logl.c (logl): Remove unused variables.
59165
59166 2008-04-15  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59169         fails.
59170
59171 2008-04-15  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/trim.c (trim2): Fix argument of isspace() macro.
59174
59175 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59176
59177         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59178         to 0.
59179         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59180
59181 2008-04-14  Bruno Haible  <bruno@clisp.org>
59182
59183         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59184         AC_LANG_PROGRAM argument.
59185         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59186         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59188         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59189         * m4/math_h.m4 (gl_MATH_H): Likewise.
59190         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59192         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59193         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59194         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59195         * m4/regex.m4 (gl_REGEX): Likewise.
59196         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59197         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59199         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59200         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59201         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59203         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59204
59205 2008-04-14  Jim Meyering  <meyering@redhat.com>
59206
59207         test-strtod: fix typos: s/abs/fabs/
59208         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59209
59210 2008-04-13  Bruno Haible  <bruno@clisp.org>
59211
59212         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59213         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59214         module is also used and while not building the reloc-wrapper.
59215
59216 2008-04-13  Bruno Haible  <bruno@clisp.org>
59217
59218         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59219
59220 2008-04-13  Bruno Haible  <bruno@clisp.org>
59221
59222         Fix AIX compilation failure introduced on 2008-04-02.
59223         * tests/test-frexp.c (exp): Undefine before redefining.
59224         * tests/test-frexpl.c (exp): Likewise.
59225
59226 2008-04-13  Bruno Haible  <bruno@clisp.org>
59227
59228         Work around a HP-UX stdio bug.
59229         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59230         * tests/test-ftello.c (main): Likewise.
59231         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59232         * doc/posix-functions/ftello.texi: Likewise.
59233
59234 2008-04-13  Bruno Haible  <bruno@clisp.org>
59235
59236         Make test-signbit pass on HP-UX/hppa.
59237         * tests/test-signbit.c (minus_zerol): New variable.
59238         (test_signbitl): Use it.
59239
59240 2008-04-13  Bruno Haible  <bruno@clisp.org>
59241
59242         Make truncl work on OSF/1 4.0.
59243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59244         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59245         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59247         HAVE_DECL_TRUNCL.
59248         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59249         HAVE_DECL_TRUNCL.
59250         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59251
59252 2008-04-13  Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59255
59256 2008-04-13  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59259         expression, so as to avoid HP-UX 11 cc compiler bug.
59260
59261 2008-04-13  Bruno Haible  <bruno@clisp.org>
59262
59263         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59264
59265 2008-04-13  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/git-merge-changelog.c: Remove empty declaration outside of
59268         functions.
59269
59270 2008-04-13  Bruno Haible  <bruno@clisp.org>
59271
59272         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59273
59274 2008-04-13  Bruno Haible  <bruno@clisp.org>
59275
59276         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59277         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59278         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59279         also if it exists but lacks definitions of the SHUT_* macros.
59280         * modules/sys_socket (Description): Update.
59281         Reported by Elbert Pol <e.pol@chello.nl>.
59282
59283 2008-04-13  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/localcharset.c (OS2): Don't redefine if already defined.
59286         Reported by Elbert Pol <e.pol@chello.nl>.
59287
59288 2008-04-13  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/binary-io.h [__EMX__]: Include <io.h>.
59291         Reported by Elbert Pol <e.pol@chello.nl>.
59292
59293 2008-04-12  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/fpucw.h: Enable the definitions also for x86_64.
59296         Needed for NetBSD/x86_64.
59297         Reported by Thomas Klausner <tk@giga.or.at>.
59298
59299 2008-04-12  Bruno Haible  <bruno@clisp.org>
59300
59301         * tests/test-strtod.c: Include isnand.h.
59302         (main): Use isnand instead of isnan.
59303         Reported by Jim Meyering.
59304
59305 2008-04-12  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59308         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59309
59310 2008-04-12  Jim Meyering  <meyering@redhat.com>
59311
59312         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59313
59314 2008-04-12  Bruno Haible  <bruno@clisp.org>
59315
59316         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59317         Reported by Elbert Pol <e.pol@chello.nl>.
59318
59319 2008-04-12  Eric Blake  <ebb9@byu.net>
59320
59321         Work around Solaris 10 math.h bug.
59322         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59323         (gl_MATH_H_DEFAULTS): Set up default.
59324         * modules/math (Makefile.am): Replace new indicators.
59325         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59326         * tests/test-math.c (main): Test this.
59327         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59328         * doc/posix-headers/math.texi (math.h): Mention bug.
59329         Reported by Nelson H. F. Beebe and Jim Meyering.
59330
59331 2008-04-11  Bruno Haible  <bruno@clisp.org>
59332
59333         Adapt to future versions of Apple GCC.
59334         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59335         Reported by Peter O'Gorman <peter@pogma.com>.
59336
59337 2008-04-11  Bruno Haible  <bruno@clisp.org>
59338
59339         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59340
59341 2008-04-11  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59344
59345         * modules/getaddrinfo-tests (Makefile.am): Define
59346         test_getaddrinfo_LDADD.
59347
59348 2008-04-11  Bruno Haible  <bruno@clisp.org>
59349
59350         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59351         (init): Fix syntax error.
59352         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59353         is declared.
59354
59355 2008-04-11  Bruno Haible  <bruno@clisp.org>
59356
59357         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59358         * modules/glob (Depends-on): Add stdbool.
59359
59360 2008-04-11  Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/trim.c: Include <string.h>.
59363
59364 2008-04-11  Eric Blake  <ebb9@byu.net>
59365
59366         Avoid compile failure on OS/2.
59367         * lib/regex_internal.h (internal_function): Disable optimization
59368         on OS/2 (__EMX__), where it caused compiler error.
59369         Reported by Elbert Pol.
59370
59371 2008-04-11  Bruno Haible  <bruno@clisp.org>
59372
59373         Flush the standard error stream before aborting. Needed on mingw.
59374         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59375         * tests/test-array_list.c (ASSERT): Likewise.
59376         * tests/test-array_oset.c (ASSERT): Likewise.
59377         * tests/test-avltree_list.c (ASSERT): Likewise.
59378         * tests/test-avltree_oset.c (ASSERT): Likewise.
59379         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59380         * tests/test-binary-io.c (ASSERT): Likewise.
59381         * tests/test-byteswap.c (ASSERT): Likewise.
59382         * tests/test-c-ctype.c (ASSERT): Likewise.
59383         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59384         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59385         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59386         * tests/test-c-strstr.c (ASSERT): Likewise.
59387         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59388         * tests/test-canonicalize.c (ASSERT): Likewise.
59389         * tests/test-carray_list.c (ASSERT): Likewise.
59390         * tests/test-ceilf1.c (ASSERT): Likewise.
59391         * tests/test-ceilf2.c (ASSERT): Likewise.
59392         * tests/test-ceill.c (ASSERT): Likewise.
59393         * tests/test-count-one-bits.c (ASSERT): Likewise.
59394         * tests/test-fbufmode.c (ASSERT): Likewise.
59395         * tests/test-fflush2.c (ASSERT): Likewise.
59396         * tests/test-floorf1.c (ASSERT): Likewise.
59397         * tests/test-floorf2.c (ASSERT): Likewise.
59398         * tests/test-floorl.c (ASSERT): Likewise.
59399         * tests/test-fopen.c (ASSERT): Likewise.
59400         * tests/test-fpending.c (ASSERT): Likewise.
59401         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59402         * tests/test-fpurge.c (ASSERT): Likewise.
59403         * tests/test-freadable.c (ASSERT): Likewise.
59404         * tests/test-freadahead.c (ASSERT): Likewise.
59405         * tests/test-freading.c (ASSERT): Likewise.
59406         * tests/test-freadptr.c (ASSERT): Likewise.
59407         * tests/test-freadptr2.c (ASSERT): Likewise.
59408         * tests/test-freadseek.c (ASSERT): Likewise.
59409         * tests/test-freopen.c (ASSERT): Likewise.
59410         * tests/test-frexp.c (ASSERT): Likewise.
59411         * tests/test-frexpl.c (ASSERT): Likewise.
59412         * tests/test-fseek.c (ASSERT): Likewise.
59413         * tests/test-fseeko.c (ASSERT): Likewise.
59414         * tests/test-fstrcmp.c (ASSERT): Likewise.
59415         * tests/test-ftell.c (ASSERT): Likewise.
59416         * tests/test-ftello.c (ASSERT): Likewise.
59417         * tests/test-func.c (ASSERT): Likewise.
59418         * tests/test-fwritable.c (ASSERT): Likewise.
59419         * tests/test-fwriting.c (ASSERT): Likewise.
59420         * tests/test-getdelim.c (ASSERT): Likewise.
59421         * tests/test-getline.c (ASSERT): Likewise.
59422         * tests/test-i-ring.c (ASSERT): Likewise.
59423         * tests/test-iconv-utf.c (ASSERT): Likewise.
59424         * tests/test-iconv.c (ASSERT): Likewise.
59425         * tests/test-isfinite.c (ASSERT): Likewise.
59426         * tests/test-isnand.c (ASSERT): Likewise.
59427         * tests/test-isnanf.c (ASSERT): Likewise.
59428         * tests/test-isnanl.h (ASSERT): Likewise.
59429         * tests/test-ldexpl.c (ASSERT): Likewise.
59430         * tests/test-linked_list.c (ASSERT): Likewise.
59431         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59432         * tests/test-localename.c (ASSERT): Likewise.
59433         * tests/test-lseek.c (ASSERT): Likewise.
59434         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59435         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59436         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59437         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59438         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59439         * tests/test-mbschr.c (ASSERT): Likewise.
59440         * tests/test-mbscspn.c (ASSERT): Likewise.
59441         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59442         * tests/test-mbspbrk.c (ASSERT): Likewise.
59443         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59444         * tests/test-mbsrchr.c (ASSERT): Likewise.
59445         * tests/test-mbsspn.c (ASSERT): Likewise.
59446         * tests/test-mbsstr1.c (ASSERT): Likewise.
59447         * tests/test-mbsstr2.c (ASSERT): Likewise.
59448         * tests/test-mbsstr3.c (ASSERT): Likewise.
59449         * tests/test-memchr2.c (ASSERT): Likewise.
59450         * tests/test-memmem.c (ASSERT): Likewise.
59451         * tests/test-open.c (ASSERT): Likewise.
59452         * tests/test-printf-frexp.c (ASSERT): Likewise.
59453         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59454         * tests/test-printf-posix.c (ASSERT): Likewise.
59455         * tests/test-quotearg.c (ASSERT): Likewise.
59456         * tests/test-rbtree_list.c (ASSERT): Likewise.
59457         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59458         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59459         * tests/test-round1.c (ASSERT): Likewise.
59460         * tests/test-roundf1.c (ASSERT): Likewise.
59461         * tests/test-roundl.c (ASSERT): Likewise.
59462         * tests/test-signbit.c (ASSERT): Likewise.
59463         * tests/test-sleep.c (ASSERT): Likewise.
59464         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59465         * tests/test-snprintf.c (ASSERT): Likewise.
59466         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59467         * tests/test-stat-time.c (ASSERT): Likewise.
59468         * tests/test-strcasestr.c (ASSERT): Likewise.
59469         * tests/test-strerror.c (ASSERT): Likewise.
59470         * tests/test-striconv.c (ASSERT): Likewise.
59471         * tests/test-striconveh.c (ASSERT): Likewise.
59472         * tests/test-striconveha.c (ASSERT): Likewise.
59473         * tests/test-strsignal.c (ASSERT): Likewise.
59474         * tests/test-strstr.c (ASSERT): Likewise.
59475         * tests/test-strtod.c (ASSERT): Likewise.
59476         * tests/test-trunc1.c (ASSERT): Likewise.
59477         * tests/test-trunc2.c (ASSERT): Likewise.
59478         * tests/test-truncf1.c (ASSERT): Likewise.
59479         * tests/test-truncf2.c (ASSERT): Likewise.
59480         * tests/test-truncl.c (ASSERT): Likewise.
59481         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59482         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59483         * tests/test-vasnprintf.c (ASSERT): Likewise.
59484         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59485         * tests/test-vasprintf.c (ASSERT): Likewise.
59486         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59487         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59488         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59489         * tests/test-vsnprintf.c (ASSERT): Likewise.
59490         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59491         * tests/test-wcwidth.c (ASSERT): Likewise.
59492         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59493         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59494         * tests/test-xvasprintf.c (ASSERT): Likewise.
59495         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59496         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59497         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59498         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59499         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59500         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59501         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59502         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59503         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59504         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59505         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59506         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59507         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59508         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59509         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59510         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59511         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59512         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59513         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59514         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59515         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59516         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59517         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59518         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59519         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59520         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59521         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59522         * tests/unictype/test-combining.c (ASSERT): Likewise.
59523         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59524         * tests/unictype/test-digit.c (ASSERT): Likewise.
59525         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59526         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59527         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59528         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59529         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59530         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59531         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59532         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59533         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59534         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59535         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59536         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59537         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59538         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59539         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59540         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59541         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59542         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59543         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59544         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59545         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59546         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59547         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59548         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59549         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59550         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59551         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59552         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59553         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59554         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59555         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59556         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59557         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59558         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59559         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59560         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59561         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59562         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59563         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59564         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59565         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59566         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59567         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59568         Reported by Eric Blake.
59569
59570 2008-04-11  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/wchar.in.h: Tweak comment.
59573
59574 2008-04-11  Bruno Haible  <bruno@clisp.org>
59575
59576         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59577         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59578         gl_COMMON.
59579         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59580
59581 2008-04-11  Bruno Haible  <bruno@clisp.org>
59582
59583         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59584
59585 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59586
59587         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59588         of attempting to use non-existing /dev/*random.  Based on patch
59589         from Adam Strzelecki <ono@java.pl> in
59590         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59591
59592 2008-04-08  Bruno Haible  <bruno@clisp.org>
59593
59594         Add tentative support for emx+gcc.
59595         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59596         * lib/fpurge.c (fpurge): Likewise.
59597         * lib/freadable.c (freadable): Likewise.
59598         * lib/freadahead.c (freadahead): Likewise.
59599         * lib/freading.c (freading): Likewise.
59600         * lib/freadptr.c (freadptr): Likewise.
59601         * lib/freadseek.c (freadptrinc): Likewise.
59602         * lib/fseeko.c (rpl_fseeko): Likewise.
59603         * lib/fseterr.c (fseterr): Likewise.
59604         * lib/fwritable.c (fwritable): Likewise.
59605         * lib/fwriting.c (fwriting): Likewise.
59606         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59607
59608 2008-04-09  Eric Blake  <ebb9@byu.net>
59609
59610         Avoid some autoconf warnings.
59611         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59612         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59613         * m4/afs.m4 (gl_AFS): Likewise.
59614         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59615         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59617         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59618         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59619         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59620         (AC_CHECK_DECLS_ONCE): Likewise.
59621         Rename file...
59622         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59623         gnulib-tool requires autoconf 2.59 or better.
59624         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59625
59626 2008-04-08  Eric Blake  <ebb9@byu.net>
59627
59628         Use 'git describe --match' if present (added in git 1.5.5).
59629         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59630         if possible.
59631
59632 2008-04-08  Bruno Haible  <bruno@clisp.org>
59633
59634         Add tentative support for OpenServer.
59635         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59636         _ptr, _cnt.
59637         * lib/fpurge.c (fpurge): Likewise.
59638         * lib/freadable.c (freadable): Likewise.
59639         * lib/freadahead.c (freadahead): Likewise.
59640         * lib/freading.c (freading): Likewise.
59641         * lib/freadptr.c (freadptr): Likewise.
59642         * lib/freadseek.c (freadptrinc): Likewise.
59643         * lib/fseeko.c (rpl_fseeko): Likewise.
59644         * lib/fseterr.c (fseterr): Likewise.
59645         * lib/fwritable.c (fwritable): Likewise.
59646         * lib/fwriting.c (fwriting): Likewise.
59647         Reported by Roger Cornelius <rac@tenzing.org> and
59648         Brian K. White <brian@aljex.com>.
59649
59650 2008-04-06  Jim Meyering  <meyering@redhat.com>
59651
59652         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59653
59654 2008-04-06  Bruno Haible  <bruno@clisp.org>
59655
59656         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59657         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59658         * tests/test-printf-posix.sh: Likewise.
59659         * tests/test-vfprintf-posix.sh: Likewise.
59660         * tests/test-vprintf-posix.sh: Likewise.
59661         * tests/test-xprintf-posix.sh: Likewise.
59662
59663 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59664
59665         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59666         hide error from 'ls', needed on OS/2.
59667         Report by Elbert Pol <elbert.pol@gmail.com>.
59668
59669 2008-04-04  Eric Blake  <ebb9@byu.net>
59670
59671         Make test-fseeko.c failures meaningful.
59672         * tests/test-fseeko.c: Print line number on failure.
59673         * tests/test-fseek.c: Likewise.
59674         Reported by Nelson H. F. Beebe.
59675
59676         Improve strtod bug detection check.
59677         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59678         required for Solaris 10.
59679         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59680
59681 2008-04-04  Bruno Haible  <bruno@clisp.org>
59682
59683         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59684         by m4/setenv.m4.
59685
59686 2008-04-03  Eric Blake  <ebb9@byu.net>
59687
59688         Ensure sane .version contents.
59689         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59690         version string.
59691         * build-aux/git-version-gen: Improve documentation.
59692
59693         Make GNU make output nicer.
59694         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59695         MAKECMDGOALS to enforce message for all command line targets.  Set
59696         srcdir for use in maint.mk.
59697
59698         Another maintainer tweak.
59699         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59700         a target that regenerates version.
59701
59702 2008-04-03  Jim Meyering  <meyering@redhat.com>
59703
59704         vc-list-files: don't cause coreutils "make po-check" failure
59705         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59706
59707 2008-04-03  Eric Blake  <ebb9@byu.net>
59708
59709         Allow VPATH usage of vc-list-files.
59710         * build-aux/vc-list-files (scriptversion): Add timestamp.
59711         (options): Add --help, --version, -C.
59712         (CVS): Support installed cvsu.
59713
59714 2008-04-02  Bruno Haible  <bruno@clisp.org>
59715
59716         Avoid some "statement with no effect" warnings from gcc.
59717         * tests/test-wctype.c (main): Explicitly ignore unused values.
59718         Reported by Jim Meyering.
59719
59720 2008-04-02  Jim Meyering  <meyering@redhat.com>
59721
59722         Avoid some warnings from "gcc -Wshadow".
59723         * tests/test-frexp.c (exp): Define to a different identifier.
59724         * tests/test-frexpl.c (exp): Likewise.
59725
59726 2008-04-03  Jim Meyering  <meyering@redhat.com>
59727
59728         bootstrap: remove dangling *.[ch] symlinks from lib
59729         * build-aux/bootstrap [dangling symlink removal]: Move find's
59730         -depth option to precede all others, to avoid a warning.
59731         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59732
59733 2008-04-02  Bruno Haible  <bruno@clisp.org>
59734
59735         Avoid some warnings from "gcc -Wshadow".
59736         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59737         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59738         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59739         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59740         Reported by Jim Meyering.
59741
59742 2008-04-01  Bruno Haible  <bruno@clisp.org>
59743
59744         Fix test to work on IRIX 6.5 with cc.
59745         * tests/test-math.c (numeric_equal): New function.
59746         (main): Use it.
59747
59748 2008-04-01  Bruno Haible  <bruno@clisp.org>
59749
59750         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59751
59752 2008-04-01  Bruno Haible  <bruno@clisp.org>
59753
59754         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59755         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59756         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59757         (Depends-on): Remove math.
59758
59759         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59760         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59761         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59762         (Depends-on): Remove math.
59763
59764         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59765         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59766         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59767         (Depends-on): Remove math.
59768         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59769         (Depends-on): Remove math.
59770
59771         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59772         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59773         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59774         (Depends-on): Remove math.
59775         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59776         (Depends-on): Remove math.
59777
59778         * tests/test-round1.c: Include nan.h.
59779         (main): Use NaNd instead of NAN.
59780         * modules/round-tests (Files): Add tests/nan.h.
59781
59782         * tests/test-trunc1.c: Include nan.h.
59783         (main): Use NaNd instead of NAN.
59784         * modules/trunc-tests (Files): Add tests/nan.h.
59785
59786         * tests/test-roundf1.c: Include nan.h.
59787         (main): Use NaNf instead of NAN.
59788         * modules/roundf-tests (Files): Add tests/nan.h.
59789
59790         * tests/test-truncf1.c: Include nan.h.
59791         (main): Use NaNf instead of NAN.
59792         * modules/truncf-tests (Files): Add tests/nan.h.
59793
59794         * tests/test-ceilf1.c: Include nan.h.
59795         (main): Use NaNf instead of NAN.
59796         * modules/ceilf-tests (Files): Add tests/nan.h.
59797
59798         * tests/test-floorf1.c: Include nan.h.
59799         (main): Use NaNf instead of NAN.
59800         * modules/floorf-tests (Files): Add tests/nan.h.
59801
59802         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59803         (main): Use NaNf instead of NAN.
59804         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59805
59806         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59807         (main): Use NaNd instead of NAN.
59808         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59809
59810         * tests/test-frexp.c: Include nan.h.
59811         (main): Use NaNd instead of NAN.
59812         * modules/frexp-tests (Files): Add tests/nan.h.
59813
59814         * lib/isnan.c: Don't include <math.h>.
59815         (FUNC): Don't use NAN macro.
59816         * modules/isnand-nolibm (Depends-on): Remove math.
59817         * modules/isnanf-nolibm (Depends-on): Remove math.
59818         * modules/isnanl (Depends-on): Remove math.
59819         * modules/isnanl-nolibm (Depends-on): Remove math.
59820
59821         * tests/nan.h: New file.
59822
59823 2008-04-01  Eric Blake  <ebb9@byu.net>
59824
59825         Fix typos.
59826         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59827         values to be the right type.
59828
59829         For now, cater to gnulib strtod inaccuracies.
59830         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59831         fractional results.  While not as nice from a QoI perspective, it
59832         is a quicker patch than correctly implementing decimal to binary
59833         rounding.
59834
59835 2008-03-31  Eric Blake  <ebb9@byu.net>
59836
59837         Guarantee a definition of NAN.
59838         * lib/math.in.h (NAN): Define if missing.
59839         * tests/test-math.c (main): Test it.
59840         * doc/posix-headers/math.texi (math.h): Document this.
59841         * lib/isnan.c (rpl_isnand): Use it.
59842         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59843         * tests/test-floorf1.c (NaN): Likewise.
59844         * tests/test-frexp.c (NaN): Likewise.
59845         * tests/test-isnand.c (NaN): Likewise.
59846         * tests/test-isnanf.c (NaN): Likewise.
59847         * tests/test-round1.c (NaN): Likewise.
59848         * tests/test-roundf1.c (NaN): Likewise.
59849         * tests/test-snprintf-posix.h (NaN): Likewise.
59850         * tests/test-sprintf-posix.h (NaN): Likewise.
59851         * tests/test-trunc1.c (NaN): Likewise.
59852         * tests/test-truncf1.c (NaN): Likewise.
59853         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59854         * tests/test-vasprintf-posix.c (NaN): Likewise.
59855         * modules/isnand-nolibm (Depends-on): Add math.
59856         * modules/isnanf-nolibm (Depends-on): Likewise.
59857         * modules/isnanl (Depends-on): Likewise.
59858         * modules/isnanl-nolibm (Depends-on): Likewise.
59859         * modules/snprintf-posix-tests (Depends-on): Likewise.
59860         * modules/sprintf-posix-tests (Depends-on): Likewise.
59861         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59862         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59863         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59864         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59865
59866 2008-03-31  Bruno Haible  <bruno@clisp.org>
59867
59868         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59869         * doc/posix-functions/strtod.texi: Likewise.
59870
59871 2008-03-31  Bruno Haible  <bruno@clisp.org>
59872
59873         * tests/test-strtod.c (main): Don't use C99 syntax.
59874
59875 2008-03-31  Bruno Haible  <bruno@clisp.org>
59876
59877         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59878         Reported by Eric Blake.
59879
59880 2008-03-31  Jim Meyering  <meyering@redhat.com>
59881
59882         Don't compare actual signbit return values.
59883         * tests/test-strtod.c (main): Rather, compare only their
59884         zero/non-zero nature.
59885
59886 2008-03-31  Eric Blake  <ebb9@byu.net>
59887
59888         More strtod documentation.
59889         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59890         failures as distinct bugs.
59891
59892 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59895         Problem reported by Erik Benada in
59896         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59897
59898 2008-03-30  Bruno Haible  <bruno@clisp.org>
59899
59900         * tests/test-strtod.c: Add comments about which assertion fails on which
59901         platform.
59902         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59903
59904 2008-03-30  Eric Blake  <ebb9@byu.net>
59905
59906         Test signbit behavior on zeros.
59907         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59908         (test_signbitd, test_signbitl): Likewise.
59909
59910         More strtod touchups.
59911         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59912         sign of negative underflow, for now.  Use .5, not .1.
59913         * doc/posix-functions/strtod.texi (strtod): Mention these
59914         limitations.
59915         Reported by Jim Meyering.
59916
59917 2008-03-30  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59920         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59921
59922 2008-03-30  Bruno Haible  <bruno@clisp.org>
59923
59924         Avoid failure when attempting to return empty iconv results on some
59925         platforms.
59926         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59927         allocation, don't report ENOMEM when the resulting string is empty.
59928
59929 2008-03-30  Bruno Haible  <bruno@clisp.org>
59930
59931         Fix buffer overrun.
59932         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59933         Don't consider the width for tmp_length. Check count against tmp_length
59934         before doing the padding. Ensure enough allocation during padding.
59935
59936 2008-03-30  Eric Blake  <ebb9@byu.net>
59937
59938         strtod touchups.
59939         * lib/strtod.c (strtod): Avoid compiler warnings.
59940         Reported by Jim Meyering.
59941
59942 2008-03-30  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59945         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59946         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59947         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59948         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59949         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59950         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59951         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59952
59953         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59954         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59955         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59956         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59957         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59958         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59959         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59960         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59961
59962         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59963         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59964         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59965         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59966         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59967         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59968         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59969         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59970
59971         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59972         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59973
59974         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59975         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59976
59977         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59978         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59979
59980         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59982         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59983
59984         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59986         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59987
59988         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59990         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59991
59992         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59994         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59995
59996         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59997         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59999         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60000         (Depends-on): Add EOVERFLOW.
60001         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60002         (Depends-on): Add EOVERFLOW.
60003         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60004         (Depends-on): Add EOVERFLOW.
60005         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60006         (Depends-on): Add EOVERFLOW.
60007         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60008         (Depends-on): Add EOVERFLOW.
60009         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60010         (Depends-on): Add EOVERFLOW.
60011         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60012         (Depends-on): Add EOVERFLOW.
60013         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60014         (Depends-on): Add EOVERFLOW.
60015
60016         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60018         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60019
60020         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60022         * modules/snprintf (Depends-on): Add EOVERFLOW.
60023
60024         * lib/poll.c (EOVERFLOW): Remove fallback.
60025         * modules/poll (Depends-on): Add EOVERFLOW.
60026
60027         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60028         * modules/getugroups (Depends-on): Add EOVERFLOW.
60029
60030         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60031         * modules/getdelim (Depends-on): Add EOVERFLOW.
60032
60033         * lib/ftell.c (EOVERFLOW): Remove fallback.
60034         * modules/ftell (Depends-on): Add EOVERFLOW.
60035
60036         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60038         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60039
60040         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60041
60042         * modules/EOVERFLOW-tests: New file.
60043         * tests/test-EOVERFLOW.c: New file.
60044
60045         * modules/EOVERFLOW: New file.
60046         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60047
60048 2008-03-30  Bruno Haible  <bruno@clisp.org>
60049
60050         Fix bug introduced on 2007-06-10.
60051         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60052         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60053
60054 2008-03-30  Bruno Haible  <bruno@clisp.org>
60055
60056         Improve freadseek's efficiency after ungetc.
60057         * lib/freadseek.c: Include freadahead.h.
60058         (freadptrinc): New function, extracted from freadseek.
60059         (freadseek): Use it in a loop. Use freadahead to determine the number
60060         of loop iterations.
60061         * modules/freadseek (Depends-on): Add freadahead.
60062         (configure.ac): Require AC_C_INLINE.
60063
60064 2008-03-30  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/freadseek.c (freadseek): Don't ignore the return value of
60067         freadptr.
60068
60069 2008-03-29  Eric Blake  <ebb9@byu.net>
60070
60071         Add hex float support.
60072         * modules/strtod (Depends-on): Add c-ctype.
60073         (Link): Mention POW_LIB.
60074         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60075         whitespace between 'e' and exponent.
60076         * tests/test-strtod.c (main): Enable hex float tests.
60077         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60078         now provides.
60079
60080         Document various strtod bugs, with some fixes.
60081         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60082         "-0x", "inf", "nan", and hex constants.
60083         * doc/posix-functions/atof.texi (atof): Likewise.
60084         * modules/stdlib (Makefile.am): Support strtod.
60085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60086         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60087         detect additional strtod bugs.
60088         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60089         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60090         bool where appropriate.  Parse 'inf' and 'nan'.
60091         * tests/test-strtod.c: New file.
60092         * modules/strtod (Depends-on): Add stdbool, stdlib.
60093         (configure.ac): Turn on module indicator.
60094         * modules/strtod-tests: New module.
60095
60096 2008-03-29  Eric Blake  <ebb9@byu.net>
60097
60098         Fix ftell on mingw.
60099         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60100         * modules/ftell-tests (Depends-on): Add binary-io.
60101         * modules/ftello-tests (Depends-on): Likewise.
60102         * tests/test-ftell.c (main): Enhance test to cover behavior after
60103         ungetc.  Enforce binary mode.
60104         * tests/test-ftello.c (main): Likewise.
60105
60106         Pass test-freadseek on cygwin.
60107         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60108         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60109         ungetc buffer.
60110
60111         * tests/test-fflush2.c (main): Fix typo.
60112
60113 2008-03-29  Bruno Haible  <bruno@clisp.org>
60114
60115         * tests/test-fflush2.c (main): Temporarily disable the contents of
60116         this test.
60117         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60118         Reported by Eric Blake.
60119
60120 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60121
60122         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60123         (GC_SHA224_DIGEST_SIZE): Add.
60124
60125         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60126         (gc_hash_digest_length): Likewise.
60127         (gc_hash_buffer): Likewise.
60128
60129 2008-03-25  Bruno Haible  <bruno@clisp.org>
60130
60131         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60132         detail which gettext release to use.
60133         Reported by Simon Josefsson.
60134
60135 2008-03-26  Jim Meyering  <meyering@redhat.com>
60136
60137         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60138         * modules/gnumakefile (clean-GNUmakefile): Also, use
60139         test ... && ... || : syntax rather than if-then ... fi.
60140
60141         gnumakefile: Don't double-quote-expand $(VPATH) value.
60142         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60143
60144 2008-03-24  Eric Blake  <ebb9@byu.net>
60145
60146         Alter GNUmakefile to install into top directory.
60147         * modules/maintainer-makefile: Split, and add dependency...
60148         * modules/gnumakefile: to this new module.
60149         * build-aux/GNUmakefile: Move...
60150         * top/GNUmakefile: ...here.
60151         * build-aux/maint.mk: Move...
60152         * top/maint.mk: ...here.
60153         * MODULES.html.sh (Support for maintaining...): Document new
60154         module.
60155
60156 2008-03-23  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool: New options --vc-files, --no-vc-files.
60159         (func_usage): Document them.
60160         (vc_files): New variable.
60161         (func_import): Consider vc_files.
60162         (func_create_testdir): Set vc_files to empty.
60163         Suggested by Jim Meyering and Karl Berry.
60164
60165 2008-03-23  Bruno Haible  <bruno@clisp.org>
60166
60167         Fix regex compilation error on HP-UX 11.
60168         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60169         * modules/regex (Files): Add m4/mbstate_t.m4.
60170         Reported by Ton Voon <ton.voon@altinity.com>.
60171
60172 2008-03-23  Bruno Haible  <bruno@clisp.org>
60173
60174         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60175
60176 2008-03-23  Eric Blake  <ebb9@byu.net>
60177             Bruno Haible  <bruno@clisp.org>
60178
60179         Install files from top/ in the destination directory.
60180         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60181         augmentation also for the files from top/.
60182         (func_import, func_create_testdir): Rewrite file names:
60183         top/filename -> filename.
60184
60185 2008-03-23  Bruno Haible  <bruno@clisp.org>
60186
60187         Tweak "gnulib --version" output.
60188         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60189
60190 2008-03-23  Bruno Haible  <bruno@clisp.org>
60191
60192         Tweak "gnulib --version" output.
60193         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60194         rather than contents of ChangeLog, when possible.
60195
60196 2008-03-21  Eric Blake  <ebb9@byu.net>
60197
60198         More --version tweaks.
60199         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60200         date of last ChangeLog entry.
60201
60202 2008-03-21  Jim Meyering  <meyering@redhat.com>
60203
60204         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60205
60206 2008-03-20  Eric Blake  <ebb9@byu.net>
60207
60208         VPATH fix.
60209         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60210
60211 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60212
60213         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60214         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60215
60216 2008-03-20  Eric Blake  <ebb9@byu.net>
60217
60218         Sync GNUmakefile with coreutils.
60219         * build-aux/GNUmakefile (have-Makefile): Rename...
60220         (_have-Makefile): ...to this, for namespace consideration.
60221         (GNUmakefile.cfg): Include, if present.
60222         (_autoreconf): Define a default.
60223         (_is-dist-target): New rule for rebuilds to pick up intra-release
60224         version.
60225         (maint-cfg.mk): Rename...
60226         (cfg.mk): ...to this.
60227
60228 2008-03-18  Jim Meyering  <meyering@redhat.com>
60229
60230         New script and module: mktempd
60231         * MODULES.html.sh (maint+release support): Add mktempd.
60232         * build-aux/mktempd: New file.
60233         * modules/mktempd: New file.
60234
60235 2008-03-15  Jim Meyering  <meyering@redhat.com>
60236
60237         Undo last change.
60238         * lib/sha1.c, lib/md5.c: 63 != ~63.
60239         Reported by Andreas Schwab.
60240
60241         sha1.c, md5.c: Hoist a redundant expression.
60242         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60243         "ctx->buflen" only once, before calling *_process_block.
60244         * lib/md5.c (md5_process_bytes): Likewise.
60245
60246 2008-03-14  Eric Blake  <ebb9@byu.net>
60247
60248         Bump copyright year in files generated by gnulib-tool.
60249         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60250         gnulib-tool, rather than hard-coding it.
60251
60252         Fix 'gnulib-tool --version' output to work with git.
60253         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60254         (startup): ...here.
60255         (func_version): Use it to invoke git-version-gen, rather than
60256         relying on CVS keyword expansion.  Modernize wording.
60257         (cvsdatestamp, last_checkin_date, version): Kill unused
60258         variables.
60259
60260 2008-03-12  Jim Meyering  <meyering@redhat.com>
60261
60262         Recognize optional cast of the argument to free.
60263         * build-aux/useless-if-before-free: Update regexps.
60264
60265         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60266
60267 2008-03-11  Bruno Haible  <bruno@clisp.org>
60268
60269         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60270         by a single package.
60271         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60272         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60273         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60274         Reported by Sam Steingold <sds@gnu.org>.
60275
60276 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60277
60278         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60279         repositories.
60280
60281 2008-03-11  Bruno Haible  <bruno@clisp.org>
60282
60283         Avoid conflicts between local macro definitions.
60284         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60285         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60286
60287 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60288             Bruno Haible  <bruno@clisp.org>
60289
60290         Make va_copy work with some version of xlc on AIX 5.1.
60291         * lib/stdarg.in.h: New file.
60292         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60293         On AIX, use a <stdarg.h> file substitute.
60294         * modules/stdarg (Files): Add lib/stdarg.in.h.
60295         (Depends-on): Add include_next.
60296         (Makefile.am): Build a stdarg.h substitute if requested.
60297         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60298
60299 2008-03-10  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60303         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60304
60305 2008-03-10  Bruno Haible  <bruno@clisp.org>
60306
60307         * modules/stdlib (Depends-on): Add include_next, remove
60308         absolute-header.
60309
60310 2008-03-09  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/freadahead.h (freadahead): Document more precisely.
60313         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60314         the sum of both buffer sizes.
60315         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60316         * NEWS: Document the change.
60317
60318 2008-03-09  Bruno Haible  <bruno@clisp.org>
60319
60320         Extend freadptr to return also the buffer size.
60321         * lib/freadptr.h (freadptr): Add sizep argument.
60322         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60323         (freadptr): Add sizep argument. Determine buffer size like freadahead
60324         does.
60325         * tests/test-freadptr.c: Don't include freadahead.h.
60326         (main): Adapt for new calling convention of freadptr.
60327         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60328         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60329         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60330         tests/test-freadptr2.sh.
60331         (Depends): Remove freadahead.
60332         (TESTS): Add test-freadptr2.sh.
60333         (check_PROGRAMS): Add test-freadptr2.
60334
60335 2008-03-09  Bruno Haible  <bruno@clisp.org>
60336
60337         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60338         Report and solution by Simon Josefsson.
60339
60340 2008-03-06  Bruno Haible  <bruno@clisp.org>
60341
60342         Make fflush after ungetc work on BSD platforms.
60343         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60344         * tests/test-fflush2.c: New file.
60345         * tests/test-fflush2.sh: New file.
60346         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60347         tests/test-fflush2.c.
60348         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60349         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60350
60351 2008-03-06  Eric Blake  <ebb9@byu.net>
60352
60353         Likewise for ftello.
60354         * modules/ftello (Dependencies): Add extensions.
60355         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60356
60357 2008-03-06  Bruno Haible  <bruno@clisp.org>
60358
60359         * modules/fseeko (Dependencies): Add extensions.
60360         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60361         Needed on glibc systems.
60362
60363 2008-03-06  Bruno Haible  <bruno@clisp.org>
60364
60365         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60366         email address.
60367         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60368
60369 2008-03-06  Bruno Haible  <bruno@clisp.org>
60370
60371         * users.txt: Add libgnupdf.
60372
60373 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60374
60375         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60376         (Header File Substitutes, Function Substitutes,
60377         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60378         (Build robot for gnulib): Fix typo.
60379
60380 2008-03-06  Bruno Haible  <bruno@clisp.org>
60381
60382         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60383         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60384
60385 2008-03-06  Bruno Haible  <bruno@clisp.org>
60386
60387         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60388         * doc/gnulib.texi: Include it.
60389
60390 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60391
60392         * modules/func (License): Change license to unlimited; there was
60393         no LGPL parts in the module anyway.
60394
60395 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60396
60397         * modules/__func__: Renamed to modules/func.
60398         * modules/__func__-tests: Renamed to modules/func-tests.
60399         * tests/test-__func__.c: Renamed to tests/test-func.c.
60400         * m4/__func__.m4: Renamed to m4/func.m4.
60401         * doc/gnulib.texi (__func__): Section renamed to func.
60402         Suggested by Eric Blake <ebb9@byu.net>.
60403
60404 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60405
60406         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60407         about __func__.  Make example self-contained.  Suggested by Eric
60408         Blake <ebb9@byu.net>.
60409
60410         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60411         Suggested by Eric Blake <ebb9@byu.net>.
60412
60413 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60414
60415         * modules/__func__: New file.
60416         * modules/__func__-tests: New file.
60417         * tests/test-__func__.c: New file.
60418         * m4/__func__.m4: New file.
60419         * doc/gnulib.texi (__func__): Document __func__ module.
60420
60421 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60422
60423         * modules/byteswap (License): Re-license as LGPLv2+.
60424
60425 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60426
60427         * doc/Makefile: Add pdf target.
60428
60429 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60430
60431         * modules/inline (License): Use 'unlimited', since there are only
60432         *.m4 files in this module.
60433
60434 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60435             Bruno Haible  <bruno@clisp.org>
60436
60437         Add support for HP C 7.1 on OpenVMS 8.3.
60438         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60439
60440 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60441
60442         Update VMS specifics.
60443         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60444
60445 2008-03-02  Jim Meyering  <meyering@redhat.com>
60446
60447         Remove the last dependency on the "free" module.
60448         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60449         Reported by Bob Proulx.
60450
60451         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60452
60453         Remove useless "if" tests before free.  Deprecate "free" module.
60454         * doc/posix-functions/free.texi: Mention that this
60455         module is no longer useful.
60456         * modules/free (Notice): Say this module is obsolete.
60457         * modules/readutmp (Depends-on): Remove free.
60458         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60459         * lib/putenv.c (putenv): Likewise.
60460         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60461         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60462         * tests/test-c-strcasestr.c (main): Likewise.
60463         * tests/test-c-strstr.c (main): Likewise.
60464         * tests/test-mbscasestr1.c (main): Likewise.
60465         * tests/test-mbscasestr2.c (main): Likewise.
60466         * tests/test-mbsstr1.c (main): Likewise.
60467         * tests/test-mbsstr2.c (main): Likewise.
60468         * tests/test-memmem.c (main): Likewise.
60469         * tests/test-strcasestr.c (main): Likewise.
60470         * tests/test-striconv.c (main): Likewise.
60471         * tests/test-striconveh.c (main): Likewise.
60472         * tests/test-striconveha.c (main): Likewise.
60473         * tests/test-strstr.c (main): Likewise.
60474
60475         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60476
60477         bootstrap: sync from coreutils again
60478         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60479
60480 2008-03-01  Jim Meyering  <meyering@redhat.com>
60481
60482         bootstrap: sync from coreutils
60483         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60484         also when the target doesn't exist.
60485
60486 2008-03-01  Eric Blake  <ebb9@byu.net>
60487
60488         Fix bugs in last patch.
60489         * lib/memchr2.c (memchr2): Fix typo.
60490         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60491         extension.
60492         Reported by Bruce Korb.
60493
60494         New module 'memchr2'.
60495         * modules/memchr2: New file.
60496         * modules/memchr2-tests: Likewise.
60497         * lib/memchr2.h: Likewise.
60498         * lib/memchr2.c: Likewise, based on memchr.c.
60499         * tests/test-memchr2.c: New test.
60500         * MODULES.html.sh (String handling): Add memchr2.
60501
60502 2008-02-29  Bruno Haible  <bruno@clisp.org>
60503
60504         * modules/freadseek-tests: New file.
60505         * tests/test-freadseek.sh: New file.
60506         * tests/test-freadseek.c: New file.
60507
60508         New module 'freadseek'.
60509         * modules/freadseek: New file.
60510         * lib/freadseek.h: New file.
60511         * lib/freadseek.c: New file.
60512         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60513
60514 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60515
60516         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60517         wydawca.
60518
60519         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60520         program_invocation_name and program_invocation_short_name are
60521         present.
60522
60523 2008-02-28  Bruno Haible  <bruno@clisp.org>
60524
60525         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60526         * tests/test-freadptr.sh: Also test non-seekable stdin.
60527
60528 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60529
60530         * build-aux/bootstrap (source_base, m4_base)
60531         (doc_base, tests_base): New variables.
60532         (gnulib_tool_options): Do not hardcode base directories, use
60533         the above variables instead.
60534
60535 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60536
60537         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60538
60539 2008-02-28  Bruno Haible  <bruno@clisp.org>
60540
60541         * modules/freadptr-tests: New file.
60542         * tests/test-freadptr.sh: New file.
60543         * tests/test-freadptr.c: New file.
60544
60545         New module 'freadptr'.
60546         * modules/freadptr: New file.
60547         * lib/freadptr.h: New file.
60548         * lib/freadptr.c: New file.
60549         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60550
60551 2008-02-26  Karl Berry  <karl@freefriends.org>
60552
60553         Sync from Libtool:
60554         * libltdl/argz.c (argz_add, argz_count): New functions.
60555         * libltdl/argz.in.h: Declare them.
60556         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60557
60558 2008-02-22  Bruno Haible  <bruno@clisp.org>
60559
60560         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60561         is a pointer type.  Needed for HP-UX 10.
60562         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60563         * doc/posix-functions/gmtime_r.texi: Likewise.
60564         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60565
60566 2008-02-24  Bruno Haible  <bruno@clisp.org>
60567
60568         * modules/environ-tests: New file.
60569         * tests/test-environ.c: New file.
60570
60571         New module 'environ'.
60572         * modules/environ: New file.
60573         * lib/unistd.in.h (environ): New declaration.
60574         * m4/environ.m4: New file.
60575         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60576         after use.
60577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60578         HAVE_DECL_ENVIRON.
60579         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60580         HAVE_DECL_ENVIRON.
60581         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60582         wrong claim that 'environ' is missing on some systems.
60583         * modules/execute (Depends-on): Add environ.
60584         * lib/execute.c (environ): Remove fallback declaration.
60585         * modules/pipe (Depends-on): Add environ.
60586         * lib/pipe.c (environ): Remove fallback declaration.
60587         * modules/setenv (Depends-on): Add environ.
60588         * lib/setenv.c (environ): Remove fallback declaration.
60589         * modules/unsetenv (Depends-on): Add environ.
60590         * lib/unsetenv.c (environ): Remove fallback declaration.
60591         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60592         m4/environ.m4.
60593         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60594         (gl_PREREQ_UNSETENV): Likewise.
60595
60596 2008-02-24  Bruno Haible  <bruno@clisp.org>
60597
60598         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60599
60600 2008-02-20  Bob Proulx  <bob@proulx.com>
60601
60602         Enable use of older two part flavor 'git describe'.
60603         * build-aux/git-version-gen: If using the older two part flavor of
60604         git version then recreate the third part now present in the
60605         newer three part flavor of git describe.
60606
60607 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60608
60609         * lib/fts.c (fts_build): Typo correction to comment.
60610
60611 2008-02-17  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60614         generating no-op conflicts.
60615
60616 2008-02-17  Bruno Haible  <bruno@clisp.org>
60617
60618         Speed up by 10%.
60619         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60620         result_entries, rather than an index-based loop.
60621
60622 2008-02-17  Bruno Haible  <bruno@clisp.org>
60623
60624         Speed up by 25%.
60625         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60626         'hashcode_cached'.
60627         (entry_create): New function.
60628         (entry_hashcode): Use the cached hashcode if possible.
60629         (read_changelog_file, try_split_merged_entry): Use entry_create.
60630
60631 2008-02-17  Bruno Haible  <bruno@clisp.org>
60632
60633         Speed up from O(n^2) to O(n) for long ChangeLog files.
60634         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60635         (read_changelog_file): Change implementation of entries_reversed list
60636         to rbtreehash.
60637         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60638
60639 2008-02-17  Bruno Haible  <bruno@clisp.org>
60640
60641         New option --split-merged-entry.
60642         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60643         (find_paragraph_end, try_split_merged_entry): New functions.
60644         (long_options): Add option --split-merged-entry.
60645         (usage): Document option --split-merged-entry.
60646         (main): Implement option --split-merged-entry.
60647         Reported by Eric Blake.
60648
60649 2008-02-17  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/git-merge-changelog.c: Include c-strstr.h.
60652         (main): Support the "git pull --rebase" situation.
60653         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60654         Reported by Eric Blake.
60655
60656 2008-02-16  Eric Blake  <ebb9@byu.net>
60657
60658         Avoid doubling \ in common case of "c-maybe" quoting style.
60659         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60660         eliding outer quotes.
60661         * lib/quotearg.h: Document this.
60662         * tests/test-quotearg.c (result_strings, inputs, results_g)
60663         (flag_results, locale_results): Test it by adding a new string to
60664         each test group.
60665         (compare_strings): Test new string.
60666
60667 2008-02-13  Eric Blake  <ebb9@byu.net>
60668
60669         Avoid trigraph quoting in default output.
60670         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60671         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60672         unless explicitly requested.
60673         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60674
60675 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60676
60677         Don't rely on signed integer overflowing to negative value.
60678         * lib/getugroups.c (getugroups): Include <limits.h>.
60679         Instead, compare against INT_MAX, and increment only if the test passes.
60680
60681 2008-02-13  Jim Meyering  <meyering@redhat.com>
60682         and Eric Blake  <ebb9@byu.net>
60683
60684         Avoid shadowing warning and compile errors on Linux.
60685         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60686         forwarding macros on Linux.
60687         (dcgettext): Define a stub, for Linux.
60688         (results_g, main): Avoid warnings.
60689
60690 2008-02-12  Eric Blake  <ebb9@byu.net>
60691
60692         Silence warning in last patch.
60693         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60694
60695         Quotearg part 4: add tests, fix c-maybe colon quoting.
60696         * lib/quotearg.h: Improve documentation.
60697         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60698         escapes when adding outer quotes.  When quoting trigraphs, use
60699         valid C notation.  When quoting NUL, omit extra characters if next
60700         character is not digit.  Alter prototype.
60701         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60702         callers.
60703         * modules/quotearg-tests: New module.
60704         * tests/test-quotearg.c: New test.
60705
60706 2008-02-07  Eric Blake  <ebb9@byu.net>
60707
60708         Quotearg part 3: add flag to control outer quote elision.
60709         * lib/quotearg.h (c_maybe_quoting_style): New style.
60710         (enum quoting_flags): Better documentation of flags.
60711         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60712         c-maybe style.
60713         (quotearg_buffer_restyled): Handle new flag to elide outer
60714         quotes.
60715
60716         Quotearg part 2: add flag that can control NUL elision.
60717         * lib/quotearg.h (set_quoting_flags): New prototype.
60718         * lib/quotearg.c (struct quoting_options): Add flag field.
60719         (set_quoting_flags): New function.
60720         (quotearg_buffer_restyled): Add flags parameter.
60721         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60722         (quotearg_n_options): Set the flag, since length cannot be
60723         returned.
60724         (quoting_options_from_style): Default flags correctly.
60725
60726         Quotearg part 1: more wrappers, restore quotearg_char state.
60727         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60728         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60729         (quotearg_colon_mem): New wrappers.
60730         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60731         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60732         functions.
60733         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60734         (quotearg_colon_mem): New functions.
60735
60736 2008-02-11  Bruno Haible  <bruno@clisp.org>
60737
60738         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60739         library in the current directory: it does not work with parallel make.
60740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60741
60742 2008-02-11  Bruno Haible  <bruno@clisp.org>
60743
60744         * .gitattributes: New file.
60745
60746 2008-02-11  Jim Meyering  <meyering@redhat.com>
60747
60748         useless-if-before-free: Fix reversed exit values.
60749         * build-aux/useless-if-before-free: Use correct values
60750         for EXIT_MATCH and EXIT_NO_MATCH.
60751
60752         * build-aux/useless-if-before-free: Close stdout carefully.
60753
60754 2008-02-10  Bruno Haible  <bruno@clisp.org>
60755
60756         New module 'git-merge-changelog'.
60757         * modules/git-merge-changelog: New file.
60758         * lib/git-merge-changelog.c: New file.
60759
60760 2008-02-10  Jim Meyering  <meyering@redhat.com>
60761
60762         useless-if-before-free: New option: --list (-l).
60763
60764         useless-if-before-free: Don't exit immediately upon open failure.
60765         * build-aux/useless-if-before-free: Exit 2 for errors.
60766         Upon failure to open a file, don't exit immediately.
60767         Rather, just warn and continue with any remaining files.
60768
60769 2008-02-10  Bruno Haible  <bruno@clisp.org>
60770
60771         New abstract list operation 'node_set_value'.
60772         * lib/gl_list.h (gl_list_node_set_value): New function.
60773         (struct gl_list_implementation): New field node_set_value.
60774         * lib/gl_list.c (gl_list_node_set_value): New function.
60775         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60776         (gl_array_list_implementation): Update.
60777         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60778         (gl_carray_list_implementation): Update.
60779         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60780         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60781         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60782         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60783         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60784         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60785         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60786         Update.
60787         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60788         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60789         (gl_sublist_list_implementation): Update.
60790
60791 2008-02-10  Bruno Haible  <bruno@clisp.org>
60792
60793         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60794         Needed when ELEMENT is #defined to 'some_type *'.
60795
60796 2008-02-10  Jim Meyering  <meyering@redhat.com>
60797
60798         New script and module: useless-if-before-free
60799         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60800         * build-aux/useless-if-before-free: New file.
60801         * modules/useless-if-before-free: New file.
60802
60803         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60804
60805         xstrtol_error: Fix typo.
60806         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60807         s/exit_failure/exit_status/.
60808
60809 2008-02-09  Jim Meyering  <meyering@redhat.com>
60810
60811         New script and module: gitlog-to-changelog
60812         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60813         * modules/gitlog-to-changelog: New file.
60814         * build-aux/gitlog-to-changelog: New file.
60815
60816 2008-02-08  Jim Meyering  <meyering@redhat.com>
60817
60818         Avoid two "parameter unused" warnings.
60819         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60820         Mark "st" as used.
60821
60822         Use "git COMMAND", not "git-COMMAND".
60823         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60824         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60825         * build-aux/git-version-gen: Use "git status", not "git-status".
60826
60827 2008-02-07  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60830         Avoids a crash on Windows Vista.
60831         Reported by Adam Strzelecki <ono@java.pl> via
60832         Simon Josefsson <simon@josefsson.org>.
60833
60834 2008-02-06  Bruno Haible  <bruno@clisp.org>
60835
60836         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60837         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60838         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60840         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60842         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60843         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60851         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60852         left-adjust flag.
60853         * tests/test-snprintf-posix.h (test_function): Likewise.
60854         * tests/test-sprintf-posix.h (test_function): Likewise.
60855         * tests/test-vasprintf-posix.c (test_function): Likewise.
60856         * doc/posix-functions/fprintf.texi: Update.
60857         * doc/posix-functions/printf.texi: Update.
60858         * doc/posix-functions/snprintf.texi: Update.
60859         * doc/posix-functions/sprintf.texi: Update.
60860         * doc/posix-functions/vfprintf.texi: Update.
60861         * doc/posix-functions/vprintf.texi: Update.
60862         * doc/posix-functions/vsnprintf.texi: Update.
60863         * doc/posix-functions/vsprintf.texi: Update.
60864         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60865
60866 2008-02-06  Bruno Haible  <bruno@clisp.org>
60867
60868         Fix bug introduced on 2008-01-26.
60869         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60870
60871 2008-02-06  Bruno Haible  <bruno@clisp.org>
60872
60873         Fix bug introduced on 2007-06-10.
60874         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60875         !NEED_PRINTF_FLAG_ZERO.
60876
60877 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60878
60879         getloadavg: use libperfstat on AIX5
60880         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60881
60882 2008-02-03  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/diffseq.h: Add comments about required #includes.
60885         Reported by Michael Biggs <gnulib@doubleplum.net>.
60886
60887 2008-02-01  Bruno Haible  <bruno@clisp.org>
60888
60889         * users.txt: Add gnuit.
60890
60891 2008-01-31  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/md4.c (set_uint32): Mark as inline.
60894         * lib/md5.c (set_uint32): Likewise.
60895         * lib/sha1.c (set_uint32): Likewise.
60896         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60897         * m4/md5.m4 (gl_MD5): Likewise.
60898         * m4/sha1.m4 (gl_SHA1): Likewise.
60899
60900 2008-01-31  Jim Meyering  <meyering@redhat.com>
60901
60902         Use "sizeof VAR", rather than a literal "4".
60903         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60904         * lib/md4.c (md4_read_ctx): Likewise.
60905         * lib/sha1.c (sha1_read_ctx): Likewise.
60906
60907 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60908
60909         * tests/test-sha1.c: New file, based on test-md5.c.
60910
60911         * modules/crypto/sha1-tests: New file.
60912
60913 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60914
60915         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60916
60917 2008-01-31  Jim Meyering  <meyering@redhat.com>
60918
60919         Prefer "sizeof v" over the equivalent "4".
60920         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60921         * lib/md5.c (set_uint32): Likewise.
60922         * lib/sha1.c (set_uint32): Likewise.
60923
60924 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60925
60926         * lib/sha1.c (set_uint32): Mark function as static.
60927
60928 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60929
60930         md2: clarify comments to say that alignment is not required.
60931         * lib/md2.h: Remove warning about alignment in comment.
60932         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60933         never been required.
60934
60935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60936
60937         md4: adapt alignment constraint fix from sha1.
60938         * lib/md4.c (set_uint32): New function, from sha1.c
60939         (md4_read_ctx): Use it.
60940         (md4_finish_ctx): Doc fix.
60941         * lib/md4.h: Doc fix.
60942
60943 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60944
60945         md5: adapt alignment constraint fix from sha1.
60946         * lib/md5.c (set_uint32): New function, from sha1.c
60947         (md5_read_ctx): Use it.
60948         (md5_finish_ctx): Doc fix.
60949         * lib/md5.h: Doc fix.
60950
60951 2008-01-30  Peter Palfrader  <weasel@debian.org>
60952
60953         sha1: remove the result buffer alignment constraint
60954         * lib/sha1.c (set_uint32): New function.
60955         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60956         constraint.
60957         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60958         * lib/sha1.h: Likewise.
60959
60960 2008-01-30  Andreas Schwab  <schwab@suse.de>
60961             Bruno Haible  <bruno@clisp.org>
60962
60963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60964         correct definition of LDBL_MIN_EXP.
60965
60966 2008-01-30  Karl Berry  <karl@gnu.org>
60967
60968         * config/srclist-update: try to preserve x bit on updates.
60969         * config/srclistvars.sh: update for karl.
60970
60971 2008-01-29  Jim Meyering  <meyering@redhat.com>
60972
60973         vasnprintf.c: Avoid warning about unused label
60974         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60975         "overflow" label definition and associated code with the
60976         same cpp condition that guards the sole use of that label.
60977
60978 2008-01-26  Bruno Haible  <bruno@clisp.org>
60979
60980         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60981         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60982         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60983         * lib/isnanl-nolibm.h (isnanl): Likewise.
60984         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60985
60986 2008-01-26  Bruno Haible  <bruno@clisp.org>
60987
60988         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60989         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60990
60991 2008-01-26  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60994         GCC >= 4.0 built-in.
60995         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60996
60997 2008-01-26  Bruno Haible  <bruno@clisp.org>
60998
60999         Rename isnan, applicable to 'double' only, to isnand.
61000         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61001         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61002         (configure.ac): Update.
61003         (Include): Replace "isnan.h" with "isnand.h".
61004         * m4/isnand.m4: Renamed from m4/isnan.m4.
61005         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61006         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61007         instead of isnan.c.
61008         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61009         instead of HAVE_ISNAN_IN_LIBC.
61010         (isnand): Renamed from isnan.
61011         * lib/isnand.c: New file.
61012         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61013         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61014         (Makefile.am): Update.
61015         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61016         Include isnand.h instead of isnan.h.
61017         (main): Test isnand instead of isnan.
61018         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61019         isnan-nolibm.
61020         * modules/frexp (Depends-on): Likewise.
61021         * modules/frexp-tests (Depends-on): Likewise.
61022         * modules/frexp-nolibm (Depends-on): Likewise.
61023         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61024         * modules/isfinite (Depends-on): Likewise.
61025         * modules/round-tests (Depends-on): Likewise.
61026         * modules/signbit (Depends-on): Likewise.
61027         * modules/signbit-tests (Depends-on): Likewise.
61028         * modules/snprintf-posix (Depends-on): Likewise.
61029         * modules/sprintf-posix (Depends-on): Likewise.
61030         * modules/trunc-tests (Depends-on): Likewise.
61031         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61032         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61033         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61034         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61035         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61036         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61037         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61038         * modules/vasnprintf-posix (Depends-on): Likewise.
61039         * modules/vasprintf-posix (Depends-on): Likewise.
61040         * modules/vfprintf-posix (Depends-on): Likewise.
61041         * modules/vsnprintf-posix (Depends-on): Likewise.
61042         * modules/vsprintf-posix (Depends-on): Likewise.
61043         * lib/frexp.c: Include isnand.h instead of isnan.h.
61044         (ISNAN): Set to isnand instead of isnan.
61045         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61046         (gl_isfinited): Use isnand instead of isnan.
61047         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61048         (gl_signbitd): Use isnand instead of isnan.
61049         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61050         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61051         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61052         (main): Use isnand instead of isnan.
61053         * tests/test-round1.c: Include isnand.h.
61054         (main): Use isnand instead of isnan.
61055         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61056         (ISNAN): Set to isnand instead of isnan.
61057         * tests/test-trunc1.c: Include isnand.h.
61058         (main): Use isnand instead of isnan.
61059         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61060         (equal): Use isnand instead of isnan.
61061         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61062         isnand-nolibm.
61063         * NEWS: Mention the change.
61064
61065 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61066             Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61069         the GCC builtins for signbits are present and set
61070         REPLACE_SIGNBIT_USING_GCC if so.
61071         * lib/math.in.h (signbit): Define using GCC builtins if
61072         REPLACE_SIGNBIT_USING_GCC is set.
61073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61074         REPLACE_SIGNBIT_USING_GCC.
61075         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61076
61077 2008-01-25  Jim Meyering  <meyering@redhat.com>
61078
61079         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61080         * lib/poll.c: Include <config.h>, not "config.h".
61081         * tests/test-getaddrinfo.c: Likewise.
61082
61083 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61084
61085         * modules/sockets-tests: New file.
61086
61087 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61088
61089         * modules/sockets: New module, can be used to call WSA_Startup and
61090         WSA_Cleanup when needed.
61091
61092         * lib/sockets.h, lib/sockets.c: New files.
61093
61094         * m4/sockets.m4: New file.
61095
61096         * tests/test-sockets.c: New file.
61097
61098 2008-01-19  Bruno Haible  <bruno@clisp.org>
61099
61100         * doc/posix-headers: Renamed from doc/headers.
61101         * doc/posix-functions: Renamed from doc/functions.
61102         * doc/gnulib.texi: Update.
61103
61104 2008-01-19  Bruno Haible  <bruno@clisp.org>
61105
61106         * doc/glibc-functions/strcasestr.texi: Include contents of
61107         doc/functions/strcasestr.texi, fixing the list of platforms.
61108         * doc/functions/strcasestr.texi: Remove file.
61109
61110 2008-01-19  Bruno Haible  <bruno@clisp.org>
61111
61112         * doc/glibc-functions/memmem.texi: Include contents of
61113         doc/functions/memmem.texi.
61114         * doc/functions/memmem.texi: Remove file.
61115
61116 2008-01-18  Bruno Haible  <bruno@clisp.org>
61117
61118         * doc/glibc-functions/*.texi: New files.
61119         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61120         to use the new files.
61121
61122 2008-01-17  Bruno Haible  <bruno@clisp.org>
61123
61124         * tests/test-gethostname.c (main): Fix printf statement.
61125
61126 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61127
61128         * modules/gethostname-tests: New file.
61129
61130         * tests/test-gethostname.c: New file.
61131
61132 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61133
61134         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61135         used by the UNAME case.  Reported by Bruno Haible
61136         <bruno@clisp.org>.
61137
61138 2008-01-17  Eric Blake  <ebb9@byu.net>
61139
61140         Convert c-strcasestr to be more efficient.
61141         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61142         (Depends-on): Add c-strcase, remove malloca, strnlen.
61143         * tests/test-c-strcasestr.c (main): Enhance test.
61144         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61145
61146 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61147
61148         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61149         Use it in creating po/Makevars.
61150
61151 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61152
61153         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61154         Applications that requires it should initialize libgcrypt
61155         manually.
61156
61157 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61158
61159         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61160
61161 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61162
61163         Fix problem with getdate on mingw32 reported by Simon Josefsson
61164         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61165         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61166         tzname", when deciding whether to declare tzname.
61167         * lib/strftime.c (tzname): Likewise.
61168
61169 2008-01-15  Bruno Haible  <bruno@clisp.org>
61170
61171         Work around a MacOS X 10.5 bug in frexpl().
61172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61173         * doc/functions/frexpl.texi: Document the bug.
61174         Reported by Elias Pipping <pipping@gentoo.org>.
61175
61176 2008-01-14  Eric Blake  <ebb9@byu.net>
61177
61178         Touch up previous patch.
61179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61180         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61181
61182         Convert strcasestr module to use Two-Way algorithm.
61183         * modules/strcasestr-simple: New module, based on the old
61184         strcasestr, but with Two-Way rather than KMP.
61185         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61186         * lib/string.in.h (rpl_strcasestr): Declare.
61187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61188         performance.
61189         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61190         * modules/string (Makefile.am): Support strcasestr.
61191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61192         * modules/strcasestr-tests (Depends-on): Check for alarm.
61193         * tests/test-strcasestr.c: Augment test.
61194         * lib/str-two-way.h: Clean up stray macro.
61195         * NEWS: Document new module.
61196         * MODULES.html.sh (string handling): Likewise.
61197         * doc/functions/strcasestr.texi: New file.
61198         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61199         here, since it is not a POSIX function.
61200
61201 2008-01-14  Colin Watson  <cjwatson@debian.org>
61202             Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61205         works fine; if not, set REPLACE_STRSIGNAL.
61206         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61208         REPLACE_STRSIGNAL.
61209         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61210         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61211         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61212
61213 2008-01-14  Bruno Haible  <bruno@clisp.org>
61214
61215         * modules/strsignal (Include): Change to <string.h>.
61216
61217 2008-01-14  Colin Watson  <cjwatson@debian.org>
61218
61219         * modules/argp (Notice): Add a notice recommending to change
61220         XGETTEXT_OPTIONS.
61221         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61222
61223 2008-01-13  Colin Watson  <cjwatson@debian.org>
61224
61225         * modules/strsignal-tests: New file.
61226         * tests/test-strsignal.c: New file.
61227
61228         * lib/strsignal.c: New file, from glibc with modifications.
61229         * lib/siglist.h: New file, from glibc with modifications.
61230         * lib/string.in.h (strsignal): New declaration.
61231         * m4/strsignal.m4: New file.
61232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61233         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61234         * modules/strsignal: New file.
61235         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61236         HAVE_DECL_STRSIGNAL.
61237
61238 2008-01-13  Bruno Haible  <bruno@clisp.org>
61239
61240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61241         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61242         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61244
61245 2008-01-13  Bruno Haible  <bruno@clisp.org>
61246
61247         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61248         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61249         * lib/argp.h (__attribute__): Likewise.
61250         * lib/c-stack.c (__attribute__): Likewise.
61251         * lib/error.h (__attribute__): Likewise.
61252         * lib/fts.c (__attribute__): Likewise.
61253         * lib/openat.h (__attribute__): Likewise.
61254         * lib/stdio.in.h (__attribute__): Likewise.
61255         * lib/string.in.h (__attribute__): Likewise.
61256         * lib/utimens.c (__attribute__): Likewise.
61257         * lib/vasnprintf.h (__attribute__): Likewise.
61258         * lib/xalloc.h (__attribute__): Likewise.
61259         * lib/xprintf.h (__attribute__): Likewise.
61260         * lib/xstrtol.h (__attribute__): Likewise.
61261         * lib/xvasprintf.h (__attribute__): Likewise.
61262
61263 2008-01-12  Bruno Haible  <bruno@clisp.org>
61264
61265         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61266         * doc/glibc-headers/a.out.texi: New file.
61267         * doc/glibc-headers/aliases.texi: New file.
61268         * doc/glibc-headers/alloca.texi: New file.
61269         * doc/glibc-headers/ar.texi: New file.
61270         * doc/glibc-headers/argp.texi: New file.
61271         * doc/glibc-headers/argz.texi: New file.
61272         * doc/glibc-headers/byteswap.texi: New file.
61273         * doc/glibc-headers/crypt.texi: New file.
61274         * doc/glibc-headers/endian.texi: New file.
61275         * doc/glibc-headers/envz.texi: New file.
61276         * doc/glibc-headers/err.texi: New file.
61277         * doc/glibc-headers/error.texi: New file.
61278         * doc/glibc-headers/execinfo.texi: New file.
61279         * doc/glibc-headers/fpu_control.texi: New file.
61280         * doc/glibc-headers/fstab.texi: New file.
61281         * doc/glibc-headers/fts.texi: New file.
61282         * doc/glibc-headers/getopt.texi: New file.
61283         * doc/glibc-headers/ieee754.texi: New file.
61284         * doc/glibc-headers/ifaddrs.texi: New file.
61285         * doc/glibc-headers/libintl.texi: New file.
61286         * doc/glibc-headers/mcheck.texi: New file.
61287         * doc/glibc-headers/mntent.texi: New file.
61288         * doc/glibc-headers/obstack.texi: New file.
61289         * doc/glibc-headers/paths.texi: New file.
61290         * doc/glibc-headers/printf.texi: New file.
61291         * doc/glibc-headers/pty.texi: New file.
61292         * doc/glibc-headers/resolv.texi: New file.
61293         * doc/glibc-headers/shadow.texi: New file.
61294         * doc/glibc-headers/sysexits.texi: New file.
61295         * doc/glibc-headers/ttyent.texi: New file.
61296
61297 2008-01-12  Jim Meyering  <meyering@redhat.com>
61298
61299         announce-gen: emit Gnulib's git-based version string.
61300         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61301         New option --gnulib-version=V, where V is expected to be
61302         the output of running git describe in the gnulib directory.
61303         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61304         not useful, and plan to stop publishing an xdelta file with each
61305         coreutils release.
61306
61307         * build-aux/announce-gen: Also check for lzma-compressed files.
61308
61309 2008-01-11  Bruno Haible  <bruno@clisp.org>
61310
61311         * tests/test-memmem.c (main): Increase maximum allowed time.
61312         * tests/test-strstr.c (main): Likewise.
61313
61314 2008-01-11  Bruno Haible  <bruno@clisp.org>
61315
61316         * doc/functions/memmem.texi: Add more precisions about platforms.
61317         * doc/functions/strstr.texi: Likewise.
61318
61319 2008-01-10  Eric Blake  <ebb9@byu.net>
61320
61321         * m4/strstr.m4: Delete cruft from copy-n-paste.
61322         Reported by Bruno Haible.
61323
61324 2008-01-10  Bruno Haible  <bruno@clisp.org>
61325
61326         Make c-strstr rely on strstr.
61327         * lib/c-strstr.c: Don't include str-kmp.h.
61328         (c_strstr): Define in terms of strstr.
61329         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61330         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61331
61332 2008-01-10  Bruno Haible  <bruno@clisp.org>
61333
61334         * doc/gnulib.texi (String Functions in C Locale): New section.
61335         * doc/c-ctype.texi: New file.
61336         * doc/c-strcase.texi: New file.
61337         * doc/c-strcaseeq.texi: New file.
61338         * doc/c-strcasestr.texi: New file.
61339         * doc/c-strstr.texi: New file.
61340         * doc/c-strtod.texi: New file.
61341         * doc/c-strtold.texi: New file.
61342
61343 2008-01-10  Eric Blake  <ebb9@byu.net>
61344
61345         * lib/relocatable.h: Fix a comment.
61346
61347 2008-01-10  Eric Blake  <ebb9@byu.net>
61348
61349         Share two-way algorithm.
61350         * lib/str-two-way.h: New file, merged from...
61351         * lib/memmem.c: ...here...
61352         * lib/strstr.c: ...and here.
61353         * modules/memmem (Files): Use it.
61354         * modules/strstr (Files): Likewise.
61355
61356         Avoid quadratic strstr implementations.
61357         * lib/strstr.c: New file.
61358         * m4/strstr.m4: Likewise.
61359         * modules/strstr: Likewise.
61360         * modules/strstr-tests: Likewise.
61361         * tests/test-strstr.c: Likewise.
61362         * lib/string.in.h (rpl_strstr): Declare.
61363         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61365         * modules/string (Makefile.am): Likewise.
61366         * MODULES.html.sh (string handling): Mention new module.
61367         * doc/functions/strstr.texi (strstr): Document the bug.
61368
61369 2008-01-10  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/relocatable.h (relocate): State whether result is freshly
61372         allocated or not.
61373         * lib/relocatable.c (relocate): Return a freshly allocated string
61374         instead of a pointer to a privately held string.
61375         Reported by Sylvain Beucler <beuc@gnu.org>.
61376
61377 2008-01-10  Colin Watson  <cjwatson@debian.org>
61378
61379         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61380         s/S_ISNLK/S_ISLNK/.
61381
61382 2008-01-09  Bruno Haible  <bruno@clisp.org>
61383
61384         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61385         and other files.
61386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61387         if it's only a guess.
61388         * modules/memmem: Simplify by depending on memmem-simple.
61389
61390 2008-01-09  Bruno Haible  <bruno@clisp.org>
61391
61392         Work around OpenBSD 4.0 tdelete() bug.
61393         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61394         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61395         macros and don't redefine the enum values.
61396         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61397         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61398         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61399
61400 2008-01-09  Bruno Haible  <bruno@clisp.org>
61401
61402         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61403         (main): Don't perform the tests if setlocale did not install a UTF-8
61404         locale. Needed on OpenBSD 4.0.
61405         * modules/wcwidth-tests (Depends-on): Add localcharset.
61406
61407 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61410         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61411         * NEWS: announce this.
61412         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61413
61414 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61415         and Eric Blake  <ebb9@byu.net>
61416
61417         Add memmem-simple module.
61418         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61419         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61420         * modules/memmem-simple: New file.
61421         * modules/memmem (Description): Tweak.
61422         * MODULES.html.sh (string handling): Mention new module.
61423         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61424         addressed by memmem-simple.
61425         * NEWS: Document the difference.
61426
61427 2008-01-09  Eric Blake  <ebb9@byu.net>
61428
61429         Give gcc some memmem optimization hints.
61430         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61431         (strcasestr): Declare as pure.
61432         * modules/memmem (Maintainer): Claim my implementation.
61433
61434 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61435
61436         Support AIX 6.1 and higher.
61437         * build-aux/config.libpath: Likewise.
61438         * build-aux/config.rpath: Likewise.
61439
61440 2008-01-08  Jim Meyering  <meyering@redhat.com>
61441             Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61444         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61445         Reported by Peter Fales in
61446         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61447
61448 2008-01-08  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/unictype/category-of (Depends-on): Add
61451         unictype/category-none.
61452         * modules/unictype/category-and-tests (Depends-on): Add
61453         unictype/category-{L,N,Lu,Nd}.
61454         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61455         * modules/unictype/category-or-tests (Depends-on): Add
61456         unictype/category-{L,N}.
61457         * modules/unictype/category-name-tests (Depends-on): Add
61458         unictype/category-{Z,Nl}.
61459         Reported by Simon Josefsson.
61460
61461 2008-01-08  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61464         convention better.
61465         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61466         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61467         Reported by Peter Miller <millerp@canb.auug.org.au>.
61468
61469 2008-01-08  Eric Blake  <ebb9@byu.net>
61470
61471         Rewrite memmem to guarantee linear complexity without malloc.
61472         * lib/memmem.c (memmem): Use Two-Way rather than
61473         Knuth-Morris-Pratt, to allow O(1) space usage.
61474         (critical_factorization, two_way_short_needle)
61475         (two_way_long_needle): New functions.
61476         (knuth_morris_pratt): Delete.
61477         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61478         Add stdint.
61479         * tests/test-memmem.c (main): Add tests for periodic needle and
61480         sublinear performance.
61481         * doc/functions/memmem.texi (memmem): Document other deficiencies
61482         in cygwin and older glibc.
61483
61484 2008-01-08  Bruno Haible  <bruno@clisp.org>
61485
61486         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61487         augmentation.
61488
61489 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61490
61491         Add a configure time option: --disable-acl.
61492         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61493         AC_ARG_ENABLE(acl).
61494
61495 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61496
61497         * tests/test-localename.c: Don't include obsolete "setenv.h".
61498
61499         * modules/localename-tests (Depends-on): Need unsetenv.
61500
61501 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61502
61503         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61504
61505 2008-01-06  Colin Watson  <cjwatson@debian.org>
61506
61507         * users.txt: Add man-db.
61508
61509 2008-01-07  Bruno Haible  <bruno@clisp.org>
61510
61511         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61512         previous section name.
61513
61514 2008-01-07  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/progname.c (set_program_name): Don't strip off a leading
61517         "lt-" prefix outside a .libs directory.
61518         Suggested by Paul Eggert.
61519
61520 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61521             Bruno Haible  <bruno@clisp.org>
61522
61523         Improve memory cleanup in 'relocatable' module.
61524         * lib/relocatable.h (compute_curr_prefix): Change return type to
61525         'char *'.
61526         * lib/relocatable.c (compute_curr_prefix): Change return type to
61527         'char *'. Free curr_installdir after use.
61528         (relocate): Free curr_prefix_better after use.
61529         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61530
61531 2008-01-01  Bruno Haible  <bruno@clisp.org>
61532
61533         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61534         failure on older glibc systems.
61535         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61536
61537 2008-01-05  Eric Blake  <ebb9@byu.net>
61538
61539         Avoid quadratic system memmem.
61540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61541         Reported by Ralf Wildenhues.
61542
61543         Fix memmem test for mingw.
61544         * modules/memmem-tests (configure.ac): Check for alarm.
61545         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61546         it.
61547         * doc/functions/memmem.texi: New file.
61548         * doc/gnulib.texi (Function Substitutes): Add memmem.
61549         Reported by Bruno Haible.
61550
61551 2008-01-04  Bruno Haible  <bruno@clisp.org>
61552
61553         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61554         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61555         gl_HEADER_STRING_H_DEFAULTS.
61556
61557 2008-01-04  Eric Blake  <ebb9@byu.net>
61558
61559         Shorten duration of memmem test.
61560         * tests/test-memmem.c (main): Use alarm to declare failure if test
61561         is taking too long.
61562         Reported by Ralf Wildenhues.
61563
61564 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61565
61566         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61567         string, needed by strerror.
61568
61569 2008-01-03  Colin Watson  <cjwatson@debian.org>
61570             Bruno Haible  <bruno@clisp.org>
61571
61572         * doc/gnulib-tool.texi (Localization): New section.
61573
61574 2008-01-02  Bruno Haible  <bruno@clisp.org>
61575
61576         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61577         variables to 'unsigned char *' type.
61578         Reported by Paul Eggert.
61579
61580 2008-01-02  Jim Meyering  <jim@meyering.net>
61581
61582         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61583
61584 2007-12-31  Jim Meyering  <jim@meyering.net>
61585
61586         Avoid use of private FTS type name.
61587         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61588
61589 2007-12-30  Karl Berry  <karl@gnu.org>
61590
61591         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61592         work around defect in Texinfo and/or the standalone Info browser.
61593
61594 2007-12-30  Bruno Haible  <bruno@clisp.org>
61595
61596         Unify 5 copies of the KMP code.
61597         * lib/str-kmp.h: New file.
61598         * lib/c-strcasestr.c: Include str-kmp.h.
61599         (knuth_morris_pratt): Remove function.
61600         (c_strcasestr): Update.
61601         * lib/c-strstr.c: Include str-kmp.h.
61602         (knuth_morris_pratt): Remove function.
61603         (c_strcasestr): Update.
61604         * lib/mbscasestr.c: Include str-kmp.h.
61605         (knuth_morris_pratt_unibyte): Remove function.
61606         * lib/mbsstr.c: Include str-kmp.h.
61607         (knuth_morris_pratt_unibyte): Remove function.
61608         * lib/strcasestr.c: Include str-kmp.h.
61609         (knuth_morris_pratt): Remove function.
61610         (strcasestr): Update.
61611         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61612         * modules/c-strstr (Files): Likewise.
61613         * modules/mbscasestr (Files): Likewise.
61614         * modules/mbsstr (Files): Likewise.
61615         * modules/strcasestr (Files): Likewise.
61616         Suggested by Paul Eggert.
61617
61618 2007-12-30  Bruno Haible  <bruno@clisp.org>
61619
61620         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61621         defined.
61622
61623 2007-12-30  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/xmalloca.h: Include xalloc.h.
61626         (xnmalloca): New macro.
61627
61628 2007-12-30  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/malloca.h (nmalloca): New macro.
61631         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61632         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61633         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61634         knuth_morris_pratt_multibyte): Likewise.
61635         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61636         knuth_morris_pratt_multibyte): Likewise.
61637         * lib/memmem.c (knuth_morris_pratt): Likewise.
61638         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61639
61640 2007-12-25  Bruno Haible  <bruno@clisp.org>
61641
61642         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61643         * lib/glob.c: Don't include openat.h.
61644         (link_exists2_p): Add back the code that deals with the
61645         !GLOB_ALTDIRFUNC case.
61646         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61647         let it do the filename concatenation.
61648         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61649         * modules/glob (Depends-on): Remove openat.
61650
61651 2007-12-31  Bruno Haible  <bruno@clisp.org>
61652
61653         * modules/dirfd (License): Change to LGPLv2+.
61654         Approved by Jim Meyering.
61655
61656 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61657
61658         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61659         when multiplying M by sizeof (size_t).
61660
61661 2007-12-10  Martin Lambers  <marlam@marlam.de>
61662
61663         Override getpagesize on mingw.
61664         * lib/getpagesize.c: New file.
61665         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61666         * modules/getpagesize (Files): Add lib/getpagesize.c.
61667         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61669         REPLACE_GETPAGESIZE.
61670         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61671
61672 2007-12-25  Bruno Haible  <bruno@clisp.org>
61673
61674         * modules/localcharset (Notice): New field.
61675         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61676         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61677
61678 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61679             Bruno Haible  <bruno@clisp.org>
61680
61681         Avoid using the syntax symbol() in formatted documentation.
61682         * MODULES.html.sh (func_module): When replacing symbol() with a
61683         hyperlink, remove the parentheses. Show an error if some remain.
61684         Recognize and render the '...' syntax.
61685         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61686         Rework. Add paragraph about GCC's inlining.
61687         * doc/alloca.texi: Likewise.
61688         * doc/error.texi: Remove parentheses from symbol reference.
61689         * doc/gnulib-intro.texi: Likewise.
61690         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61691         * modules/fnmatch (Description): Reword to say "the ... function".
61692         * modules/full-read (Description): Likewise.
61693         * modules/full-write (Description): Likewise.
61694         * modules/safe-read (Description): Likewise.
61695         * modules/safe-write (Description): Likewise.
61696         * modules/strchrnul (Description): Likewise.
61697         * modules/trim (Description): Likewise.
61698         * modules/error (Description): Remove parentheses from symbol
61699         references.
61700         * modules/verror (Description): Likewise.
61701         Reported by Karl Berry.
61702
61703 2007-12-25  Bruno Haible  <bruno@clisp.org>
61704
61705         Fixup after 2007-10-16 commit.
61706         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61707
61708 2007-12-24  Bruno Haible  <bruno@clisp.org>
61709
61710         Make --enable-relocatable work with DESTDIR.
61711         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61712         to compute installdir from destprog.
61713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61714         also set the RELOC_DESTDIR variable.
61715         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61716
61717 2007-12-24  Bruno Haible  <bruno@clisp.org>
61718
61719         Fix link error due to xalloc_die().
61720         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61721         of xreadlink.
61722         * lib/relocwrapper.c: Update comments.
61723         * build-aux/install-reloc: Remove xreadlink.c from file list.
61724         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61725         xreadlink.c.
61726         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61727
61728 2007-12-24  Bruno Haible  <bruno@clisp.org>
61729
61730         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61731         * lib/setenv.h: Remove file.
61732         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61733         lib/setenv.h.
61734         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61735         (Depends-on): Add stdlib.
61736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61737         gl_FUNC_UNSETENV.
61738         (Include): Replace setenv.h with <stdlib.h>.
61739         * modules/unsetenv: New file.
61740         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61741         * lib/unsetenv.c: Include <stdlib.h> first.
61742         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61743         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61744         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61745         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61746         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61747         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61749         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61750         * doc/functions/unsetenv.texi: Update.
61751         * modules/xsetenv (Depends-on): Add unsetenv.
61752         * modules/getdate (Depends-on): Likewise.
61753         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61754         * lib/xsetenv.c: Don't include setenv.h.
61755         * lib/getdate.y: Likewise.
61756         * lib/relocwrapper.c: Likewise.
61757         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61758         (Depends-on): Add stdlib.
61759         * NEWS: Mention the changes.
61760         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61761
61762 2007-12-23  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61765         indentation.
61766
61767 2007-12-23  Bruno Haible  <bruno@clisp.org>
61768
61769         * lib/c-strcasestr.c: Add more comments.
61770         * lib/c-strstr.c: Likewise.
61771         * lib/mbscasestr.c: Likewise.
61772         * lib/mbsstr.c: Likewise.
61773         * lib/strcasestr.c: Likewise.
61774         * lib/memmem.c: Likewise.
61775
61776 2007-12-23  Bruno Haible  <bruno@clisp.org>
61777
61778         * tests/test-memmem.c: Include <string.h> first.
61779
61780 2007-12-22  Bruno Haible  <bruno@clisp.org>
61781
61782         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61783         the contents of $testsbase.
61784         Reported by Ralf Wildenhues.
61785
61786 2007-12-22  Bruno Haible  <bruno@clisp.org>
61787
61788         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61789         two variables local_ldadd_before, local_ldadd_last.
61790
61791 2007-12-20  Eric Blake  <ebb9@byu.net>
61792
61793         Work around circular library issue when cross-compiling.
61794         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61795         that progname.o does not need to pull in rpl_memcmp.
61796
61797 2007-12-19  Eric Blake  <ebb9@byu.net>
61798
61799         Fix memmem to avoid O(n^2) worst-case complexity.
61800         * lib/memmem.c (knuth_morris_pratt): New function.
61801         (memmem): Use it if first few naive iterations fail.
61802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61803         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61804         * modules/memchr (License): Likewise.
61805         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61806         malloca.
61807         * tests/test-memmem.c: Rewrite, borrowing ideas from
61808         test-mbsstr1.c; the old version wouldn't even compile!
61809         * modules/memmem-tests: New file.
61810         * lib/string.in.h (rpl_memmem): Add declaration.
61811         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61813         REPLACE_MEMMEM.
61814
61815 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61818         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61819         before any system include files, and undef after them all.  This
61820         should fix a problem on VMS reported by John E. Malmberg in
61821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61822
61823 2007-12-17  Eric Blake  <ebb9@byu.net>
61824
61825         Revert addition of verify, for BSD/OS.
61826         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61827         can't handle large files, for the sake of obsolete platforms.
61828         * modules/fseeko (Depends-on): Remove verify.
61829         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61830         * doc/functions/ftello.texi (ftello): Likewise.
61831         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61832         Reported by Larry Jones.
61833
61834 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61835
61836         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61837         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61838
61839 2007-12-17  Jim Meyering  <meyering@redhat.com>
61840
61841         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61842         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61843         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61844         * modules/getcwd (Depends-on): Add openat.
61845         Reported by Petr Salinger.
61846
61847 2007-12-17  Bruno Haible  <bruno@clisp.org>
61848
61849         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61850         avoid a segmentation fault of the configure test on x86_64 systems.
61851
61852 2007-12-15  Jim Meyering  <meyering@redhat.com>
61853
61854         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61855
61856 2007-12-13  Eric Blake  <ebb9@byu.net>
61857
61858         Another fseek test.
61859         * tests/test-fseek.c (main): Also test ungetc handling.
61860         * tests/test-fseeko.c (main): Likewise.
61861         * modules/fseeko (Depends-on): Add verify.
61862         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61863         large.
61864         Reported by Larry Jones.
61865
61866         Fix fseeko on mingw.
61867         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61868         seek.
61869
61870         Beef up fseek tests.
61871         * tests/test-fseek.c (main): Also test eof handling.
61872         * tests/test-fseeko.c (main): Likewise.
61873         Reported by Larry Jones.
61874
61875 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61876
61877         Fix fseeko on BSD-based platforms.
61878         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61879         successful seek.
61880
61881 2007-12-12  Eric Blake  <ebb9@byu.net>
61882
61883         Allow circular dependency of separate libtests.a
61884         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61885         when use_libtests.
61886
61887 2007-12-11  Eric Blake  <ebb9@byu.net>
61888
61889         Fix bug with -0.0L in previous patch.
61890         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61891         * tests/test-isnan.c (main): Also test on zeroes.
61892         * tests/test-isnanf.c (main): Likewise.
61893         * tests/test-isnanl.h (main): Likewise.
61894
61895         Detect pseudo-denormals on x86 even when cross-compiling.
61896         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61897         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61898         invalid bit patterns that happen to satisfy ==.
61899
61900         Avoid link failures with separate libtests.a.
61901         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61902         last, to satisfy circular dependencies.
61903
61904 2007-12-11  Eric Blake  <ebb9@byu.net>
61905         and Bruno Haible  <bruno@clisp.org>
61906
61907         Fix OpenBSD 4.0 <float.h> handling of long double.
61908         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61909         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61910         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61911
61912 2007-12-11  Jim Meyering  <meyering@redhat.com>
61913
61914         * users.txt: Add libvirt.
61915
61916         Support versions of autoconf prior to 2.59c.
61917         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61918         if it is not already defined.
61919
61920 2007-12-09  Bruno Haible  <bruno@clisp.org>
61921
61922         Let 'gnulib-tool --import' collect sources needed for the tests in
61923         tests/ rather than in lib/.
61924         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61925         argument. If true, add rules to generate libtests.a, and put libtests.a
61926         into $(LDADD). Consider source files in subdirectories and set
61927         uses_subdirs.
61928         (func_emit_initmacro_start, func_emit_initmacro_end,
61929         func_emit_initmacro_done): Pass all arguments explicitly.
61930         (func_import): Determine two module lists main_modules,
61931         testsrelated_modules. Determine use_libtests. Determine two variables
61932         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61933         instead of just sed_transform_lib_file. Determine two variables
61934         main_files and testsrelated_files. Compute 'files' as the union of
61935         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61936         func_add_or_update. In the generated gnulib-comp.m4, collect the
61937         object files for tests/ in different variables than those for lib/.
61938         Substitute LIBTESTS_LIBDEPS.
61939         (func_create_testdir): Combine the uses_subdirs results from
61940         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61941
61942 2007-12-09  Bruno Haible  <bruno@clisp.org>
61943
61944         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61945         the build-aux directory.
61946
61947 2007-12-09  Bruno Haible  <bruno@clisp.org>
61948
61949         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61950         introduced on 2006-09-09.
61951
61952 2007-12-07  Jim Meyering  <meyering@redhat.com>
61953
61954         Let these macros work also with autoconf-2.59.
61955         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61956         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61957         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61958
61959 2007-12-06  Jim Meyering  <meyering@redhat.com>
61960
61961         Avoid a configure-time syntax error in gl_FUNC_ACL.
61962         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61963         function in each branch, before testing the cache variable.
61964
61965 2007-12-04  Eric Blake  <ebb9@byu.net>
61966
61967         Make scripts executable.
61968         * build-aux/config.guess: Add execute permissions.
61969         * build-aux/config.sub: Likewise.
61970         * build-aux/gendocs.sh: Likewise.
61971
61972         Fix frexp on mingw.
61973         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61974         cross-compiling.
61975         * doc/functions/frexp.texi (frexp): Document the bug.
61976
61977         Make cygwin fseeko check more reliable.
61978         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61979         version numbers, rather than unrelated feature check.
61980         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61981         * doc/functions/ftello.texi (ftello): Likewise.
61982         Reported by Bruno Haible.
61983
61984         * m4/strerror.m4: Bump version number.
61985
61986 2007-12-03  Bruno Haible  <bruno@clisp.org>
61987
61988         * doc/functions/mprotect.texi: Mention the mingw problem.
61989
61990 2007-12-03  Eric Blake  <ebb9@byu.net>
61991
61992         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61993         REPLACE_STRERROR is initialized before this macro.
61994
61995 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61998         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61999         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62000         put -lsec in even for programs other than 'ls'.  This fixes a problem
62001         for gettext reported by Bruno Haible in
62002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62003         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62004         Add support for Solaris 10.  This isn't efficient, but should get the
62005         job done for now.
62006
62007 2007-12-03  James Youngman  <jay@gnu.org>
62008
62009         * doc/regexprops-generic.texi: change "an close-group" to "a
62010         close-group" and "illegal" to "not allowed".
62011
62012 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62013
62014         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62015         pr_byname.h. Needed for the rare case when the maintainer has done
62016         "make maintainer-clean" in the source directory and then attempts a
62017         build outside the source directory.
62018         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62019         scripts_byname.h.
62020
62021 2007-12-02  Martin Lambers <marlam@marlam.de>
62022             Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/getpagesize.h: Remove file.
62025         * lib/unistd.in.h: Include declaration of getpagesize here.
62026         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62027         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62028         HAVE_SYS_PARAM_H.
62029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62030         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62031         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62032         (Depends-on): Add unistd.
62033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62034         (Include): Use <unistd.h> instead of getpagesize.h.
62035         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62036         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62037         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62038         gl_GETPAGESIZE invocation, already handled by module dependency.
62039         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62040
62041 2007-12-02  Bruno Haible  <bruno@clisp.org>
62042
62043         * modules/strings-tests: New file.
62044         * tests/test-strings.c: New file.
62045
62046         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62047         * lib/strings.in.h: New file.
62048         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62049         * m4/strings_h.m4: New file.
62050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62051         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62052         * modules/strings: New file.
62053         * modules/string (Makefile.am): Update.
62054         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62055         Reported by Karl Berry.
62056
62057 2007-12-01  Eric Blake  <ebb9@byu.net>
62058
62059         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62060         accommodate fix in cygwin 1.5.25.
62061
62062 2007-12-01  Jim Meyering  <meyering@redhat.com>
62063
62064         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62065         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62066         that would inhibit utf8-optimization of a regexp containing line-
62067         or buffer-anchors, e.g., `^', `$'.
62068
62069 2007-11-30  Bruno Haible  <bruno@clisp.org>
62070
62071         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62072         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62073         glthread_recursive_lock_init.
62074         * lib/lock.c (glthread_recursive_lock_init)
62075         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62077
62078 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62079
62080         New function qset_acl, like set_acl but with syscall semantics.
62081         * lib/acl.h (qset_acl): New decl.
62082         * lib/acl.c (qset_acl): New function.
62083         (set_acl): Use new function.  Use more-consistent diagnostics.
62084
62085 2007-11-28  Jim Meyering  <meyering@redhat.com>
62086
62087         * modules/physmem (License): Change from GPL to LGPLv2+.
62088
62089 2007-11-26  Bruno Haible  <bruno@clisp.org>
62090
62091         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62092         'long double' type has excess precision.
62093         Reported by Jim Meyering in
62094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62095
62096 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62097
62098         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62099         Sync from <http://gnu.org/licenses>.
62100         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62101         with license text from same location.
62102         * doc/maintain.texi, doc/standards.texi:  Sync from
62103         <http://savannah.gnu.org/projects/gnustandards>.
62104
62105 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62106         and Jim Meyering  <meyering@redhat.com>
62107
62108         Adjust getdate' grammar to accept a slightly more regular language.
62109         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62110         Before, the former was rejected.
62111         * lib/getdate.y (digits_to_date_time): New function, factored
62112         out of ...
62113         (number): ...here.  Just call digits_to_date_time.
62114         (hybrid): New non-terminal to handle an <unsigned number,
62115         signed relative offset> sequence consistently.
62116
62117 2007-11-18  Jim Meyering  <meyering@redhat.com>
62118
62119         Pull my changes from coreutils:
62120         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62121         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62122         use of $gnulib_tool_option_extras, so that it's separated from the
62123         preceding argument.
62124
62125         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62126         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62127         parent destination directories before copying a file into place.
62128
62129 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62130
62131         bootstrap: work also with 4-argument variant of AC_INIT
62132         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62133
62134 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62135
62136         Port test-getaddrinfo to Solaris.
62137         Problem reported by Bruno Haible in
62138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62139         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62140         explanation of setting 'hints'.
62141         Don't reject an implementation merely because it returns EAI_SERVICE.
62142         (EAI_SERVICE): Define to 0 if not defined.
62143
62144 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         The license of gnu-make and posix-shell is now "GPLed build tool".
62147         * modules/gnu-make (License): Likewise.
62148         * modules/posix-shell (License): Likewise.
62149
62150         New module posix-shell, for determining a POSIX shell
62151         or perhaps something that is close enough to a POSIX shell.
62152         * m4/posix-shell.m4: New file.
62153         * modules/posix-shell: New file.
62154
62155         * MODULES.html.sh: Mention new module.
62156
62157         New module gnu-make, for determining whether we're using GNU Make.
62158         * m4/gnu-make.m4: New file.
62159         * modules/gnu-make: New file.
62160         * MODULES.html.sh: Mention new module.
62161
62162 2007-11-14  Jim Meyering  <meyering@redhat.com>
62163
62164         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62165         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62166         use this macro to create a function _definition_.
62167         Remove useless "#undef ARGMATCH_DIE".
62168
62169 2007-11-14  Bruno Haible  <bruno@clisp.org>
62170
62171         * lib/config.charset: Update for OpenBSD 4.1.
62172         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62173
62174 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         Document 64-bit #if problems in stdint.texi.
62177         * doc/headers/stdint.texi (stdint.h): Mention problems with
62178         64-bit-#if, and how to work around them.
62179
62180         Don't insist on 'long long int' support in the preprocessor.  It
62181         breaks too many things.  For example, PRIdMAX still uses a 'long
62182         long int' format with the latest Sun compiler, even though
62183         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62184         preprocessor problem.  This causes the latest coreutils to dump
62185         core on Solaris 10 sparc with the Sun C compiler.
62186         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62187         the troublesome expressions at configure-time, not at #if-time.
62188         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62189         preprocessor.
62190         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62191         compile-time C checks, done at 'configure'-time.
62192         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62193         * modules/inttypes (Makefile): Substitute the new symbols that
62194         gl_INTTYPES_H now generates.
62195         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62196
62197 2007-11-12  Bruno Haible  <bruno@clisp.org>
62198
62199         Tests for Unicode character classification functions.
62200
62201         * modules/unictype/bidicategory-byname-tests: New file.
62202         * modules/unictype/bidicategory-name-tests: New file.
62203         * modules/unictype/bidicategory-of-tests: New file.
62204         * modules/unictype/bidicategory-test-tests: New file.
62205         * modules/unictype/block-list-tests: New file.
62206         * modules/unictype/block-of-tests: New file.
62207         * modules/unictype/block-test-tests: New file.
62208         * modules/unictype/category-C-tests: New file.
62209         * modules/unictype/category-Cc-tests: New file.
62210         * modules/unictype/category-Cf-tests: New file.
62211         * modules/unictype/category-Cn-tests: New file.
62212         * modules/unictype/category-Co-tests: New file.
62213         * modules/unictype/category-Cs-tests: New file.
62214         * modules/unictype/category-L-tests: New file.
62215         * modules/unictype/category-Ll-tests: New file.
62216         * modules/unictype/category-Lm-tests: New file.
62217         * modules/unictype/category-Lo-tests: New file.
62218         * modules/unictype/category-Lt-tests: New file.
62219         * modules/unictype/category-Lu-tests: New file.
62220         * modules/unictype/category-M-tests: New file.
62221         * modules/unictype/category-Mc-tests: New file.
62222         * modules/unictype/category-Me-tests: New file.
62223         * modules/unictype/category-Mn-tests: New file.
62224         * modules/unictype/category-N-tests: New file.
62225         * modules/unictype/category-Nd-tests: New file.
62226         * modules/unictype/category-Nl-tests: New file.
62227         * modules/unictype/category-No-tests: New file.
62228         * modules/unictype/category-P-tests: New file.
62229         * modules/unictype/category-Pc-tests: New file.
62230         * modules/unictype/category-Pd-tests: New file.
62231         * modules/unictype/category-Pe-tests: New file.
62232         * modules/unictype/category-Pf-tests: New file.
62233         * modules/unictype/category-Pi-tests: New file.
62234         * modules/unictype/category-Po-tests: New file.
62235         * modules/unictype/category-Ps-tests: New file.
62236         * modules/unictype/category-S-tests: New file.
62237         * modules/unictype/category-Sc-tests: New file.
62238         * modules/unictype/category-Sk-tests: New file.
62239         * modules/unictype/category-Sm-tests: New file.
62240         * modules/unictype/category-So-tests: New file.
62241         * modules/unictype/category-Z-tests: New file.
62242         * modules/unictype/category-Zl-tests: New file.
62243         * modules/unictype/category-Zp-tests: New file.
62244         * modules/unictype/category-Zs-tests: New file.
62245         * modules/unictype/category-and-not-tests: New file.
62246         * modules/unictype/category-and-tests: New file.
62247         * modules/unictype/category-byname-tests: New file.
62248         * modules/unictype/category-name-tests: New file.
62249         * modules/unictype/category-none-tests: New file.
62250         * modules/unictype/category-of-tests: New file.
62251         * modules/unictype/category-or-tests: New file.
62252         * modules/unictype/category-test-withtable-tests: New file.
62253         * modules/unictype/combining-class-tests: New file.
62254         * modules/unictype/ctype-alnum-tests: New file.
62255         * modules/unictype/ctype-alpha-tests: New file.
62256         * modules/unictype/ctype-blank-tests: New file.
62257         * modules/unictype/ctype-cntrl-tests: New file.
62258         * modules/unictype/ctype-digit-tests: New file.
62259         * modules/unictype/ctype-graph-tests: New file.
62260         * modules/unictype/ctype-lower-tests: New file.
62261         * modules/unictype/ctype-print-tests: New file.
62262         * modules/unictype/ctype-punct-tests: New file.
62263         * modules/unictype/ctype-space-tests: New file.
62264         * modules/unictype/ctype-upper-tests: New file.
62265         * modules/unictype/ctype-xdigit-tests: New file.
62266         * modules/unictype/decimal-digit-tests: New file.
62267         * modules/unictype/digit-tests: New file.
62268         * modules/unictype/mirror-tests: New file.
62269         * modules/unictype/numeric-tests: New file.
62270         * modules/unictype/property-alphabetic-tests: New file.
62271         * modules/unictype/property-ascii-hex-digit-tests: New file.
62272         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62273         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62274         * modules/unictype/property-bidi-block-separator-tests: New file.
62275         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62276         * modules/unictype/property-bidi-common-separator-tests: New file.
62277         * modules/unictype/property-bidi-control-tests: New file.
62278         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62279         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62280         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62281         * modules/unictype/property-bidi-european-digit-tests: New file.
62282         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62283         * modules/unictype/property-bidi-left-to-right-tests: New file.
62284         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62285         * modules/unictype/property-bidi-other-neutral-tests: New file.
62286         * modules/unictype/property-bidi-pdf-tests: New file.
62287         * modules/unictype/property-bidi-segment-separator-tests: New file.
62288         * modules/unictype/property-bidi-whitespace-tests: New file.
62289         * modules/unictype/property-byname-tests: New file.
62290         * modules/unictype/property-combining-tests: New file.
62291         * modules/unictype/property-composite-tests: New file.
62292         * modules/unictype/property-currency-symbol-tests: New file.
62293         * modules/unictype/property-dash-tests: New file.
62294         * modules/unictype/property-decimal-digit-tests: New file.
62295         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62296         * modules/unictype/property-deprecated-tests: New file.
62297         * modules/unictype/property-diacritic-tests: New file.
62298         * modules/unictype/property-extender-tests: New file.
62299         * modules/unictype/property-format-control-tests: New file.
62300         * modules/unictype/property-grapheme-base-tests: New file.
62301         * modules/unictype/property-grapheme-extend-tests: New file.
62302         * modules/unictype/property-grapheme-link-tests: New file.
62303         * modules/unictype/property-hex-digit-tests: New file.
62304         * modules/unictype/property-hyphen-tests: New file.
62305         * modules/unictype/property-id-continue-tests: New file.
62306         * modules/unictype/property-id-start-tests: New file.
62307         * modules/unictype/property-ideographic-tests: New file.
62308         * modules/unictype/property-ids-binary-operator-tests: New file.
62309         * modules/unictype/property-ids-trinary-operator-tests: New file.
62310         * modules/unictype/property-ignorable-control-tests: New file.
62311         * modules/unictype/property-iso-control-tests: New file.
62312         * modules/unictype/property-join-control-tests: New file.
62313         * modules/unictype/property-left-of-pair-tests: New file.
62314         * modules/unictype/property-line-separator-tests: New file.
62315         * modules/unictype/property-logical-order-exception-tests: New file.
62316         * modules/unictype/property-lowercase-tests: New file.
62317         * modules/unictype/property-math-tests: New file.
62318         * modules/unictype/property-non-break-tests: New file.
62319         * modules/unictype/property-not-a-character-tests: New file.
62320         * modules/unictype/property-numeric-tests: New file.
62321         * modules/unictype/property-other-alphabetic-tests: New file.
62322         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62323         * modules/unictype/property-other-grapheme-extend-tests: New file.
62324         * modules/unictype/property-other-id-continue-tests: New file.
62325         * modules/unictype/property-other-id-start-tests: New file.
62326         * modules/unictype/property-other-lowercase-tests: New file.
62327         * modules/unictype/property-other-math-tests: New file.
62328         * modules/unictype/property-other-uppercase-tests: New file.
62329         * modules/unictype/property-paired-punctuation-tests: New file.
62330         * modules/unictype/property-paragraph-separator-tests: New file.
62331         * modules/unictype/property-pattern-syntax-tests: New file.
62332         * modules/unictype/property-pattern-white-space-tests: New file.
62333         * modules/unictype/property-private-use-tests: New file.
62334         * modules/unictype/property-punctuation-tests: New file.
62335         * modules/unictype/property-quotation-mark-tests: New file.
62336         * modules/unictype/property-radical-tests: New file.
62337         * modules/unictype/property-sentence-terminal-tests: New file.
62338         * modules/unictype/property-soft-dotted-tests: New file.
62339         * modules/unictype/property-space-tests: New file.
62340         * modules/unictype/property-terminal-punctuation-tests: New file.
62341         * modules/unictype/property-test-tests: New file.
62342         * modules/unictype/property-titlecase-tests: New file.
62343         * modules/unictype/property-unassigned-code-value-tests: New file.
62344         * modules/unictype/property-unified-ideograph-tests: New file.
62345         * modules/unictype/property-uppercase-tests: New file.
62346         * modules/unictype/property-variation-selector-tests: New file.
62347         * modules/unictype/property-white-space-tests: New file.
62348         * modules/unictype/property-xid-continue-tests: New file.
62349         * modules/unictype/property-xid-start-tests: New file.
62350         * modules/unictype/property-zero-width-tests: New file.
62351         * modules/unictype/scripts-tests: New file.
62352         * modules/unictype/syntax-c-ident-tests: New file.
62353         * modules/unictype/syntax-c-whitespace-tests: New file.
62354         * modules/unictype/syntax-java-ident-tests: New file.
62355         * modules/unictype/syntax-java-whitespace-tests: New file.
62356         * tests/unictype/test-bidi_byname.c: New file.
62357         * tests/unictype/test-bidi_name.c: New file.
62358         * tests/unictype/test-bidi_of.c: New file.
62359         * tests/unictype/test-bidi_test.c: New file.
62360         * tests/unictype/test-block_list.c: New file.
62361         * tests/unictype/test-block_of.c: New file.
62362         * tests/unictype/test-block_test.c: New file.
62363         * tests/unictype/test-categ_and.c: New file.
62364         * tests/unictype/test-categ_and_not.c: New file.
62365         * tests/unictype/test-categ_byname.c: New file.
62366         * tests/unictype/test-categ_name.c: New file.
62367         * tests/unictype/test-categ_none.c: New file.
62368         * tests/unictype/test-categ_of.c: New file.
62369         * tests/unictype/test-categ_or.c: New file.
62370         * tests/unictype/test-categ_test_withtable.c: New file.
62371         * tests/unictype/test-combining.c: New file.
62372         * tests/unictype/test-decdigit.c: New file.
62373         * tests/unictype/test-digit.c: New file.
62374         * tests/unictype/test-mirror.c: New file.
62375         * tests/unictype/test-numeric.c: New file.
62376         * tests/unictype/test-pr_byname.c: New file.
62377         * tests/unictype/test-pr_test.c: New file.
62378         * tests/unictype/test-predicate-part1.h: New file.
62379         * tests/unictype/test-predicate-part2.h: New file.
62380         * tests/unictype/test-scripts.c: New file.
62381         * tests/unictype/test-sy_c_ident.c: New file.
62382         * tests/unictype/test-sy_java_ident.c: New file.
62383
62384         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62385         for Unicode 5.0.0.
62386         * tests/unictype/test-categ_Cc.c: Likewise.
62387         * tests/unictype/test-categ_Cf.c: Likewise.
62388         * tests/unictype/test-categ_Cn.c: Likewise.
62389         * tests/unictype/test-categ_Co.c: Likewise.
62390         * tests/unictype/test-categ_Cs.c: Likewise.
62391         * tests/unictype/test-categ_L.c: Likewise.
62392         * tests/unictype/test-categ_Ll.c: Likewise.
62393         * tests/unictype/test-categ_Lm.c: Likewise.
62394         * tests/unictype/test-categ_Lo.c: Likewise.
62395         * tests/unictype/test-categ_Lt.c: Likewise.
62396         * tests/unictype/test-categ_Lu.c: Likewise.
62397         * tests/unictype/test-categ_M.c: Likewise.
62398         * tests/unictype/test-categ_Mc.c: Likewise.
62399         * tests/unictype/test-categ_Me.c: Likewise.
62400         * tests/unictype/test-categ_Mn.c: Likewise.
62401         * tests/unictype/test-categ_N.c: Likewise.
62402         * tests/unictype/test-categ_Nd.c: Likewise.
62403         * tests/unictype/test-categ_Nl.c: Likewise.
62404         * tests/unictype/test-categ_No.c: Likewise.
62405         * tests/unictype/test-categ_P.c: Likewise.
62406         * tests/unictype/test-categ_Pc.c: Likewise.
62407         * tests/unictype/test-categ_Pd.c: Likewise.
62408         * tests/unictype/test-categ_Pe.c: Likewise.
62409         * tests/unictype/test-categ_Pf.c: Likewise.
62410         * tests/unictype/test-categ_Pi.c: Likewise.
62411         * tests/unictype/test-categ_Po.c: Likewise.
62412         * tests/unictype/test-categ_Ps.c: Likewise.
62413         * tests/unictype/test-categ_S.c: Likewise.
62414         * tests/unictype/test-categ_Sc.c: Likewise.
62415         * tests/unictype/test-categ_Sk.c: Likewise.
62416         * tests/unictype/test-categ_Sm.c: Likewise.
62417         * tests/unictype/test-categ_So.c: Likewise.
62418         * tests/unictype/test-categ_Z.c: Likewise.
62419         * tests/unictype/test-categ_Zl.c: Likewise.
62420         * tests/unictype/test-categ_Zp.c: Likewise.
62421         * tests/unictype/test-categ_Zs.c: Likewise.
62422         * tests/unictype/test-ctype_alnum.c: Likewise.
62423         * tests/unictype/test-ctype_alpha.c: Likewise.
62424         * tests/unictype/test-ctype_blank.c: Likewise.
62425         * tests/unictype/test-ctype_cntrl.c: Likewise.
62426         * tests/unictype/test-ctype_digit.c: Likewise.
62427         * tests/unictype/test-ctype_graph.c: Likewise.
62428         * tests/unictype/test-ctype_lower.c: Likewise.
62429         * tests/unictype/test-ctype_print.c: Likewise.
62430         * tests/unictype/test-ctype_punct.c: Likewise.
62431         * tests/unictype/test-ctype_space.c: Likewise.
62432         * tests/unictype/test-ctype_upper.c: Likewise.
62433         * tests/unictype/test-ctype_xdigit.c: Likewise.
62434         * tests/unictype/test-decdigit.h: Likewise.
62435         * tests/unictype/test-digit.h: Likewise.
62436         * tests/unictype/test-numeric.h: Likewise.
62437         * tests/unictype/test-pr_alphabetic.c: Likewise.
62438         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62439         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62440         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62441         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62442         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62443         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62444         * tests/unictype/test-pr_bidi_control.c: Likewise.
62445         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62446         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62447         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62448         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62449         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62450         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62451         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62452         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62453         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62454         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62455         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62456         * tests/unictype/test-pr_combining.c: Likewise.
62457         * tests/unictype/test-pr_composite.c: Likewise.
62458         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62459         * tests/unictype/test-pr_dash.c: Likewise.
62460         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62461         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62462         * tests/unictype/test-pr_deprecated.c: Likewise.
62463         * tests/unictype/test-pr_diacritic.c: Likewise.
62464         * tests/unictype/test-pr_extender.c: Likewise.
62465         * tests/unictype/test-pr_format_control.c: Likewise.
62466         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62467         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62468         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62469         * tests/unictype/test-pr_hex_digit.c: Likewise.
62470         * tests/unictype/test-pr_hyphen.c: Likewise.
62471         * tests/unictype/test-pr_id_continue.c: Likewise.
62472         * tests/unictype/test-pr_id_start.c: Likewise.
62473         * tests/unictype/test-pr_ideographic.c: Likewise.
62474         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62475         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62476         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62477         * tests/unictype/test-pr_iso_control.c: Likewise.
62478         * tests/unictype/test-pr_join_control.c: Likewise.
62479         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62480         * tests/unictype/test-pr_line_separator.c: Likewise.
62481         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62482         * tests/unictype/test-pr_lowercase.c: Likewise.
62483         * tests/unictype/test-pr_math.c: Likewise.
62484         * tests/unictype/test-pr_non_break.c: Likewise.
62485         * tests/unictype/test-pr_not_a_character.c: Likewise.
62486         * tests/unictype/test-pr_numeric.c: Likewise.
62487         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62488         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62489         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62490         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62491         * tests/unictype/test-pr_other_id_start.c: Likewise.
62492         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62493         * tests/unictype/test-pr_other_math.c: Likewise.
62494         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62495         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62496         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62497         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62498         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62499         * tests/unictype/test-pr_private_use.c: Likewise.
62500         * tests/unictype/test-pr_punctuation.c: Likewise.
62501         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62502         * tests/unictype/test-pr_radical.c: Likewise.
62503         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62504         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62505         * tests/unictype/test-pr_space.c: Likewise.
62506         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62507         * tests/unictype/test-pr_titlecase.c: Likewise.
62508         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62509         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62510         * tests/unictype/test-pr_uppercase.c: Likewise.
62511         * tests/unictype/test-pr_variation_selector.c: Likewise.
62512         * tests/unictype/test-pr_white_space.c: Likewise.
62513         * tests/unictype/test-pr_xid_continue.c: Likewise.
62514         * tests/unictype/test-pr_xid_start.c: Likewise.
62515         * tests/unictype/test-pr_zero_width.c: Likewise.
62516         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62517         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62518
62519 2007-11-12  Bruno Haible  <bruno@clisp.org>
62520
62521         Unicode character classification functions.
62522         * lib/unictype.h: New file.
62523         * modules/unictype/base: New file.
62524         * modules/unictype/category-L: New file.
62525         * modules/unictype/category-Lu: New file.
62526         * modules/unictype/category-Ll: New file.
62527         * modules/unictype/category-Lt: New file.
62528         * modules/unictype/category-Lm: New file.
62529         * modules/unictype/category-Lo: New file.
62530         * modules/unictype/category-M: New file.
62531         * modules/unictype/category-Mn: New file.
62532         * modules/unictype/category-Mc: New file.
62533         * modules/unictype/category-Me: New file.
62534         * modules/unictype/category-N: New file.
62535         * modules/unictype/category-Nd: New file.
62536         * modules/unictype/category-Nl: New file.
62537         * modules/unictype/category-No: New file.
62538         * modules/unictype/category-P: New file.
62539         * modules/unictype/category-Pc: New file.
62540         * modules/unictype/category-Pd: New file.
62541         * modules/unictype/category-Ps: New file.
62542         * modules/unictype/category-Pe: New file.
62543         * modules/unictype/category-Pi: New file.
62544         * modules/unictype/category-Pf: New file.
62545         * modules/unictype/category-Po: New file.
62546         * modules/unictype/category-S: New file.
62547         * modules/unictype/category-Sm: New file.
62548         * modules/unictype/category-Sc: New file.
62549         * modules/unictype/category-Sk: New file.
62550         * modules/unictype/category-So: New file.
62551         * modules/unictype/category-Z: New file.
62552         * modules/unictype/category-Zs: New file.
62553         * modules/unictype/category-Zl: New file.
62554         * modules/unictype/category-Zp: New file.
62555         * modules/unictype/category-C: New file.
62556         * modules/unictype/category-Cc: New file.
62557         * modules/unictype/category-Cf: New file.
62558         * modules/unictype/category-Cs: New file.
62559         * modules/unictype/category-Co: New file.
62560         * modules/unictype/category-Cn: New file.
62561         * modules/unictype/category-or: New file.
62562         * modules/unictype/category-of: New file.
62563         * modules/unictype/category-test: New file.
62564         * modules/unictype/category-test-withtable: New file.
62565         * modules/unictype/category-byname: New file.
62566         * modules/unictype/category-none: New file.
62567         * modules/unictype/category-and: New file.
62568         * modules/unictype/category-and-not: New file.
62569         * modules/unictype/category-name: New file.
62570         * modules/unictype/combining-class: New file.
62571         * modules/unictype/category-all: New file.
62572         * modules/unictype/bidicategory-all: New file.
62573         * modules/unictype/bidicategory-byname: New file.
62574         * modules/unictype/bidicategory-name: New file.
62575         * modules/unictype/bidicategory-of: New file.
62576         * modules/unictype/bidicategory-test: New file.
62577         * modules/unictype/decimal-digit: New file.
62578         * modules/unictype/digit: New file.
62579         * modules/unictype/numeric: New file.
62580         * modules/unictype/mirror: New file.
62581         * modules/unictype/property-white-space: New file.
62582         * modules/unictype/property-alphabetic: New file.
62583         * modules/unictype/property-other-alphabetic: New file.
62584         * modules/unictype/property-not-a-character: New file.
62585         * modules/unictype/property-default-ignorable-code-point: New file.
62586         * modules/unictype/property-other-default-ignorable-code-point: New
62587         file.
62588         * modules/unictype/property-deprecated: New file.
62589         * modules/unictype/property-logical-order-exception: New file.
62590         * modules/unictype/property-variation-selector: New file.
62591         * modules/unictype/property-private-use: New file.
62592         * modules/unictype/property-unassigned-code-value: New file.
62593         * modules/unictype/property-uppercase: New file.
62594         * modules/unictype/property-other-uppercase: New file.
62595         * modules/unictype/property-lowercase: New file.
62596         * modules/unictype/property-other-lowercase: New file.
62597         * modules/unictype/property-titlecase: New file.
62598         * modules/unictype/property-soft-dotted: New file.
62599         * modules/unictype/property-id-start: New file.
62600         * modules/unictype/property-other-id-start: New file.
62601         * modules/unictype/property-id-continue: New file.
62602         * modules/unictype/property-other-id-continue: New file.
62603         * modules/unictype/property-xid-start: New file.
62604         * modules/unictype/property-xid-continue: New file.
62605         * modules/unictype/property-pattern-white-space: New file.
62606         * modules/unictype/property-pattern-syntax: New file.
62607         * modules/unictype/property-join-control: New file.
62608         * modules/unictype/property-grapheme-base: New file.
62609         * modules/unictype/property-grapheme-extend: New file.
62610         * modules/unictype/property-other-grapheme-extend: New file.
62611         * modules/unictype/property-grapheme-link: New file.
62612         * modules/unictype/property-bidi-control: New file.
62613         * modules/unictype/property-bidi-left-to-right: New file.
62614         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62615         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62616         * modules/unictype/property-bidi-european-digit: New file.
62617         * modules/unictype/property-bidi-eur-num-separator: New file.
62618         * modules/unictype/property-bidi-eur-num-terminator: New file.
62619         * modules/unictype/property-bidi-arabic-digit: New file.
62620         * modules/unictype/property-bidi-common-separator: New file.
62621         * modules/unictype/property-bidi-block-separator: New file.
62622         * modules/unictype/property-bidi-segment-separator: New file.
62623         * modules/unictype/property-bidi-whitespace: New file.
62624         * modules/unictype/property-bidi-non-spacing-mark: New file.
62625         * modules/unictype/property-bidi-boundary-neutral: New file.
62626         * modules/unictype/property-bidi-pdf: New file.
62627         * modules/unictype/property-bidi-embedding-or-override: New file.
62628         * modules/unictype/property-bidi-other-neutral: New file.
62629         * modules/unictype/property-hex-digit: New file.
62630         * modules/unictype/property-ascii-hex-digit: New file.
62631         * modules/unictype/property-ideographic: New file.
62632         * modules/unictype/property-unified-ideograph: New file.
62633         * modules/unictype/property-radical: New file.
62634         * modules/unictype/property-ids-binary-operator: New file.
62635         * modules/unictype/property-ids-trinary-operator: New file.
62636         * modules/unictype/property-zero-width: New file.
62637         * modules/unictype/property-space: New file.
62638         * modules/unictype/property-non-break: New file.
62639         * modules/unictype/property-iso-control: New file.
62640         * modules/unictype/property-format-control: New file.
62641         * modules/unictype/property-dash: New file.
62642         * modules/unictype/property-hyphen: New file.
62643         * modules/unictype/property-punctuation: New file.
62644         * modules/unictype/property-line-separator: New file.
62645         * modules/unictype/property-paragraph-separator: New file.
62646         * modules/unictype/property-quotation-mark: New file.
62647         * modules/unictype/property-sentence-terminal: New file.
62648         * modules/unictype/property-terminal-punctuation: New file.
62649         * modules/unictype/property-currency-symbol: New file.
62650         * modules/unictype/property-math: New file.
62651         * modules/unictype/property-other-math: New file.
62652         * modules/unictype/property-paired-punctuation: New file.
62653         * modules/unictype/property-left-of-pair: New file.
62654         * modules/unictype/property-combining: New file.
62655         * modules/unictype/property-composite: New file.
62656         * modules/unictype/property-decimal-digit: New file.
62657         * modules/unictype/property-numeric: New file.
62658         * modules/unictype/property-diacritic: New file.
62659         * modules/unictype/property-extender: New file.
62660         * modules/unictype/property-ignorable-control: New file.
62661         * modules/unictype/property-test: New file.
62662         * modules/unictype/property-byname: New file.
62663         * modules/unictype/property-all: New file.
62664         * modules/unictype/scripts: New file.
62665         * modules/unictype/scripts-all: New file.
62666         * modules/unictype/block-of: New file.
62667         * modules/unictype/block-test: New file.
62668         * modules/unictype/block-list: New file.
62669         * modules/unictype/block-all: New file.
62670         * modules/unictype/syntax-c-whitespace: New file.
62671         * modules/unictype/syntax-java-whitespace: New file.
62672         * modules/unictype/syntax-c-ident: New file.
62673         * modules/unictype/syntax-java-ident: New file.
62674         * modules/unictype/ctype-alnum: New file.
62675         * modules/unictype/ctype-alpha: New file.
62676         * modules/unictype/ctype-cntrl: New file.
62677         * modules/unictype/ctype-digit: New file.
62678         * modules/unictype/ctype-graph: New file.
62679         * modules/unictype/ctype-lower: New file.
62680         * modules/unictype/ctype-print: New file.
62681         * modules/unictype/ctype-punct: New file.
62682         * modules/unictype/ctype-space: New file.
62683         * modules/unictype/ctype-upper: New file.
62684         * modules/unictype/ctype-xdigit: New file.
62685         * modules/unictype/ctype-blank: New file.
62686         * lib/unictype/bidi_byname.c: New file.
62687         * lib/unictype/bidi_name.c: New file.
62688         * lib/unictype/bidi_of.c: New file.
62689         * lib/unictype/bidi_test.c: New file.
62690         * lib/unictype/bitmap.h: New file.
62691         * lib/unictype/block_test.c: New file.
62692         * lib/unictype/blocks.c: New file.
62693         * lib/unictype/categ_C.c: New file.
62694         * lib/unictype/categ_Cc.c: New file.
62695         * lib/unictype/categ_Cf.c: New file.
62696         * lib/unictype/categ_Cn.c: New file.
62697         * lib/unictype/categ_Co.c: New file.
62698         * lib/unictype/categ_Cs.c: New file.
62699         * lib/unictype/categ_L.c: New file.
62700         * lib/unictype/categ_Ll.c: New file.
62701         * lib/unictype/categ_Lm.c: New file.
62702         * lib/unictype/categ_Lo.c: New file.
62703         * lib/unictype/categ_Lt.c: New file.
62704         * lib/unictype/categ_Lu.c: New file.
62705         * lib/unictype/categ_M.c: New file.
62706         * lib/unictype/categ_Mc.c: New file.
62707         * lib/unictype/categ_Me.c: New file.
62708         * lib/unictype/categ_Mn.c: New file.
62709         * lib/unictype/categ_N.c: New file.
62710         * lib/unictype/categ_Nd.c: New file.
62711         * lib/unictype/categ_Nl.c: New file.
62712         * lib/unictype/categ_No.c: New file.
62713         * lib/unictype/categ_P.c: New file.
62714         * lib/unictype/categ_Pc.c: New file.
62715         * lib/unictype/categ_Pd.c: New file.
62716         * lib/unictype/categ_Pe.c: New file.
62717         * lib/unictype/categ_Pf.c: New file.
62718         * lib/unictype/categ_Pi.c: New file.
62719         * lib/unictype/categ_Po.c: New file.
62720         * lib/unictype/categ_Ps.c: New file.
62721         * lib/unictype/categ_S.c: New file.
62722         * lib/unictype/categ_Sc.c: New file.
62723         * lib/unictype/categ_Sk.c: New file.
62724         * lib/unictype/categ_Sm.c: New file.
62725         * lib/unictype/categ_So.c: New file.
62726         * lib/unictype/categ_Z.c: New file.
62727         * lib/unictype/categ_Zl.c: New file.
62728         * lib/unictype/categ_Zp.c: New file.
62729         * lib/unictype/categ_Zs.c: New file.
62730         * lib/unictype/categ_and.c: New file.
62731         * lib/unictype/categ_and_not.c: New file.
62732         * lib/unictype/categ_byname.c: New file.
62733         * lib/unictype/categ_name.c: New file.
62734         * lib/unictype/categ_none.c: New file.
62735         * lib/unictype/categ_of.c: New file.
62736         * lib/unictype/categ_or.c: New file.
62737         * lib/unictype/categ_test.c: New file.
62738         * lib/unictype/combining.c: New file.
62739         * lib/unictype/ctype_alnum.c: New file.
62740         * lib/unictype/ctype_alpha.c: New file.
62741         * lib/unictype/ctype_blank.c: New file.
62742         * lib/unictype/ctype_cntrl.c: New file.
62743         * lib/unictype/ctype_digit.c: New file.
62744         * lib/unictype/ctype_graph.c: New file.
62745         * lib/unictype/ctype_lower.c: New file.
62746         * lib/unictype/ctype_print.c: New file.
62747         * lib/unictype/ctype_punct.c: New file.
62748         * lib/unictype/ctype_space.c: New file.
62749         * lib/unictype/ctype_upper.c: New file.
62750         * lib/unictype/ctype_xdigit.c: New file.
62751         * lib/unictype/decdigit.c: New file.
62752         * lib/unictype/digit.c: New file.
62753         * lib/unictype/identsyntaxmap.h: New file.
62754         * lib/unictype/mirror.c: New file.
62755         * lib/unictype/numeric.c: New file.
62756         * lib/unictype/pr_alphabetic.c: New file.
62757         * lib/unictype/pr_ascii_hex_digit.c: New file.
62758         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62759         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62760         * lib/unictype/pr_bidi_block_separator.c: New file.
62761         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62762         * lib/unictype/pr_bidi_common_separator.c: New file.
62763         * lib/unictype/pr_bidi_control.c: New file.
62764         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62765         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62766         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62767         * lib/unictype/pr_bidi_european_digit.c: New file.
62768         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62769         * lib/unictype/pr_bidi_left_to_right.c: New file.
62770         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62771         * lib/unictype/pr_bidi_other_neutral.c: New file.
62772         * lib/unictype/pr_bidi_pdf.c: New file.
62773         * lib/unictype/pr_bidi_segment_separator.c: New file.
62774         * lib/unictype/pr_bidi_whitespace.c: New file.
62775         * lib/unictype/pr_byname.c: New file.
62776         * lib/unictype/pr_byname.gperf: New file.
62777         * lib/unictype/pr_combining.c: New file.
62778         * lib/unictype/pr_composite.c: New file.
62779         * lib/unictype/pr_currency_symbol.c: New file.
62780         * lib/unictype/pr_dash.c: New file.
62781         * lib/unictype/pr_decimal_digit.c: New file.
62782         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62783         * lib/unictype/pr_deprecated.c: New file.
62784         * lib/unictype/pr_diacritic.c: New file.
62785         * lib/unictype/pr_extender.c: New file.
62786         * lib/unictype/pr_format_control.c: New file.
62787         * lib/unictype/pr_grapheme_base.c: New file.
62788         * lib/unictype/pr_grapheme_extend.c: New file.
62789         * lib/unictype/pr_grapheme_link.c: New file.
62790         * lib/unictype/pr_hex_digit.c: New file.
62791         * lib/unictype/pr_hyphen.c: New file.
62792         * lib/unictype/pr_id_continue.c: New file.
62793         * lib/unictype/pr_id_start.c: New file.
62794         * lib/unictype/pr_ideographic.c: New file.
62795         * lib/unictype/pr_ids_binary_operator.c: New file.
62796         * lib/unictype/pr_ids_trinary_operator.c: New file.
62797         * lib/unictype/pr_ignorable_control.c: New file.
62798         * lib/unictype/pr_iso_control.c: New file.
62799         * lib/unictype/pr_join_control.c: New file.
62800         * lib/unictype/pr_left_of_pair.c: New file.
62801         * lib/unictype/pr_line_separator.c: New file.
62802         * lib/unictype/pr_logical_order_exception.c: New file.
62803         * lib/unictype/pr_lowercase.c: New file.
62804         * lib/unictype/pr_math.c: New file.
62805         * lib/unictype/pr_non_break.c: New file.
62806         * lib/unictype/pr_not_a_character.c: New file.
62807         * lib/unictype/pr_numeric.c: New file.
62808         * lib/unictype/pr_other_alphabetic.c: New file.
62809         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62810         * lib/unictype/pr_other_grapheme_extend.c: New file.
62811         * lib/unictype/pr_other_id_continue.c: New file.
62812         * lib/unictype/pr_other_id_start.c: New file.
62813         * lib/unictype/pr_other_lowercase.c: New file.
62814         * lib/unictype/pr_other_math.c: New file.
62815         * lib/unictype/pr_other_uppercase.c: New file.
62816         * lib/unictype/pr_paired_punctuation.c: New file.
62817         * lib/unictype/pr_paragraph_separator.c: New file.
62818         * lib/unictype/pr_pattern_syntax.c: New file.
62819         * lib/unictype/pr_pattern_white_space.c: New file.
62820         * lib/unictype/pr_private_use.c: New file.
62821         * lib/unictype/pr_punctuation.c: New file.
62822         * lib/unictype/pr_quotation_mark.c: New file.
62823         * lib/unictype/pr_radical.c: New file.
62824         * lib/unictype/pr_sentence_terminal.c: New file.
62825         * lib/unictype/pr_soft_dotted.c: New file.
62826         * lib/unictype/pr_space.c: New file.
62827         * lib/unictype/pr_terminal_punctuation.c: New file.
62828         * lib/unictype/pr_test.c: New file.
62829         * lib/unictype/pr_titlecase.c: New file.
62830         * lib/unictype/pr_unassigned_code_value.c: New file.
62831         * lib/unictype/pr_unified_ideograph.c: New file.
62832         * lib/unictype/pr_uppercase.c: New file.
62833         * lib/unictype/pr_variation_selector.c: New file.
62834         * lib/unictype/pr_white_space.c: New file.
62835         * lib/unictype/pr_xid_continue.c: New file.
62836         * lib/unictype/pr_xid_start.c: New file.
62837         * lib/unictype/pr_zero_width.c: New file.
62838         * lib/unictype/scripts.c: New file.
62839         * lib/unictype/sy_c_ident.c: New file.
62840         * lib/unictype/sy_c_whitespace.c: New file.
62841         * lib/unictype/sy_java_ident.c: New file.
62842         * lib/unictype/sy_java_whitespace.c: New file.
62843
62844         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62845         Unicode 5.0.0.
62846         * lib/unictype/blocks.h: Likewise.
62847         * lib/unictype/categ_C.h: Likewise.
62848         * lib/unictype/categ_Cc.h: Likewise.
62849         * lib/unictype/categ_Cf.h: Likewise.
62850         * lib/unictype/categ_Cn.h: Likewise.
62851         * lib/unictype/categ_Co.h: Likewise.
62852         * lib/unictype/categ_Cs.h: Likewise.
62853         * lib/unictype/categ_L.h: Likewise.
62854         * lib/unictype/categ_Ll.h: Likewise.
62855         * lib/unictype/categ_Lm.h: Likewise.
62856         * lib/unictype/categ_Lo.h: Likewise.
62857         * lib/unictype/categ_Lt.h: Likewise.
62858         * lib/unictype/categ_Lu.h: Likewise.
62859         * lib/unictype/categ_M.h: Likewise.
62860         * lib/unictype/categ_Mc.h: Likewise.
62861         * lib/unictype/categ_Me.h: Likewise.
62862         * lib/unictype/categ_Mn.h: Likewise.
62863         * lib/unictype/categ_N.h: Likewise.
62864         * lib/unictype/categ_Nd.h: Likewise.
62865         * lib/unictype/categ_Nl.h: Likewise.
62866         * lib/unictype/categ_No.h: Likewise.
62867         * lib/unictype/categ_P.h: Likewise.
62868         * lib/unictype/categ_Pc.h: Likewise.
62869         * lib/unictype/categ_Pd.h: Likewise.
62870         * lib/unictype/categ_Pe.h: Likewise.
62871         * lib/unictype/categ_Pf.h: Likewise.
62872         * lib/unictype/categ_Pi.h: Likewise.
62873         * lib/unictype/categ_Po.h: Likewise.
62874         * lib/unictype/categ_Ps.h: Likewise.
62875         * lib/unictype/categ_S.h: Likewise.
62876         * lib/unictype/categ_Sc.h: Likewise.
62877         * lib/unictype/categ_Sk.h: Likewise.
62878         * lib/unictype/categ_Sm.h: Likewise.
62879         * lib/unictype/categ_So.h: Likewise.
62880         * lib/unictype/categ_Z.h: Likewise.
62881         * lib/unictype/categ_Zl.h: Likewise.
62882         * lib/unictype/categ_Zp.h: Likewise.
62883         * lib/unictype/categ_Zs.h: Likewise.
62884         * lib/unictype/categ_of.h: Likewise.
62885         * lib/unictype/combining.h: Likewise.
62886         * lib/unictype/ctype_alnum.h: Likewise.
62887         * lib/unictype/ctype_alpha.h: Likewise.
62888         * lib/unictype/ctype_blank.h: Likewise.
62889         * lib/unictype/ctype_cntrl.h: Likewise.
62890         * lib/unictype/ctype_digit.h: Likewise.
62891         * lib/unictype/ctype_graph.h: Likewise.
62892         * lib/unictype/ctype_lower.h: Likewise.
62893         * lib/unictype/ctype_print.h: Likewise.
62894         * lib/unictype/ctype_punct.h: Likewise.
62895         * lib/unictype/ctype_space.h: Likewise.
62896         * lib/unictype/ctype_upper.h: Likewise.
62897         * lib/unictype/ctype_xdigit.h: Likewise.
62898         * lib/unictype/decdigit.h: Likewise.
62899         * lib/unictype/digit.h: Likewise.
62900         * lib/unictype/mirror.h: Likewise.
62901         * lib/unictype/numeric.h: Likewise.
62902         * lib/unictype/pr_alphabetic.h: Likewise.
62903         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62904         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62905         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62906         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62907         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62908         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62909         * lib/unictype/pr_bidi_control.h: Likewise.
62910         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62911         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62912         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62913         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62914         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62915         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62916         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62917         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62918         * lib/unictype/pr_bidi_pdf.h: Likewise.
62919         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62920         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62921         * lib/unictype/pr_combining.h: Likewise.
62922         * lib/unictype/pr_composite.h: Likewise.
62923         * lib/unictype/pr_currency_symbol.h: Likewise.
62924         * lib/unictype/pr_dash.h: Likewise.
62925         * lib/unictype/pr_decimal_digit.h: Likewise.
62926         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62927         * lib/unictype/pr_deprecated.h: Likewise.
62928         * lib/unictype/pr_diacritic.h: Likewise.
62929         * lib/unictype/pr_extender.h: Likewise.
62930         * lib/unictype/pr_format_control.h: Likewise.
62931         * lib/unictype/pr_grapheme_base.h: Likewise.
62932         * lib/unictype/pr_grapheme_extend.h: Likewise.
62933         * lib/unictype/pr_grapheme_link.h: Likewise.
62934         * lib/unictype/pr_hex_digit.h: Likewise.
62935         * lib/unictype/pr_hyphen.h: Likewise.
62936         * lib/unictype/pr_id_continue.h: Likewise.
62937         * lib/unictype/pr_id_start.h: Likewise.
62938         * lib/unictype/pr_ideographic.h: Likewise.
62939         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62940         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62941         * lib/unictype/pr_ignorable_control.h: Likewise.
62942         * lib/unictype/pr_iso_control.h: Likewise.
62943         * lib/unictype/pr_join_control.h: Likewise.
62944         * lib/unictype/pr_left_of_pair.h: Likewise.
62945         * lib/unictype/pr_line_separator.h: Likewise.
62946         * lib/unictype/pr_logical_order_exception.h: Likewise.
62947         * lib/unictype/pr_lowercase.h: Likewise.
62948         * lib/unictype/pr_math.h: Likewise.
62949         * lib/unictype/pr_non_break.h: Likewise.
62950         * lib/unictype/pr_not_a_character.h: Likewise.
62951         * lib/unictype/pr_numeric.h: Likewise.
62952         * lib/unictype/pr_other_alphabetic.h: Likewise.
62953         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62954         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62955         * lib/unictype/pr_other_id_continue.h: Likewise.
62956         * lib/unictype/pr_other_id_start.h: Likewise.
62957         * lib/unictype/pr_other_lowercase.h: Likewise.
62958         * lib/unictype/pr_other_math.h: Likewise.
62959         * lib/unictype/pr_other_uppercase.h: Likewise.
62960         * lib/unictype/pr_paired_punctuation.h: Likewise.
62961         * lib/unictype/pr_paragraph_separator.h: Likewise.
62962         * lib/unictype/pr_pattern_syntax.h: Likewise.
62963         * lib/unictype/pr_pattern_white_space.h: Likewise.
62964         * lib/unictype/pr_private_use.h: Likewise.
62965         * lib/unictype/pr_punctuation.h: Likewise.
62966         * lib/unictype/pr_quotation_mark.h: Likewise.
62967         * lib/unictype/pr_radical.h: Likewise.
62968         * lib/unictype/pr_sentence_terminal.h: Likewise.
62969         * lib/unictype/pr_soft_dotted.h: Likewise.
62970         * lib/unictype/pr_space.h: Likewise.
62971         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62972         * lib/unictype/pr_titlecase.h: Likewise.
62973         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62974         * lib/unictype/pr_unified_ideograph.h: Likewise.
62975         * lib/unictype/pr_uppercase.h: Likewise.
62976         * lib/unictype/pr_variation_selector.h: Likewise.
62977         * lib/unictype/pr_white_space.h: Likewise.
62978         * lib/unictype/pr_xid_continue.h: Likewise.
62979         * lib/unictype/pr_xid_start.h: Likewise.
62980         * lib/unictype/pr_zero_width.h: Likewise.
62981         * lib/unictype/scripts.h: Likewise.
62982         * lib/unictype/scripts_byname.gperf: Likewise.
62983         * lib/unictype/sy_c_ident.h: Likewise.
62984         * lib/unictype/sy_c_whitespace.h: Likewise.
62985         * lib/unictype/sy_java_ident.h: Likewise.
62986         * lib/unictype/sy_java_whitespace.h: Likewise.
62987
62988         * lib/unictype/Makefile: New file.
62989         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62990         glibc.
62991         * lib/unictype/3level.h: New file, copied from glibc.
62992         * lib/unictype/3levelbit.h: New file.
62993
62994 2007-11-11  Bruno Haible  <bruno@clisp.org>
62995
62996         * modules/gperf: New file.
62997         * modules/iconv_open (Depends-on): Add it.
62998         (Makefile.am): Remove the GPERF definition.
62999
63000 2007-11-11  Bruno Haible  <bruno@clisp.org>
63001
63002         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63003         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63004
63005 2007-11-11  Bruno Haible  <bruno@clisp.org>
63006
63007         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63008         (usage): Remove function.
63009
63010 2007-11-11  Bruno Haible  <bruno@clisp.org>
63011
63012         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63013         gl_FUNC_CEILF_LIBS.
63014         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63015         gl_FUNC_CEIL_LIBS.
63016         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63017         gl_FUNC_CEILL_LIBS.
63018         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63019         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63020         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63021
63022 2007-11-11  Bruno Haible  <bruno@clisp.org>
63023
63024         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63025         roundf were declared but do not exist on functions.
63026         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63027         roundl were declared but do not exist on functions.
63028         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63029         HAVE_FLOORL_AND_CEILL, respectively.
63030         Needed for Sun C on Solaris 10.
63031
63032 2007-11-11  Bruno Haible  <bruno@clisp.org>
63033
63034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63035         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63036         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63037         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63039         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63040         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63041         HAVE_DECL_ROUNDF.
63042         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63043         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63045         of HAVE_DECL_ROUND*.
63046         * modules/math (Makefile.am): Update.
63047
63048 2007-11-10  Bruno Haible  <bruno@clisp.org>
63049
63050         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63051         ptrdiff_t as m4/intl.m4.
63052
63053 2007-11-10  Jim Meyering  <meyering@redhat.com>
63054
63055         Avoid link failure for the argmatch test.
63056         * tests/test-argmatch.c (usage): Define function to avoid a link
63057         failure: argmatch_die requires a usage function.
63058
63059 2007-11-09  Bruno Haible  <bruno@clisp.org>
63060
63061         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63062         * doc/functions/vsnprintf.texi: Likewise.
63063         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63064         with a size argument < 2.
63065
63066 2007-11-09  Bruno Haible  <bruno@clisp.org>
63067
63068         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63069         buffer. Fixes an inefficiency introduced on 2007-11-03.
63070
63071 2007-11-09  Bruno Haible  <bruno@clisp.org>
63072
63073         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63074         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63075
63076 2007-11-08  Jim Meyering  <meyering@redhat.com>
63077
63078         Change cache variable name prefix "jm_" to "gl_" everywhere.
63079         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63080         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63081         * m4/uptime.m4: s/gl_/jm_/
63082
63083 2007-11-07  Bruno Haible  <bruno@clisp.org>
63084
63085         Update to GNU gettext 0.17.
63086         * m4/intl.m4: Update to GNU gettext 0.17.
63087         * m4/po.m4: Likewise.
63088         * modules/gettext (Files): Remove m4/ulonglong.m4.
63089         (configure.ac): Require gettext infrastructure from version 0.17.
63090
63091 2007-11-06  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63094         symbolic values are not defined in a public header.
63095         * lib/freadable.c (freadable) [QNX]: Likewise.
63096         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63097         * lib/freading.c (freading) [QNX]: Likewise.
63098         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63099         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63100         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63101         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63102         Reported by Alain Magloire.
63103
63104         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63105
63106 2007-11-05  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63109         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63110         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63111         Reported by Eric Blake.
63112
63113 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63114             Bruno Haible  <bruno@clisp.org>
63115
63116         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63117         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63118         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63119         (malloc): Undefine also before including <stdlib.h>.
63120         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63121         Needed on OSF/1 4.0.
63122
63123 2007-11-05  Jim Meyering  <meyering@redhat.com>
63124
63125         git-version-gen: sync from coreutils.
63126         * build-aux/git-version-gen: Add comments.
63127         Change the first '-' to '.' in the snapshot version string,
63128         e.g., 6.9-377-08144 -> 6.9.377-08144
63129         Remove first parameter.
63130         Don't declare a version "-dirty" merely because a time
63131         stamp has changed.
63132
63133 2007-11-04  Bruno Haible  <bruno@clisp.org>
63134
63135         * lib/lock.h: Protect all macro definitions containing an 'if'
63136         statement through a "do { ... } while (0)".
63137         * lib/tls.h: Likewise.
63138
63139 2007-11-04  Bruno Haible  <bruno@clisp.org>
63140
63141         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63142
63143 2007-11-04  Bruno Haible  <bruno@clisp.org>
63144
63145         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63146         * modules/fprintf-posix (Depends-on): Add nocrash.
63147         * modules/snprintf-posix (Depends-on): Likewise.
63148         * modules/sprintf-posix (Depends-on): Likewise.
63149         * modules/vasnprintf-posix (Depends-on): Likewise.
63150         * modules/vasprintf-posix (Depends-on): Likewise.
63151         * modules/vfprintf-posix (Depends-on): Likewise.
63152         * modules/vsnprintf-posix (Depends-on): Likewise.
63153         * modules/vsprintf-posix (Depends-on): Likewise.
63154         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63155         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63156         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63157         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63158         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63159         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63160         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63161
63162 2007-11-04  Bruno Haible  <bruno@clisp.org>
63163
63164         * modules/nocrash: New file.
63165         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63166         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63167
63168 2007-11-04  Bruno Haible  <bruno@clisp.org>
63169
63170         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63171         precision handling.
63172         * tests/test-vasprintf-posix.c (test_function): Likewise.
63173         * tests/test-snprintf-posix.h (test_function): Likewise.
63174         * tests/test-sprintf-posix.h (test_function): Likewise.
63175
63176         Fix *printf behaviour for large precisions on mingw and BeOS.
63177         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63178         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63180         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63182         gl_PRINTF_PRECISION and test its result. Invoke
63183         gl_PREREQ_VASNPRINTF_PRECISION.
63184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63191         * doc/functions/fprintf.texi: Update.
63192         * doc/functions/printf.texi: Update.
63193         * doc/functions/snprintf.texi: Update.
63194         * doc/functions/sprintf.texi: Update.
63195         * doc/functions/vfprintf.texi: Update.
63196         * doc/functions/vprintf.texi: Update.
63197         * doc/functions/vsnprintf.texi: Update.
63198         * doc/functions/vsprintf.texi: Update.
63199
63200 2007-11-04  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63203
63204 2007-11-04  Bruno Haible  <bruno@clisp.org>
63205
63206         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63207         Reported by Sylvain Beucler <beuc@gnu.org>.
63208
63209 2007-11-03  Bruno Haible  <bruno@clisp.org>
63210
63211         * tests/test-fprintf-posix2.sh: New file.
63212         * tests/test-fprintf-posix2.c: New file.
63213         * modules/fprintf-posix-tests (Files): Add them.
63214         (TESTS): Add test-fprintf-posix2.sh.
63215         (configure.ac): Check for getrlimit and setrlimit.
63216         (check_PROGRAMS): Add test-fprintf-posix2.
63217
63218         * tests/test-printf-posix2.sh: New file.
63219         * tests/test-printf-posix2.c: New file.
63220         * modules/printf-posix-tests (Files): Add them.
63221         (TESTS): Add test-printf-posix2.sh.
63222         (configure.ac): Check for getrlimit and setrlimit.
63223         (check_PROGRAMS): Add test-printf-posix2.
63224
63225         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63226         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63227         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63228         (decode_double): New function, copied from decode_long_double.
63229         (scale10_round_decimal_decoded): New function, extracted from
63230         scale10_round_decimal_long_double.
63231         (scale10_round_decimal_long_double): Use it.
63232         (scale10_round_decimal_double): New function.
63233         (floorlog10): New function.
63234         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63236         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63238         gl_PRINTF_ENOMEM and test its result. Invoke
63239         gl_PREREQ_VASNPRINTF_ENOMEM.
63240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63241         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63247         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63248         * modules/snprintf-posix (Depends-on): Likewise.
63249         * modules/sprintf-posix (Depends-on): Likewise.
63250         * modules/vasnprintf-posix (Depends-on): Likewise.
63251         * modules/vasprintf-posix (Depends-on): Likewise.
63252         * modules/vfprintf-posix (Depends-on): Likewise.
63253         * modules/vsnprintf-posix (Depends-on): Likewise.
63254         * modules/vsprintf-posix (Depends-on): Likewise.
63255         * doc/functions/fprintf.texi: Update.
63256         * doc/functions/printf.texi: Update.
63257         * doc/functions/snprintf.texi: Update.
63258         * doc/functions/sprintf.texi: Update.
63259         * doc/functions/vfprintf.texi: Update.
63260         * doc/functions/vprintf.texi: Update.
63261         * doc/functions/vsnprintf.texi: Update.
63262         * doc/functions/vsprintf.texi: Update.
63263
63264 2007-11-03  Bruno Haible  <bruno@clisp.org>
63265
63266         * modules/frexp-nolibm-tests: New file.
63267
63268         * modules/frexp-nolibm: New file.
63269         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63270
63271 2007-11-03  Bruno Haible  <bruno@clisp.org>
63272
63273         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63274         value is C99 compliant.
63275         Needed for OSF/1 5.1.
63276
63277 2007-11-03  Bruno Haible  <bruno@clisp.org>
63278
63279         Fix out-of-memory handling of vasnprintf.
63280         * lib/printf-parse.c: Include <errno.h>.
63281         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63282         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63283         is already set.
63284
63285 2007-11-02  Eric Blake  <ebb9@byu.net>
63286
63287         Fix tests on cygwin.
63288         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63289
63290 2007-11-01  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63293         warning.
63294         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63295         needed for POSIX compatibility.
63296
63297 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63298
63299         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63300         for compatibility with GNU.
63301
63302 2007-11-01  Bruno Haible  <bruno@clisp.org>
63303
63304         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63305         (putenv): Renamed from rpl_putenv. Change argument type from
63306         'const char *' to 'char *'.
63307         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63308         of defining putenv in config.h, just set REPLACE_PUTENV.
63309         * modules/putenv (Depends-on): Add stdlib.
63310         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63311         (Include): Use <stdlib.h>.
63312         * lib/stdlib.in.h (putenv): New declaration.
63313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63314         REPLACE_PUTENV.
63315         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63316         REPLACE_PUTENV.
63317         Needed for MacOS X 10.5.0.
63318         Reported by Peter O'Gorman <peter@pogma.com>.
63319
63320 2007-11-01  Jim Meyering  <meyering@redhat.com>
63321
63322         Treat an empty date string exactly like "0".
63323         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63324         if the remaining date string (to be parsed) is empty, use "0".
63325         Reported by Mischa Molhoek and discussed in this thread:
63326         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63327
63328 2007-10-31  Bruno Haible  <bruno@clisp.org>
63329
63330         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63331         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63332         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63333         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63334         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63335         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63336
63337 2007-10-31  Bruno Haible  <bruno@clisp.org>
63338
63339         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63340         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63341         (AC_TYPE_LONG_LONG_INT): Use it.
63342         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63343         it as well.
63344         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63345         to m4/longlong.m4.
63346         * modules/stdint (Files): Remove m4/ulonglong.m4.
63347         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63348         m4/ulonglong.m4.
63349         * modules/strtoumax (Files): Likewise.
63350
63351 2007-10-30  Bruno Haible  <bruno@clisp.org>
63352
63353         * modules/xvasprintf-posix: New file.
63354         Suggested by Eric Blake.
63355
63356 2007-10-30  Bruno Haible  <bruno@clisp.org>
63357
63358         * modules/xprintf-posix-tests: New file.
63359         * tests/test-xprintf-posix.sh: New file.
63360         * tests/test-xprintf-posix.c: New file.
63361         * tests/test-xfprintf-posix.c: New file.
63362
63363         * modules/xprintf-posix: New file.
63364
63365 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63366
63367         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63368         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63369         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63370
63371 2007-10-29  Bruno Haible  <bruno@clisp.org>
63372
63373         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63374         contain the special marker '_cv_'.
63375         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63376         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63377         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63378         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63379         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63380         Reported by Ralf Wildenhues.
63381
63382 2007-10-29  Bruno Haible  <bruno@clisp.org>
63383
63384         * gnulib-tool (func_import): When --lgpl is not specified, set
63385         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63386         GPLv3.
63387         Reported by Simon Josefsson.
63388
63389 2007-10-28  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63392         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63393         HAVE_DECL_ISFINITE.
63394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63395         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63396         HAVE_DECL_ISFINITE.
63397
63398 2007-10-28  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63401         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63402
63403 2007-10-28  Bruno Haible  <bruno@clisp.org>
63404
63405         Fix link errors with Sun C 5.0 on Solaris 10.
63406         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63407         function is declared but not present in the compiler's libm.
63408         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63409         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63410         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63411         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63412         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63413         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63414         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63416         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63417         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63418         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63419         HAVE_DECL_FLOORL.
63420
63421 2007-10-28  Bruno Haible  <bruno@clisp.org>
63422
63423         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63424         gl_FUNC_FLOORL. Cache the result.
63425         (gl_FUNC_FLOORL): Use it.
63426         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63427         gl_FUNC_CEILL. Cache the result.
63428         (gl_FUNC_CEILL): Use it.
63429
63430         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63431         gl_FUNC_FLOOR. Cache the result.
63432         (gl_FUNC_FLOOR): Use it.
63433         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63434         gl_FUNC_CEIL. Cache the result.
63435         (gl_FUNC_CEIL): Use it.
63436
63437         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63438         gl_FUNC_FLOORF. Cache the result.
63439         (gl_FUNC_FLOORF): Use it.
63440         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63441         gl_FUNC_CEILF. Cache the result.
63442         (gl_FUNC_CEILF): Use it.
63443
63444 2007-10-28  Bruno Haible  <bruno@clisp.org>
63445
63446         * gnulib-tool: Allow specifying the LGPL version number through
63447         --lgpl=2 or --lgpl=3.
63448         (func_usage): Document --lgpl with argument.
63449         Handle --lgpl=... arguments.
63450         (func_import): Recognize also gl_LGPL calls with an argument. When
63451         --lgpl=2 is used and the module's license is just LGPL, report an
63452         error. Set sed_transform_lib_file according to the lgpl variable. In
63453         the generated files, use --lgpl or gl_LGPL invocations with argument,
63454         if necessary.
63455         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63456         an LGPv2+ license.
63457         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63458         gl_LGPL macro.
63459
63460 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63461             Bruno Haible  <bruno@clisp.org>
63462
63463         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63464         (u16_uctomb_aux): Likewise.
63465         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63466         !HAVE_INLINE.
63467         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63468
63469 2007-10-28  Bruno Haible  <bruno@clisp.org>
63470
63471         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63472         Invoke AM_GETTEXT_OPTION if it exists.
63473         * modules/vasprintf: Likewise.
63474         * modules/verror: Likewise.
63475         * modules/xprintf: Likewise.
63476         * modules/xvasprintf: Likewise.
63477
63478 2007-10-27  Ben Pfaff  <blp@gnu.org>
63479
63480         * lib/math.in.h: Define isfinite macro and prototypes for
63481         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63482         implementations.
63483         * m4/math_h.m4: New substitutions for isfinite module.
63484         * lib/isfinite.c: New file.
63485         * m4/isfinite.m4: New file.
63486         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63487         * modules/isfinite: New file.
63488         * modules/isfinite-tests: New file.
63489         * tests/tests-isfinite.c: New file.
63490         * doc/functions/isfinite.texi: Mention isfinite module.
63491         * MODULES.html.sh: Mention new module.
63492
63493 2007-10-27  Ben Pfaff  <blp@gnu.org>
63494
63495         Ralf Wildenhues reported that Tru64 4.0D declares the round
63496         functions but does not have definitions.
63497         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63498         cannot be found in any library, set the output variable to
63499         "missing" instead of "".
63500         * m4/round.m4: Also use our substitute if we cannot find round in
63501         any library, even if it is declared.
63502         * m4/roundf.m4: Likewise for roundf.
63503         * m4/roundl.m4: Likewise for roundl.
63504         * lib/math.in.h: Undefine roundf, round, roundl before defining
63505         their replacements, to allow for hypothetical systems where these
63506         may be defined as macros but not available in libraries.
63507
63508 2007-10-27  Bruno Haible  <bruno@clisp.org>
63509
63510         * doc/gnulib.texi: Invoke @firstparagraphindent.
63511         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63512         changes in gnulib.
63513         (Source changes): New section.
63514
63515 2007-10-26  Bruno Haible  <bruno@clisp.org>
63516
63517         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63518         borrowed from autoconf.
63519
63520 2007-10-26  Bruno Haible  <bruno@clisp.org>
63521
63522         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63523         strerror returned the empty string. Needed on HP-UX 11.00.
63524
63525 2007-10-24  Micah Cowan  <micah@cowan.name>
63526
63527         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63528         * build-aux/bootstrap: Remove support for now-unnecessary option,
63529         --cvs-user, and envvars CVS_USER, CVS_RSH.
63530
63531 2007-10-24  Jim Meyering  <meyering@redhat.com>
63532
63533         Avoid diagnostics from sha1sum when there is no cached checksum.
63534         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63535         if the po.s1 file hasn't been created yet.
63536
63537         * build-aux/bootstrap: Sync from coreutils:
63538         2007-10-24  Jim Meyering  <meyering@redhat.com>
63539         Get gnulib from the git repository, not from an obsolete cvs one.
63540         * build-aux/bootstrap: Suggestion from Micah Cowan.
63541         2007-10-04  Jim Meyering  <jim@meyering.net>
63542         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63543         (update_po_files): Work also when there are no .po files in po/.
63544
63545 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63546
63547         * README: Append ".git" to git and cg examples.
63548         Problem reported by Benoit Sigoure.
63549
63550 2007-10-23  Micah Cowan  <micah@cowan.name>
63551
63552         * users.txt: Add wget.
63553
63554 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63555
63556         Fix linking of some unistdio tests on FreeBSD.
63557         * modules/unistdio/u16-vsnprintf-tests
63558         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63559         * modules/unistdio/u16-vsprintf-tests
63560         (test_u16_vsnprintf1_LDADD): Likewise.
63561         * modules/unistdio/u32-vsnprintf-tests
63562         (test_u32_vsnprintf1_LDADD): Likewise.
63563         * modules/unistdio/u32-vsprintf-tests
63564         (test_u32_vsprintf1_LDADD): Likewise.
63565         * modules/unistdio/u8-vsnprintf-tests
63566         (test_u8_vsnprintf1_LDADD): Likewise.
63567         * modules/unistdio/u8-vsprintf-tests
63568         (test_u8_vsprintf1_LDADD): Likewise.
63569         * modules/unistdio/ulc-vsnprintf-tests
63570         (test_ulc_vsnprintf1_LDADD): Likewise.
63571         * modules/unistdio/ulc-vsprintf-tests
63572         (test_ulc_vsprintf1_LDADD): Likewise.
63573
63574         Fix linking of some uniconv tests on FreeBSD.
63575         * modules/uniconv/u16-conv-from-enc-tests
63576         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63577         * modules/uniconv/u16-conv-to-enc-tests
63578         (test_u16_conv_to_enc_LDADD): Likewise.
63579         * modules/uniconv/u16-strconv-from-enc-tests
63580         (test_u16_strconv_from_enc_LDADD): Likewise.
63581         * modules/uniconv/u16-strconv-to-enc-tests
63582         (test_u16_strconv_to_enc_LDADD): Likewise.
63583         * modules/uniconv/u32-conv-from-enc-tests
63584         (test_u32_conv_from_enc_LDADD): Likewise.
63585         * modules/uniconv/u32-conv-to-enc-tests
63586         (test_u32_conv_to_enc_LDADD): Likewise.
63587         * modules/uniconv/u32-strconv-from-enc-tests
63588         (test_u32_strconv_from_enc_LDADD): Likewise.
63589         * modules/uniconv/u32-strconv-to-enc-tests
63590         (test_u32_strconv_to_enc_LDADD): Likewise.
63591         * modules/uniconv/u8-conv-from-enc-tests
63592         (test_u8_conv_from_enc_LDADD): Likewise.
63593         * modules/uniconv/u8-conv-to-enc-tests
63594         (test_u8_conv_to_enc_LDADD): Likewise.
63595         * modules/uniconv/u8-strconv-from-enc-tests
63596         (test_u8_strconv_from_enc_LDADD): Likewise.
63597         * modules/uniconv/u8-strconv-to-enc-tests
63598         (test_u8_strconv_to_enc_LDADD): Likewise.
63599
63600 2007-10-22  Bruno Haible  <bruno@clisp.org>
63601
63602         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63603         size.
63604
63605 2007-10-22  Eric Blake  <ebb9@byu.net>
63606
63607         Tweak x*printf documentation.
63608         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63609         variable name and comments.
63610         Suggested by Bruno Haible.
63611
63612 2007-10-22  Bruno Haible  <bruno@clisp.org>
63613
63614         * lib/acl.c (copy_acl): Fix file name in comment.
63615
63616 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63617
63618         Fix Tru64 problem with stdbool.h.
63619         * lib/stdbool.in.h (false, true):
63620         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63621         Don't declare as an enum in this situation; it runs afoul of Tru64.
63622         Problem reported by Steven M. Schweda in
63623         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63624
63625 2007-10-22  Eric Blake  <ebb9@byu.net>
63626
63627         Also wrap vf?printf.
63628         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63629         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63630         (xvprintf, xvfprintf): New functions.
63631
63632 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63633
63634         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63635         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63636
63637         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63638         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63639
63640 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63643         by Bruno Haible.
63644
63645 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63646
63647         * lib/getloadavg.c
63648         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63649         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63650
63651         * tests/test-i-ring.c: Work for C89.
63652
63653 2007-10-22  Bruno Haible  <bruno@clisp.org>
63654
63655         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63656         -1u, in preprocessor expression, so that we don't test for the bug
63657         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63659
63660 2007-10-22  Eric Blake  <ebb9@byu.net>
63661
63662         * tests/test-yesno.sh: Silence stderr during test.
63663
63664 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63665
63666         * modules/crypto/gc-camellia: New file.
63667
63668         * m4/gc-camellia.m4: New file.
63669
63670         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63671
63672         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63673
63674 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63675
63676         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63677         --help to stdout.  Reported by sms@antinode.org (Steven
63678         M. Schweda).
63679
63680 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63681
63682         * users.txt: Fix link to libksba.
63683
63684 2007-10-21  Ben Pfaff  <blp@gnu.org>
63685
63686         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63687         round.c roundf implementation that depends on floorf and ceilf to
63688         be tested unconditionally.
63689
63690 2007-10-21  Ben Pfaff  <blp@gnu.org>
63691
63692         * m4/check-libm-func.m4: Removed.
63693         * m4/check-math-lib.m4: New file.
63694         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63695         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63696         definition and lack of AC_LIBOBJ([roundf]).
63697         * m4/roundl.m4: Ditto, and similarly for roundl.
63698         * modules/round: Reference new m4 file.
63699         * modules/roundf: Ditto.
63700         * modules/roundl: Ditto.
63701         * tests/test-round2.c (main): Use ROUND instead of round.
63702         Bug report from Bruno Haible.
63703
63704 2007-10-21  Bruno Haible  <bruno@clisp.org>
63705
63706         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63707         context.
63708
63709 2007-10-21  Bruno Haible  <bruno@clisp.org>
63710
63711         * tests/test-wcwidth.c (main): Allow negative result for some control
63712         characters.
63713
63714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63715         Needed on OSF/1 5.1.
63716
63717 2007-10-21  Bruno Haible  <bruno@clisp.org>
63718
63719         * tests/test-floorf1.c: Include isnanf.h.
63720         (main): Use isnanf() instead of isnan().
63721         * tests/test-ceilf1.c: Include isnanf.h.
63722         (main): Use isnanf() instead of isnan().
63723         * tests/test-truncf1.c: Include isnanf.h.
63724         (main): Use isnanf() instead of isnan().
63725         * tests/test-roundf1.c: Include isnanf.h.
63726         (main): Use isnanf() instead of isnan().
63727
63728 2007-10-21  Eric Blake  <ebb9@byu.net>
63729
63730         * users.txt: Update URL for m4.
63731
63732 2007-10-21  Bruno Haible  <bruno@clisp.org>
63733
63734         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63735
63736 2007-10-21  Bruno Haible  <bruno@clisp.org>
63737
63738         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63739         Git's management files if the CVS files are not present.
63740
63741 2007-10-20  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63744         gcc-3.4.x.
63745
63746 2007-10-20  Ben Pfaff  <blp@gnu.org>
63747
63748         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63749         implementations.
63750         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63751         * lib/round.c: New file.
63752         * lib/roundf.c: New file.
63753         * lib/roundl.c: New file.
63754         * m4/round.m4: New file.
63755         * m4/roundf.m4: New file.
63756         * m4/roundl.m4: New file.
63757         * m4/check-libm-func-m4: New file.
63758         * modules/math: Replace round, roundf, roundl related @VARS@ in
63759         math.in.h.
63760         * modules/round: New file.
63761         * modules/round-tests: New file.
63762         * modules/roundf: New file.
63763         * modules/roundf-tests: New file.
63764         * modules/roundl: New file.
63765         * modules/roundl-tests: New file.
63766         * tests/test-round1.c: New file.
63767         * tests/test-round2.c: New file.
63768         * tests/test-roundf1.c: New file.
63769         * tests/test-roundf2.c: New file.
63770         * tests/test-roundl.c: New file.
63771         * doc/functions/round.texi: Mention round module.
63772         * doc/functions/roundf.texi: Mention roundf module.
63773         * doc/functions/roundl.texi: Mention roundl module.
63774         * MODULES.html.sh: Mention new modules.
63775         Thanks to Bruno Haible for suggestions.
63776
63777 2007-10-20  Jim Meyering  <meyering@redhat.com>
63778
63779         * lib/xprintf.c: Include <config.h> unconditionally.
63780
63781         Change xprintf's license to GPL.
63782         * modules/xprintf (License): s/LGPL/GPL/, since this module
63783         depends on modules (exit and exitfail) which are GPL.
63784         Suggestion from Bruno Haible.
63785
63786         xprintf fixes.
63787         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63788         Use a clearer diagnostic.
63789         Patch from Bruno Haible.
63790
63791 2007-10-20  Bruno Haible  <bruno@clisp.org>
63792
63793         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63794         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63795         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63796
63797 2007-10-20  Bruno Haible  <bruno@clisp.org>
63798
63799         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63800         precision in the comparison result > x - 1 or similar.
63801         * tests/test-ceilf2.c (correct_result_p): Likewise.
63802         * tests/test-truncf2.c (correct_result_p): Likewise.
63803         * tests/test-trunc2.c (correct_result_p): Likewise.
63804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63805
63806 2007-10-20  Bruno Haible  <bruno@clisp.org>
63807
63808         * modules/ceil: New file.
63809         * m4/ceil.m4: New file.
63810         * doc/functions/ceil.texi: Mention the 'ceil' module.
63811
63812 2007-10-20  Bruno Haible  <bruno@clisp.org>
63813
63814         * modules/floor: New file.
63815         * m4/floor.m4: New file.
63816         * doc/functions/floor.texi: Mention the 'floor' module.
63817
63818 2007-10-20  Bruno Haible  <bruno@clisp.org>
63819
63820         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63821         of %a.
63822         * modules/floorf-tests (Depends-on): Likewise.
63823         * modules/truncf-tests (Depends-on): Likewise.
63824         * modules/trunc-tests (Depends-on): Likewise.
63825         Reported by Ben Pfaff.
63826
63827 2007-10-19  Jim Meyering  <meyering@redhat.com>
63828
63829         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63830         Don't bother testing specific errno values.  Just test ferror.
63831
63832         New module: xprintf
63833         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63834
63835 2007-10-19  Bruno Haible  <bruno@clisp.org>
63836
63837         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63838         syntax.
63839         * modules/javaexec (Makefile.am): Likewise.
63840         * modules/relocatable-prog (Makefile.am): Likewise.
63841         Suggested by Jim Meyering.
63842
63843 2007-10-18  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63846         Reported by Jim Meyering.
63847
63848 2007-10-18  Eric Blake  <ebb9@byu.net>
63849
63850         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63851
63852 2007-10-18  Bruno Haible  <bruno@clisp.org>
63853
63854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63855         the format string into writable memory. Needed in Fortify conditions.
63856
63857 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63858             Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63861         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63862         * modules/trim (Depends-on): Add mbchar.
63863         (configure.ac): Add gl_FUNC_MBRTOWC.
63864         (Makefile.am): Augment lib_SOURCES.
63865
63866 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         Modify glob.c to use fstatat and dirfd, to simplify it.
63869         Suggested by Eric Blake.
63870         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63871         Don't include <stdbool.h>; not used.
63872         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63873         (link_exists_p): Simplify implementation, since we can now assume
63874         dirfd and fstatat.
63875         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63876
63877 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63878
63879         * gnulib-tool (func_get_dependencies): Fix sed script to
63880         match only tests.
63881
63882 2007-10-17  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63885         allow locale names without encoding suffix.
63886         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63887         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63888
63889 2007-10-16  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63892         * lib/getgroups.c (getgroups): Likewise.
63893         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63894
63895 2007-10-16  Bruno Haible  <bruno@clisp.org>
63896
63897         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63898         * modules/malloc-posix (License): Likewise.
63899         * modules/realloc-posix (License): Likewise.
63900         * modules/calloc-posix (License): Likewise.
63901         * modules/intprops (License): Change from GPL to LGPL, with
63902         Paul Eggert's approval.
63903
63904 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63905
63906         Merge glibc changes into lib/glob.c.
63907
63908         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63909         2007-10-15 04:59:03 UTC.  Here are the changes:
63910
63911         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63912
63913         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63914
63915         * lib/glob.c: Add some branch prediction throughout.
63916
63917         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63918
63919         [BZ #5103]
63920         * lib/glob.c (glob): Recognize patterns starting \/.
63921
63922         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63923
63924         [BZ #3996]
63925         * lib/glob.c (attribute_hidden): Define if not defined.
63926         (glob): Unescape dirname, filename or username when needed and not
63927         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63928         is NULL.  Handle unescaped [ in pattern without closing ].
63929         Don't pass GLOB_CHECK down to recursive glob for directories.
63930         (__glob_pattern_type): New function.
63931         (__glob_pattern_p): Implement using __glob_pattern_type.
63932         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63933         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63934         Remove unreachable code.
63935
63936         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63937
63938         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63939         explain why there are no leaks.
63940
63941         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63942
63943         [BZ #3253]
63944         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63945         time, rather allocate increasingly bigger arrays of pointers, if
63946         possible with alloca, if too large with malloc.
63947
63948 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63951         Problem reported by H.Merijn Brand in
63952         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63954         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63955
63956 2007-10-15  Bruno Haible  <bruno@clisp.org>
63957
63958         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63959         with explicit rpl_ prefix.
63960         * lib/fopen.c (fopen): Likewise.
63961         * lib/freopen.c (freopen): Likewise.
63962         * lib/iconv.c (iconv): Likewise.
63963         * lib/iconv_close.c (iconv_close): Likewise.
63964
63965 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63966
63967         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63968
63969 2007-10-15  Bruno Haible  <bruno@clisp.org>
63970
63971         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63972         <stddef.h> instead of <stdlib.h> since we only need NULL.
63973         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63974
63975 2007-10-15  Bruno Haible  <bruno@clisp.org>
63976
63977         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63978         Replace paragraph talking about LIBOBJS.
63979         Reported by Colin Watson <cjwatson@debian.org>.
63980
63981 2007-10-15  Bruno Haible  <bruno@clisp.org>
63982
63983         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63984         <stdlib.h> before using NULL.
63985
63986 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63987
63988         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63989         Reported by Albert Chin <china@thewrittenword.com>.
63990
63991 2007-10-14  Bruno Haible  <bruno@clisp.org>
63992
63993         * modules/iconv_open-utf-tests: New file.
63994         * tests/test-iconv-utf.c: New file.
63995
63996         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63997         * modules/iconv_open-utf: New file.
63998         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63999         (iconv, iconv_close): New declarations.
64000         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64001         be defined.
64002         (iconv_open): Add special handling of conversion between UTF-8 and
64003         UTF-{16,32}{BE,LE}.
64004         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64005         * lib/iconv_close.c: New file.
64006         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64007         gl_FUNC_ICONV_OPEN.
64008         (gl_FUNC_ICONV_OPEN): Use it.
64009         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64010         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64011         and REPLACE_ICONV_UTF.
64012         * modules/iconv_open (Depends-on): Add c-strcase.
64013         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64014         ICONV_CONST.
64015         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64016
64017 2007-10-13  Albert Chin  <china@thewrittenword.com>
64018             Bruno Haible  <bruno@clisp.org>
64019
64020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64021         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64022
64023 2007-10-13  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64026         defined, use the ISO C99 inline semantics.
64027         * lib/argp.h (ARGP_EI): Likewise.
64028
64029 2007-10-13  Bruno Haible  <bruno@clisp.org>
64030
64031         Handle 'inline' change in gcc 4.3.0.
64032         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64033         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64034         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64035         argp_fmtstream_point): Disable 'extern' declaration if the function
64036         definition is going to be provided inline.
64037         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64038         semantics, not the ISO C99 inline semantics.
64039         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64040         'extern' declaration if the function definition is going to be provided
64041         inline.
64042         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64043         the GNU C inline semantics, not the ISO C99 inline semantics. With
64044         GCC 4.2, avoid a warning.
64045
64046 2007-10-13  Bruno Haible  <bruno@clisp.org>
64047
64048         * lib/freading.h (freading): Enable the use of __freading for
64049         glibc >= 2.7.
64050         * lib/freading.c (freading): Likewise.
64051
64052 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64055         "warning: C99 inline functions are not supported; using GNU89".
64056
64057 2007-10-12  Bruno Haible  <bruno@clisp.org>
64058
64059         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64060         of 2.
64061         * tests/test-ceilf2.c: New file.
64062         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64063
64064         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64065         * modules/ceilf-tests: Update.
64066
64067 2007-10-12  Bruno Haible  <bruno@clisp.org>
64068
64069         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64070         of 2.
64071         * tests/test-floorf2.c: New file.
64072         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64073
64074         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64075         * modules/floorf-tests: Update.
64076
64077 2007-10-12  Bruno Haible  <bruno@clisp.org>
64078
64079         * tests/test-trunc2.c: New file.
64080         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64081
64082         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64083         * modules/trunc-tests: Update.
64084
64085 2007-10-12  Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64088         of 2.
64089         * tests/test-truncf2.c: New file.
64090         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64091
64092         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64093         * modules/truncf-tests: Update.
64094
64095 2007-10-11  Eric Blake  <ebb9@byu.net>
64096
64097         Don't claim strerror is broken on Interix.
64098         * doc/functions/strerror.texi (strerror): Known broken systems are
64099         now Solaris 8, and not Interix.
64100         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64101         Interix on cross-compile.
64102         Reported by Martin Koeppe in
64103         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64104
64105 2007-10-11  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/i-ring-tests: New file.
64108         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64109         instead of assert.
64110
64111 2007-10-11  Bruno Haible  <bruno@clisp.org>
64112
64113         * modules/filenamecat-tests: New file.
64114         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64115         * lib/filenamecat.c: Remove test code.
64116
64117 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64118
64119         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64120
64121         * lib/strerror.c: Include <string.h> always, to test interface,
64122         and to remove the need for the dummy.
64123         Include intprops.h to compute width instead of doing it ourselves
64124         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64125         (strerror): Define it to return NULL if there's no system strerror.
64126         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64127         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64128         ancient pre-strerror Unix systems well any more.  Saying "unknown
64129         system error" is enough.
64130         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64131         simpler strerror.c implementation.
64132         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64133         Simplify the tests to reflect the simpler strerror implementation.
64134         * modules/strerror (Depends-on): Add intprops.
64135
64136 2007-10-09  Eric Blake  <ebb9@byu.net>
64137
64138         Silence test-fpending.
64139         * modules/fpending-tests (Files): Add wrapper script.
64140         * tests/test-fpending.sh: New file.
64141
64142 2007-10-09  Bruno Haible  <bruno@clisp.org>
64143
64144         * MODULES.html.sh (func_module): Don't create a hyperlink for
64145         function names like 'printf_frexp'.
64146         (Misc): Add crc, memxor.
64147         (Characteristics of floating types): New section.
64148         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64149         isnanf-nolibm, signbit, trunc, truncf, truncl.
64150         (Enhancements for ISO C 99 functions): New subsection Input/output.
64151         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64152         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64153         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64154         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64155         (Enhancements for POSIX:2001 functions): Add chdir-long.
64156         (File system functions): Add areadlink, chdir-safer, read-file.
64157         Remove cycle-check.
64158         (File system as inode set): New section.
64159         (Date and time): Add gethrxtime.
64160         (Multithreading): Add openmp.
64161         (Internationalization functions): Add localename.
64162         (Unicode string functions): Add unistr/u*-mbsnlen.
64163         (Support for maintaining and releasing projects): Add git-version-gen.
64164         (Lone files): Remove directories.
64165
64166 2007-10-08  Ben Pfaff  <blp@gnu.org>
64167
64168         * lib/xmalloca.h: Fix typo in comment.
64169
64170 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64173         when avoiding problems with integer overflow.  Use a portable test
64174         instead.
64175
64176 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64177
64178         * modules/dummy (License): Change to LGPLv2+.
64179         * modules/float (License): Likewise
64180         * modules/realloc (License): Likewise
64181         * modules/stdlib (License): Likewise
64182
64183 2007-10-07  Bruno Haible  <bruno@clisp.org>
64184
64185         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64186         * floor.c (TWO_MANT_DIG): Likewise.
64187         * ceil.c (TWO_MANT_DIG): Likewise.
64188         Reported by Ben Pfaff.
64189
64190 2007-10-07  Bruno Haible  <bruno@clisp.org>
64191
64192         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64193         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64194         * lib/frexp.c (FUNC): Likewise.
64195         * lib/printf-frexp.h (printf_frexp): Likewise.
64196         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64197         * lib/printf-frexp.c (FUNC): Likewise.
64198         Suggested by Jim Meyering.
64199
64200 2007-10-07  Jim Meyering  <meyering@redhat.com>
64201
64202         Make xnanosleep's integer overflow test more robust.
64203         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64204         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64205
64206 2007-10-07  Bruno Haible  <bruno@clisp.org>
64207
64208         * NEWS: Mention the license change.
64209
64210         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64211         abbreviations in the modules files.
64212
64213         Change copyright notice from GPLv2+ to GPLv3+.
64214         * README: Change copyright notice.
64215         * MODULES.html.sh: Likewise.
64216         * build-aux/bootstrap.conf: Likewise.
64217         * build-aux/config.libpath: Likewise.
64218         * build-aux/csharpcomp.sh.in: Likewise.
64219         * build-aux/csharpexec.sh.in: Likewise.
64220         * build-aux/install-reloc: Likewise.
64221         * build-aux/javacomp.sh.in: Likewise.
64222         * build-aux/javaexec.sh.in: Likewise.
64223         * build-aux/ldd.sh.in: Likewise.
64224         * build-aux/reloc-ldflags: Likewise.
64225         * build-aux/relocatable.sh.in: Likewise.
64226         * build-aux/x-to-1.in: Likewise.
64227         * check-module: Likewise.
64228         * config/srclistvars.sh: Likewise.
64229         * gnulib-tool: Likewise.
64230         * lib/acl-internal.h: Likewise.
64231         * lib/acl.c: Likewise.
64232         * lib/acl.h: Likewise.
64233         * lib/acl_entries.c: Likewise.
64234         * lib/areadlink-with-size.c: Likewise.
64235         * lib/areadlink.c: Likewise.
64236         * lib/areadlink.h: Likewise.
64237         * lib/argmatch.c: Likewise.
64238         * lib/argmatch.h: Likewise.
64239         * lib/argp-ba.c: Likewise.
64240         * lib/argp-eexst.c: Likewise.
64241         * lib/argp-fmtstream.c: Likewise.
64242         * lib/argp-fmtstream.h: Likewise.
64243         * lib/argp-fs-xinl.c: Likewise.
64244         * lib/argp-help.c: Likewise.
64245         * lib/argp-namefrob.h: Likewise.
64246         * lib/argp-parse.c: Likewise.
64247         * lib/argp-pin.c: Likewise.
64248         * lib/argp-pv.c: Likewise.
64249         * lib/argp-pvh.c: Likewise.
64250         * lib/argp-xinl.c: Likewise.
64251         * lib/argp.h: Likewise.
64252         * lib/at-func.c: Likewise.
64253         * lib/atanl.c: Likewise.
64254         * lib/backupfile.c: Likewise.
64255         * lib/backupfile.h: Likewise.
64256         * lib/basename.c: Likewise.
64257         * lib/binary-io.h: Likewise.
64258         * lib/byteswap.in.h: Likewise.
64259         * lib/c-stack.c: Likewise.
64260         * lib/c-stack.h: Likewise.
64261         * lib/c-strcasestr.c: Likewise.
64262         * lib/c-strcasestr.h: Likewise.
64263         * lib/c-strstr.c: Likewise.
64264         * lib/c-strstr.h: Likewise.
64265         * lib/c-strtod.c: Likewise.
64266         * lib/calloc.c: Likewise.
64267         * lib/canon-host.c: Likewise.
64268         * lib/canon-host.h: Likewise.
64269         * lib/canonicalize-lgpl.c: Likewise.
64270         * lib/canonicalize.c: Likewise.
64271         * lib/canonicalize.h: Likewise.
64272         * lib/ceil.c: Likewise.
64273         * lib/ceilf.c: Likewise.
64274         * lib/ceill.c: Likewise.
64275         * lib/chdir-long.c: Likewise.
64276         * lib/chdir-long.h: Likewise.
64277         * lib/chdir-safer.c: Likewise.
64278         * lib/chdir-safer.h: Likewise.
64279         * lib/chown.c: Likewise.
64280         * lib/classpath.c: Likewise.
64281         * lib/classpath.h: Likewise.
64282         * lib/clean-temp.c: Likewise.
64283         * lib/clean-temp.h: Likewise.
64284         * lib/cloexec.c: Likewise.
64285         * lib/close-stream.c: Likewise.
64286         * lib/closein.c: Likewise.
64287         * lib/closein.h: Likewise.
64288         * lib/closeout.c: Likewise.
64289         * lib/closeout.h: Likewise.
64290         * lib/concat-filename.c: Likewise.
64291         * lib/copy-file.c: Likewise.
64292         * lib/copy-file.h: Likewise.
64293         * lib/count-one-bits.h: Likewise.
64294         * lib/crc.c: Likewise.
64295         * lib/crc.h: Likewise.
64296         * lib/creat-safer.c: Likewise.
64297         * lib/csharpcomp.c: Likewise.
64298         * lib/csharpcomp.h: Likewise.
64299         * lib/csharpexec.c: Likewise.
64300         * lib/csharpexec.h: Likewise.
64301         * lib/cycle-check.c: Likewise.
64302         * lib/cycle-check.h: Likewise.
64303         * lib/diacrit.c: Likewise.
64304         * lib/diacrit.h: Likewise.
64305         * lib/diffseq.h: Likewise.
64306         * lib/dirchownmod.c: Likewise.
64307         * lib/dirent.in.h: Likewise.
64308         * lib/dirfd.c: Likewise.
64309         * lib/dirfd.h: Likewise.
64310         * lib/dirname.c: Likewise.
64311         * lib/dirname.h: Likewise.
64312         * lib/dummy.c: Likewise.
64313         * lib/dup-safer.c: Likewise.
64314         * lib/dup2.c: Likewise.
64315         * lib/eealloc.h: Likewise.
64316         * lib/error.c: Likewise.
64317         * lib/error.h: Likewise.
64318         * lib/euidaccess.c: Likewise.
64319         * lib/exclude.c: Likewise.
64320         * lib/exclude.h: Likewise.
64321         * lib/execute.c: Likewise.
64322         * lib/execute.h: Likewise.
64323         * lib/exitfail.c: Likewise.
64324         * lib/exitfail.h: Likewise.
64325         * lib/expl.c: Likewise.
64326         * lib/fatal-signal.c: Likewise.
64327         * lib/fatal-signal.h: Likewise.
64328         * lib/fbufmode.c: Likewise.
64329         * lib/fbufmode.h: Likewise.
64330         * lib/fchdir.c: Likewise.
64331         * lib/fchmodat.c: Likewise.
64332         * lib/fchownat.c: Likewise.
64333         * lib/fcntl--.h: Likewise.
64334         * lib/fcntl-safer.h: Likewise.
64335         * lib/fcntl.in.h: Likewise.
64336         * lib/fd-safer.c: Likewise.
64337         * lib/fflush.c: Likewise.
64338         * lib/file-has-acl.c: Likewise.
64339         * lib/file-set.c: Likewise.
64340         * lib/file-type.c: Likewise.
64341         * lib/file-type.h: Likewise.
64342         * lib/fileblocks.c: Likewise.
64343         * lib/filemode.c: Likewise.
64344         * lib/filemode.h: Likewise.
64345         * lib/filename.h: Likewise.
64346         * lib/filenamecat.c: Likewise.
64347         * lib/filenamecat.h: Likewise.
64348         * lib/findprog.c: Likewise.
64349         * lib/findprog.h: Likewise.
64350         * lib/float.in.h: Likewise.
64351         * lib/floor.c: Likewise.
64352         * lib/floorf.c: Likewise.
64353         * lib/floorl.c: Likewise.
64354         * lib/fopen-safer.c: Likewise.
64355         * lib/fopen.c: Likewise.
64356         * lib/fpending.c: Likewise.
64357         * lib/fpending.h: Likewise.
64358         * lib/fprintf.c: Likewise.
64359         * lib/fprintftime.h: Likewise.
64360         * lib/fpucw.h: Likewise.
64361         * lib/fpurge.c: Likewise.
64362         * lib/fpurge.h: Likewise.
64363         * lib/freadable.c: Likewise.
64364         * lib/freadable.h: Likewise.
64365         * lib/freadahead.c: Likewise.
64366         * lib/freadahead.h: Likewise.
64367         * lib/freading.c: Likewise.
64368         * lib/freading.h: Likewise.
64369         * lib/free.c: Likewise.
64370         * lib/freopen.c: Likewise.
64371         * lib/frexp.c: Likewise.
64372         * lib/frexpl.c: Likewise.
64373         * lib/fseek.c: Likewise.
64374         * lib/fseterr.c: Likewise.
64375         * lib/fseterr.h: Likewise.
64376         * lib/fstatat.c: Likewise.
64377         * lib/fstrcmp.c: Likewise.
64378         * lib/fstrcmp.h: Likewise.
64379         * lib/fsusage.c: Likewise.
64380         * lib/fsusage.h: Likewise.
64381         * lib/ftell.c: Likewise.
64382         * lib/ftello.c: Likewise.
64383         * lib/fts-cycle.c: Likewise.
64384         * lib/fts.c: Likewise.
64385         * lib/fts_.h: Likewise.
64386         * lib/full-read.c: Likewise.
64387         * lib/full-read.h: Likewise.
64388         * lib/full-write.c: Likewise.
64389         * lib/full-write.h: Likewise.
64390         * lib/fwritable.c: Likewise.
64391         * lib/fwritable.h: Likewise.
64392         * lib/fwriteerror.c: Likewise.
64393         * lib/fwriteerror.h: Likewise.
64394         * lib/fwriting.c: Likewise.
64395         * lib/fwriting.h: Likewise.
64396         * lib/gcd.c: Likewise.
64397         * lib/gcd.h: Likewise.
64398         * lib/getcwd.c: Likewise.
64399         * lib/getdate.h: Likewise.
64400         * lib/getdate.y: Likewise.
64401         * lib/getdomainname.c: Likewise.
64402         * lib/getdomainname.h: Likewise.
64403         * lib/getgroups.c: Likewise.
64404         * lib/gethostname.c: Likewise.
64405         * lib/gethrxtime.c: Likewise.
64406         * lib/gethrxtime.h: Likewise.
64407         * lib/getloadavg.c: Likewise.
64408         * lib/getndelim2.c: Likewise.
64409         * lib/getndelim2.h: Likewise.
64410         * lib/getnline.c: Likewise.
64411         * lib/getnline.h: Likewise.
64412         * lib/getopt.c: Likewise.
64413         * lib/getopt.in.h: Likewise.
64414         * lib/getopt1.c: Likewise.
64415         * lib/getopt_int.h: Likewise.
64416         * lib/getpagesize.h: Likewise.
64417         * lib/getsubopt.c: Likewise.
64418         * lib/gettime.c: Likewise.
64419         * lib/getugroups.c: Likewise.
64420         * lib/getugroups.h: Likewise.
64421         * lib/getusershell.c: Likewise.
64422         * lib/gl_anyavltree_list1.h: Likewise.
64423         * lib/gl_anyavltree_list2.h: Likewise.
64424         * lib/gl_anyhash_list1.h: Likewise.
64425         * lib/gl_anyhash_list2.h: Likewise.
64426         * lib/gl_anylinked_list1.h: Likewise.
64427         * lib/gl_anylinked_list2.h: Likewise.
64428         * lib/gl_anyrbtree_list1.h: Likewise.
64429         * lib/gl_anyrbtree_list2.h: Likewise.
64430         * lib/gl_anytree_list1.h: Likewise.
64431         * lib/gl_anytree_list2.h: Likewise.
64432         * lib/gl_anytree_oset.h: Likewise.
64433         * lib/gl_anytreehash_list1.h: Likewise.
64434         * lib/gl_anytreehash_list2.h: Likewise.
64435         * lib/gl_array_list.c: Likewise.
64436         * lib/gl_array_list.h: Likewise.
64437         * lib/gl_array_oset.c: Likewise.
64438         * lib/gl_array_oset.h: Likewise.
64439         * lib/gl_avltree_list.c: Likewise.
64440         * lib/gl_avltree_list.h: Likewise.
64441         * lib/gl_avltree_oset.c: Likewise.
64442         * lib/gl_avltree_oset.h: Likewise.
64443         * lib/gl_avltreehash_list.c: Likewise.
64444         * lib/gl_avltreehash_list.h: Likewise.
64445         * lib/gl_carray_list.c: Likewise.
64446         * lib/gl_carray_list.h: Likewise.
64447         * lib/gl_linked_list.c: Likewise.
64448         * lib/gl_linked_list.h: Likewise.
64449         * lib/gl_linkedhash_list.c: Likewise.
64450         * lib/gl_linkedhash_list.h: Likewise.
64451         * lib/gl_list.c: Likewise.
64452         * lib/gl_list.h: Likewise.
64453         * lib/gl_oset.c: Likewise.
64454         * lib/gl_oset.h: Likewise.
64455         * lib/gl_rbtree_list.c: Likewise.
64456         * lib/gl_rbtree_list.h: Likewise.
64457         * lib/gl_rbtree_oset.c: Likewise.
64458         * lib/gl_rbtree_oset.h: Likewise.
64459         * lib/gl_rbtreehash_list.c: Likewise.
64460         * lib/gl_rbtreehash_list.h: Likewise.
64461         * lib/gl_sublist.c: Likewise.
64462         * lib/gl_sublist.h: Likewise.
64463         * lib/group-member.c: Likewise.
64464         * lib/group-member.h: Likewise.
64465         * lib/hard-locale.c: Likewise.
64466         * lib/hard-locale.h: Likewise.
64467         * lib/hash-pjw.c: Likewise.
64468         * lib/hash-pjw.h: Likewise.
64469         * lib/hash-triple.c: Likewise.
64470         * lib/hash.c: Likewise.
64471         * lib/hash.h: Likewise.
64472         * lib/human.c: Likewise.
64473         * lib/human.h: Likewise.
64474         * lib/i-ring.c: Likewise.
64475         * lib/i-ring.h: Likewise.
64476         * lib/idcache.c: Likewise.
64477         * lib/imaxabs.c: Likewise.
64478         * lib/imaxdiv.c: Likewise.
64479         * lib/inet_pton.c: Likewise.
64480         * lib/inet_pton.h: Likewise.
64481         * lib/intprops.h: Likewise.
64482         * lib/inttostr.c: Likewise.
64483         * lib/inttostr.h: Likewise.
64484         * lib/inttypes.in.h: Likewise.
64485         * lib/isapipe.c: Likewise.
64486         * lib/isdir.c: Likewise.
64487         * lib/isnan.c: Likewise.
64488         * lib/isnan.h: Likewise.
64489         * lib/isnanf.c: Likewise.
64490         * lib/isnanf.h: Likewise.
64491         * lib/isnanl-nolibm.h: Likewise.
64492         * lib/isnanl.c: Likewise.
64493         * lib/isnanl.h: Likewise.
64494         * lib/javacomp.c: Likewise.
64495         * lib/javacomp.h: Likewise.
64496         * lib/javaexec.c: Likewise.
64497         * lib/javaexec.h: Likewise.
64498         * lib/javaversion.c: Likewise.
64499         * lib/javaversion.h: Likewise.
64500         * lib/javaversion.java: Likewise.
64501         * lib/lbrkprop.h: Likewise.
64502         * lib/lchmod.h: Likewise.
64503         * lib/lchown.c: Likewise.
64504         * lib/ldexpl.c: Likewise.
64505         * lib/linebreak.c: Likewise.
64506         * lib/linebreak.h: Likewise.
64507         * lib/linebuffer.c: Likewise.
64508         * lib/linebuffer.h: Likewise.
64509         * lib/locale.in.h: Likewise.
64510         * lib/logl.c: Likewise.
64511         * lib/long-options.c: Likewise.
64512         * lib/long-options.h: Likewise.
64513         * lib/lstat.c: Likewise.
64514         * lib/lstat.h: Likewise.
64515         * lib/math.in.h: Likewise.
64516         * lib/mbchar.c: Likewise.
64517         * lib/mbchar.h: Likewise.
64518         * lib/mbfile.h: Likewise.
64519         * lib/mbiter.h: Likewise.
64520         * lib/mbscasecmp.c: Likewise.
64521         * lib/mbscasestr.c: Likewise.
64522         * lib/mbschr.c: Likewise.
64523         * lib/mbscspn.c: Likewise.
64524         * lib/mbslen.c: Likewise.
64525         * lib/mbsncasecmp.c: Likewise.
64526         * lib/mbsnlen.c: Likewise.
64527         * lib/mbspbrk.c: Likewise.
64528         * lib/mbspcasecmp.c: Likewise.
64529         * lib/mbsrchr.c: Likewise.
64530         * lib/mbssep.c: Likewise.
64531         * lib/mbsspn.c: Likewise.
64532         * lib/mbsstr.c: Likewise.
64533         * lib/mbstok_r.c: Likewise.
64534         * lib/mbswidth.c: Likewise.
64535         * lib/mbswidth.h: Likewise.
64536         * lib/mbuiter.h: Likewise.
64537         * lib/memcasecmp.c: Likewise.
64538         * lib/memcasecmp.h: Likewise.
64539         * lib/memchr.c: Likewise.
64540         * lib/memcmp.c: Likewise.
64541         * lib/memcoll.c: Likewise.
64542         * lib/memcoll.h: Likewise.
64543         * lib/memcpy.c: Likewise.
64544         * lib/memrchr.c: Likewise.
64545         * lib/mkancesdirs.c: Likewise.
64546         * lib/mkdir-p.c: Likewise.
64547         * lib/mkdir-p.h: Likewise.
64548         * lib/mkdir.c: Likewise.
64549         * lib/mkdirat.c: Likewise.
64550         * lib/mkdtemp.c: Likewise.
64551         * lib/mkstemp-safer.c: Likewise.
64552         * lib/mkstemp.c: Likewise.
64553         * lib/modechange.c: Likewise.
64554         * lib/modechange.h: Likewise.
64555         * lib/mountlist.c: Likewise.
64556         * lib/mountlist.h: Likewise.
64557         * lib/mpsort.c: Likewise.
64558         * lib/nanosleep.c: Likewise.
64559         * lib/obstack.c: Likewise.
64560         * lib/obstack.h: Likewise.
64561         * lib/open-safer.c: Likewise.
64562         * lib/open.c: Likewise.
64563         * lib/openat-die.c: Likewise.
64564         * lib/openat-priv.h: Likewise.
64565         * lib/openat-proc.c: Likewise.
64566         * lib/openat.c: Likewise.
64567         * lib/openat.h: Likewise.
64568         * lib/pagealign_alloc.c: Likewise.
64569         * lib/pagealign_alloc.h: Likewise.
64570         * lib/physmem.c: Likewise.
64571         * lib/physmem.h: Likewise.
64572         * lib/pipe-safer.c: Likewise.
64573         * lib/pipe.c: Likewise.
64574         * lib/pipe.h: Likewise.
64575         * lib/posixtm.c: Likewise.
64576         * lib/posixtm.h: Likewise.
64577         * lib/posixver.c: Likewise.
64578         * lib/printf-frexp.c: Likewise.
64579         * lib/printf-frexp.h: Likewise.
64580         * lib/printf-frexpl.c: Likewise.
64581         * lib/printf-frexpl.h: Likewise.
64582         * lib/printf.c: Likewise.
64583         * lib/progname.c: Likewise.
64584         * lib/progname.h: Likewise.
64585         * lib/progreloc.c: Likewise.
64586         * lib/putenv.c: Likewise.
64587         * lib/quote.c: Likewise.
64588         * lib/quote.h: Likewise.
64589         * lib/quotearg.c: Likewise.
64590         * lib/quotearg.h: Likewise.
64591         * lib/raise.c: Likewise.
64592         * lib/readline.c: Likewise.
64593         * lib/readline.h: Likewise.
64594         * lib/readlink.c: Likewise.
64595         * lib/readtokens.c: Likewise.
64596         * lib/readtokens.h: Likewise.
64597         * lib/readtokens0.c: Likewise.
64598         * lib/readtokens0.h: Likewise.
64599         * lib/readutmp.c: Likewise.
64600         * lib/readutmp.h: Likewise.
64601         * lib/realloc.c: Likewise.
64602         * lib/relocwrapper.c: Likewise.
64603         * lib/rename-dest-slash.c: Likewise.
64604         * lib/rename.c: Likewise.
64605         * lib/rmdir.c: Likewise.
64606         * lib/rpmatch.c: Likewise.
64607         * lib/safe-read.c: Likewise.
64608         * lib/safe-read.h: Likewise.
64609         * lib/safe-write.c: Likewise.
64610         * lib/safe-write.h: Likewise.
64611         * lib/same-inode.h: Likewise.
64612         * lib/same.c: Likewise.
64613         * lib/same.h: Likewise.
64614         * lib/save-cwd.c: Likewise.
64615         * lib/save-cwd.h: Likewise.
64616         * lib/savedir.c: Likewise.
64617         * lib/savedir.h: Likewise.
64618         * lib/savewd.c: Likewise.
64619         * lib/savewd.h: Likewise.
64620         * lib/search.in.h: Likewise.
64621         * lib/setenv.c: Likewise.
64622         * lib/setenv.h: Likewise.
64623         * lib/settime.c: Likewise.
64624         * lib/sh-quote.c: Likewise.
64625         * lib/sh-quote.h: Likewise.
64626         * lib/sig2str.c: Likewise.
64627         * lib/sig2str.h: Likewise.
64628         * lib/signal.in.h: Likewise.
64629         * lib/signbitd.c: Likewise.
64630         * lib/signbitf.c: Likewise.
64631         * lib/signbitl.c: Likewise.
64632         * lib/sigprocmask.c: Likewise.
64633         * lib/sincosl.c: Likewise.
64634         * lib/sleep.c: Likewise.
64635         * lib/sprintf.c: Likewise.
64636         * lib/sqrtl.c: Likewise.
64637         * lib/stat-time.h: Likewise.
64638         * lib/stdio--.h: Likewise.
64639         * lib/stdio-safer.h: Likewise.
64640         * lib/stdlib--.h: Likewise.
64641         * lib/stdlib-safer.h: Likewise.
64642         * lib/stdlib.in.h: Likewise.
64643         * lib/stpcpy.c: Likewise.
64644         * lib/stpncpy.c: Likewise.
64645         * lib/strchrnul.c: Likewise.
64646         * lib/strcspn.c: Likewise.
64647         * lib/strerror.c: Likewise.
64648         * lib/strftime.c: Likewise.
64649         * lib/strftime.h: Likewise.
64650         * lib/striconveh.c: Likewise.
64651         * lib/striconveh.h: Likewise.
64652         * lib/striconveha.c: Likewise.
64653         * lib/striconveha.h: Likewise.
64654         * lib/stripslash.c: Likewise.
64655         * lib/strnlen1.c: Likewise.
64656         * lib/strnlen1.h: Likewise.
64657         * lib/strtod.c: Likewise.
64658         * lib/strtoimax.c: Likewise.
64659         * lib/strtok_r.c: Likewise.
64660         * lib/strtol.c: Likewise.
64661         * lib/strtoll.c: Likewise.
64662         * lib/strtoul.c: Likewise.
64663         * lib/strtoull.c: Likewise.
64664         * lib/sysexits.in.h: Likewise.
64665         * lib/tempname.c: Likewise.
64666         * lib/tempname.h: Likewise.
64667         * lib/timespec.h: Likewise.
64668         * lib/tls.c: Likewise.
64669         * lib/tls.h: Likewise.
64670         * lib/tmpdir.c: Likewise.
64671         * lib/tmpdir.h: Likewise.
64672         * lib/tmpfile-safer.c: Likewise.
64673         * lib/tmpfile.c: Likewise.
64674         * lib/trigl.c: Likewise.
64675         * lib/trigl.h: Likewise.
64676         * lib/trim.c: Likewise.
64677         * lib/trim.h: Likewise.
64678         * lib/trunc.c: Likewise.
64679         * lib/truncf.c: Likewise.
64680         * lib/truncl.c: Likewise.
64681         * lib/tsearch.c: Likewise.
64682         * lib/unicodeio.c: Likewise.
64683         * lib/unicodeio.h: Likewise.
64684         * lib/unistd--.h: Likewise.
64685         * lib/unistd-safer.h: Likewise.
64686         * lib/unistdio/ulc-fprintf.c: Likewise.
64687         * lib/unistdio/ulc-vfprintf.c: Likewise.
64688         * lib/unlinkdir.c: Likewise.
64689         * lib/unlinkdir.h: Likewise.
64690         * lib/unlocked-io.h: Likewise.
64691         * lib/unsetenv.c: Likewise.
64692         * lib/userspec.c: Likewise.
64693         * lib/utime.c: Likewise.
64694         * lib/utimecmp.c: Likewise.
64695         * lib/utimecmp.h: Likewise.
64696         * lib/utimens.c: Likewise.
64697         * lib/verify.h: Likewise.
64698         * lib/verror.c: Likewise.
64699         * lib/verror.h: Likewise.
64700         * lib/version-etc-fsf.c: Likewise.
64701         * lib/version-etc.c: Likewise.
64702         * lib/version-etc.h: Likewise.
64703         * lib/vfprintf.c: Likewise.
64704         * lib/vprintf.c: Likewise.
64705         * lib/vsprintf.c: Likewise.
64706         * lib/w32spawn.h: Likewise.
64707         * lib/wait-process.c: Likewise.
64708         * lib/wait-process.h: Likewise.
64709         * lib/wcwidth.c: Likewise.
64710         * lib/write-any-file.c: Likewise.
64711         * lib/xalloc-die.c: Likewise.
64712         * lib/xalloc.h: Likewise.
64713         * lib/xasprintf.c: Likewise.
64714         * lib/xgetcwd.c: Likewise.
64715         * lib/xgetcwd.h: Likewise.
64716         * lib/xgetdomainname.c: Likewise.
64717         * lib/xgetdomainname.h: Likewise.
64718         * lib/xgethostname.c: Likewise.
64719         * lib/xmalloc.c: Likewise.
64720         * lib/xmalloca.c: Likewise.
64721         * lib/xmalloca.h: Likewise.
64722         * lib/xmemcoll.c: Likewise.
64723         * lib/xnanosleep.c: Likewise.
64724         * lib/xreadlink.c: Likewise.
64725         * lib/xreadlink.h: Likewise.
64726         * lib/xsetenv.c: Likewise.
64727         * lib/xsetenv.h: Likewise.
64728         * lib/xstriconv.c: Likewise.
64729         * lib/xstriconv.h: Likewise.
64730         * lib/xstrndup.c: Likewise.
64731         * lib/xstrndup.h: Likewise.
64732         * lib/xstrtod.c: Likewise.
64733         * lib/xstrtod.h: Likewise.
64734         * lib/xstrtol-error.c: Likewise.
64735         * lib/xstrtol.c: Likewise.
64736         * lib/xstrtol.h: Likewise.
64737         * lib/xtime.h: Likewise.
64738         * lib/xvasprintf.c: Likewise.
64739         * lib/xvasprintf.h: Likewise.
64740         * lib/yesno.c: Likewise.
64741         * lib/yesno.h: Likewise.
64742         * posix-modules: Likewise.
64743         * tests/test-alloca-opt.c: Likewise.
64744         * tests/test-arcfour.c: Likewise.
64745         * tests/test-arctwo.c: Likewise.
64746         * tests/test-argmatch.c: Likewise.
64747         * tests/test-argp-2.sh: Likewise.
64748         * tests/test-argp.c: Likewise.
64749         * tests/test-arpa_inet.c: Likewise.
64750         * tests/test-array_list.c: Likewise.
64751         * tests/test-array_oset.c: Likewise.
64752         * tests/test-atexit.c: Likewise.
64753         * tests/test-avltree_list.c: Likewise.
64754         * tests/test-avltree_oset.c: Likewise.
64755         * tests/test-avltreehash_list.c: Likewise.
64756         * tests/test-base64.c: Likewise.
64757         * tests/test-binary-io.c: Likewise.
64758         * tests/test-byteswap.c: Likewise.
64759         * tests/test-c-ctype.c: Likewise.
64760         * tests/test-c-strcasecmp.c: Likewise.
64761         * tests/test-c-strcasestr.c: Likewise.
64762         * tests/test-c-strncasecmp.c: Likewise.
64763         * tests/test-c-strstr.c: Likewise.
64764         * tests/test-canonicalize-lgpl.c: Likewise.
64765         * tests/test-canonicalize.c: Likewise.
64766         * tests/test-carray_list.c: Likewise.
64767         * tests/test-ceilf.c: Likewise.
64768         * tests/test-ceill.c: Likewise.
64769         * tests/test-count-one-bits.c: Likewise.
64770         * tests/test-crc.c: Likewise.
64771         * tests/test-dirname.c: Likewise.
64772         * tests/test-fbufmode.c: Likewise.
64773         * tests/test-fcntl.c: Likewise.
64774         * tests/test-fflush.c: Likewise.
64775         * tests/test-floorf.c: Likewise.
64776         * tests/test-floorl.c: Likewise.
64777         * tests/test-fopen.c: Likewise.
64778         * tests/test-fprintf-posix.c: Likewise.
64779         * tests/test-fprintf-posix.h: Likewise.
64780         * tests/test-fpurge.c: Likewise.
64781         * tests/test-freadable.c: Likewise.
64782         * tests/test-freadahead.c: Likewise.
64783         * tests/test-freading.c: Likewise.
64784         * tests/test-freopen.c: Likewise.
64785         * tests/test-frexp.c: Likewise.
64786         * tests/test-frexpl.c: Likewise.
64787         * tests/test-fseek.c: Likewise.
64788         * tests/test-fseeko.c: Likewise.
64789         * tests/test-fseterr.c: Likewise.
64790         * tests/test-fstrcmp.c: Likewise.
64791         * tests/test-ftell.c: Likewise.
64792         * tests/test-ftello.c: Likewise.
64793         * tests/test-fwritable.c: Likewise.
64794         * tests/test-fwriting.c: Likewise.
64795         * tests/test-getaddrinfo.c: Likewise.
64796         * tests/test-getpass.c: Likewise.
64797         * tests/test-gettimeofday.c: Likewise.
64798         * tests/test-hmac-md5.c: Likewise.
64799         * tests/test-hmac-sha1.c: Likewise.
64800         * tests/test-iconv.c: Likewise.
64801         * tests/test-iconvme.c: Likewise.
64802         * tests/test-inttypes.c: Likewise.
64803         * tests/test-isnan.c: Likewise.
64804         * tests/test-isnanf.c: Likewise.
64805         * tests/test-isnanl-nolibm.c: Likewise.
64806         * tests/test-isnanl.c: Likewise.
64807         * tests/test-isnanl.h: Likewise.
64808         * tests/test-ldexpl.c: Likewise.
64809         * tests/test-linked_list.c: Likewise.
64810         * tests/test-linkedhash_list.c: Likewise.
64811         * tests/test-locale.c: Likewise.
64812         * tests/test-localename.c: Likewise.
64813         * tests/test-lock.c: Likewise.
64814         * tests/test-lseek.c: Likewise.
64815         * tests/test-malloca.c: Likewise.
64816         * tests/test-math.c: Likewise.
64817         * tests/test-mbscasecmp.c: Likewise.
64818         * tests/test-mbscasestr1.c: Likewise.
64819         * tests/test-mbscasestr2.c: Likewise.
64820         * tests/test-mbscasestr3.c: Likewise.
64821         * tests/test-mbscasestr4.c: Likewise.
64822         * tests/test-mbschr.c: Likewise.
64823         * tests/test-mbscspn.c: Likewise.
64824         * tests/test-mbsncasecmp.c: Likewise.
64825         * tests/test-mbspbrk.c: Likewise.
64826         * tests/test-mbspcasecmp.c: Likewise.
64827         * tests/test-mbsrchr.c: Likewise.
64828         * tests/test-mbsspn.c: Likewise.
64829         * tests/test-mbsstr1.c: Likewise.
64830         * tests/test-mbsstr2.c: Likewise.
64831         * tests/test-mbsstr3.c: Likewise.
64832         * tests/test-md5.c: Likewise.
64833         * tests/test-memmem.c: Likewise.
64834         * tests/test-netinet_in.c: Likewise.
64835         * tests/test-open.c: Likewise.
64836         * tests/test-printf-frexp.c: Likewise.
64837         * tests/test-printf-frexpl.c: Likewise.
64838         * tests/test-printf-posix.c: Likewise.
64839         * tests/test-printf-posix.h: Likewise.
64840         * tests/test-rbtree_list.c: Likewise.
64841         * tests/test-rbtree_oset.c: Likewise.
64842         * tests/test-rbtreehash_list.c: Likewise.
64843         * tests/test-read-file.c: Likewise.
64844         * tests/test-rijndael.c: Likewise.
64845         * tests/test-search.c: Likewise.
64846         * tests/test-signbit.c: Likewise.
64847         * tests/test-sleep.c: Likewise.
64848         * tests/test-snprintf-posix.c: Likewise.
64849         * tests/test-snprintf-posix.h: Likewise.
64850         * tests/test-snprintf.c: Likewise.
64851         * tests/test-sprintf-posix.c: Likewise.
64852         * tests/test-sprintf-posix.h: Likewise.
64853         * tests/test-stat-time.c: Likewise.
64854         * tests/test-stdbool.c: Likewise.
64855         * tests/test-stdint.c: Likewise.
64856         * tests/test-stdio.c: Likewise.
64857         * tests/test-stdlib.c: Likewise.
64858         * tests/test-stpncpy.c: Likewise.
64859         * tests/test-strcasestr.c: Likewise.
64860         * tests/test-striconv.c: Likewise.
64861         * tests/test-striconveh.c: Likewise.
64862         * tests/test-striconveha.c: Likewise.
64863         * tests/test-string.c: Likewise.
64864         * tests/test-sys_select.c: Likewise.
64865         * tests/test-sys_socket.c: Likewise.
64866         * tests/test-sys_stat.c: Likewise.
64867         * tests/test-sys_time.c: Likewise.
64868         * tests/test-sysexits.c: Likewise.
64869         * tests/test-time.c: Likewise.
64870         * tests/test-tls.c: Likewise.
64871         * tests/test-trunc.c: Likewise.
64872         * tests/test-truncf.c: Likewise.
64873         * tests/test-truncl.c: Likewise.
64874         * tests/test-unistd.c: Likewise.
64875         * tests/test-vasnprintf-posix.c: Likewise.
64876         * tests/test-vasnprintf-posix2.c: Likewise.
64877         * tests/test-vasnprintf.c: Likewise.
64878         * tests/test-vasprintf-posix.c: Likewise.
64879         * tests/test-vasprintf.c: Likewise.
64880         * tests/test-verify.c: Likewise.
64881         * tests/test-vfprintf-posix.c: Likewise.
64882         * tests/test-vprintf-posix.c: Likewise.
64883         * tests/test-vsnprintf-posix.c: Likewise.
64884         * tests/test-vsnprintf.c: Likewise.
64885         * tests/test-vsprintf-posix.c: Likewise.
64886         * tests/test-wchar.c: Likewise.
64887         * tests/test-wctype.c: Likewise.
64888         * tests/test-wcwidth.c: Likewise.
64889         * tests/test-xstrtol.c: Likewise.
64890         * tests/test-xvasprintf.c: Likewise.
64891         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64892         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64893         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64894         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64895         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64896         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64897         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64898         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64899         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64900         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64901         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64902         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64903         * tests/uniname/test-uninames.c: Likewise.
64904         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64905         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64906         * tests/unistdio/test-u16-printf1.h: Likewise.
64907         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64908         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64909         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64910         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64911         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64912         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64913         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64914         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64915         * tests/unistdio/test-u32-printf1.h: Likewise.
64916         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64917         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64918         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64919         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64920         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64921         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64922         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64923         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64924         * tests/unistdio/test-u8-printf1.h: Likewise.
64925         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64926         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64927         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64928         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64929         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64930         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64931         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64932         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64933         * tests/unistdio/test-ulc-printf1.h: Likewise.
64934         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64935         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64936         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64937         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64938         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64939         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64940         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64941         * tests/uniwidth/test-u16-width.c: Likewise.
64942         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64943         * tests/uniwidth/test-u32-width.c: Likewise.
64944         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64945         * tests/uniwidth/test-u8-width.c: Likewise.
64946         * tests/uniwidth/test-uc_width.c: Likewise.
64947         * config/srclist-update: Likewise.
64948         (fixlicense): Update to GPLv3+.
64949
64950         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64951         * tests/test-tsearch.c: Change copyright notice.
64952
64953         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64954         * lib/c-strcaseeq.h: Change copyright notice.
64955         * lib/streq.h: Likewise.
64956         * lib/uniconv.h: Likewise.
64957         * lib/uniconv/u-conv-from-enc.h: Likewise.
64958         * lib/uniconv/u-conv-to-enc.h: Likewise.
64959         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64960         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64961         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64962         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64963         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64964         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64965         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64966         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64967         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64968         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64969         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64970         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64971         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64972         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64973         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64974         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64975         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64976         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64977         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64978         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64979         * lib/uniname.h: Likewise.
64980         * lib/uniname/uniname.c: Likewise.
64981         * lib/unistdio.h: Likewise.
64982         * lib/unistdio/u-asnprintf.h: Likewise.
64983         * lib/unistdio/u-asprintf.h: Likewise.
64984         * lib/unistdio/u-printf-args.c: Likewise.
64985         * lib/unistdio/u-printf-args.h: Likewise.
64986         * lib/unistdio/u-printf-parse.h: Likewise.
64987         * lib/unistdio/u-snprintf.h: Likewise.
64988         * lib/unistdio/u-sprintf.h: Likewise.
64989         * lib/unistdio/u-vasprintf.h: Likewise.
64990         * lib/unistdio/u-vsnprintf.h: Likewise.
64991         * lib/unistdio/u-vsprintf.h: Likewise.
64992         * lib/unistdio/u16-asnprintf.c: Likewise.
64993         * lib/unistdio/u16-asprintf.c: Likewise.
64994         * lib/unistdio/u16-printf-parse.c: Likewise.
64995         * lib/unistdio/u16-snprintf.c: Likewise.
64996         * lib/unistdio/u16-sprintf.c: Likewise.
64997         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64998         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64999         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65000         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65001         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65002         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65003         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65004         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65005         * lib/unistdio/u16-vasnprintf.c: Likewise.
65006         * lib/unistdio/u16-vasprintf.c: Likewise.
65007         * lib/unistdio/u16-vsnprintf.c: Likewise.
65008         * lib/unistdio/u16-vsprintf.c: Likewise.
65009         * lib/unistdio/u32-asnprintf.c: Likewise.
65010         * lib/unistdio/u32-asprintf.c: Likewise.
65011         * lib/unistdio/u32-printf-parse.c: Likewise.
65012         * lib/unistdio/u32-snprintf.c: Likewise.
65013         * lib/unistdio/u32-sprintf.c: Likewise.
65014         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65015         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65016         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65017         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65018         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65019         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65020         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65021         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65022         * lib/unistdio/u32-vasnprintf.c: Likewise.
65023         * lib/unistdio/u32-vasprintf.c: Likewise.
65024         * lib/unistdio/u32-vsnprintf.c: Likewise.
65025         * lib/unistdio/u32-vsprintf.c: Likewise.
65026         * lib/unistdio/u8-asnprintf.c: Likewise.
65027         * lib/unistdio/u8-asprintf.c: Likewise.
65028         * lib/unistdio/u8-printf-parse.c: Likewise.
65029         * lib/unistdio/u8-snprintf.c: Likewise.
65030         * lib/unistdio/u8-sprintf.c: Likewise.
65031         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65032         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65033         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65034         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65035         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65036         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65037         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65038         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65039         * lib/unistdio/u8-vasnprintf.c: Likewise.
65040         * lib/unistdio/u8-vasprintf.c: Likewise.
65041         * lib/unistdio/u8-vsnprintf.c: Likewise.
65042         * lib/unistdio/u8-vsprintf.c: Likewise.
65043         * lib/unistdio/ulc-asnprintf.c: Likewise.
65044         * lib/unistdio/ulc-asprintf.c: Likewise.
65045         * lib/unistdio/ulc-printf-parse.c: Likewise.
65046         * lib/unistdio/ulc-snprintf.c: Likewise.
65047         * lib/unistdio/ulc-sprintf.c: Likewise.
65048         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65049         * lib/unistdio/ulc-vasprintf.c: Likewise.
65050         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65051         * lib/unistdio/ulc-vsprintf.c: Likewise.
65052         * lib/unistr.h: Likewise.
65053         * lib/unistr/u-cpy-alloc.h: Likewise.
65054         * lib/unistr/u-cpy.h: Likewise.
65055         * lib/unistr/u-endswith.h: Likewise.
65056         * lib/unistr/u-move.h: Likewise.
65057         * lib/unistr/u-set.h: Likewise.
65058         * lib/unistr/u-startswith.h: Likewise.
65059         * lib/unistr/u-stpcpy.h: Likewise.
65060         * lib/unistr/u-stpncpy.h: Likewise.
65061         * lib/unistr/u-strcat.h: Likewise.
65062         * lib/unistr/u-strcpy.h: Likewise.
65063         * lib/unistr/u-strcspn.h: Likewise.
65064         * lib/unistr/u-strdup.h: Likewise.
65065         * lib/unistr/u-strlen.h: Likewise.
65066         * lib/unistr/u-strncat.h: Likewise.
65067         * lib/unistr/u-strncpy.h: Likewise.
65068         * lib/unistr/u-strnlen.h: Likewise.
65069         * lib/unistr/u-strpbrk.h: Likewise.
65070         * lib/unistr/u-strspn.h: Likewise.
65071         * lib/unistr/u-strstr.h: Likewise.
65072         * lib/unistr/u-strtok.h: Likewise.
65073         * lib/unistr/u16-check.c: Likewise.
65074         * lib/unistr/u16-chr.c: Likewise.
65075         * lib/unistr/u16-cmp.c: Likewise.
65076         * lib/unistr/u16-cpy-alloc.c: Likewise.
65077         * lib/unistr/u16-cpy.c: Likewise.
65078         * lib/unistr/u16-endswith.c: Likewise.
65079         * lib/unistr/u16-mblen.c: Likewise.
65080         * lib/unistr/u16-mbsnlen.c: Likewise.
65081         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65082         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65083         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65084         * lib/unistr/u16-mbtouc.c: Likewise.
65085         * lib/unistr/u16-mbtoucr.c: Likewise.
65086         * lib/unistr/u16-move.c: Likewise.
65087         * lib/unistr/u16-next.c: Likewise.
65088         * lib/unistr/u16-prev.c: Likewise.
65089         * lib/unistr/u16-set.c: Likewise.
65090         * lib/unistr/u16-startswith.c: Likewise.
65091         * lib/unistr/u16-stpcpy.c: Likewise.
65092         * lib/unistr/u16-stpncpy.c: Likewise.
65093         * lib/unistr/u16-strcat.c: Likewise.
65094         * lib/unistr/u16-strchr.c: Likewise.
65095         * lib/unistr/u16-strcmp.c: Likewise.
65096         * lib/unistr/u16-strcpy.c: Likewise.
65097         * lib/unistr/u16-strcspn.c: Likewise.
65098         * lib/unistr/u16-strdup.c: Likewise.
65099         * lib/unistr/u16-strlen.c: Likewise.
65100         * lib/unistr/u16-strmblen.c: Likewise.
65101         * lib/unistr/u16-strmbtouc.c: Likewise.
65102         * lib/unistr/u16-strncat.c: Likewise.
65103         * lib/unistr/u16-strncmp.c: Likewise.
65104         * lib/unistr/u16-strncpy.c: Likewise.
65105         * lib/unistr/u16-strnlen.c: Likewise.
65106         * lib/unistr/u16-strpbrk.c: Likewise.
65107         * lib/unistr/u16-strrchr.c: Likewise.
65108         * lib/unistr/u16-strspn.c: Likewise.
65109         * lib/unistr/u16-strstr.c: Likewise.
65110         * lib/unistr/u16-strtok.c: Likewise.
65111         * lib/unistr/u16-to-u32.c: Likewise.
65112         * lib/unistr/u16-to-u8.c: Likewise.
65113         * lib/unistr/u16-uctomb-aux.c: Likewise.
65114         * lib/unistr/u16-uctomb.c: Likewise.
65115         * lib/unistr/u32-check.c: Likewise.
65116         * lib/unistr/u32-chr.c: Likewise.
65117         * lib/unistr/u32-cmp.c: Likewise.
65118         * lib/unistr/u32-cpy-alloc.c: Likewise.
65119         * lib/unistr/u32-cpy.c: Likewise.
65120         * lib/unistr/u32-endswith.c: Likewise.
65121         * lib/unistr/u32-mblen.c: Likewise.
65122         * lib/unistr/u32-mbsnlen.c: Likewise.
65123         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65124         * lib/unistr/u32-mbtouc.c: Likewise.
65125         * lib/unistr/u32-mbtoucr.c: Likewise.
65126         * lib/unistr/u32-move.c: Likewise.
65127         * lib/unistr/u32-next.c: Likewise.
65128         * lib/unistr/u32-prev.c: Likewise.
65129         * lib/unistr/u32-set.c: Likewise.
65130         * lib/unistr/u32-startswith.c: Likewise.
65131         * lib/unistr/u32-stpcpy.c: Likewise.
65132         * lib/unistr/u32-stpncpy.c: Likewise.
65133         * lib/unistr/u32-strcat.c: Likewise.
65134         * lib/unistr/u32-strchr.c: Likewise.
65135         * lib/unistr/u32-strcmp.c: Likewise.
65136         * lib/unistr/u32-strcpy.c: Likewise.
65137         * lib/unistr/u32-strcspn.c: Likewise.
65138         * lib/unistr/u32-strdup.c: Likewise.
65139         * lib/unistr/u32-strlen.c: Likewise.
65140         * lib/unistr/u32-strmblen.c: Likewise.
65141         * lib/unistr/u32-strmbtouc.c: Likewise.
65142         * lib/unistr/u32-strncat.c: Likewise.
65143         * lib/unistr/u32-strncmp.c: Likewise.
65144         * lib/unistr/u32-strncpy.c: Likewise.
65145         * lib/unistr/u32-strnlen.c: Likewise.
65146         * lib/unistr/u32-strpbrk.c: Likewise.
65147         * lib/unistr/u32-strrchr.c: Likewise.
65148         * lib/unistr/u32-strspn.c: Likewise.
65149         * lib/unistr/u32-strstr.c: Likewise.
65150         * lib/unistr/u32-strtok.c: Likewise.
65151         * lib/unistr/u32-to-u16.c: Likewise.
65152         * lib/unistr/u32-to-u8.c: Likewise.
65153         * lib/unistr/u32-uctomb.c: Likewise.
65154         * lib/unistr/u8-check.c: Likewise.
65155         * lib/unistr/u8-chr.c: Likewise.
65156         * lib/unistr/u8-cmp.c: Likewise.
65157         * lib/unistr/u8-cpy-alloc.c: Likewise.
65158         * lib/unistr/u8-cpy.c: Likewise.
65159         * lib/unistr/u8-endswith.c: Likewise.
65160         * lib/unistr/u8-mblen.c: Likewise.
65161         * lib/unistr/u8-mbsnlen.c: Likewise.
65162         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65163         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65164         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65165         * lib/unistr/u8-mbtouc.c: Likewise.
65166         * lib/unistr/u8-mbtoucr.c: Likewise.
65167         * lib/unistr/u8-move.c: Likewise.
65168         * lib/unistr/u8-next.c: Likewise.
65169         * lib/unistr/u8-prev.c: Likewise.
65170         * lib/unistr/u8-set.c: Likewise.
65171         * lib/unistr/u8-startswith.c: Likewise.
65172         * lib/unistr/u8-stpcpy.c: Likewise.
65173         * lib/unistr/u8-stpncpy.c: Likewise.
65174         * lib/unistr/u8-strcat.c: Likewise.
65175         * lib/unistr/u8-strchr.c: Likewise.
65176         * lib/unistr/u8-strcmp.c: Likewise.
65177         * lib/unistr/u8-strcpy.c: Likewise.
65178         * lib/unistr/u8-strcspn.c: Likewise.
65179         * lib/unistr/u8-strdup.c: Likewise.
65180         * lib/unistr/u8-strlen.c: Likewise.
65181         * lib/unistr/u8-strmblen.c: Likewise.
65182         * lib/unistr/u8-strmbtouc.c: Likewise.
65183         * lib/unistr/u8-strncat.c: Likewise.
65184         * lib/unistr/u8-strncmp.c: Likewise.
65185         * lib/unistr/u8-strncpy.c: Likewise.
65186         * lib/unistr/u8-strnlen.c: Likewise.
65187         * lib/unistr/u8-strpbrk.c: Likewise.
65188         * lib/unistr/u8-strrchr.c: Likewise.
65189         * lib/unistr/u8-strspn.c: Likewise.
65190         * lib/unistr/u8-strstr.c: Likewise.
65191         * lib/unistr/u8-strtok.c: Likewise.
65192         * lib/unistr/u8-to-u16.c: Likewise.
65193         * lib/unistr/u8-to-u32.c: Likewise.
65194         * lib/unistr/u8-uctomb-aux.c: Likewise.
65195         * lib/unistr/u8-uctomb.c: Likewise.
65196         * lib/unitypes.h: Likewise.
65197         * lib/uniwidth.h: Likewise.
65198         * lib/uniwidth/cjk.h: Likewise.
65199         * lib/uniwidth/u16-strwidth.c: Likewise.
65200         * lib/uniwidth/u16-width.c: Likewise.
65201         * lib/uniwidth/u32-strwidth.c: Likewise.
65202         * lib/uniwidth/u32-width.c: Likewise.
65203         * lib/uniwidth/u8-strwidth.c: Likewise.
65204         * lib/uniwidth/u8-width.c: Likewise.
65205         * lib/uniwidth/width.c: Likewise.
65206
65207 2007-10-07  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65210         The file is still under LGPL (see modules/inttypes).
65211
65212 2007-10-06  Bruno Haible  <bruno@clisp.org>
65213
65214         * modules/trunc (Dependencies): Add 'extensions'.
65215         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65216         Reported by Ben Pfaff <blp@gnu.org>.
65217
65218 2007-10-06  Bruno Haible  <bruno@clisp.org>
65219
65220         * modules/freopen-tests: New file.
65221         * tests/test-freopen.c: New file.
65222
65223         * modules/fopen-tests: New file.
65224         * tests/test-fopen.c: New file.
65225
65226         * modules/fopen: New file.
65227         * lib/fopen.c: New file.
65228         * m4/fopen.m4: New file.
65229         * modules/freopen: New file.
65230         * lib/freopen.c: New file.
65231         * m4/freopen.m4: New file.
65232         * lib/stdio.in.h (fopen, freopen): New declarations.
65233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65234         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65235         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65236         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65237         * doc/functions/fopen.texi: Mention the 'fopen' module.
65238         * doc/functions/freopen.texi: Mention the 'freopen' module.
65239
65240 2007-10-06  Bruno Haible  <bruno@clisp.org>
65241
65242         * modules/open-tests: New file.
65243         * tests/test-open.c: New file.
65244
65245         * modules/open: New file.
65246         * lib/open.c: New file.
65247         * m4/open.m4: New file.
65248         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65249         lib/open.c does.
65250         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65251         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65252         macros.
65253         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65254         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65255         REPLACE_OPEN.
65256         * doc/functions/open.texi: Mention the 'open' module.
65257
65258 2007-10-04  Bruno Haible  <bruno@clisp.org>
65259
65260         * modules/ceill-tests: New file.
65261         * tests/test-ceill.c: New file.
65262
65263         * modules/ceill: New file.
65264         * lib/ceill.c: Replace entire file.
65265         * m4/ceill.m4: New file.
65266         * lib/math.in.h (ceill): Replace declaration.
65267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65268         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65269         * doc/functions/ceill.texi: Mention the 'ceill' module.
65270         * modules/mathl (Files): Remove lib/ceill.c.
65271         (Depends-on): Add ceill.
65272
65273 2007-10-04  Bruno Haible  <bruno@clisp.org>
65274
65275         * modules/ceilf-tests: New file.
65276         * tests/test-ceilf.c: New file.
65277
65278         * modules/ceilf: New file.
65279         * lib/ceil.c: New file.
65280         * lib/ceilf.c: New file.
65281         * m4/ceilf.m4: New file.
65282         * lib/math.in.h (ceilf): New declaration.
65283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65284         HAVE_DECL_CEILF.
65285         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65286         HAVE_DECL_CEILF.
65287         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65288
65289 2007-10-04  Bruno Haible  <bruno@clisp.org>
65290
65291         * modules/floorl-tests: New file.
65292         * tests/test-floorl.c: New file.
65293
65294         * modules/floorl: New file.
65295         * lib/floorl.c: Replace entire file.
65296         * m4/floorl.m4: New file.
65297         * lib/math.in.h (floorl): Replace declaration.
65298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65299         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65300         * doc/functions/floorl.texi: Mention the 'floorl' module.
65301         * modules/mathl (Files): Remove lib/floorl.c.
65302         (Depends-on): Add floorl.
65303
65304 2007-10-04  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/floorf-tests: New file.
65307         * tests/test-floorf.c: New file.
65308
65309         * modules/floorf: New file.
65310         * lib/floor.c: New file.
65311         * lib/floorf.c: New file.
65312         * m4/floorf.m4: New file.
65313         * lib/math.in.h (floorf): New declaration.
65314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65315         HAVE_DECL_FLOORF.
65316         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65317         HAVE_DECL_FLOORF.
65318         * doc/functions/floorf.texi: Mention the 'floorf' module.
65319
65320 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65321             Bruno Haible  <bruno@clisp.org>
65322
65323         Advertise for the Git server instead of the CVS server.
65324         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65325         repository instead of the CVS one.
65326         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65327         about all VCS systems generically.
65328         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65329
65330 2007-10-04  Bruno Haible  <bruno@clisp.org>
65331
65332         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65333         means.
65334         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65335
65336 2007-10-04  Bruno Haible  <bruno@clisp.org>
65337
65338         * modules/truncl-tests: New file.
65339         * tests/test-truncl.c: New file.
65340
65341         * modules/truncl: New file.
65342         * lib/truncl.c: New file.
65343         * m4/truncl.m4: New file.
65344         * lib/math.in.h (truncl): New declaration.
65345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65346         HAVE_DECL_TRUNCL.
65347         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65348         HAVE_DECL_TRUNCL.
65349         * doc/functions/truncl.texi: Mention the 'truncl' module.
65350
65351 2007-10-04  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/truncf-tests: New file.
65354         * tests/test-truncf.c: New file.
65355
65356         * modules/truncf: New file.
65357         * lib/trunc.c: Make paramerizable through USE_* macros.
65358         * lib/truncf.c: New file.
65359         * m4/truncf.m4: New file.
65360         * lib/math.in.h (truncf): New declaration.
65361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65362         HAVE_DECL_TRUNCF.
65363         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65364         HAVE_DECL_TRUNCF.
65365         * doc/functions/truncf.texi: Mention the 'truncf' module.
65366
65367 2007-10-03  Bruno Haible  <bruno@clisp.org>
65368
65369         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65370         augmentation also for tests modules.
65371         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65372         * modules/atexit-tests (Makefile.am): Likewise.
65373         * modules/binary-io-tests (Makefile.am): Likewise.
65374         * modules/c-strcase-tests (Makefile.am): Likewise.
65375         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65376         * modules/canonicalize-tests (Makefile.am): Likewise.
65377         * modules/closein-tests (Makefile.am): Likewise.
65378         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65379         * modules/freadahead-tests (Makefile.am): Likewise.
65380         * modules/fseek-tests (Makefile.am): Likewise.
65381         * modules/fseeko-tests (Makefile.am): Likewise.
65382         * modules/ftell-tests (Makefile.am): Likewise.
65383         * modules/ftello-tests (Makefile.am): Likewise.
65384         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65385         * modules/isnanl-tests (Makefile.am): Likewise.
65386         * modules/lseek-tests (Makefile.am): Likewise.
65387         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65388         * modules/mbscasestr-tests (Makefile.am): Likewise.
65389         * modules/mbschr-tests (Makefile.am): Likewise.
65390         * modules/mbscspn-tests (Makefile.am): Likewise.
65391         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65392         * modules/mbspbrk-tests (Makefile.am): Likewise.
65393         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65394         * modules/mbsrchr-tests (Makefile.am): Likewise.
65395         * modules/mbsspn-tests (Makefile.am): Likewise.
65396         * modules/mbsstr-tests (Makefile.am): Likewise.
65397         * modules/printf-posix-tests (Makefile.am): Likewise.
65398         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65399         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65400         * modules/tsearch-tests (Makefile.am): Likewise.
65401         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65402         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65403         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65404         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65405         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65406         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65407         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65408         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65409         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65410         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65411         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65412         * modules/xstrtol-tests (Makefile.am): Likewise.
65413         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65414         * modules/yesno-tests (Makefile.am): Likewise.
65415
65416 2007-10-03  Bruno Haible  <bruno@clisp.org>
65417
65418         * modules/trunc-tests: New file.
65419         * tests/test-trunc.c: New file.
65420
65421         * modules/trunc: New file.
65422         * lib/trunc.c: New file.
65423         * m4/trunc.m4: New file.
65424         * lib/math.in.h (trunc): New declaration.
65425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65426         HAVE_DECL_TRUNC.
65427         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65428         HAVE_DECL_TRUNC.
65429         * doc/functions/trunc.texi: Mention the 'trunc' module.
65430
65431 2007-10-03  Bruno Haible  <bruno@clisp.org>
65432
65433         * tests/test-fpending.c: New file, mostly copied
65434         from coreutils/lib/t-fpending.c.
65435         * modules/fpending-tests: New file.
65436
65437 2007-10-03  Bruno Haible  <bruno@clisp.org>
65438
65439         Port the stdio extensions to QNX (untested).
65440         * lib/fseterr.c (fseterr): Add support for QNX.
65441         * lib/fbufmode.c (fbufmode): Likewise.
65442         * lib/freadable.c (freadable): Likewise.
65443         * lib/fwritable.c (fwritable): Likewise.
65444         * lib/freading.c (freading): Likewise.
65445         * lib/fwriting.c (fwriting): Likewise.
65446         * lib/freadahead.c (freadahed): Likewise.
65447         * lib/fpurge.c (fpurge): Likewise.
65448         * lib/fseeko.c (rpl_fseeko): Likewise.
65449
65450 2007-10-03  Bruno Haible  <bruno@clisp.org>
65451             Jim Meyering  <jim@meyering.net>
65452             Eric Blake  <ebb9@byu.net>
65453
65454         * doc/relocatable.texi: Use @command instead of @program.
65455
65456 2007-10-02  Jim Meyering  <jim@meyering.net>
65457
65458         Perform one more "_.h" -> ".in.h" substitution.
65459         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65460         instead of unistd_.h here, too.
65461
65462 2007-10-01  Bruno Haible  <bruno@clisp.org>
65463
65464         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65465         Needed for the alloca-opt module.
65466
65467 2007-09-30  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65470         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65471         alloca_.h.
65472         * lib/argz.in.h: Renamed from lib/argz_.h.
65473         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65474         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65475         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65476         byteswap_.h.
65477         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65478         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65479         dirent_.h.
65480         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65481         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65482         fcntl_.h.
65483         * lib/float.in.h: Renamed from lib/float_.h.
65484         * modules/float (Files, Makefile.am): Use float.in.h instead of
65485         float_.h.
65486         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65487         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65488         fnmatch_.h.
65489         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65490         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65491         getopt_.h.
65492         * lib/glob.in.h: Renamed from lib/glob_.h.
65493         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65494         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65495         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65496         iconv_.h.
65497         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65498         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65499         inttypes_.h.
65500         * lib/locale.in.h: Renamed from lib/locale_.h.
65501         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65502         locale_.h.
65503         * lib/math.in.h: Renamed from lib/math_.h.
65504         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65505         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65506         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65507         of netinet_in_.h. Add dependency.
65508         * lib/poll.in.h: Renamed from lib/poll_.h.
65509         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65510         * lib/search.in.h: Renamed from lib/search_.h.
65511         * modules/search (Files, Makefile.am): Use search.in.h instead of
65512         search_.h.
65513         * lib/signal.in.h: Renamed from lib/signal_.h.
65514         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65515         _signal.h.
65516         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65517         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65518         stdbool_.h.
65519         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65520         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65521         stdint_.h.
65522         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65523         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65524         stdio_.h.
65525         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65526         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65527         stdlib_.h.
65528         * lib/string.in.h: Renamed from lib/string_.h.
65529         * modules/string (Files, Makefile.am): Use string.in.h instead of
65530         string_.h.
65531         * doc/gnulib-tool.texi (Initial import): Update.
65532         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65533         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65534         of sys_select_.h. Add dependency.
65535         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65536         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65537         of sys_socket_.h.
65538         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65539         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65540         sys_stat_.h.
65541         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65542         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65543         sys_time_.h.
65544         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65545         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65546         sysexits_.h.
65547         * lib/time.in.h: Renamed from lib/time_.h.
65548         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65549         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65550         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65551         unistd_.h.
65552         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65553         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65554         wchar_.h.
65555         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65556         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65557         wctype_.h.
65558         * build-aux/bootstrap (slurp): Update.
65559         * lib/.cppi-disable: Update.
65560
65561 2007-09-30  Bruno Haible  <bruno@clisp.org>
65562
65563         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65564         Needed on BeOS.
65565
65566 2007-09-30  Bruno Haible  <bruno@clisp.org>
65567
65568         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65569
65570 2007-09-29  Bruno Haible  <bruno@clisp.org>
65571
65572         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65573
65574 2007-09-29  Bruno Haible  <bruno@clisp.org>
65575
65576         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65577         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65578         * build-aux/install-reloc: Compile also areadlink.c.
65579         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65580
65581 2007-09-29  Bruno Haible  <bruno@clisp.org>
65582
65583         * gnulib-tool (func_emit_initmacro_done): Indentation.
65584
65585 2007-09-29  Bruno Haible  <bruno@clisp.org>
65586
65587         * README: Add CVS checkout update instructions.
65588         Info from Bob Proulx <bob@proulx.com>.
65589
65590 2007-09-28  Eric Blake  <ebb9@byu.net>
65591
65592         Provide move-if-change.
65593         * build-aux/move-if-change: New file, based on best practice
65594         rather than any canonical upstream location.
65595
65596 2007-09-28  Jim Meyering  <jim@meyering.net>
65597
65598         Fix canonicalize loop-detection corner case.
65599         Do not attempt to stat the symlink values stored via seen_triple.
65600         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65601         on linux-2.6.18, (but not 2.6.22).
65602         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65603         triple_compare.  The former compares dev,ino,filename, while the latter
65604         would actually stat dirname(filename) when dev and ino were equal.
65605         * lib/hash-triple.c: Install <string.h>.
65606         (STREQ): Define.
65607         (triple_compare_ino_str): New function.
65608         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65609
65610 2007-09-28  Eric Blake  <ebb9@byu.net>
65611
65612         Enforce that AC_REPLACE_FUNCS files exist.
65613         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65614         override check for typos.
65615
65616         Fix test-closein on Solaris 10.
65617         * tests/test-closein.c (main): Don't assume stdin can be inherited
65618         closed on all systems.
65619         * tests/test-closein.sh: Likewise.
65620         Reported by Piotr Tarnowski.
65621
65622 2007-09-28  Jim Meyering  <jim@meyering.net>
65623
65624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65625
65626 2007-09-27  Jim Meyering  <jim@meyering.net>
65627
65628         canonicalize: Avoid a false-positive cycle failure.
65629         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65630         Sort.  Remove cycle-check.
65631         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65632         not cycle-check.h.
65633         (seen_triple): New function.
65634         (canonicalize_filename_mode): Use it instead of cycle-check.
65635         * tests/test-canonicalize.c: Add a test for this bug.
65636         * tests/test-canonicalize.sh: Set up and run the test.
65637
65638         New module, file-set, from coreutils.
65639         * modules/file-set: Define it.
65640         * lib/file-set.c, lib/file-set.h: Implement.
65641
65642         New module, hash-triple, from coreutils.
65643         * modules/hash-triple: Define it.
65644         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65645
65646 2007-09-25  Eric Blake  <ebb9@byu.net>
65647
65648         Fix strerror on Interix.
65649         * lib/string_.h (strerror): Declare replacement.
65650         * doc/functions/strerror.texi (strerror): Document the Interix
65651         shortcoming.
65652         * modules/string (Makefile.am): Support new hooks.
65653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65654         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65655         gl_FUNC_STRERROR_SEPARATE.
65656         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65657         * lib/strerror.c (rpl_strerror): Provide replacement.
65658         * modules/strerror (Depends-on): Add string.
65659         (configure.ac): Detect use of module.
65660         * tests/test-strerror.c: New file.
65661         * modules/strerror-tests: New test module.
65662         * modules/argp (Depends-on): Add strerror.
65663         * modules/error (Depends-on): Likewise.
65664         Reported by Martin Koeppe.
65665
65666 2007-09-24  Bruno Haible  <bruno@clisp.org>
65667
65668         * README: Update git instructions.
65669
65670 2007-09-24  Eric Blake  <ebb9@byu.net>
65671
65672         Revert fpending breakage from 2007-09-08.
65673         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65674         __fpending.c.
65675
65676 2007-09-24  Jim Meyering  <jim@meyering.net>
65677
65678         filenamecat.c: Add a test.
65679         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65680         showing how the function works when DIR is the empty string.
65681
65682 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65683
65684         * tests/test-canonicalize.sh: Turn on executable bit.
65685
65686 2007-09-19  Eric Blake  <ebb9@byu.net>
65687
65688         * README: Update CVS instructions.
65689
65690 2007-09-18  Bruno Haible  <bruno@clisp.org>
65691
65692         * modules/areadlink: New file.
65693         * lib/areadlink.h (areadlink): New declaration.
65694         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65695
65696 2007-09-17  Jim Meyering  <jim@meyering.net>
65697
65698         * lib/savewd.c (ESTALE) [!defined]: Define.
65699         Reported to be required on Interix by Martin Koeppe.
65700
65701 2007-09-17  Bruno Haible  <bruno@clisp.org>
65702
65703         * gnulib-tool (func_version): Use $version.
65704
65705 2007-09-16  Bruno Haible  <bruno@clisp.org>
65706
65707         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65708         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65709         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65710         Reported by Greg Schafer <gschafer@zip.com.au>.
65711
65712 2007-09-15  Bruno Haible  <bruno@clisp.org>
65713
65714         * gnulib-tool (sed): Try a little harder to make bash understand the
65715         alias.
65716         Reported by Bruce Korb <bruce.korb@gmail.com>.
65717
65718 2007-09-13  Eric Blake  <ebb9@byu.net>
65719
65720         * ChangeLog: Remove conflict markers.
65721
65722 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65723
65724         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65725         Reported by Bruno Haible <bruno@clisp.org>.
65726
65727 2007-09-12  Bruno Haible  <bruno@clisp.org>
65728
65729         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65730         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65731         is not defined.
65732
65733 2007-09-12  Eric Blake  <ebb9@byu.net>
65734
65735         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65737         Autoconf definition.
65738         * modules/euidaccess (Depends-on): Add extensions, for
65739         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65740         * modules/fnmatch (Depends-on): Likewise.
65741         * modules/getaddrinfo (Depends-on): Likewise.
65742         * modules/getdelim (Depends-on): Likewise.
65743         * modules/getline (Depends-on): Likewise.
65744         * modules/getsubopt (Depends-on): Likewise.
65745         * modules/gettext (Depends-on): Likewise.
65746         * modules/group-member (Depends-on): Likewise.
65747         * modules/mbchar (Depends-on): Likewise.
65748         * modules/memmem (Depends-on): Likewise.
65749         * modules/mempcpy (Depends-on): Likewise.
65750         * modules/memrchr (Depends-on): Likewise.
65751         * modules/pagealign_alloc (Depends-on): Likewise.
65752         * modules/readutmp (Depends-on): Likewise.
65753         * modules/stpcpy (Depends-on): Likewise.
65754         * modules/stpncpy (Depends-on): Likewise.
65755         * modules/strchrnul (Depends-on): Likewise.
65756         * modules/strndup (Depends-on): Likewise.
65757         * modules/strsep (Depends-on): Likewise.
65758         * modules/strverscmp (Depends-on): Likewise.
65759         * modules/vasprintf (Depends-on): Likewise.
65760         * modules/wcwidth (Depends-on): Likewise.
65761         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65762         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65763         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65765         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65766         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65767         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65768         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65769         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65770         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65772         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65773         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65774         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65775         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65776         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65777         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65778         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65780         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65783         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65784         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65785         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65787         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65788         so that lock.m4 can be used in gettext without extensions module.
65789
65790 2007-09-11  Bruno Haible  <bruno@clisp.org>
65791
65792         * m4/isc-posix.m4: Remove file.
65793         Suggested by Eric Blake.
65794
65795 2007-09-11  Eric Blake  <ebb9@byu.net>
65796
65797         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65798
65799 2007-09-10  Bruno Haible  <bruno@clisp.org>
65800
65801         * posix-modules: Fix typo in error message.
65802         Reported by Matt <mkraai@beckman.com>.
65803
65804 2007-09-09  Bruno Haible  <bruno@clisp.org>
65805
65806         * doc/functions/getdelim.texi: Update list of platforms lacking the
65807         function.
65808         * doc/functions/getline.texi: Likewise.
65809
65810 2007-09-09  Jim Meyering  <jim@meyering.net>
65811
65812         * lib/hash.c (hash_initialize): Detect calloc failure.
65813         Reported by Bruno Haible.
65814
65815 2007-09-09  Bruno Haible  <bruno@clisp.org>
65816
65817         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65818         malloc or realloc fails.
65819
65820 2007-09-09  Bruno Haible  <bruno@clisp.org>
65821
65822         * modules/getcwd (Depends-on): Add malloc-posix.
65823         * modules/glob (Depends-on): Likewise.
65824         * modules/putenv (Depends-on): Likewise.
65825         * modules/strdup (Depends-on): Likewise.
65826         * modules/getdelim (Depends-on): Add realloc-posix.
65827         * modules/read-file (Depends-on): Likewise.
65828
65829 2007-09-09  Bruno Haible  <bruno@clisp.org>
65830
65831         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65832         (gl_FUNC_MALLOC_POSIX): Require it.
65833         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65834         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65835         * modules/realloc (Files): Add m4/malloc.m4.
65836         * modules/calloc (Files): Likewise.
65837
65838 2007-09-09  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/malloc-posix: New file.
65841         * modules/malloc (Depends-on): Add malloc-posix.
65842         * lib/malloc.c: Include errno.h.
65843         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65844         and a POSIX-compatible malloc into a single function. Set ENOMEM
65845         when returning NULL.
65846         * m4/malloc.m4: New file.
65847         * doc/functions/malloc.texi: Mention the malloc-posix module.
65848         * lib/stdlib_.h (malloc): New declaration.
65849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65850         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65851         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65852         and HAVE_MALLOC_POSIX.
65853
65854 2007-09-09  Bruno Haible  <bruno@clisp.org>
65855
65856         * modules/realloc-posix: New file.
65857         * modules/realloc (Depends-on): Add realloc-posix.
65858         * lib/realloc.c: Include errno.h.
65859         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65860         and a POSIX-compatible realloc into a single function. Set ENOMEM
65861         when returning NULL.
65862         * m4/realloc.m4: New file.
65863         * doc/functions/realloc.texi: Mention the realloc-posix module.
65864         * lib/stdlib_.h (realloc): New declaration.
65865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65866         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65867         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65868         and HAVE_REALLOC_POSIX.
65869
65870 2007-09-09  Bruno Haible  <bruno@clisp.org>
65871
65872         * modules/calloc-posix: New file.
65873         * modules/calloc (Depends-on): Add calloc-posix.
65874         * lib/calloc.c: Include errno.h.
65875         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65876         and a POSIX-compatible calloc into a single function. Set ENOMEM
65877         when returning NULL.
65878         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65879         * doc/functions/calloc.texi: Mention the calloc-posix module.
65880         * lib/stdlib_.h (calloc): New declaration.
65881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65882         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65883         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65884         and HAVE_CALLOC_POSIX.
65885
65886 2007-09-09  Bruno Haible  <bruno@clisp.org>
65887
65888         Allow for modules to show an arbitrary notice.
65889         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65890         * gnulib-tool: New option --extract-notice.
65891         (func_usage): Document it.
65892         (sed_extract_prog): Update.
65893         (func_get_notice): New function.
65894         (func_modules_notice): New function.
65895         (func_import, func_create_testdir): Invoke it.
65896         Suggested by Jim Meyering.
65897
65898 2007-09-09  Bruno Haible  <bruno@clisp.org>
65899
65900         * gnulib-tool: New options --verbose, --quiet.
65901         (func_usage): Document them.
65902         (verbose): New variable.
65903         (func_execute_command): New function.
65904         (func_import): Don't show the module list and the file list if
65905         $verbose < 0.
65906         (func_create_testdir): Likewise. Use func_execute_command.
65907         (func_create_megatestdir): Use func_execute_command.
65908
65909 2007-09-08  Bruno Haible  <bruno@clisp.org>
65910
65911         * gnulib-tool (func_import): Prefer rsync over wget when available,
65912         for fetching the PO files.
65913
65914 2007-09-08  Bruno Haible  <bruno@clisp.org>
65915
65916         * posix-modules: New file. Portions copied from gnulib-tool.
65917         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65918
65919 2007-09-08  Jim Meyering  <jim@meyering.net>
65920
65921         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65922         * lib/fpending.h: Rename from __fpending.h.
65923         * lib/fpending.c: Rename from __fpending.c.
65924         Include "fpending.h", not "__fpending.h".
65925         * lib/__fpending.h, lib/__fpending.c: Remove files.
65926         * modules/fpending (Files): Reflect new file names.
65927         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65928
65929 2007-09-08  Bruno Haible  <bruno@clisp.org>
65930
65931         * m4/inttypes-h.m4: Remove stub file.
65932
65933 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65934
65935         * doc/headers/stdint.texi: Discuss #include_next issue.
65936
65937 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65940
65941 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65942
65943         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65944         in variable name.
65945
65946 2007-09-03  Jim Meyering  <jim@meyering.net>
65947
65948         New module: git-version-gen.
65949         * modules/git-version-gen: New file.
65950
65951         Import changes from coreutils for bootstrap script.
65952
65953         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65954
65955         bootstrap: uses rsync to download the .po files
65956         * build-aux/bootstrap (po_download_command_format): New global.
65957         (download_po_files): Use rsync.
65958         (update_po_files): Don't remove .po files after download,
65959         so future rsync runs can take advantage of the copies.
65960
65961         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65962
65963         Solve the unnecessary-.po-file-regeneration problem once and for all.
65964         * build-aux/bootstrap (download_po_files): New function, renamed from
65965         get_translations.  Now, downloads, but doesn't update LINGUAS.
65966         (update_po_files): New function.
65967
65968         bootstrap: Ignore more.
65969         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65970         uniwidth to e.g., lib/.gitignore.
65971         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65972
65973         * build-aux/bootstrap: New setting: vc_ignore.
65974         (insert_sorted_if_absent): Create $file if absent.
65975         Adapt to new, possibly empty, list: $vc_ignore.
65976
65977         bootstrap: generate more ignorable names
65978         * build-aux/bootstrap (slurp): When generating ignorable names,
65979         also map .sin to .sed, .gperf to .c, and .y to .c.
65980
65981 2007-09-03  Jim Meyering  <jim@meyering.net>
65982
65983         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65984         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65985
65986 2007-09-02  Bruno Haible  <bruno@clisp.org>
65987
65988         Fix mis-recognition of 'mcs' on QNX 6.
65989         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65990         output contains the string "Mono".
65991         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65992         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65993
65994 2007-09-01  Bruno Haible  <bruno@clisp.org>
65995
65996         Fix collision between uniwidth/* and linebreak modules.
65997         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65998         u32_width): Remove declarations.
65999         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66000         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66001         streq3, streq2, streq1, streq0): Remove functions.
66002         (STREQ): Remove macro.
66003         (is_cjk_encoding): Remove function.
66004         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66005         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66006         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66007         * NEWS: Document the change.
66008
66009 2007-09-01  Bruno Haible  <bruno@clisp.org>
66010
66011         * lib/streq.h: Add double-inclusion guard.
66012
66013 2007-09-01  Karl Berry  <karl@gnu.org>
66014
66015         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66016
66017 2007-08-28  Jim Meyering  <jim@meyering.net>
66018
66019         Rename mreadlink_with_size to areadlink_with_size.
66020         * NEWS: Document the change.
66021         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66022         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66023         * lib/mreadlink.h: Rename this to...
66024         * lib/areadlink.h: ...this.
66025         * modules/mreadlink-with-size: Rename this to...
66026         * modules/areadlink-with-size: ...this.
66027         * lib/canonicalize.c: Reflect the renaming.
66028         * modules/canonicalize: Likewise.
66029
66030 2007-08-26  Bruno Haible  <bruno@clisp.org>
66031
66032         * gnulib-tool (func_import): When deciding which files to remove,
66033         consider also dangling symbolic links.
66034         Reported by Eric Blake.
66035
66036 2007-08-26  Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66039
66040 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66041
66042         * lib/readline.c: Don't include getline.h, the prototype is now
66043         found in stdio.h.
66044
66045 2007-08-23  Jim Meyering  <jim@meyering.net>
66046
66047         Getdelim touchup.
66048         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66049         around the funlockfile call, since funlockfile never sets errno.
66050         Don't set errno upon failed realloc.
66051
66052 2007-08-22  Eric Blake  <ebb9@byu.net>
66053
66054         Getline touchups.
66055         * lib/getdelim.c (getdelim): Revert regression that required *n to
66056         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66057         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66058         getdelim, rather than whether implementation is missing.
66059         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66060         * lib/stdio_.h (getline): Also declare if replacement is
66061         required.
66062         * doc/functions/getdelim.texi: New file.
66063         * doc/functions/getline.texi: Likewise.
66064         * doc/gnulib.texi (Function Substitutes): Add new files.
66065         Reported by Bruno Haible.
66066
66067 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66068
66069         * users.txt: Add Guile.
66070
66071 2007-08-22  Eric Blake  <ebb9@byu.net>
66072
66073         * tests/test-getdelim.c (main): Use remove, not unlink.
66074         * tests/test-getline.c (main): Likewise.
66075
66076         Move getline and getdelim into stdio.h, per POSIX 200x.
66077         * modules/getline (Files): Remove getline.h.
66078         (Depends-on): Add stdio.
66079         (configure.ac): Add module indicator.
66080         * modules/getdelim (Files): Remove getdelim.h.
66081         (Depends-on): Add stdio.
66082         (configure.ac): Add module indicator.
66083         * modules/stdio (Makefile.am): Work with new indicators.
66084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66086         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66087         * lib/getdelim.h: Delete.
66088         * lib/getline.h: Delete.
66089         * lib/stdio_.h (getdelim, getline): Declare.
66090         * modules/getdelim-tests: New module.
66091         * modules/getline-tests: Likewise.
66092         * tests/test-getdelim.c: New file.
66093         * tests/test-getline.c: Likewise.
66094         * NEWS: Document the change.
66095         * lib/getline.c: Update choice of header.
66096         * lib/csharpcomp.c: Likewise.
66097         * lib/getpass.c: Likewise.
66098         * lib/javacomp.c: Likewise.
66099         * lib/javaversion.c: Likewise.
66100         * lib/yesno.c: Likewise.
66101         * lib/getdelim.c: Likewise.
66102         (getdelim): Set errno on failure, and avoid memory leak.
66103
66104 2007-08-19  Bruno Haible  <bruno@clisp.org>
66105
66106         * modules/closein (Depends-on): Add freadahead.
66107         * lib/closein.c: Include freadahead.h.
66108         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66109         is zero.
66110
66111 2007-08-19  Bruno Haible  <bruno@clisp.org>
66112
66113         * modules/freadahead-tests: New file.
66114         * tests/test-freadahead.sh: New file.
66115         * tests/test-freadahead.c: New file.
66116
66117         * modules/freadahead: New file.
66118         * lib/freadahead.h: New file.
66119         * lib/freadahead.c: New file.
66120         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66121         fbufmode, fpurge, freadable, fwritable.
66122
66123 2007-08-19  Eric Blake  <ebb9@byu.net>
66124
66125         Test yesno in combination with closein.
66126         * lib/yesno.c (yesno): Document use of stdin.
66127         * modules/yesno-tests (Files): New module.
66128         * tests/test-yesno.c (main): New file.
66129         * tests/test-yesno.sh: Likewise.
66130
66131 2007-08-19  Bruno Haible  <bruno@clisp.org>
66132
66133         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66134         * lib/fseeko.c (rpl_fseeko): Likewise.
66135         * lib/fseterr.c (fseterr): Likewise.
66136
66137 2007-08-19  Bruno Haible  <bruno@clisp.org>
66138
66139         * tests/test-lseek.c (main): Disable a test for BeOS.
66140         * doc/functions/lseek.texi: Document the BeOS bug.
66141
66142 2007-08-19  Bruno Haible  <bruno@clisp.org>
66143             Eric Blake  <ebb9@byu.net>
66144
66145         * lib/lseek.c: Include <sys/stat.h>.
66146         (rpl_lseek): Add workaround code also for Unix platforms.
66147         Needed for BeOS.
66148         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66149         * doc/functions/lseek.texi: Document BeOS definiency.
66150
66151 2007-08-18  Bruno Haible  <bruno@clisp.org>
66152
66153         * modules/fstrcmp-tests: New file.
66154         * tests/test-fstrcmp.c: New file.
66155
66156 2007-08-18  Bruno Haible  <bruno@clisp.org>
66157
66158         * modules/fstrcmp: New file, from GNU gettext with modifications.
66159         * lib/fstrcmp.h: New file, from GNU gettext.
66160         * lib/fstrcmp.c: New file, from GNU gettext.
66161         * MODULES.html.sh (String handling): Add fstrcmp.
66162
66163 2007-08-18  Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66166         'bool'.
66167         (diag, compareseq): Remove const from the ctxt argument.
66168         (USE_HEURISTIC): Undefine at the end.
66169
66170 2007-08-18  Jim Meyering  <jim@meyering.net>
66171
66172         New file: lib/idcache.h
66173         * NEWS: Mention the addition.
66174         * modules/idcache (Files): Add lib/idcache.h
66175         * lib/idcache.c: Include "idcache.h".
66176         Don't include <sys/types.h>.
66177         Add a FIXME comment.
66178         Move file-scoped "static" declarations to the top.
66179         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66180
66181 2007-08-17  Bruno Haible  <bruno@clisp.org>
66182         and Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * MODULES.html.sh: Add diffseq.
66185         * modules/diffseq: New file.
66186         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66187         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66188
66189 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         Import changes from coreutils for bootstrap script.
66192
66193         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * build-aux/bootstrap (slurp): Work even in environments where
66196         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66197         current code does not slurp files whose names start with ".", and
66198         this looks like it might be a troublesome area.
66199
66200         2007-07-11  Jim Meyering  <jim@meyering.net>
66201
66202         If there's a GPL vN copyright comment, require that N == 3.
66203
66204         2007-07-08  Jim Meyering  <jim@meyering.net>
66205
66206         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66207         * build-aux/bootstrap (mam_template): Move definition out of loop.
66208
66209         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66210
66211         * build-aux/bootstrap (symlink_to_dir): Rename function from
66212         symlink_to_gnulib.  Add a directory parameter.  Update all
66213         callers.
66214         (cp_mark_as_generated): Also check for -- and link to -- files in
66215         gl/.
66216
66217         2007-07-08  Jim Meyering  <jim@meyering.net>
66218
66219         Adapt to deeper hierarchy in gnulib.
66220         * build-aux/bootstrap (symlink_to_dir): If the destination
66221         directory doesn't exist, create it. This is required at least for
66222         "lib/uniwidth/cjk.h".
66223
66224         2007-05-15  Jim Meyering  <jim@meyering.net>
66225
66226         * build-aux/bootstrap: Now that generated Makefile.am files
66227         are no longer under version control, they must be created at
66228         bootstrap time.
66229
66230 2007-08-14  Ben Pfaff  <blp@gnu.org>
66231
66232         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66233
66234 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66237         given the changes below.
66238         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66239         even on hosts that have padding bits beyond the supported 64.
66240
66241 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66244         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66245         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66246         depends on it.
66247         (xstrtol_error): Remove.
66248         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66249         but with a different signature.
66250         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66251         * lib/xstrtol-error.c: Include exitfail.h.
66252         (xstrtol_fatal): New function, with a different signature from the
66253         old xstrtol_error, so that the caller need not worry about passing
66254         in an exit status, or about storage management of the option argument.
66255         (xstrtol_error): Now a static function.  Redo signature to
66256         implement xstrtol_fatal.  Output the correct number of hyphens in
66257         front of the option so that the caller need not worry about
66258         storage management.
66259         (N_): New macro.
66260         (_): Remove; not used now.
66261         * modules/xstrtol: Depend on getopt.
66262         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66263         of old STRTOL_FATAL_ERROR macro.
66264         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66265         of test program.
66266         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66267         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66268
66269 2007-08-08  Eric Blake  <ebb9@byu.net>
66270
66271         * lib/xstrtol-error.c: Add missing include.
66272
66273         Move xstrtol messages into gnulib domain, when --pobase is used.
66274         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66275         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66276         * modules/xstrtol (Files): Distribute new file.
66277         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66278         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66279         * tests/test-xstrtol.c: ...into new file.
66280         * tests/test-xstrtoul.c: Also test xstrtoul.
66281         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66282         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66283         * tests/test-xstrtol.sh: Drive the tests.
66284         * tests/test-xstrtoimax.sh: Likewise.
66285         * tests/test-xstrtoumax.sh: Likewise.
66286         * modules/xstrtol-tests: New module.
66287         * modules/xstrtoimax-tests: Likewise.
66288         * modules/xstrtoumax-tests: Likewise.
66289
66290 2007-08-08  Jim Meyering  <jim@meyering.net>
66291
66292         New function: mfile_name_concat.
66293         * lib/filenamecat.c (mfile_name_concat): New function, just like
66294         file_name_concat, but return NULL upon failure rather than exiting
66295         with a diagnostic.
66296         * lib/filenamecat.h: Declare it.
66297
66298 2007-08-07  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66301         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66302         warning from gcc.
66303         Reported by Eric Blake.
66304
66305 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66306
66307         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66308         * modules/crypto/arcfour (License): Likewise.
66309         * modules/crypto/des-tests (License): Likewise.
66310         * modules/crypto/gc-arctwo-tests (License): Likewise.
66311         * modules/crypto/gc-des-tests (License): Likewise.
66312         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66313         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66314         * modules/crypto/gc-md2-tests (License): Likewise.
66315         * modules/crypto/gc-md4-tests (License): Likewise.
66316         * modules/crypto/gc-md5-tests (License): Likewise.
66317         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66318         * modules/crypto/gc-rijndael-tests (License): Likewise.
66319         * modules/crypto/gc-sha1-tests (License): Likewise.
66320         * modules/crypto/gc-tests (License): Likewise.
66321         * modules/crypto/hmac-md5 (License): Likewise.
66322         * modules/crypto/hmac-sha1 (License): Likewise.
66323         * modules/crypto/md2-tests (License): Likewise.
66324         * modules/crypto/md4-tests (License): Likewise.
66325         * modules/crypto/md5 (License): Likewise.
66326         * modules/crypto/rijndael (License): Likewise.
66327         * modules/crypto/sha1 (License): Likewise.
66328         * modules/memxor (License): Likewise.
66329
66330 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66331         and Bruno Haible  <bruno@clisp.org>
66332
66333         * NEWS: Describe interface changes to human, xstrtol.
66334         * lib/human.h: Include <xstrtol.h>.
66335         (human_options): Return enum strtol_error, not int.  Remove
66336         bool arg; take int * instead.
66337         * lib/human.c: Don't include "gettext.h".
66338         (_): Remove; no longer used.
66339         Don't include <xstrtol.h>, since human.h does it.
66340         (human_options): Adjust to abovementioned interface changes.
66341         Do not report error to stderr; that's now the caller's
66342         responsibility.
66343         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66344         interface change.
66345         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66346         Str, Argument_type_string.  All uses changed.  Put " argument"
66347         in diagnostics to make them clearer.  Change wording of suffix
66348         message for clarity.
66349         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66350         Argument_type_string.
66351         (STRTOL_FATAL_WARN): Remove; no longer used.
66352         * modules/human (Depends-on): Remove gettext-h.
66353
66354 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66355
66356         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66357
66358 2007-07-31  Bruno Haible  <bruno@clisp.org>
66359
66360         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66361         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66362         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66363
66364 2007-07-31  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66367         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66368
66369 2007-07-30  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66372         * modules/c-ctype (License): Likewise.
66373         * modules/c-strcase (License): Likewise.
66374         * modules/check-version (License): Likewise.
66375         * modules/iconv (License): Likewise.
66376         * modules/iconv_open (License): Likewise.
66377         * modules/read-file (License): Likewise.
66378         * modules/striconv (License): Likewise.
66379         * modules/strverscmp (License): Likewise.
66380         * modules/vasprintf (License): Likewise.
66381         * modules/crypto/des (License): Likewise.
66382         * modules/crypto/gc (License): Likewise.
66383         * modules/crypto/gc-arcfour (License): Likewise.
66384         * modules/crypto/gc-arctwo (License): Likewise.
66385         * modules/crypto/gc-des (License): Likewise.
66386         * modules/crypto/gc-hmac-md5 (License): Likewise.
66387         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66388         * modules/crypto/gc-md2 (License): Likewise.
66389         * modules/crypto/gc-md4 (License): Likewise.
66390         * modules/crypto/gc-md5 (License): Likewise.
66391         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66392         * modules/crypto/gc-random (License): Likewise.
66393         * modules/crypto/gc-rijndael (License): Likewise.
66394         * modules/crypto/gc-sha1 (License): Likewise.
66395         * modules/crypto/md2 (License): Likewise.
66396         * modules/crypto/md4 (License): Likewise.
66397
66398 2007-07-30  Jim Meyering  <jim@meyering.net>
66399
66400         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66401         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66402         it has valid stat data.  This bug would cause du not to count the
66403         sizes of inaccessible directories.
66404         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66405         in <http://bugzilla.redhat.com/250077>.
66406
66407 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66408             Bruno Haible  <bruno@clisp.org>
66409
66410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66411         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66412         #include_next, gives a diagnostic about it, but reports no error in
66413         the exit code.
66414         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66415
66416 2007-07-24  Ben Pfaff  <blp@gnu.org>
66417
66418         Improve name: "count-one-bits" is better than "popcount".
66419         * MODULES.html.sh: Update name.
66420         * lib/popcount.h: Renamed lib/count-one-bits.h.
66421         (popcount): Renamed count_one_bits.
66422         (popcountl): Renamed count_one_bits_l.
66423         (popcountll): Renamed count_one_bits_ll.
66424         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66425         * modules/popcount: Renamed module/count-one-bits.
66426         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66427         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66428
66429 2007-07-23  Ben Pfaff  <blp@gnu.org>
66430
66431         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66432         better code generation, and add U to large constants to avoid
66433         warnings, in non-GCC case.
66434         Suggested by Bruno Haible.
66435
66436 2007-07-23  Ben Pfaff  <blp@gnu.org>
66437
66438         * lib/popcount.h: Use verify_true instead of if...abort.
66439         * modules/popcount: Depend on verify module.
66440         Suggested by Jim Meyering.
66441
66442 2007-07-23  Bruno Haible  <bruno@clisp.org>
66443
66444         * gnulib-tool (func_import): Create a .cvsignore file also when the
66445         directory is not yet in CVS but the toplevel directory is. When
66446         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66447         Reported by Karl Berry.
66448
66449 2007-07-22  Ben Pfaff  <blp@gnu.org>
66450
66451         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66452         case.
66453         Suggested by Eric Blake.
66454
66455 2007-07-22  Ben Pfaff  <blp@gnu.org>
66456
66457         New module: popcount.
66458         * MODULES.html.sh: Add popcount.
66459         * modules/popcount: New file.
66460         * modules/popcount-tests: New file.
66461         * tests/test-popcount.c: New file.
66462         * lib/popcount.h: New file.
66463         * m4/popcount.m4: New file.
66464
66465 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * build-aux/announce-gen: Update to GPLv3.
66468
66469         * build-aux/config.guess: Update from config.
66470
66471 2007-07-21  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66474         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66475
66476 2007-07-20  Jim Meyering  <jim@meyering.net>
66477
66478         * check-module: Diagnose a self-dependency.
66479
66480 2007-07-19  Bruno Haible  <bruno@clisp.org>
66481
66482         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66483         empty.
66484         Reported by Eric Blake.
66485
66486 2007-07-18  Bruno Haible  <bruno@clisp.org>
66487
66488         * gnulib-tool: New options --po-base, --po-domain.
66489         (func_usage): Document them.
66490         (pobase, po_domain): New variables.
66491         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66492         DEFAULT_TEXT_DOMAIN.
66493         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66494         (func_import): Consider pobase and po_domain. Create a po/ directory.
66495         (func_create_testdir): Set pobase and po_domain to empty.
66496         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66497         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66498
66499 2007-07-18  Bruno Haible  <bruno@clisp.org>
66500
66501         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66502         EXTRA_DIST augmentation for files in build-aux/.
66503
66504 2007-07-16  Bruno Haible  <bruno@clisp.org>
66505
66506         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66507         * modules/getdelim (License): Likewise.
66508
66509 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66510
66511         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66512         * modules/d-type (License): Likewise.
66513         * modules/extensions (License): Likewise.
66514         * modules/fnmatch (License): Likewise.
66515         * modules/fseeko (License): Likewise.
66516         * modules/getaddrinfo (License): Likewise.
66517         * modules/getline (License): Likewise.
66518         * modules/getlogin_r (License): Likewise.
66519         * modules/getpass (License): Likewise.
66520         * modules/gettimeofday (License): Likewise.
66521         * modules/glob (License): Likewise.
66522         * modules/inet_ntop (License): Likewise.
66523         * modules/malloc (License): Likewise.
66524         * modules/malloca (License): Likewise.
66525         * modules/memmem (License): Likewise.
66526         * modules/mempcpy (License): Likewise.
66527         * modules/memset (License): Likewise.
66528         * modules/minmax (License): Likewise.
66529         * modules/mktime (License): Likewise.
66530         * modules/netinet_in (License): Likewise.
66531         * modules/pathmax (License): Likewise.
66532         * modules/poll (License): Likewise.
66533         * modules/regex (License): Likewise.
66534         * modules/snprintf (License): Likewise.
66535         * modules/stdbool (License): Likewise.
66536         * modules/stdint (License): Likewise.
66537         * modules/stdio (License): Likewise.
66538         * modules/strcase (License): Likewise.
66539         * modules/strcasestr (License): Likewise.
66540         * modules/strdup (License): Likewise.
66541         * modules/string (License): Likewise.
66542         * modules/strndup (License): Likewise.
66543         * modules/strnlen (License): Likewise.
66544         * modules/strpbrk (License): Likewise.
66545         * modules/strptime (License): Likewise.
66546         * modules/strsep (License): Likewise.
66547         * modules/sys_select (License): Likewise.
66548         * modules/sys_socket (License): Likewise.
66549         * modules/sys_stat (License): Likewise.
66550         * modules/sys_time (License): Likewise.
66551         * modules/time (License): Likewise.
66552         * modules/time_r (License): Likewise.
66553         * modules/timegm (License): Likewise.
66554         * modules/unistd (License): Likewise.
66555         * modules/vsnprintf (License): Likewise.
66556         * modules/wctype (License): Likewise.
66557
66558 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66559
66560         * modules/argz (License): LGPLv2+.
66561
66562 2007-07-15  Karl Berry  <karl@gnu.org>
66563
66564         * doc/gnulib.texi: revise node structure per new fdl.texi.
66565
66566 2007-07-14  Bruno Haible  <bruno@clisp.org>
66567
66568         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66569         the output file.
66570         * lib/uniname/uninames.h: Regenerated.
66571
66572 2007-07-14  Karl Berry  <karl@gnu.org>
66573
66574         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66575         omitting sectioning and index commands.
66576
66577 2007-07-13  Bruno Haible  <bruno@clisp.org>
66578
66579         New gnulib-tool option --more-symlinks.
66580         * gnulib-tool (func_usage): Document --more-symlinks.
66581         (do_copyrights): New variable.
66582         Recognize option --more-symlinks.
66583         (func_import): Don't add a copyright notice transform to
66584         sed_transform_lib_file if do_copyrights is empty.
66585
66586 2007-07-13  Bruno Haible  <bruno@clisp.org>
66587
66588         * lib/vasnprintf.c (decimal_point_char): Define also if
66589         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66590         && !NEED_PRINTF_DIRECTIVE_A.
66591         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66592         Gary V. Vaughan <gary@gnu.org>.
66593
66594 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * lib/inttypes_.h: Undo previous change, since it was fixed
66597         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66598
66599 2007-07-13  Bruno Haible  <bruno@clisp.org>
66600
66601         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66602         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66603
66604 2007-07-13  Jim Meyering  <jim@meyering.net>
66605
66606         df: Don't fail for Tru64's "file-on-file mount".
66607         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66608         so we fall through and use statfs instead.  Details here:
66609         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66610         Reported by Albert Chin.
66611
66612 2007-07-13  Bruno Haible  <bruno@clisp.org>
66613
66614         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66615         * modules/configmake (License): Likewise.
66616         * modules/gettext (License): Likewise.
66617         * modules/gettext-h (License): Likewise.
66618         * modules/include_next (License): Likewise.
66619         * modules/link-warning (License): Likewise.
66620         * modules/localcharset (License): Likewise.
66621         * modules/localename (License): Likewise.
66622         * modules/lock (License): Likewise.
66623         * modules/relocatable-lib-lgpl (License): Likewise.
66624         * modules/size_max (License): Likewise.
66625         * modules/vasnprintf (License): Likewise.
66626         * modules/wchar (License): Likewise.
66627         * modules/xsize (License): Likewise.
66628
66629 2007-07-13  Bruno Haible  <bruno@clisp.org>
66630
66631         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66632         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66633
66634 2007-07-12  Bruno Haible  <bruno@clisp.org>
66635
66636         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66637         in the modules files.
66638
66639 2007-07-11  Karl Berry  <karl@gnu.org>
66640
66641         * MODULES.html.sh (func_module): use
66642          sed -e '\|^'"${includefile}"'$|d'
66643          instead of /.../d, to avoid errors on $includefile's containing /.
66644
66645 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66646
66647         * gnulib-tool (func_import): Avoid duplication of --avoid
66648         statements
66649         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66650         names to `_' in variable names.
66651
66652 2007-07-10  Eric Blake  <ebb9@byu.net>
66653
66654         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66655         * NEWS: Document this change.
66656
66657 2007-07-08  Bruno Haible  <bruno@clisp.org>
66658
66659         Update to Unicode 5.0.
66660         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66661         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66662         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66663         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66664         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66665         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66666         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66667         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66668         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66669         U+10A3F, U+1D242..U+1D244.
66670         (nonspacing_table_ind): Update.
66671         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66672         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66673
66674 2007-07-08  Bruno Haible  <bruno@clisp.org>
66675
66676         Update to Unicode 5.0.
66677         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66678         code transform. Extend the name index field of unicode_name_to_code and
66679         unicode_code_to_name from 16 to 24 bits.
66680         * lib/uniname/uniname.c (unicode_character_name,
66681         unicode_name_character): Add the range 0x12xxx to the code transform.
66682         * lib/uniname/uninames.h: Regenerated.
66683         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66684
66685 2007-07-07  Bruno Haible  <bruno@clisp.org>
66686
66687         * modules/wcwidth-tests: New file.
66688         * tests/test-wcwidth.c: New file.
66689
66690         Work around MacOS X wcwidth() bug.
66691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66692         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66693         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66694         original wcwidth in non-UTF-8 locales.
66695         * modules/wcwidth (Depends-on): Add localcharset, streq,
66696         uniwidth/width.
66697         * doc/functions/wcwidth.texi: Update.
66698
66699 2007-07-07  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66702         (wcwidth): New declaration.
66703         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66704         macros.
66705         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66706         here. Prepare for creating <wchar.h> unconditionally.
66707         * modules/wchar (Depends-on): Add link-warning.
66708         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66709         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66710         * lib/wcwidth.h: Remove file.
66711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66712         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66713         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66714         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66715         (Include): Replace wcwidth.h with <wchar.h>.
66716         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66717         * lib/mbchar.h: Don't include wcwidth.h.
66718         * lib/mbswidth.c: Likewise.
66719         * NEWS: Mention the change.
66720
66721 2007-07-07  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66724         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66725         definition with an external declaration.
66726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66727         defined as a function. Remove AC_C_INLINE requirement.
66728         * modules/wcwidth (Files): Add lib/wcwidth.c.
66729         (Makefile.am): Remove redundant statement.
66730
66731 2007-07-07  Bruno Haible  <bruno@clisp.org>
66732
66733         * MODULES.html.sh (Unicode string functions): Add the new modules.
66734
66735         * tests/uniwidth/test-u32-strwidth.c: New file.
66736         * modules/uniwidth/u32-strwidth-tests: New file.
66737
66738         * lib/uniwidth/u32-strwidth.c: New file.
66739         * modules/uniwidth/u32-strwidth: New file.
66740
66741         * tests/uniwidth/test-u16-strwidth.c: New file.
66742         * modules/uniwidth/u16-strwidth-tests: New file.
66743
66744         * lib/uniwidth/u16-strwidth.c: New file.
66745         * modules/uniwidth/u16-strwidth: New file.
66746
66747         * tests/uniwidth/test-u8-strwidth.c: New file.
66748         * modules/uniwidth/u8-strwidth-tests: New file.
66749
66750         * lib/uniwidth/u8-strwidth.c: New file.
66751         * modules/uniwidth/u8-strwidth: New file.
66752
66753         * tests/uniwidth/test-u32-width.c: New file.
66754         * modules/uniwidth/u32-width-tests: New file.
66755
66756         * lib/uniwidth/u32-width.c: New file.
66757         * modules/uniwidth/u32-width: New file.
66758
66759         * tests/uniwidth/test-u16-width.c: New file.
66760         * modules/uniwidth/u16-width-tests: New file.
66761
66762         * lib/uniwidth/u16-width.c: New file.
66763         * modules/uniwidth/u16-width: New file.
66764
66765         * tests/uniwidth/test-u8-width.c: New file.
66766         * modules/uniwidth/u8-width-tests: New file.
66767
66768         * lib/uniwidth/u8-width.c: New file.
66769         * modules/uniwidth/u8-width: New file.
66770
66771         * tests/uniwidth/test-uc_width.c: New file.
66772         * modules/uniwidth/width-tests: New file.
66773
66774         * lib/uniwidth/width.c: New file, from GNU libiconv.
66775         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66776         * modules/uniwidth/width: New file.
66777
66778         * lib/uniwidth.h: New file, from GNU libiconv.
66779         * modules/uniwidth/base: New file.
66780
66781 2007-07-07  Bruno Haible  <bruno@clisp.org>
66782
66783         * lib/uniname.h: New file, from GNU gettext.
66784         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66785         * lib/uniname/uninames.h: New file, from GNU gettext.
66786         * lib/uniname/uniname.c: New file, from GNU gettext.
66787         * tests/uniname/test-uninames.sh: New file.
66788         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66789         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66790         * modules/uniname/base: New file.
66791         * modules/uniname/uniname: New file.
66792         * modules/uniname/uniname-tests: New file.
66793         * MODULES.html.sh (Unicode string functions): Add the new modules.
66794
66795 2007-07-06  Bruno Haible  <bruno@clisp.org>
66796
66797         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66798
66799 2007-07-06  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66802         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66803         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66804         include <sys/time.h>.
66805         Reported by Eric Blake.
66806
66807 2007-07-06  Eric Blake  <ebb9@byu.net>
66808
66809         Fix testing canonicalize on cygwin.
66810         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66811         Revert patch from 2007-06-19.
66812         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66813         canonicalize module is also in use.
66814         * tests/test-canonicalize.c: New file.
66815         * tests/test-canonicalize.sh: Likewise.
66816         * modules/canonicalize-tests: Likewise.
66817
66818 2007-07-06  Jim Meyering  <jim@meyering.net>
66819
66820         * lib/getugroups.c (getugroups): Detect getgrent failure.
66821         Adjust comment to reflect reality: this function may return -1.
66822
66823 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66824
66825         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66826         the new TP address.
66827         (usage): Fix typo
66828         (gnulib_mk): New variable.
66829
66830 2007-07-05  Jim Meyering  <jim@meyering.net>
66831
66832         Don't let endgrent clobber errno, no matter how improbable.
66833         * lib/getugroups.c (getugroups): Save and restore errno around
66834         endgrent call.
66835
66836         Close the group DB even when failing with 2^31 or more members.
66837         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66838
66839 2007-07-04  Jim Meyering  <jim@meyering.net>
66840
66841         * lib/getugroups.h: New file.
66842         * lib/getugroups.c: Include "getugroups.h".
66843         Remove uses of "register" keyword.
66844         Move local variable, "cp", down into scope where used.
66845         Give "username" parameter the "const" attribute.
66846         * modules/getugroups (Files): Add lib/getugroups.h
66847
66848 2007-07-04  Karl Berry  <karl@gnu.org>
66849
66850         * MODULES.html.sh (func_all_modules): Complete rename of
66851         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66852
66853 2007-07-02  Bruno Haible  <bruno@clisp.org>
66854
66855         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66856         mode, when inttypes.h comes from gnulib.
66857         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66858
66859 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66860
66861         * NEWS: Mention lgpl module name change.
66862
66863         * modules/lgpl-2.1: Renamed from lgpl.
66864
66865         * NEWS: Mention gpl module name change.
66866
66867         * modules/gpl-3.0: New file, based on gpl-2.0.
66868
66869         * modules/gpl-2.0: Renamed from gpl.
66870
66871         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66872         doc/gpl-2.0.texi.
66873
66874 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66875
66876         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66877         #define __STDC_LIMIT_MACROS temporarily while including
66878         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66879         Problem reported by Joel E. Denny in
66880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66881
66882 2007-07-01  Bruno Haible  <bruno@clisp.org>
66883
66884         * lib/unistdio.h: New file.
66885         * lib/unistdio/u-asnprintf.h: New file.
66886         * lib/unistdio/u-asprintf.h: New file.
66887         * lib/unistdio/u-printf-args.c: New file.
66888         * lib/unistdio/u-printf-args.h: New file.
66889         * lib/unistdio/u-printf-parse.h: New file.
66890         * lib/unistdio/u-snprintf.h: New file.
66891         * lib/unistdio/u-sprintf.h: New file.
66892         * lib/unistdio/u-vasprintf.h: New file.
66893         * lib/unistdio/u-vsnprintf.h: New file.
66894         * lib/unistdio/u-vsprintf.h: New file.
66895         * lib/unistdio/ulc-asnprintf.c: New file.
66896         * lib/unistdio/ulc-asprintf.c: New file.
66897         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66898         * lib/unistdio/ulc-printf-parse.c: New file.
66899         * lib/unistdio/ulc-snprintf.c: New file.
66900         * lib/unistdio/ulc-sprintf.c: New file.
66901         * lib/unistdio/ulc-vasnprintf.c: New file.
66902         * lib/unistdio/ulc-vasprintf.c: New file.
66903         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66904         * lib/unistdio/ulc-vsnprintf.c: New file.
66905         * lib/unistdio/ulc-vsprintf.c: New file.
66906         * lib/unistdio/u8-asnprintf.c: New file.
66907         * lib/unistdio/u8-asprintf.c: New file.
66908         * lib/unistdio/u8-printf-parse.c: New file.
66909         * lib/unistdio/u8-snprintf.c: New file.
66910         * lib/unistdio/u8-sprintf.c: New file.
66911         * lib/unistdio/u8-vasnprintf.c: New file.
66912         * lib/unistdio/u8-vasprintf.c: New file.
66913         * lib/unistdio/u8-vsnprintf.c: New file.
66914         * lib/unistdio/u8-vsprintf.c: New file.
66915         * lib/unistdio/u8-u8-asnprintf.c: New file.
66916         * lib/unistdio/u8-u8-asprintf.c: New file.
66917         * lib/unistdio/u8-u8-snprintf.c: New file.
66918         * lib/unistdio/u8-u8-sprintf.c: New file.
66919         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66920         * lib/unistdio/u8-u8-vasprintf.c: New file.
66921         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66922         * lib/unistdio/u8-u8-vsprintf.c: New file.
66923         * lib/unistdio/u16-asnprintf.c: New file.
66924         * lib/unistdio/u16-asprintf.c: New file.
66925         * lib/unistdio/u16-printf-parse.c: New file.
66926         * lib/unistdio/u16-snprintf.c: New file.
66927         * lib/unistdio/u16-sprintf.c: New file.
66928         * lib/unistdio/u16-vasnprintf.c: New file.
66929         * lib/unistdio/u16-vasprintf.c: New file.
66930         * lib/unistdio/u16-vsnprintf.c: New file.
66931         * lib/unistdio/u16-vsprintf.c: New file.
66932         * lib/unistdio/u16-u16-asnprintf.c: New file.
66933         * lib/unistdio/u16-u16-asprintf.c: New file.
66934         * lib/unistdio/u16-u16-snprintf.c: New file.
66935         * lib/unistdio/u16-u16-sprintf.c: New file.
66936         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66937         * lib/unistdio/u16-u16-vasprintf.c: New file.
66938         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66939         * lib/unistdio/u16-u16-vsprintf.c: New file.
66940         * lib/unistdio/u32-asnprintf.c: New file.
66941         * lib/unistdio/u32-asprintf.c: New file.
66942         * lib/unistdio/u32-printf-parse.c: New file.
66943         * lib/unistdio/u32-snprintf.c: New file.
66944         * lib/unistdio/u32-sprintf.c: New file.
66945         * lib/unistdio/u32-vasnprintf.c: New file.
66946         * lib/unistdio/u32-vasprintf.c: New file.
66947         * lib/unistdio/u32-vsnprintf.c: New file.
66948         * lib/unistdio/u32-vsprintf.c: New file.
66949         * lib/unistdio/u32-u32-asnprintf.c: New file.
66950         * lib/unistdio/u32-u32-asprintf.c: New file.
66951         * lib/unistdio/u32-u32-snprintf.c: New file.
66952         * lib/unistdio/u32-u32-sprintf.c: New file.
66953         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66954         * lib/unistdio/u32-u32-vasprintf.c: New file.
66955         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66956         * lib/unistdio/u32-u32-vsprintf.c: New file.
66957         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66958         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66959         * tests/unistdio/test-ulc-printf1.h: New file.
66960         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66961         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66962         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66963         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66964         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66965         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66966         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66967         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66968         * tests/unistdio/test-u8-asnprintf1.c: New file.
66969         * tests/unistdio/test-u8-asnprintf1.h: New file.
66970         * tests/unistdio/test-u8-printf1.h: New file.
66971         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66972         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66973         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66974         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66975         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66976         * tests/unistdio/test-u8-vasprintf1.c: New file.
66977         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66978         * tests/unistdio/test-u8-vsprintf1.c: New file.
66979         * tests/unistdio/test-u16-asnprintf1.c: New file.
66980         * tests/unistdio/test-u16-asnprintf1.h: New file.
66981         * tests/unistdio/test-u16-printf1.h: New file.
66982         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66983         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66984         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66985         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66986         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66987         * tests/unistdio/test-u16-vasprintf1.c: New file.
66988         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66989         * tests/unistdio/test-u16-vsprintf1.c: New file.
66990         * tests/unistdio/test-u32-asnprintf1.c: New file.
66991         * tests/unistdio/test-u32-asnprintf1.h: New file.
66992         * tests/unistdio/test-u32-printf1.h: New file.
66993         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66994         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66995         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66996         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66997         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66998         * tests/unistdio/test-u32-vasprintf1.c: New file.
66999         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67000         * tests/unistdio/test-u32-vsprintf1.c: New file.
67001         * modules/unistdio/base: New file.
67002         * modules/unistdio/u-printf-args: New file.
67003         * modules/unistdio/ulc-asnprintf: New file.
67004         * modules/unistdio/ulc-asprintf: New file.
67005         * modules/unistdio/ulc-fprintf: New file.
67006         * modules/unistdio/ulc-printf-parse: New file.
67007         * modules/unistdio/ulc-snprintf: New file.
67008         * modules/unistdio/ulc-sprintf: New file.
67009         * modules/unistdio/ulc-vasnprintf: New file.
67010         * modules/unistdio/ulc-vasprintf: New file.
67011         * modules/unistdio/ulc-vfprintf: New file.
67012         * modules/unistdio/ulc-vsnprintf: New file.
67013         * modules/unistdio/ulc-vsprintf: New file.
67014         * modules/unistdio/u8-asnprintf: New file.
67015         * modules/unistdio/u8-asprintf: New file.
67016         * modules/unistdio/u8-printf-parse: New file.
67017         * modules/unistdio/u8-snprintf: New file.
67018         * modules/unistdio/u8-sprintf: New file.
67019         * modules/unistdio/u8-vasnprintf: New file.
67020         * modules/unistdio/u8-vasprintf: New file.
67021         * modules/unistdio/u8-vsnprintf: New file.
67022         * modules/unistdio/u8-vsprintf: New file.
67023         * modules/unistdio/u8-u8-asnprintf: New file.
67024         * modules/unistdio/u8-u8-asprintf: New file.
67025         * modules/unistdio/u8-u8-snprintf: New file.
67026         * modules/unistdio/u8-u8-sprintf: New file.
67027         * modules/unistdio/u8-u8-vasnprintf: New file.
67028         * modules/unistdio/u8-u8-vasprintf: New file.
67029         * modules/unistdio/u8-u8-vsnprintf: New file.
67030         * modules/unistdio/u8-u8-vsprintf: New file.
67031         * modules/unistdio/u16-asnprintf: New file.
67032         * modules/unistdio/u16-asprintf: New file.
67033         * modules/unistdio/u16-printf-parse: New file.
67034         * modules/unistdio/u16-snprintf: New file.
67035         * modules/unistdio/u16-sprintf: New file.
67036         * modules/unistdio/u16-vasnprintf: New file.
67037         * modules/unistdio/u16-vasprintf: New file.
67038         * modules/unistdio/u16-vsnprintf: New file.
67039         * modules/unistdio/u16-vsprintf: New file.
67040         * modules/unistdio/u16-u16-asnprintf: New file.
67041         * modules/unistdio/u16-u16-asprintf: New file.
67042         * modules/unistdio/u16-u16-snprintf: New file.
67043         * modules/unistdio/u16-u16-sprintf: New file.
67044         * modules/unistdio/u16-u16-vasnprintf: New file.
67045         * modules/unistdio/u16-u16-vasprintf: New file.
67046         * modules/unistdio/u16-u16-vsnprintf: New file.
67047         * modules/unistdio/u16-u16-vsprintf: New file.
67048         * modules/unistdio/u32-asnprintf: New file.
67049         * modules/unistdio/u32-asprintf: New file.
67050         * modules/unistdio/u32-printf-parse: New file.
67051         * modules/unistdio/u32-snprintf: New file.
67052         * modules/unistdio/u32-sprintf: New file.
67053         * modules/unistdio/u32-vasnprintf: New file.
67054         * modules/unistdio/u32-vasprintf: New file.
67055         * modules/unistdio/u32-vsnprintf: New file.
67056         * modules/unistdio/u32-vsprintf: New file.
67057         * modules/unistdio/u32-u32-asnprintf: New file.
67058         * modules/unistdio/u32-u32-asprintf: New file.
67059         * modules/unistdio/u32-u32-snprintf: New file.
67060         * modules/unistdio/u32-u32-sprintf: New file.
67061         * modules/unistdio/u32-u32-vasnprintf: New file.
67062         * modules/unistdio/u32-u32-vasprintf: New file.
67063         * modules/unistdio/u32-u32-vsnprintf: New file.
67064         * modules/unistdio/u32-u32-vsprintf: New file.
67065         * modules/unistdio/ulc-asnprintf-tests: New file.
67066         * modules/unistdio/ulc-vasnprintf-tests: New file.
67067         * modules/unistdio/ulc-vasprintf-tests: New file.
67068         * modules/unistdio/ulc-vsnprintf-tests: New file.
67069         * modules/unistdio/ulc-vsprintf-tests: New file.
67070         * modules/unistdio/u8-asnprintf-tests: New file.
67071         * modules/unistdio/u8-vasnprintf-tests: New file.
67072         * modules/unistdio/u8-vasprintf-tests: New file.
67073         * modules/unistdio/u8-vsnprintf-tests: New file.
67074         * modules/unistdio/u8-vsprintf-tests: New file.
67075         * modules/unistdio/u16-asnprintf-tests: New file.
67076         * modules/unistdio/u16-vasnprintf-tests: New file.
67077         * modules/unistdio/u16-vasprintf-tests: New file.
67078         * modules/unistdio/u16-vsnprintf-tests: New file.
67079         * modules/unistdio/u16-vsprintf-tests: New file.
67080         * modules/unistdio/u32-asnprintf-tests: New file.
67081         * modules/unistdio/u32-vasnprintf-tests: New file.
67082         * modules/unistdio/u32-vasprintf-tests: New file.
67083         * modules/unistdio/u32-vsnprintf-tests: New file.
67084         * modules/unistdio/u32-vsprintf-tests: New file.
67085         * MODULES.html.sh (Unicode string functions): Add the new modules.
67086
67087 2007-07-01  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/sprintf.c (sprintf): Limit the available length estimation,
67090         to avoid address wraparound.
67091         * lib/vsprintf.c (vsprintf): Likewise.
67092         * modules/sprintf-posix (Dependencies): Add stdint.
67093         * modules/vsprintf-posix (Dependencies): Likewise.
67094
67095 2007-07-01  Bruno Haible  <bruno@clisp.org>
67096
67097         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67098         Windows PATH as well. Conservative double-quoting. Comments.
67099
67100 2007-07-01  Bruno Haible  <bruno@clisp.org>
67101             Eric Blake  <ebb9@byu.net>
67102             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67103
67104         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67105         empty components in $PATH, denoting '.'.
67106
67107 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67108
67109         * gnulib-tool: Fix indentation.
67110         (func_create_megatestdir): Likewise.
67111         Report by Bruno Haible.
67112
67113 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67114
67115         Sync from Automake.
67116         * build-aux/gnupload: Fix shell portability issues with for loops.
67117         Report by Karl Berry.
67118
67119 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67120
67121         * build-aux/maint.mk (POURL): Use translationproject.org.
67122
67123 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67124             Bruno Haible  <bruno@clisp.org>
67125
67126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67127         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67128         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67129         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67130         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67131
67132 2007-06-27  Bruno Haible  <bruno@clisp.org>
67133
67134         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67135         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67136
67137 2007-06-26  Karl Berry  <karl@gnu.org>
67138
67139         * MODULES.html.sh: remove xreadlink-with-size.
67140
67141 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67144         method that I hope also handles the double-include problem noted
67145         by Bruno Haible in
67146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67147
67148 2007-06-23  Bruno Haible  <bruno@clisp.org>
67149
67150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67151         Don't let the 'mostlyclean' target fail if the last subdirectory could
67152         not be removed.
67153         Reported by Karl Berry.
67154
67155 2007-06-23  Bruno Haible  <bruno@clisp.org>
67156
67157         * gnulib-tool (echo): Add a speedier workaround for ksh.
67158         * tests/test-echo.sh: Likewise.
67159
67160 2007-06-23  Bruno Haible  <bruno@clisp.org>
67161
67162         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67163         * tests/test-echo.sh: Likewise.
67164
67165 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67166
67167         * gnulib-tool (IFS): Initialize early, so we don't set it to
67168         empty later.
67169         (self_abspathname): Rewrite algorithm to set it, reindent.
67170         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67171         (func_create_megatestdir): Merge some sed scripts.
67172
67173 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67174
67175         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67176         exposed by Sun Studio 11 cc on Solaris 8.
67177
67178 2007-06-22  Bruno Haible  <bruno@clisp.org>
67179
67180         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67181         backslashes.
67182         * tests/test-echo.sh: New file.
67183
67184 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67185
67186         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67187         simplify `sed_replace_build_aux' scripts, they are portable but
67188         echoing them with `echo' is not.
67189         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67190
67191 2007-06-21  Karl Berry  <karl@gnu.org>
67192
67193         * config/srclist.txt: guess we can't handle the licenses via
67194         srclist at the moment.
67195
67196 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * MODULES.html.sh: Add include_next.
67199         * modules/include_next: New file.
67200
67201 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67204         INCLUDE_NEXT.
67205         (gl_CHECK_NEXT_HEADERS): New macro.
67206         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67207         the obsolescent gl_ABSOLUTE_HEADER.
67208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67209         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67210         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67211         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67212         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67213         * m4/math_h.m4 (gl_MATH_H): Likewise.
67214         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67215         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67216         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67217         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67218         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67219         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67220         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67221         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67222         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67223         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67225         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67226         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67227         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67228         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67229         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67230         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67231         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67232         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67233         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67234         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67235         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67236         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67237         * lib/float_.h: Likewise.
67238         * lib/inttypes_.h: Likewise.
67239         * lib/math_.h: Likewise.
67240         * lib/search_.h: Likewise.
67241         * lib/signal_.h: Likewise.
67242         * lib/stdint_.h: Likewise.
67243         * lib/stdio_.h: Likewise.
67244         * lib/stdlib_.h: Likewise.
67245         * lib/string_.h: Likewise.
67246         * lib/sys_stat_.h: Likewise.
67247         * lib/sys_time_.h: Likewise.
67248         * lib/time_.h: Likewise.
67249         * lib/unistd_.h: Likewise.
67250         * lib/wchar_.h: Likewise.
67251         * lib/wctype_.h: Likewise.
67252         * lib/dirent_.h: Likewise.
67253         * lib/iconv_.h: Likewise.
67254         * lib/locale_.h: Likewise.
67255         * lib/netinet_in_.h: Likewise.
67256         * lib/sys_select_.h: Likewise.
67257         * lib/sys_socket_.h: Likewise.
67258         * lib/sysexits_.h: Likewise.
67259         * modules/fcntl (Depends-on): Depend on include_next, not
67260         absolute_header.
67261         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67262         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67263         * modules/fchdir: Likewise.
67264         * modules/float: Likewise.
67265         * modules/iconv_open: Likewise.
67266         * modules/inttypes: Likewise.
67267         * modules/locale: Likewise.
67268         * modules/math: Likewise.
67269         * modules/netinet_in: Likewise.
67270         * modules/search: Likewise.
67271         * modules/signal: Likewise.
67272         * modules/stdint: Likewise.
67273         * modules/stdio: Likewise.
67274         * modules/stdlib: Likewise.
67275         * modules/string: Likewise.
67276         * modules/sys_select: Likewise.
67277         * modules/sys_socket: Likewise.
67278         * modules/sys_stat: Likewise.
67279         * modules/sys_time: Likewise.
67280         * modules/sysexits: Likewise.
67281         * modules/time: Likewise.
67282         * modules/unistd: Likewise.
67283         * modules/wchar: Likewise.
67284         * modules/wctype: Likewise.
67285         * modules/sys_stat: Change maintainer to "all".
67286         * modules/unistd: Likewise.
67287
67288 2007-06-20  Karl Berry  <karl@gnu.org>
67289
67290         * config/srclist.txt: track www changes in license files.
67291
67292 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67293
67294         * build-aux/bootstrap: Remove stray dot.
67295         Make sure build_aux settings are honored when linking
67296         gnulib_extra_files.
67297
67298 2007-06-19  Eric Blake  <ebb9@byu.net>
67299
67300         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67301         Allow compilation on cygwin.
67302
67303 2007-06-19  Jim Meyering  <jim@meyering.net>
67304
67305         xreadlink-with-size: Remove module.  No longer used.
67306         Ex-callers now use xreadlink or mreadlink-with-size.
67307         * modules/xreadlink-with-size: Remove module.
67308         * lib/xreadlink-with-size.c: Remove file.
67309         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67310         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67311         just before the function definition *is* accurate.
67312
67313         Eliminate one way canonicalize_filename_mode could exit.
67314         * lib/canonicalize.c (canonicalize_filename_mode):
67315         Use mreadlink_with_size, not xreadlink_with_size.
67316
67317 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67318
67319         Detect porting problems to FreeBSD/arm, which has time_t wider than
67320         long int.  Original problem reported for GNU diff by Xin Li in
67321         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67322         * modules/getdate (Depends-on): Add intprops, verify.
67323         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67324         is an integer type no wider than long int.
67325
67326 2007-06-18  Jim Meyering  <jim@meyering.net>
67327
67328         New module: mreadlink-with-size.
67329         * MODULES.html.sh: Add mreadlink-with-size.
67330         * modules/mreadlink-with-size: New module
67331         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67332         not xreadlink-with-size.
67333         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67334
67335 2007-06-16  Bruno Haible  <bruno@clisp.org>
67336
67337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67338         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67339         Reported by Gary V. Vaughan <gary@gnu.org>.
67340
67341 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         Revamp lchown so that it lives in unistd.h where it belongs.
67344         * lib/lchown.h: Remove.
67345         * lib/dirchownmod.c: Don't include lib/lchown.h.
67346         * lib/fchownat.c: Likewise.
67347         * lib/openat.c: Likewise.
67348         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67349         does not follow symlinks.
67350         (EOPNOTSUPP): Define if not defined.
67351         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67352         is defined to 0.
67353         (lchown): New decl.
67354         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67355         Do not check for lchown decl.
67356         Set REPLACE_LCHOWN.
67357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67358         REPLACE_LCHOWN.
67359         * modules/chown: Make it clear it follows symlinks.
67360         * modules/lchown: Make it clear it doesn't follow symlinks.
67361         (Files): Remove lib/lchown.h
67362         (Depends-on): Add unistd.
67363         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67364         (Include): Include <unistd.h>, not "lchown.h".
67365         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67366         REPLACE_LCHOWN.
67367
67368 2007-06-15  Jim Meyering  <jim@meyering.net>
67369
67370         Change license (GPL to LGPL) of fsusage and dependents.
67371         * modules/fsusage (License): Change to LGPL.
67372         * modules/full-read (License): Likewise.
67373         * modules/full-write (License): Likewise.
67374         * modules/safe-read (License): Likewise.
67375         * modules/safe-write (License): Likewise.
67376
67377 2007-06-14  Ben Pfaff  <blp@gnu.org>
67378
67379         Missing part of allocsa -> malloca transition.
67380         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67381         gl_MALLOCA.
67382
67383 2007-06-12  Bruno Haible  <bruno@clisp.org>
67384
67385         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67386         to ia64, x86_64, i386.
67387         Reported by Eric Blake.
67388
67389 2007-06-12  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67392         cross-compiling to x86_64.
67393
67394 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67395
67396         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67397         glitch reported by Ralf Wildenhues in
67398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67399
67400         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67401         Vin Shelton.
67402
67403 2007-06-11  Bruno Haible  <bruno@clisp.org>
67404
67405         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67406         replacement string.
67407         Reported by Eric Blake.
67408
67409 2007-06-10  Bruno Haible  <bruno@clisp.org>
67410
67411         Prepare vasnprintf code for use with Unicode strings.
67412         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67413         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67414         TYPE_U32_STRING.
67415         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67416         a_u32_string variants.
67417         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67418         * lib/printf-args.c: Don't include config.h and the specification
67419         header if PRINTF_FETCHARGS is already defined.
67420         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67421         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67422         TYPE_U16_STRING, TYPE_U32_STRING.
67423         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67424         u16_directive, u16_directives, u32_directive, u32_directives): New
67425         types.
67426         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67427         New declarations.
67428         * lib/printf-parse.c: Don't include config.h and the specification
67429         header if PRINTF_PARSE is already defined. Eliminate the set of
67430         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67431         them now. Include c-ctype.h.
67432         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67433         directive and CHAR_T_ONLY_ASCII.
67434         * lib/vasnprintf.c: Don't include config.h and the specification header
67435         if VASNPRINTF is already defined.
67436         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67437         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67438         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67439         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67440         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67441         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67442         code accordingly.
67443         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67444         pad_ourselves also in this case, with the 'c' and 's' directives, and
67445         with a different notion of "width".
67446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67447
67448 2007-06-10  Bruno Haible  <bruno@clisp.org>
67449
67450         * modules/unistr/u32-mbsnlen: New file.
67451         * lib/unistr/u32-mbsnlen.c: New file.
67452
67453         * modules/unistr/u16-mbsnlen: New file.
67454         * lib/unistr/u16-mbsnlen.c: New file.
67455
67456         * modules/unistr/u8-mbsnlen: New file.
67457         * lib/unistr/u8-mbsnlen.c: New file.
67458
67459         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67460         declarations.
67461
67462 2007-06-10  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/string_.h (mbsnlen): New declaration.
67465         * lib/mbsnlen.c: New file.
67466         * m4/mbsnlen.m4: New file.
67467         * modules/mbsnlen: New file.
67468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67469         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67470         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67471
67472 2007-06-10  Bruno Haible  <bruno@clisp.org>
67473
67474         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67475
67476 2007-06-10  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67479         * lib/mbuiter.h: Likewise.
67480
67481 2007-06-10  Bruno Haible  <bruno@clisp.org>
67482
67483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67484         declaration.
67485
67486 2007-06-10  Karl Berry  <karl@gnu.org>
67487
67488         * config/srclist.txt: remove gettext entries, Bruno prefers
67489         to update individually.
67490
67491 2007-06-10  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67494         'maxlen'. Ensure only length + width bytes are allocated, not
67495         length + 1 + width.
67496
67497 2007-06-09  Bruno Haible  <bruno@clisp.org>
67498
67499         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67500         (CHAR_T): Remove macro.
67501         (VASNPRINTF): Update.
67502
67503 2007-06-09  Bruno Haible  <bruno@clisp.org>
67504
67505         * MODULES.html.sh (Unicode string functions): Add the new modules.
67506
67507         * modules/uniconv/u32-conv-to-enc: New file.
67508         * lib/uniconv/u32-conv-to-enc.c: New file.
67509         * modules/uniconv/u32-conv-to-enc-tests: New file.
67510         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67511
67512         * modules/uniconv/u16-conv-to-enc: New file.
67513         * lib/uniconv/u16-conv-to-enc.c: New file.
67514         * lib/uniconv/u-conv-to-enc.h: New file.
67515         * modules/uniconv/u16-conv-to-enc-tests: New file.
67516         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67517
67518         * modules/uniconv/u8-conv-to-enc: New file.
67519         * lib/uniconv/u8-conv-to-enc.c: New file.
67520         * modules/uniconv/u8-conv-to-enc-tests: New file.
67521         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67522
67523         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67524         u32_conv_to_encoding): New declarations.
67525
67526 2007-06-09  Bruno Haible  <bruno@clisp.org>
67527
67528         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67529
67530 2007-06-09  Bruno Haible  <bruno@clisp.org>
67531
67532         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67533         * modules/malloca: Renamed from modules/allocsa, updated.
67534         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67535         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67536         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67537         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67538         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67539         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67540         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67541         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67542         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67543         * modules/c-strcasestr (Depends-on): Update.
67544         * lib/c-strcasestr.c: Update.
67545         * modules/c-strstr (Depends-on): Update.
67546         * lib/c-strstr.c: Update.
67547         * modules/canonicalize-lgpl (Depends-on): Update.
67548         * lib/canonicalize-lgpl.c: Update.
67549         * modules/clean-temp (Depends-on): Update.
67550         * lib/clean-temp.c: Update.
67551         * modules/csharpcomp (Depends-on): Update.
67552         * lib/csharpcomp.c: Update.
67553         * modules/csharpexec (Depends-on): Update.
67554         * lib/csharpexec.c: Update.
67555         * modules/javacomp (Depends-on): Update.
67556         * lib/javacomp.c: Update.
67557         * modules/javaexec (Depends-on): Update.
67558         * lib/javaexec.c: Update.
67559         * modules/mbscasestr (Depends-on): Update.
67560         * lib/mbscasestr.c: Update.
67561         * modules/mbsstr (Depends-on): Update.
67562         * lib/mbsstr.c: Update.
67563         * modules/setenv (Depends-on): Update.
67564         * lib/setenv.c: Update.
67565         * modules/strcasestr (Depends-on): Update.
67566         * lib/strcasestr.c: Update.
67567         * modules/striconveha (Depends-on): Update.
67568         * lib/striconveha.c: Update.
67569         * modules/relocatable-prog-wrapper (Files): Update.
67570         * lib/relocwrapper.c: Update.
67571         * build-aux/install-reloc: Update.
67572         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67573
67574 2007-06-08  Bruno Haible  <bruno@clisp.org>
67575
67576         Port to uClibc.
67577         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67578         * lib/fpurge.c (fpurge): Likewise.
67579         * lib/freading.c (freading): Likewise.
67580         * lib/fseeko.c (rpl_fseeko): Likewise.
67581         * lib/fseterr.c (fseterr): Likewise.
67582         * lib/fwriting.c (fwriting): Likewise.
67583         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67584
67585 2007-06-08  Bruno Haible  <bruno@clisp.org>
67586
67587         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67588         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67589         * modules/gettext (Files): Add m4/intlmacosx.m4.
67590
67591 2007-06-07  Bruno Haible  <bruno@clisp.org>
67592
67593         * modules/localename-tests: New file.
67594         * tests/test-localename.c: New file.
67595
67596         New module 'localename'.
67597         * lib/localename.h: New file.
67598         * lib/localename.c: New file, from GNU gettext.
67599         * m4/localename.m4: New file.
67600         * modules/localename: New file.
67601
67602 2007-06-07  Bruno Haible  <bruno@clisp.org>
67603
67604         Work around the lack of <wchar.h> on some builds of uClibc.
67605         * doc/headers/wchar.texi: Update.
67606         * lib/wchar_.h: Include <wchar.h> only if it exists.
67607         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67608         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67609         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67610         doesn't exist.
67611         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67612         * modules/mbfile (Depends-on): Add wchar.
67613         * modules/mbiter (Depends-on): Likewise.
67614         * modules/mbuiter (Depends-on): Likewise.
67615         Reported by Simon Josefsson.
67616
67617 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         Work around problem reported by Steven M. Schweda in
67620         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67621         Tru64 5.1B with the Compaq compiler environment installed declares
67622         an 'isblank' function but does not define it in the C library.
67623         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67624         * lib/regex_internal.h (isblank): Likewise.
67625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67626         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67627
67628 2007-06-05  Bruno Haible  <bruno@clisp.org>
67629
67630         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67631         ia64.
67632         * modules/printf-safe: New file.
67633         * modules/fprintf-posix (Depends-on): Add printf-safe.
67634         * modules/printf-posix (Depends-on): Likewise.
67635         * modules/snprintf-posix (Depends-on): Likewise.
67636         * modules/sprintf-posix (Depends-on): Likewise.
67637         * modules/vasnprintf-posix (Depends-on): Likewise.
67638         * modules/vasprintf-posix (Depends-on): Likewise.
67639         * modules/vfprintf-posix (Depends-on): Likewise.
67640         * modules/vprintf-posix (Depends-on): Likewise.
67641         * modules/vsnprintf-posix (Depends-on): Likewise.
67642         * modules/vsprintf-posix (Depends-on): Likewise.
67643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67644         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67645         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67646         "no" on i386, x86_64, ia64.
67647         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67648         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67649         on i386, x86_64, ia64.
67650         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67651         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67652         on i386, x86_64, ia64.
67653         * tests/test-vasnprintf-posix.c: Include float.h.
67654         (LDBL80_WORDS): New macro.
67655         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67656         on i386, x86_64, ia64.
67657         * tests/test-vasprintf-posix.c: Include float.h.
67658         (LDBL80_WORDS): New macro.
67659         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67660         on i386, x86_64, ia64.
67661         * tests/test-snprintf-posix.c: Include float.h.
67662         * tests/test-sprintf-posix.c: Likewise.
67663         * tests/test-vsnprintf-posix.c: Likewise.
67664         * tests/test-vsprintf-posix.c: Likewise.
67665
67666 2007-06-05  Bruno Haible  <bruno@clisp.org>
67667
67668         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67669         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67670         non-IEEE numbers on i386, x86_64, ia64.
67671         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67672         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67673         * tests/test-isnanl.h: Include float.h.
67674         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67675
67676 2007-06-05  Bruno Haible  <bruno@clisp.org>
67677
67678         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67679         also the %a / %A. Handle the %a / %A code before this extra handling.
67680
67681 2007-06-05  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67684         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67685
67686 2007-06-05  Bruno Haible  <bruno@clisp.org>
67687
67688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67689         typo in variable name.
67690
67691 2007-06-05  Eric Blake  <ebb9@byu.net>
67692
67693         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67694         Reported by Simon Josefsson.
67695
67696 2007-06-04  Bruno Haible  <bruno@clisp.org>
67697
67698         Avoid test failures on some PowerPC platforms.
67699         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67700         Define differently for PowerPC.
67701         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67702         Reported by Gary V. Vaughan <gary@gnu.org>.
67703
67704 2007-06-02  Bruno Haible  <bruno@clisp.org>
67705
67706         Fix test-stdint failure on FreeBSD/ia64.
67707         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67708         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67709         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67710         * doc/headers/stdint.texi: Update.
67711
67712 2007-06-01  Bruno Haible  <bruno@clisp.org>
67713
67714         * tests/test-binary-io.c (main): Pass a third argument to open().
67715         Reported by Gary V. Vaughan <gary@gnu.org>.
67716
67717 2007-06-01  Bruno Haible  <bruno@clisp.org>
67718
67719         * doc/functions/frexpl.texi: Update for mingw.
67720
67721 2007-06-01  Bruno Haible  <bruno@clisp.org>
67722
67723         * tests/test-lseek.c (main): Disable test of errno for invalid third
67724         argument.
67725         * doc/functions/lseek.texi: Update.
67726         Reported by Gary V. Vaughan <gary@gnu.org>.
67727
67728 2007-05-28  Bruno Haible  <bruno@clisp.org>
67729
67730         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67731
67732 2007-05-31  Eric Blake  <ebb9@byu.net>
67733
67734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67735         cross compiling.
67736
67737 2007-05-30  Eric Blake  <ebb9@byu.net>
67738         and Bruno Haible  <bruno@clisp.org>
67739
67740         Work around mingw test failures exposed by m4-1.4.9b.
67741         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67742         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67743         moment.
67744
67745 2007-05-30  Bruno Haible  <bruno@clisp.org>
67746
67747         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67748         assuming that they are closed. Needed on HP-UX 11.
67749
67750 2007-05-29  Bruno Haible  <bruno@clisp.org>
67751
67752         Fix a problem with #include_next.
67753         * lib/dirent_.h: Split the double-inclusion guard.
67754         * lib/fcntl_.h: Likewise.
67755         * lib/float_.h: Likewise.
67756         * lib/iconv_.h: Likewise.
67757         * lib/inttypes_.h: Likewise.
67758         * lib/locale_.h: Likewise.
67759         * lib/math_.h: Likewise.
67760         * lib/netinet_in_.h: Likewise.
67761         * lib/search_.h: Likewise.
67762         * lib/signal_.h: Likewise.
67763         * lib/stdint_.h: Likewise.
67764         * lib/stdio_.h: Likewise.
67765         * lib/stdlib_.h: Likewise.
67766         * lib/string_.h: Likewise.
67767         * lib/sys_select_.h: Likewise.
67768         * lib/sys_socket_.h: Likewise.
67769         * lib/sys_stat_.h: Likewise.
67770         * lib/sys_time_.h: Likewise.
67771         * lib/sysexits_.h: Likewise.
67772         * lib/time_.h: Likewise.
67773         * lib/unistd_.h: Likewise.
67774         * lib/wchar_.h: Likewise.
67775         * lib/wctype_.h: Likewise.
67776
67777 2007-05-29  Bruno Haible  <bruno@clisp.org>
67778
67779         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67780         for the moment.
67781
67782 2007-05-29  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67785         invocation.
67786         Reported by Eric Blake.
67787
67788 2007-05-29  Bruno Haible  <bruno@clisp.org>
67789
67790         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67791         compiling case.
67792
67793 2007-05-29  Eric Blake  <ebb9@byu.net>
67794             Bruno Haible  <bruno@clisp.org>
67795
67796         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67797         cross compiles.
67798
67799 2007-05-28  Eric Blake  <ebb9@byu.net>
67800
67801         * modules/closein-tests (test_closein_LDADD): Support test on
67802         cygwin with libtool.
67803
67804 2007-05-28  Bruno Haible  <bruno@clisp.org>
67805
67806         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67807         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67808         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67809         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67810         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67811         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67812         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67813         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67814         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67815
67816 2007-05-28  Eric Blake  <ebb9@byu.net>
67817
67818         Unconditionally include <config.h> in unit tests.
67819         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67820         * tests/test-allocsa.c, tests/test-arcfour.c,
67821         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67822         tests/test-array_list.c, tests/test-array_oset.c,
67823         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67824         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67825         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67826         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67827         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67828         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67829         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67830         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67831         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67832         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67833         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67834         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67835         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67836         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67837         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67838         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67839         test-md5.c, test-memmem.c, test-printf-posix.c,
67840         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67841         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67842         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67843         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67844         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67845         test-vasnprintf-posix2.c, test-vasnprintf.c,
67846         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67847         test-vfprintf-posix.c, test-vprintf-posix.c,
67848         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67849         test-xvasprintf.c: Likewise.
67850
67851 2007-05-28  Bruno Haible  <bruno@clisp.org>
67852
67853         * gnulib-tool (func_import): Remember the --with-tests command-line
67854         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67855         Reported by Eric Blake.
67856
67857 2007-05-28  Bruno Haible  <bruno@clisp.org>
67858
67859         * modules/ftell-tests: New file.
67860         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67861         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67862
67863         * lib/ftell.c: New file.
67864         * modules/ftell: New file.
67865         * m4/ftell.m4: New file.
67866         * doc/functions/ftell.texi: Update.
67867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67868         REPLACE_FTELL.
67869         * lib/stdio_.h (rpl_ftell): New declaration.
67870         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67871         REPLACE_FTELL.
67872
67873 2007-05-28  Eric Blake  <ebb9@byu.net>
67874
67875         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67876
67877 2007-05-28  Bruno Haible  <bruno@clisp.org>
67878
67879         * modules/fseek-tests: New file.
67880         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67881         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67882
67883         * lib/fseek.c: New file.
67884         * modules/fseek: New file.
67885         * m4/fseek.m4: New file.
67886         * doc/functions/fseek.texi: Update.
67887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67888         REPLACE_FSEEK.
67889         * lib/stdio_.h (rpl_fseek): New declaration.
67890         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67891         REPLACE_FSEEK.
67892
67893 2007-05-28  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/stdio_.h (fflush): More comments.
67896
67897 2007-05-28  Bruno Haible  <bruno@clisp.org>
67898
67899         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67900         runtime test.
67901
67902 2007-05-28  Eric Blake  <ebb9@byu.net>
67903
67904         Improve lseek module.
67905         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67906         * lib/unistd_.h (lseek): Scale back link warning message.
67907         * tests/test-lseek.c: Beef up test.
67908         * tests/test-lseek.sh: Exercise more facets of lseek.
67909         Reported by Bruno Haible.
67910
67911 2007-05-28  Bruno Haible  <bruno@clisp.org>
67912
67913         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67914         to define.
67915
67916 2007-05-27  Bruno Haible  <bruno@clisp.org>
67917
67918         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67919
67920 2007-05-27  Bruno Haible  <bruno@clisp.org>
67921
67922         * modules/openmp: New file.
67923         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67924         Noah Misch.
67925
67926 2007-05-26  Bruno Haible  <bruno@clisp.org>
67927
67928         * modules/chdir-long (Depends-on): Add fchdir.
67929         * modules/chdir-safer (Depends-on): Likewise.
67930         * modules/fts (Depends-on): Likewise.
67931         * modules/fts-lgpl (Depends-on): Likewise.
67932         * modules/openat (Depends-on): Likewise.
67933         * modules/savewd (Depends-on): Likewise.
67934
67935 2007-05-24  Eric Blake  <ebb9@byu.net>
67936
67937         Fix lseek on mingw.
67938         * modules/lseek: New module.
67939         * m4/lseek.m4: New file.
67940         * lib/lseek.c: New file.
67941         * modules/lseek-tests: New file.
67942         * tests/test-lseek.c: New file.
67943         * tests/test-lseek.sh: New file.
67944         * MODULES.html.sh: Document lseek module.
67945         * modules/fflush (Depends-on): Add lseek, fseeko.
67946         * modules/fseeko (Depends-on): Likewise.
67947         * modules/ftello (Depends-on): Likewise.
67948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67949         broken.
67950         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67951         broken.
67952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67953         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67954         * lib/ftello.c (rpl_ftello): Likewise.
67955         * tests/test-fseeko.c (main): Test this.
67956         * tests/test-fseeko.sh: Likewise.
67957         * tests/test-ftello.c (main): Likewise.
67958         * tests/test-ftello.sh: Likewise.
67959         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67960         implies replacing fseek.
67961         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67962         HAVE_FTELLO.
67963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67964         * modules/unistd (Makefile.am): Likewise.
67965         * lib/unistd_.h (lseek): Declare a replacement.
67966         * doc/functions/lseek.texi (lseek): Document this fix.
67967         * doc/functions/fseek.texi (fseek): Likewise.
67968         * doc/functions/ftell.texi (ftell): Likewise.
67969
67970 2007-05-24  Bruno Haible  <bruno@clisp.org>
67971
67972         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67973         in the printed representation of a NaN.
67974         * tests/test-vasprintf-posix.c (test_function): Likewise.
67975         * tests/test-snprintf-posix.h (test_function): Likewise.
67976         * tests/test-sprintf-posix.h (test_function): Likewise.
67977         Reported by Eric Blake.
67978
67979 2007-05-23  Eric Blake  <ebb9@byu.net>
67980
67981         Fix fseeko/ftello on cygwin 1.5.24.
67982         * doc/functions/fseeko.texi (fseeko): Document the fix.
67983         * doc/functions/ftello.texi (ftello): Document the fix.
67984         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67985         * doc/functions/stdout.text (stdout): New file.
67986         * doc/functions/stderr.text (stderr): New file.
67987         * doc/gnulib.texi (Function Substitutes): Use new files.
67988         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67989         prior to 1.7.0.
67990         * tests/test-ftello.c (main): Likewise for ftello.
67991         * tests/test-fseeko.sh: New file.
67992         * tests/test-ftello.sh: New file.
67993         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67994         with seekable stdin.
67995         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67997         (gl_REPLACE_FSEEKO): New macro.
67998         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67999         * modules/fseeko (Files): Distribute fseeko.c.
68000         * modules/ftello (Files): Distribute ftello.c.
68001         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68002         mode.
68003         * lib/ftello.c (rpl_ftello): New file.
68004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68005         fseeko, ftello.
68006         (gl_STDIN_LARGE_OFFSET): New macro.
68007         * modules/stdio (Makefile.am): Perform the replacement.
68008         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68009
68010 2007-05-23  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68013         GNULIB_POSIXCHECK is defined.
68014
68015 2007-05-21  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68018         Check also the output for NaN arguments. When cross-compiling, guess
68019         no on IRIX.
68020         * lib/vasnprintf.c: Update comments.
68021         * tests/test-vasnprintf-posix.c (strisnan): New function.
68022         (test_function): Use it.
68023         * tests/test-vasprintf-posix.c (strisnan): New function.
68024         (test_function): Use it.
68025         * tests/test-snprintf-posix.h (strisnan): New function.
68026         (test_function): Use it.
68027         * tests/test-sprintf-posix.h (strisnan): New function.
68028         (test_function): Use it.
68029         Reported by Eric Blake.
68030
68031 2007-05-20  Bruno Haible  <bruno@clisp.org>
68032
68033         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68034         numbers that fails on BeOS.
68035         * doc/functions/frexpl.texi: Update.
68036
68037 2007-05-20  Jim Meyering  <jim@meyering.net>
68038
68039         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68040         forced upon us by glibc-2.6.
68041
68042 2007-05-20  Bruno Haible  <bruno@clisp.org>
68043
68044         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68045         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68046         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68047         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68048         NEED_PRINTF_INFINITE.
68049         (is_infinitel): New function.
68050         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68052         gl_PREREQ_VASNPRINTF_INFINITE.
68053         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68055         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68056         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68057         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68058         gl_PREREQ_VASNPRINTF_INFINITE.
68059         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68061         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68062         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68063         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68064         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68065         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68066         * doc/functions/fprintf.texi: Update.
68067         * doc/functions/printf.texi: Update.
68068         * doc/functions/snprintf.texi: Update.
68069         * doc/functions/sprintf.texi: Update.
68070         * doc/functions/vfprintf.texi: Update.
68071         * doc/functions/vprintf.texi: Update.
68072         * doc/functions/vsnprintf.texi: Update.
68073         * doc/functions/vsprintf.texi: Update.
68074
68075 2007-05-20  Bruno Haible  <bruno@clisp.org>
68076
68077         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68078         was not found in libc.
68079         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68080
68081 2007-05-20  Bruno Haible  <bruno@clisp.org>
68082
68083         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68084         printed as "-nan" instead of "nan".
68085         * tests/test-vasprintf-posix.c (test_function): Likewise.
68086         * tests/test-snprintf-posix.h (test_function): Likewise.
68087         * tests/test-sprintf-posix.h (test_function): Likewise.
68088         Needed for HP-UX 11.
68089
68090 2007-05-20  Jim Meyering  <jim@meyering.net>
68091
68092         Fix buggy test for the fchownat-deref bug.
68093         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68094         symlink required for the run-test.  Without it, this test would
68095         always declare that fchownat doesn't work, and client code would
68096         unnecessarily use the replacement function with fixed libc.
68097         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68098         Reported by Greg Schafer.
68099
68100 2007-05-19  Bruno Haible  <bruno@clisp.org>
68101
68102         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68103         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68104         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68105         Needed for IRIX 6.5 and Solaris 2.5.1.
68106
68107 2007-05-19  Bruno Haible  <bruno@clisp.org>
68108
68109         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68110         (test_function): Skip tests involving -0.0 on platforms where
68111         -0.0 = 0.0.
68112         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68113         (test_function): Skip tests involving -0.0 on platforms where
68114         -0.0 = 0.0.
68115         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68116         (test_function): Skip tests involving -0.0 on platforms where
68117         -0.0 = 0.0.
68118         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68119         (test_function): Skip tests involving -0.0 on platforms where
68120         -0.0 = 0.0.
68121         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68122         tests.
68123         * tests/test-printf-posix.h (test_function): Likewise.
68124         * tests/test-printf-posix.output: Remove all -0.0 related results.
68125         Needed for IRIX 6.5.
68126
68127 2007-05-19  Bruno Haible  <bruno@clisp.org>
68128
68129         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68130         printed as "nan0x7fffffff" instead of "nan".
68131         * tests/test-vasprintf-posix.c (test_function): Likewise.
68132         * tests/test-snprintf-posix.h (test_function): Likewise.
68133         * tests/test-sprintf-posix.h (test_function): Likewise.
68134         * tests/test-fprintf-posix.h (NaN): Remove macro.
68135         (test_function): Remove all NaN related tests.
68136         * tests/test-printf-posix.h (NaN): Remove macro.
68137         (test_function): Remove all NaN related tests.
68138         * tests/test-printf-posix.output: Remove all NaN related results.
68139         Needed for IRIX 6.5.
68140
68141 2007-05-19  Bruno Haible  <bruno@clisp.org>
68142
68143         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68145
68146 2007-05-19  Bruno Haible  <bruno@clisp.org>
68147
68148         * lib/float_.h: New file.
68149         * m4/float_h.m4: New file.
68150         * modules/float: New file.
68151         * modules/isnanl (Dependencies): Add float.
68152         * modules/isnanl-nolibm (Dependencies): Likewise.
68153         * modules/mathl (Dependencies): Likewise.
68154         * modules/printf-frexpl (Dependencies): Likewise.
68155         * modules/signbit (Dependencies): Likewise.
68156         * modules/vasnprintf (Dependencies): Likewise.
68157         * doc/headers/float.texi: Update.
68158
68159 2007-05-19  Jim Meyering  <jim@meyering.net>
68160
68161         * lib/utimens.c (gl_futimens): Rename from futimens,
68162         now that glibc-2.6 declares futimens.
68163         * lib/utimens.h: Likewise.
68164
68165 2007-05-19  Bruno Haible  <bruno@clisp.org>
68166
68167         Avoid test failures on mingw.
68168         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68169         * tests/test-printf-posix.sh: Likewise.
68170         * tests/test-vfprintf-posix.sh: Likewise.
68171         * tests/test-vprintf-posix.sh: Likewise.
68172
68173 2007-05-19  Bruno Haible  <bruno@clisp.org>
68174
68175         Fix *printf result for NaN, Inf, -0.0 on mingw.
68176         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68177         * lib/vasnprintf.c: Include math.h and isnan.h.
68178         (is_infinite_or_zero): New function.
68179         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68180         values in the %f, %F, %e, %E, %g, %G directives.
68181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68183         gl_PRINTF_INFINITE and test its result. Invoke
68184         gl_PREREQ_VASNPRINTF_INFINITE.
68185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68192         * doc/functions/fprintf.texi: Update.
68193         * doc/functions/printf.texi: Update.
68194         * doc/functions/snprintf.texi: Update.
68195         * doc/functions/sprintf.texi: Update.
68196         * doc/functions/vfprintf.texi: Update.
68197         * doc/functions/vprintf.texi: Update.
68198         * doc/functions/vsnprintf.texi: Update.
68199         * doc/functions/vsprintf.texi: Update.
68200
68201 2007-05-19  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68204         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68205         Instead of multiplying with 10^k, set extra_zeroes to k.
68206         (scale10_round_long_double): Remove function.
68207
68208 2007-05-18  Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68211         introduced on 2007-05-06.
68212
68213 2007-05-18  Bruno Haible  <bruno@clisp.org>
68214
68215         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68216         %g directives.
68217         * tests/test-vasprintf-posix.c (test_function): Likewise.
68218         * tests/test-snprintf-posix.h (test_function): Likewise.
68219         * tests/test-sprintf-posix.h (test_function): Likewise.
68220
68221 2007-05-18  Bruno Haible  <bruno@clisp.org>
68222
68223         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68224         (strmatch): New function.
68225         (test_function): Test the %f directive on numbers of various exponents.
68226         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68227         (strmatch): New function.
68228         (test_function): Test the %f directive on numbers of various exponents.
68229         * tests/test-snprintf-posix.h (strmatch): New function.
68230         (test_function): Test the %f directive on numbers of various exponents.
68231         * tests/test-sprintf-posix.h (strmatch): New function.
68232         (test_function): Test the %f directive on numbers of various exponents.
68233         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68234         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68235         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68236         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68237
68238 2007-05-18  Bruno Haible  <bruno@clisp.org>
68239
68240         Add support for 'long double' number output.
68241         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68242         * lib/vasnprintf.c: Include math.h and float+.h.
68243         (mp_limb_t): New type.
68244         (GMP_LIMB_BITS): New macro.
68245         (mp_twolimb_t): New type.
68246         (GMP_TWOLIMB_BITS): New macro.
68247         (mpn_t): New type.
68248         (multiply, divide, convert_to_decimal, decode_long_double,
68249         scale10_round_long_double, scale10_round_decimal_long_double,
68250         floorlog10l): New functions.
68251         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68252         for the %f, %F, %e, %E, %g, %G directives.
68253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68254         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68255         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68256         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68257         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68261         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68264         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68265         * modules/snprintf-posix (Depends-on): Likewise.
68266         * modules/sprintf-posix (Depends-on): Likewise.
68267         * modules/vasnprintf-posix (Depends-on): Likewise.
68268         * modules/vasprintf-posix (Depends-on): Likewise.
68269         * modules/vfprintf-posix (Depends-on): Likewise.
68270         * modules/vsnprintf-posix (Depends-on): Likewise.
68271         * modules/vsprintf-posix (Depends-on): Likewise.
68272         * modules/vasnprintf (Files): Add lib/float+.h.
68273         * doc/functions/fprintf.texi: Update.
68274         * doc/functions/printf.texi: Update.
68275         * doc/functions/snprintf.texi: Update.
68276         * doc/functions/sprintf.texi: Update.
68277         * doc/functions/vfprintf.texi: Update.
68278         * doc/functions/vprintf.texi: Update.
68279         * doc/functions/vsnprintf.texi: Update.
68280         * doc/functions/vsprintf.texi: Update.
68281
68282 2007-05-18  Bruno Haible  <bruno@clisp.org>
68283
68284         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68285
68286 2007-05-18  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68289         for printing 64-bit integers. Needed for mingw.
68290
68291 2007-05-18  Bruno Haible  <bruno@clisp.org>
68292
68293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68294         gl_FUNC_FREXPL_WORKS.
68295         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68296
68297 2007-05-18  Bruno Haible  <bruno@clisp.org>
68298
68299         * modules/frexpl-nolibm-tests: New file.
68300
68301         * modules/frexpl-nolibm: New file.
68302         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68303
68304 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68307         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68308         GCC 4.2, which otherwise issues a lot of warnings.
68309         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68310         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68311         Likewise.
68312         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68313         * modules/iconv_open (iconv.h): Likewise.
68314         * modules/locale (locale.h): Likewise.
68315         * modules/netinet_in (netinet/in.h): Likewise.
68316         * modules/sys_select (sys_select.h): Likewise.
68317         * modules/sys_socket (sys/socket.h): Likewise.
68318         * modules/sys_stat (sys/stat.h): Likewise.
68319         * modules/sysexits (sysexits.h): Likewise.
68320         * modules/unistd (unistd.h): Likewise.
68321
68322 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68323
68324         * modules/closein-tests (Makefile.am): Distribute
68325         `test-closein.sh'.
68326
68327 2007-05-17  Bruno Haible  <bruno@clisp.org>
68328
68329         * tests/test-printf-posix.output: Renamed from
68330         tests/test-fprintf-posix.out.
68331         * modules/fprintf-posix-tests: Update.
68332         * modules/printf-posix-tests: Update.
68333         * modules/vfprintf-posix-tests: Update.
68334         * modules/vprintf-posix-tests: Update.
68335         * tests/test-fprintf-posix.sh: Update.
68336         * tests/test-printf-posix.sh: Update.
68337         * tests/test-vfprintf-posix.sh: Update.
68338         * tests/test-vprintf-posix.sh: Update.
68339         Reported by Ralf Wildenhues.
68340
68341 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68342
68343         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68344         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68345         GCC 4.2, which otherwise issues a lot of warnings.
68346         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68347         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68348         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68349         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68350         it should no longer be needed.
68351         * lib/string_.h: Likewise.
68352         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68353         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68354         * modules/inttypes (inttypes.h): Likewise.
68355         * modules/math (math.h): Likewise.
68356         * modules/search (search.h): Likewise.
68357         * modules/signal (signal.h): Likewise.
68358         * modules/stdint (stdint.h): Likewise.
68359         * modules/stdio (stdio.h): Likewise.
68360         * modules/stdlib (stdlib.h): Likewise.
68361         * modules/string (string.h): Likewise.
68362         * modules/sys_time (sys/time.h): Likewise.
68363         * modules/time (time.h): Likewise.
68364         * modules/wchar (wchar.h): Likewise.
68365         * modules/wctype (wtype.h): Likewise.
68366
68367 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68368
68369         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68370
68371 2007-05-13  Bruno Haible  <bruno@clisp.org>
68372
68373         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68374         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68375         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68376         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68377         (gl_PREREQ_STRTOK_R): Don't require it here.
68378
68379 2007-05-13  Bruno Haible  <bruno@clisp.org>
68380
68381         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68382         when used in C++ mode.
68383
68384 2007-05-12  Bruno Haible  <bruno@clisp.org>
68385
68386         * lib/linebuffer.h: Tweak doc.
68387         * lib/linebuffer.c: Likewise.
68388
68389 2007-05-12  James Youngman  <jay@gnu.org>
68390
68391         * lib/linebuffer.c (readlinebuffer_delim): New function,
68392         like readlinebuffer, but use a caller-specified delimiter.
68393         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68394         as the delimiter.
68395         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68396
68397 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68398
68399         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68400         * modules/openat (Files): Remove openat-die.c.
68401         (Depends-on): Add openat-die.
68402         * modules/openat-die: New module.
68403
68404 2007-05-06  Bruno Haible  <bruno@clisp.org>
68405
68406         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68407         Update with info about Cygwin.
68408         * doc/functions/fprintf.texi: Update.
68409         * doc/functions/printf.texi: Update.
68410         * doc/functions/snprintf.texi: Update.
68411         * doc/functions/sprintf.texi: Update.
68412         * doc/functions/vfprintf.texi: Update.
68413         * doc/functions/vprintf.texi: Update.
68414         * doc/functions/vsnprintf.texi: Update.
68415         * doc/functions/vsprintf.texi: Update.
68416         Reported by Eric Blake.
68417
68418 2007-05-06  Bruno Haible  <bruno@clisp.org>
68419
68420         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68421         padding ourselves for the floating-point directives.
68422         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68425         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68426         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68434         * tests/test-snprintf-posix.h (test_function): Also check the width
68435         and some flags in the %f directive.
68436         * tests/test-sprintf-posix.h (test_function): Likewise.
68437         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68438         * tests/test-vasprintf-posix.c (test_function): Likewise.
68439         * doc/functions/fprintf.texi: Update.
68440         * doc/functions/printf.texi: Update.
68441         * doc/functions/snprintf.texi: Update.
68442         * doc/functions/sprintf.texi: Update.
68443         * doc/functions/vfprintf.texi: Update.
68444         * doc/functions/vprintf.texi: Update.
68445         * doc/functions/vsnprintf.texi: Update.
68446         * doc/functions/vsprintf.texi: Update.
68447
68448 2007-05-06  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68451         pass the ' flag character to sprintf or snprintf.
68452         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68455         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68456         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
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 grouping
68465         flag.
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-01  Bruno Haible  <bruno@clisp.org>
68479
68480         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68481
68482 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68485         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68486
68487 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68490         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68492
68493 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68494
68495         * lib/argp-help.c (struct hol_entry): New member `ord'.
68496         (HOL_ENTRY_PTRCMP): Use ord for comparison
68497         (hol_sort): Initialize ord.
68498
68499 2007-05-01  Bruno Haible  <bruno@clisp.org>
68500
68501         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68502         Reported by Eric Blake.
68503         * doc/gnulib.texi (Function Substitutes): Update.
68504
68505 2007-05-01  Bruno Haible  <bruno@clisp.org>
68506
68507         * doc/functions.texi: Remove file, now redundant through
68508         doc/functions/*.texi.
68509
68510 2007-05-01  Bruno Haible  <bruno@clisp.org>
68511
68512         * modules/argp (Depends-on): Add sleep.
68513
68514 2007-05-01  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/sleep-tests: New file.
68517         * tests/test-sleep.c: New file.
68518
68519         * modules/sleep: New file.
68520         * lib/sleep.c: New file.
68521         * m4/sleep.m4: New file.
68522         * lib/unistd_.h (sleep): New declaration.
68523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68524         HAVE_SLEEP.
68525         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68526         * doc/functions/sleep.texi: Document the sleep module.
68527
68528 2007-05-01  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/sigprocmask.h: Remove file.
68531         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68532         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68533         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68534         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68535         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68536         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68537         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68538         HAVE_SIGSET_T as a shell variable.
68539         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68540         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68541         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68542         (Depends-on): Add signal. Remove verify.
68543         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68544         (Include): Mention <signal.h> instead of sigprocmask.h.
68545         * NEWS: Mention the change.
68546         * lib/fatal-signal.c: Don't include sigprocmask.h.
68547
68548 2007-05-01  Bruno Haible  <bruno@clisp.org>
68549
68550         * modules/signal: New file.
68551         * lib/signal_.h: New file.
68552         * m4/signal_h.m4: New file.
68553
68554 2007-05-01  Bruno Haible  <bruno@clisp.org>
68555
68556         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68557         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68558         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68559         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68560
68561 2007-05-01  Bruno Haible  <bruno@clisp.org>
68562
68563         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68564         configure time.
68565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68566         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68567         * modules/sys_stat (Makefile.am): Substitute their values into
68568         sys/stat.h.
68569
68570 2007-05-01  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68573         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68574         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68575
68576 2007-05-01  Bruno Haible  <bruno@clisp.org>
68577
68578         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68579         'assert' module here.
68580
68581 2007-05-01  Bruno Haible  <bruno@clisp.org>
68582
68583         * doc/functions/*.texi: New files.
68584         * doc/functions/google-ranking.txt: New file.
68585         * doc/gnulib.texi (Function Substitutes): New chapter.
68586         (ctime, inet_ntoa): Remove sections.
68587         * doc/ctime.texi: Remove file.
68588         * doc/inet_ntoa.texi: Remove file.
68589         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68590         dependencies.
68591         (%.info): New rule, specifying a --reference-limit.
68592
68593 2007-05-01  Bruno Haible  <bruno@clisp.org>
68594
68595         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68596
68597 2007-05-01  Bruno Haible  <bruno@clisp.org>
68598
68599         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68600         the portability of 'mkdir' to mingw systems.
68601
68602 2007-05-01  Bruno Haible  <bruno@clisp.org>
68603
68604         * doc/headers/google-ranking.txt: New file.
68605
68606 2007-04-30  Eric Blake  <ebb9@byu.net>
68607
68608         Prefer fseeko to fseek.
68609         * modules/getpass (Depends-on): Add fseeko.
68610         * lib/getpass.c (getpass): Use fseeko, not fseek.
68611
68612 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68613
68614         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68615         assumes the sorting is stable, while most qsort implementations
68616         are not.  Use argument addresses to ensure they never compare as
68617         equal.
68618
68619         * tests/test-argp-2.sh (usage-indent test): Fix output
68620         (func_compare): Restore diff options
68621         * tests/test-argp.c: Restore #include "progname.h"
68622
68623 2007-04-29  Bruno Haible  <bruno@clisp.org>
68624
68625         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68627         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68629         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68630         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68631         (TESTS, check_PROGRAMS): Add test-snprintf.
68632         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68633         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68634         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68635         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68636         assertions that fail on HP-UX, OSF/1, or IRIX.
68637         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68638
68639 2007-04-29  Bruno Haible  <bruno@clisp.org>
68640
68641         * MODULES.html.sh (posix_functions): Remove 'contents'.
68642
68643 2007-04-29  Karl Berry  <karl@gnu.org>
68644
68645         * config/srclist.txt (gendocs_template_min): new entry.
68646
68647 2007-04-29  Bruno Haible  <bruno@clisp.org>
68648
68649         Work around fpurge bug on BSD systems.
68650         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68651         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68652         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68653         fpurge to rpl_fpurge if the system already has this function.
68654         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68655         the case where the system already has this function. Correct invariants
68656         on BSD systems.
68657         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68658         BSD systems.
68659
68660 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68661
68662         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68663         proposed by Sven Verdoolaege.
68664
68665         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68666         options.
68667         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68668         (usage and help tests): Update
68669
68670 2007-04-29  Bruno Haible  <bruno@clisp.org>
68671
68672         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68673         Print more information in case of failure. Disable a test on BeOS.
68674
68675 2007-04-29  Bruno Haible  <bruno@clisp.org>
68676
68677         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68678         This helps debugging on systems on which no gdb is available.
68679
68680 2007-04-29  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/freading.h: Improve comments.
68683         * lib/fwriting.h: Likewise.
68684         * tests/test-freading.c (main): Don't check freading immediately after
68685         repositioning. Needed for glibc.
68686
68687 2007-04-29  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/freading.c (freading): Trivial simplification.
68690
68691 2007-04-28  Bruno Haible  <bruno@clisp.org>
68692
68693         * tests/test-fwriting.c (main): Also test the interaction between
68694         fflush and fwriting.
68695         * modules/fwriting-tests (Depends-on): Add fflush.
68696
68697         * tests/test-freading.c (main): Also test the interaction between
68698         fflush and freading.
68699         * modules/freading-tests (Depends-on): Add fflush.
68700
68701 2007-04-28  Bruno Haible  <bruno@clisp.org>
68702
68703         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68704         fseeko and ftello.
68705         Suggested by Eric Blake.
68706
68707 2007-04-28  Jim Meyering  <jim@meyering.net>
68708
68709         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68710         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68711         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68712
68713 2007-04-27  Eric Blake  <ebb9@byu.net>
68714
68715         * doc/headers/assert.texi (assert.h): Document assert module use.
68716
68717 2007-04-27  Bruno Haible  <bruno@clisp.org>
68718
68719         * doc/headers/*.texi: New files.
68720         * doc/gnulib.texi (Header File Substitutes): New chapter.
68721         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68722         dependencies.
68723         (standards.info ,standards.html, standards.dvi): Update dependencies.
68724         (mostlyclean, clean): New targets.
68725
68726 2007-04-27  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68729         * modules/sysexits (Files, Makefile.am): Update.
68730
68731         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68732         * modules/sys_socket (Files, Makefile.am): Update.
68733
68734         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68735         * modules/sys_stat (Files, Makefile.am): Update.
68736
68737 2007-04-27  Eric Blake  <ebb9@byu.net>
68738
68739         * lib/freading.h: Improve comments.
68740         * lib/fwriting.h: Likewise.
68741         * lib/fflush.c: Likewise.
68742
68743         Fix closein for mingw.
68744         * modules/closein-tests: Add tests for closein.
68745         * tests/test-closein.c: New file.
68746         * tests/test-closein.sh: Likewise.
68747         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68748         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68749
68750 2007-04-27  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68753         version is < 6.
68754         * lib/math_.h [__DECC]: Likewise.
68755         * lib/stdio_.h [__DECC]: Likewise.
68756         * lib/stdlib_.h [__DECC]: Likewise.
68757         * lib/string_.h [__DECC]: Likewise.
68758         * lib/time_.h [__DECC]: Likewise.
68759         * lib/wchar_.h [__DECC]: Likewise.
68760         * lib/wctype_.h [__DECC]: Likewise.
68761
68762 2007-04-27  Bruno Haible  <bruno@clisp.org>
68763
68764         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68765
68766 2007-04-27  Bruno Haible  <bruno@clisp.org>
68767
68768         * lib/fflush.c: Add comments.
68769         * modules/fpurge-tests (Depends-on): Add fflush.
68770         * modules/freadable-tests (Depends-on): Likewise.
68771         * modules/fwritable-tests (Depends-on): Likewise.
68772
68773 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68774
68775         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68776         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68777         Report by Bruno Haible <bruno@clisp.org>.
68778
68779 2007-04-26  Eric Blake  <ebb9@byu.net>
68780
68781         Fix fflush on mingw.
68782         * modules/fflush (Depends-on): Add freading.
68783         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68784         but unread data.
68785
68786 2007-04-26  Eric Blake  <ebb9@byu.net>
68787         and Bruno Haible  <bruno@clisp.org>
68788
68789         Implement freading and fwriting.
68790         * lib/freading.c: New file.
68791         * lib/freading.h: Likewise.
68792         * m4/freading.m4: Likewise.
68793         * modules/freading: Likewise.
68794         * modules/freading-tests: Likewise.
68795         * tests/test-freading.c: Likewise.
68796         * lib/fwriting.c: New file.
68797         * lib/fwriting.h: Likewise.
68798         * m4/fwriting.m4: Likewise.
68799         * modules/fwriting: Likewise.
68800         * modules/fwriting-tests: Likewise.
68801         * tests/test-fwriting.c: Likewise.
68802         * MODULES.html.sh (File stream based Input/Output): Mention them.
68803
68804 2007-04-26  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68807         'long' when we assume it.
68808         Suggested by Eric Blake.
68809
68810 2007-04-26  Bruno Haible  <bruno@clisp.org>
68811
68812         Ensure fseeko, ftello are declared on glibc systems.
68813         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68814         * modules/fseeko (configure.ac-early): Likewise.
68815         * modules/ftello (configure.ac-early): Likewise.
68816         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68817         AC_FUNC_FSEEKO for this.
68818         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68819         (gl_CHECK_FSEEKO): Remove macro.
68820
68821 2007-04-26  Bruno Haible  <bruno@clisp.org>
68822
68823         * tests/test-fflush.c (main): Also check the ftell result after
68824         fflush and fseek/fseeko.
68825         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68826         file descriptor position cache in the stream.
68827         * lib/fseeko.c (rpl_fseeko): Likewise.
68828
68829 2007-04-26  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/fflush-tests (Depends-on): Add fseeko.
68832
68833 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68834             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68835
68836         * lib/argz_.h: ensure error_t definition is obtained in same
68837         mechanism system argz.h would have.
68838         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68839         argz facilities are known bad.  Err on the side of caution if
68840         cross-compiling.
68841
68842 2007-04-25  Eric Blake  <ebb9@byu.net>
68843
68844         * lib/fpurge.c (includes): Use stdlib.h for free.
68845         * tests/test-fflush.c (main): Also test fflush-fseeko.
68846
68847 2007-04-25  Bruno Haible  <bruno@clisp.org>
68848
68849         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68850         * lib/fseeko.c: New file.
68851         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68852         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68853         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68854         gl_FUNC_FSEEKO.
68855         (gl_FUNC_FSEEKO): Invoke it.
68856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68857         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68858         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68859
68860 2007-04-25  Bruno Haible  <bruno@clisp.org>
68861
68862         * modules/fflush (Depends-on): Add ftello.
68863
68864 2007-04-25  Bruno Haible  <bruno@clisp.org>
68865
68866         * modules/ftello-tests: New file.
68867         * tests/test-ftello.c: New file.
68868
68869         * modules/ftello: New file.
68870         * m4/ftello.m4: New file.
68871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68872         HAVE_FTELLO.
68873         * lib/stdio_.h (ftello): New declaration.
68874         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68875         HAVE_FTELLO.
68876
68877 2007-04-25  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/fseeko-tests: New file.
68880         * tests/test-fseeko.c: New file.
68881
68882         * modules/fseeko: New file.
68883         * m4/fseeko.m4: New file.
68884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68885         HAVE_FSEEKO.
68886         * lib/stdio_.h (fseeko): New declaration.
68887         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68888         HAVE_FSEEKO.
68889
68890 2007-04-25  Bruno Haible  <bruno@clisp.org>
68891
68892         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68893
68894 2007-04-25  Bruno Haible  <bruno@clisp.org>
68895
68896         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68897         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68898         * tests/test-unistd.c: Likewise.
68899         * tests/test-fcntl.c: Likewise.
68900
68901 2007-04-23  Eric Blake  <ebb9@byu.net>
68902
68903         * lib/fflush.c: Fix missing include.
68904         Reported by Bruno Haible.
68905
68906 2007-04-23  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68909         Reported by Eric Blake.
68910
68911 2007-04-23  Bruno Haible  <bruno@clisp.org>
68912
68913         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68914
68915 2007-04-23  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68918
68919 2007-04-23  Bruno Haible  <bruno@clisp.org>
68920
68921         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68922         Needed on HP-UX 11.
68923
68924 2007-04-16  Eric Blake  <ebb9@byu.net>
68925
68926         Make fflush rely on fpurge.
68927         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68928         open coding all variants.
68929         * modules/fflush (Depends-on): Add fpurge and unistd.
68930         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68931         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68932
68933         Fix --with-tests compilation on cygwin.
68934         * modules/argmatch-tests (Makefile.am): List gnulib library first
68935         in LDADD.
68936         * modules/argp-tests (Makefile.am): Likewise.
68937         * modules/array-list-tests (Makefile.am): Likewise.
68938         * modules/array-oset-tests (Makefile.am): Likewise.
68939         * modules/avltree-list-tests (Makefile.am): Likewise.
68940         * modules/avltree-oset-tests (Makefile.am): Likewise.
68941         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68942         * modules/carray-list-tests (Makefile.am): Likewise.
68943         * modules/dirname-tests (Makefile.am): Likewise.
68944         * modules/frexp-tests (Makefile.am): Likewise.
68945         * modules/isnanl-tests (Makefile.am): Likewise.
68946         * modules/linked-list-tests (Makefile.am): Likewise.
68947         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68948         * modules/lock-tests (Makefile.am): Likewise.
68949         * modules/rbtree-list-tests (Makefile.am): Likewise.
68950         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68951         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68952         * modules/tls-tests (Makefile.am): Likewise.
68953         * modules/tsearch-tests (Makefile.am): Likewise.
68954         * modules/xvasprintf-tests (Makefile.am): Likewise.
68955
68956         Fix fpurge for cygwin.
68957         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68958         value.
68959         * modules/fpurge-tests (Depends-on): Clean up trash.
68960
68961 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68962
68963         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68964
68965         * m4/autobuild.m4: Re-indent.
68966
68967 2007-04-13  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/fpurge-tests: New file.
68970         * tests/test-fpurge.c: New file.
68971
68972         * modules/fpurge: New file.
68973         * lib/fpurge.h: New file.
68974         * lib/fpurge.c: New file.
68975         * m4/fpurge.m4: New file.
68976
68977 2007-04-13  Bruno Haible  <bruno@clisp.org>
68978
68979         * modules/fbufmode-tests: New file.
68980         * tests/test-fbufmode.c: New file.
68981
68982         * modules/fbufmode: New file.
68983         * lib/fbufmode.h: New file.
68984         * lib/fbufmode.c: New file.
68985         * m4/fbufmode.m4: New file.
68986
68987 2007-04-13  Bruno Haible  <bruno@clisp.org>
68988
68989         * modules/fwritable-tests: New file.
68990         * tests/test-fwritable.c: New file.
68991
68992         * modules/fwritable: New file.
68993         * lib/fwritable.h: New file.
68994         * lib/fwritable.c: New file.
68995         * m4/fwritable.m4: New file.
68996
68997 2007-04-13  Bruno Haible  <bruno@clisp.org>
68998
68999         * modules/freadable-tests: New file.
69000         * tests/test-freadable.c: New file.
69001
69002         * modules/freadable: New file.
69003         * lib/freadable.h: New file.
69004         * lib/freadable.c: New file.
69005         * m4/freadable.m4: New file.
69006
69007 2007-04-13  Bruno Haible  <bruno@clisp.org>
69008
69009         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69010         MOSTLYCLEANFILES.
69011
69012 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69013
69014         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69015         gzip bootstrap.conf to avoid dragging in i18n machinery.
69016         (gnulib_tool_option): Use it.
69017
69018 2007-04-13  Bruno Haible  <bruno@clisp.org>
69019
69020         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69021         %F directives.
69022         * tests/test-vasprintf-posix.c (test_function): Likewise.
69023         * tests/test-snprintf-posix.h (test_function): Likewise.
69024         * tests/test-sprintf-posix.h (test_function): Likewise.
69025         * tests/test-fprintf-posix.h (test_function): Likewise.
69026         * tests/test-printf-posix.h (test_function): Likewise.
69027         * tests/test-fprintf-posix.out: Likewise.
69028
69029 2007-04-13  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69032         * modules/tls-tests (configure.ac): Likewise.
69033         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69034
69035 2007-04-13  Bruno Haible  <bruno@clisp.org>
69036
69037         * lib/tls.c (glthread_tls_get): Fix return type.
69038         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69039
69040 2007-04-12  Eric Blake  <ebb9@byu.net>
69041
69042         * modules/gettime (Depends-on): Remove gettime.
69043         Reported by Dmitry V. Levin.
69044
69045 2007-04-12  Bruno Haible  <bruno@clisp.org>
69046
69047         * modules/fflush (Include): Mention <stdio.h>.
69048         * modules/strtoimax (Include): Mention <inttypes.h>.
69049         * modules/strtoumax (Include): Likewise.
69050
69051 2007-04-12  Eric Blake  <ebb9@byu.net>
69052
69053         * .cvsignore: New file.
69054         * .gitignore: Likewise.
69055
69056 2007-04-12  Bruno Haible  <bruno@clisp.org>
69057
69058         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69059         not before, since $(LDADD) often contains libgnu.a.
69060         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69061         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69062         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69063         Needed on Cygwin.
69064
69065 2007-04-12  Eric Blake  <ebb9@byu.net>
69066
69067         Work around glibc's failure to flush stdin on fclose.
69068         * lib/closein.c (close_stdin): Flush stdin before closing.
69069
69070         Work around glibc's failure to reset seekable stdin on exit.
69071         * modules/closein: New module.
69072         * lib/closein.c: New file.
69073         * lib/closein.h: Likewise.
69074         * m4/closein.m4: Likewise.
69075         * MODULES.html.sh (File stream based Input/Output): Document it.
69076
69077 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69078
69079         * gnulib-tool: Rename generated 'autobuild' script to
69080         'do-autobuild' in --create-megatestdir output.
69081
69082         * doc/gnulib.texi (Build robot for gnulib): Fix.
69083
69084 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69085
69086         * modules/sysexits (Depends-on): Add absolute-header.
69087
69088 2007-04-12  Eric Blake  <ebb9@byu.net>
69089
69090         No need to preserve errno on success.
69091         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69092         Reported by Bruno Haible.
69093
69094 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69095
69096         * MODULES.html.sh (Support for maintaining and releasing
69097         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69098
69099 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69100
69101         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69102
69103 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69104
69105         * modules/autobuild: New module.
69106
69107         * m4/autobuild.m4: New file.
69108
69109 2007-04-11  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69112         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69116         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69117         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69118         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69133         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69134         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69135         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69137         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69138         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69139         Reported by Eric Blake.
69140
69141 2007-04-11  Bruno Haible  <bruno@clisp.org>
69142
69143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69144
69145 2007-04-10  Bruno Haible  <bruno@clisp.org>
69146
69147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69148         for NaN and Infinity. Needed on FreeBSD 6.1.
69149         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69150         regarding results for "%010a" of Infinity and NaN.
69151         * tests/test-vasprintf-posix.c (test_function): Likewise.
69152         * tests/test-snprintf-posix.h (test_function): Likewise.
69153         * tests/test-sprintf-posix.h (test_function): Likewise.
69154         * tests/test-fprintf-posix.h (test_function): Likewise.
69155         * tests/test-printf-posix.h (test_function): Likewise.
69156         * tests/test-fprintf-posix.out: Likewise.
69157
69158 2007-04-10  Bruno Haible  <bruno@clisp.org>
69159
69160         * modules/locale-tests: New file.
69161         * tests/test-locale.c: New file.
69162
69163         * modules/locale: New file.
69164         * lib/locale_.h: New file.
69165         * m4/locale_h.m4: New file.
69166
69167 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69168             Bruno Haible  <bruno@clisp.org>
69169
69170         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69171         be determined, test for availability of the copysignf, copysign,
69172         copysignl functions.
69173         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69174         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69175         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69176
69177 2007-04-09  Eric Blake  <ebb9@byu.net>
69178
69179         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69180         * modules/stdio (Makefile.am): Support fflush.
69181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69182         * modules/fflush: New file.
69183         * lib/fflush.c: Likewise.
69184         * m4/fflush.m4: Likewise.
69185         * modules/fflush-tests: New test.
69186         * tests/test-fflush.c: Likewise.
69187         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69188
69189 2007-04-06  Bruno Haible  <bruno@clisp.org>
69190
69191         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69192         (VASNPRINTF): Use signbit for faster determination whether to print a
69193         minus sign.
69194         * modules/vasnprintf (Files): Remove lib/float+.h.
69195         * modules/fprintf-posix (Depends-on): Add signbit.
69196         * modules/snprintf-posix (Depends-on): Likewise.
69197         * modules/sprintf-posix (Depends-on): Likewise.
69198         * modules/vasnprintf-posix (Depends-on): Likewise.
69199         * modules/vasprintf-posix (Depends-on): Likewise.
69200         * modules/vfprintf-posix (Depends-on): Likewise.
69201         * modules/vsnprintf-posix (Depends-on): Likewise.
69202         * modules/vsprintf-posix (Depends-on): Likewise.
69203
69204 2007-04-06  Bruno Haible  <bruno@clisp.org>
69205
69206         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69207         * tests/test-frexpl.c (main): Likewise.
69208         * tests/test-ldexpl.c (main): Likewise.
69209         * modules/frexp-tests (Depends-on): Add signbit.
69210         * modules/frexpl-tests (Depdends-on): Likewise.
69211         * modules/ldexpl-tests (Depdends-on): Likewise.
69212
69213 2007-04-06  Bruno Haible  <bruno@clisp.org>
69214
69215         * modules/signbit-tests: New file.
69216         * tests/test-signbit.c: New file.
69217
69218         * modules/signbit: New file.
69219         * lib/signbitf.c: New file.
69220         * lib/signbitd.c: New file.
69221         * lib/signbitl.c: New file.
69222         * m4/signbit.m4: New file.
69223         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69224         (signbit): New macro.
69225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69226         REPLACE_SIGNBIT.
69227         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69228         REPLACE_FREXPL into math.h.
69229
69230 2007-04-06  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/isnanf-nolibm-tests: New file.
69233         * tests/test-isnanf.c: New file.
69234
69235         * modules/isnanf-nolibm: New file.
69236         * lib/isnanf.h: New file.
69237         * lib/isnanf.c: New file.
69238         * lib/isnan.c: Consider the USE_FLOAT macro.
69239         * m4/isnanf.m4: New file.
69240
69241 2007-04-06  Bruno Haible  <bruno@clisp.org>
69242
69243         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69244         (Link): New section.
69245
69246         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69247
69248 2007-04-06  Bruno Haible  <bruno@clisp.org>
69249
69250         Assume the 'long double' type.
69251         * m4/longdouble.m4: Remove file.
69252         * config/srclist.txt: Don't mention longdouble.m4.
69253         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69254         * lib/float+.h: Likewise.
69255         * lib/frexp.c: Likewise.
69256         * lib/printf-args.h: Likewise.
69257         * lib/printf-args.c: Likewise.
69258         * lib/printf-frexp.c: Likewise.
69259         * lib/printf-parse.c: Likewise.
69260         * lib/vasnprintf.c: Likewise.
69261         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69262         * m4/intl.m4: Likewise.
69263         * m4/isnanl.m4: Likewise.
69264         * m4/printf.m4: Likewise.
69265         * m4/printf-frexpl.m4: Likewise.
69266         * m4/vasnprintf.m4: Likewise.
69267         * modules/allocsa (Files): Remove m4/longdouble.m4.
69268         * modules/gettext (Files): Likewise.
69269         * modules/relocatable-prog-wrapper (Files): Likewise.
69270         * modules/vasnprintf (Files): Likewise.
69271         * modules/isnanl (Files): Likewise.
69272         (Include): Simplify.
69273         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69274         (Include): Simplify.
69275         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69276         (Include): Simplify.
69277         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69278         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69279         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69280         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69281         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69282         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69283         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69284         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69285         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69286         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69287         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69288         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69289         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69290         * tests/test-isnanl.c: Likewise.
69291         * tests/test-snprintf-posix.h: Likewise.
69292         * tests/test-sprintf-posix.h: Likewise.
69293         * tests/test-vasnprintf-posix.c: Likewise.
69294         * tests/test-vasnprintf-posix2.c: Likewise.
69295         * tests/test-vasprintf-posix.c: Likewise.
69296
69297 2007-04-06  Bruno Haible  <bruno@clisp.org>
69298
69299         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69300         * lib/math_.h [__DECC]: Include the overridden include file through
69301         #include_next, outside the double-inclusion guard.
69302         * lib/stdio_.h [__DECC]: Likewise.
69303         * lib/stdlib_.h [__DECC]: Likewise.
69304         * lib/string_.h [__DECC]: Likewise.
69305         * lib/time_.h [__DECC]: Likewise.
69306         * lib/wchar_.h [__DECC]: Likewise.
69307         * lib/wctype_.h [__DECC]: Likewise.
69308         * lib/inttypes_.h [__DECC]: Likewise.
69309         Reported by Albert Chin <china@thewrittenword.com> in
69310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69311
69312 2007-04-04  Eric Blake  <ebb9@byu.net>
69313
69314         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69315         1.5.x.
69316
69317 2007-04-04  Bruno Haible  <bruno@clisp.org>
69318
69319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69320         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69321
69322 2007-04-04  Bruno Haible  <bruno@clisp.org>
69323
69324         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69325         results for "%010a" of Infinity and NaN.
69326         * tests/test-vasprintf-posix.c (test_function): Likewise.
69327         * tests/test-snprintf-posix.h (test_function): Likewise.
69328         * tests/test-sprintf-posix.h (test_function): Likewise.
69329         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69330         * tests/test-printf-posix.h (test_function): Likewise.
69331         * tests/test-fprintf-posix.out: Update.
69332         Needed for FreeBSD 6.1.
69333
69334 2007-04-04  Bruno Haible  <bruno@clisp.org>
69335
69336         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69337         directly used by the gnulib modules nor by gnulib-tool.
69338
69339 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * DEPENDENCIES: Give overall description of version dependency
69342         desirability.  Use more-typical names for apps.
69343         Add shell, coreutils, diffutils, grep, tar, gzip.
69344
69345 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69346
69347         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69348
69349 2007-04-04  Karl Berry  <karl@gnu.org>
69350
69351         * MODULES.html.sh (func_module): missing '.
69352
69353 2007-04-03  Bruno Haible  <bruno@clisp.org>
69354
69355         * modules/argmatch-tests (Makefile.am): New variable
69356         test_argmatch_LDADD.
69357         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69358         * modules/array-list-tests (Makefile.am): New variable
69359         test_array_list_LDADD.
69360         * modules/array-oset-tests (Makefile.am): New variable
69361         test_array_oset_LDADD.
69362         * modules/avltree-list-tests (Makefile.am): New variable
69363         test_avltree_list_LDADD.
69364         * modules/avltree-oset-tests (Makefile.am): New variable
69365         test_avltree_oset_LDADD.
69366         * modules/avltreehash-list-tests (Makefile.am): New variable
69367         test_avltreehash_list_LDADD.
69368         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69369         test_canonicalize_lgpl_LDADD.
69370         * modules/carray-list-tests (Makefile.am): New variable
69371         test_carray_list_LDADD.
69372         * modules/dirname-tests (Makefile.am): New variable
69373         test_dirname_LDADD.
69374         * modules/linked-list-tests (Makefile.am): New variable
69375         test_linked_list_LDADD.
69376         * modules/linkedhash-list-tests (Makefile.am): New variable
69377         test_linkedhash_list_LDADD.
69378         * modules/rbtree-list-tests (Makefile.am): New variable
69379         test_rbtree_list_LDADD.
69380         * modules/rbtree-oset-tests (Makefile.am): New variable
69381         test_rbtree_oset_LDADD.
69382         * modules/rbtreehash-list-tests (Makefile.am): New variable
69383         test_rbtreehash_list_LDADD.
69384         * modules/xvasprintf-tests (Makefile.am): New variable
69385         test_xvasprintf_LDADD.
69386         Reported by Eric Blake.
69387
69388 2007-04-03  Eric Blake  <ebb9@byu.net>
69389
69390         * DEPENDENCIES: Weaken m4 requirements.
69391
69392 2007-04-03  Bruno Haible  <bruno@clisp.org>
69393
69394         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69395         * modules/isnanl-tests (configure.ac): Likewise.
69396
69397 2007-04-03  Ben Pfaff  <blp@gnu.org>
69398
69399         * modules/iconv_open: Add $(srcdir)/ to source directory
69400         references in Makefile fragments that call gperf, to fix VPATH
69401         builds.
69402
69403 2007-04-03  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69406         * lib/ldexpl.c: Undo last change.
69407
69408 2007-04-03  Bruno Haible  <bruno@clisp.org>
69409
69410         * modules/printf-frexpl (Depends-on): Undo last change.
69411         (Files): Add m4/ldexpl.m4.
69412
69413 2007-04-03  Bruno Haible  <bruno@clisp.org>
69414
69415         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69416         * modules/isnanl (Link): New section.
69417
69418         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69419         * modules/frexp (Link): New section.
69420
69421         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69422         * modules/frexpl (Link): New section.
69423
69424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69425         * modules/ldexpl (Link): New section.
69426
69427 2007-04-03  Bruno Haible  <bruno@clisp.org>
69428
69429         * modules/TEMPLATE-EXTENDED: New file.
69430         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69431
69432 2007-04-03  Bruno Haible  <bruno@clisp.org>
69433
69434         * DEPENDENCIES: New file.
69435         Suggested by Simon Josefsson.
69436
69437 2007-04-03  Bruno Haible  <bruno@clisp.org>
69438
69439         * doc/gnulib.texi: Escape @.
69440
69441 2007-04-03  James Youngman  <jay@gnu.org>
69442         and Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69445         birthtime on all systems that have birthtime, not just those which
69446         use st_birthtimensec rather than st_birthtim.  Putting zero in
69447         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69448         that the birth time is not available for files on an NFS mount.
69449
69450 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69451
69452         * modules/memxor: Move back from crypto/, suggested by Bruno.
69453         * modules/crypto/hmac-sha1: Fix memxor dependency.
69454
69455         * modules/crypto/gc: Moved from ../.
69456
69457 2007-04-02  Eric Blake  <ebb9@byu.net>
69458
69459         * lib/ldexpl.c (includes): Avoid libm.
69460
69461         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69462
69463 2007-04-02  Bruno Haible  <bruno@clisp.org>
69464
69465         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69466         on IRIX.
69467
69468 2007-04-02  Bruno Haible  <bruno@clisp.org>
69469
69470         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69471         x86 or x86_64 platforms running MacOS X.
69472         Reported by Ryan Schmidt <@ryandesign.com>.
69473
69474 2007-04-02  Bruno Haible  <bruno@clisp.org>
69475
69476         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69477         i386.
69478
69479 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69480
69481         * modules/crypto/arcfour: Moved from ../.
69482         * modules/crypto/arcfour-tests: Moved from ../.
69483         * modules/crypto/arctwo: Moved from ../.
69484         * modules/crypto/arctwo-tests: Moved from ../.
69485         * modules/crypto/des: Moved from ../.
69486         * modules/crypto/des-tests: Moved from ../.
69487         * modules/crypto/gc-arcfour: Moved from ../.
69488         * modules/crypto/gc-arcfour-tests: Moved from ../.
69489         * modules/crypto/gc-arctwo: Moved from ../.
69490         * modules/crypto/gc-arctwo-tests: Moved from ../.
69491         * modules/crypto/gc-des: Moved from ../.
69492         * modules/crypto/gc-des-tests: Moved from ../.
69493         * modules/crypto/gc-hmac-md5: Moved from ../.
69494         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69495         * modules/crypto/gc-hmac-sha1: Moved from ../.
69496         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69497         * modules/crypto/gc-md2: Moved from ../.
69498         * modules/crypto/gc-md2-tests: Moved from ../.
69499         * modules/crypto/gc-md4: Moved from ../.
69500         * modules/crypto/gc-md4-tests: Moved from ../.
69501         * modules/crypto/gc-md5: Moved from ../.
69502         * modules/crypto/gc-md5-tests: Moved from ../.
69503         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69504         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69505         * modules/crypto/gc-random: Moved from ../.
69506         * modules/crypto/gc-rijndael: Moved from ../.
69507         * modules/crypto/gc-rijndael-tests: Moved from ../.
69508         * modules/crypto/gc-sha1: Moved from ../.
69509         * modules/crypto/gc-sha1-tests: Moved from ../.
69510         * modules/crypto/gc-tests: Moved from ../.
69511         * modules/crypto/hmac-md5: Moved from ../.
69512         * modules/crypto/hmac-md5-tests: Moved from ../.
69513         * modules/crypto/hmac-sha1: Moved from ../.
69514         * modules/crypto/hmac-sha1-tests: Moved from ../.
69515         * modules/crypto/md2: Moved from ../.
69516         * modules/crypto/md2-tests: Moved from ../.
69517         * modules/crypto/md4: Moved from ../.
69518         * modules/crypto/md4-tests: Moved from ../.
69519         * modules/crypto/md5: Moved from ../.
69520         * modules/crypto/md5-tests: Moved from ../.
69521         * modules/crypto/memxor: Moved from ../.
69522         * modules/crypto/rijndael: Moved from ../.
69523         * modules/crypto/rijndael-tests: Moved from ../.
69524         * modules/crypto/sha1: Moved from ../.
69525
69526 2007-03-30  James Youngman  <jay@gnu.org>
69527
69528         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69529         rename() to change the ctime of a file (because ctime is unaffected
69530         by rename on jfs2 on AIX 5.1).
69531         (main): Start by doing cleanup, in case a previous run failed leaving
69532         test files behind.
69533
69534 2007-03-31  Bruno Haible  <bruno@clisp.org>
69535
69536         Support old proprietary implementations of iconv.
69537         * modules/iconv_open: New file.
69538         * lib/iconv_.h: New file.
69539         * m4/iconv_h.m4: New file.
69540         * lib/iconv_open.c: New file.
69541         * lib/iconv_open-aix.gperf: New file.
69542         * lib/iconv_open-hpux.gperf: New file.
69543         * lib/iconv_open-irix.gperf: New file.
69544         * lib/iconv_open-osf.gperf: New file.
69545         * m4/iconv_open.m4: New file.
69546         * modules/linebreak (Depends-on): Add iconv_open.
69547         * modules/striconv (Depends-on): Likewise.
69548         * modules/striconveh (Depends-on): Likewise.
69549         * modules/unicodeio (Depends-on): Likewise.
69550         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69551         (iconv_t)(-1).
69552         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69553         conversion if cd is (iconv_t)(-1).
69554         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69555         is not possible.
69556
69557 2007-03-31  Bruno Haible  <bruno@clisp.org>
69558
69559         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69560         work on Solaris either. Protect also second use of "autodetect_jp".
69561
69562 2007-03-31  Bruno Haible  <bruno@clisp.org>
69563
69564         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69565         the function is not present.
69566
69567 2007-03-31  Bruno Haible  <bruno@clisp.org>
69568
69569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69570         the function is not present.
69571
69572 2007-03-31  Bruno Haible  <bruno@clisp.org>
69573
69574         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69575         a bug in HP-UX iconv_open().
69576
69577 2007-03-31  Bruno Haible  <bruno@clisp.org>
69578
69579         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69580         (Mathematics <math.h>): New section, add fpieee.
69581         (Input/output <stdio.h>): Add fseterr.
69582         (Mathematics <math.h>): New section, add printf-frexp.
69583         (Container data structures): Add sublist.
69584         (Core language properties): Add fpucw, inline.
69585         (Functions for greatest-width integer types <inttypes.h>): Add
69586         imaxabs, imaxdiv, inttypes.
69587         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69588         isnanl-nolibm, ldexp.
69589         (Mathematics <math.h>): New section, add printf-frexpl.
69590         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69591         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69592         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69593         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69594         (Unicode string functions): Add unistr/u*-mbtoucr.
69595         (Java): Add javacomp-script, javaexec-script.
69596         (C#): Add csharpcomp-script, csharpexec-script.
69597         (Support for building libraries and executables): Add havelib,
69598         relocatable-*.
69599         (Support for maintaining and releasing projects): Renamed from
69600         'Support for maintaining and release projects'. Add announce-gen.
69601
69602 2007-03-31  Bruno Haible  <bruno@clisp.org>
69603
69604         * README: Talk primarily about git.
69605         (git and CVS): Renamed from CVS.
69606         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69607         gnulib is available through git.
69608         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69609
69610 2007-03-30  Bruno Haible  <bruno@clisp.org>
69611
69612         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69613         * lib/poll_.h: Likewise.
69614         * lib/stat_.h: Likewise.
69615         * lib/sys_time_.h: Likewise.
69616         * lib/sysexit_.h: Likewise.
69617         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69618         * lib/stdbool_.h: Likewise.
69619         * lib/byteswap_.h: Add double-inclusion guard.
69620
69621 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69622
69623         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69624
69625 2007-03-30  Karl Berry  <karl@gnu.org>
69626
69627         * config/srclist-update: double space after USA in the license
69628         substitution, since that's how it's usually (?) written.
69629
69630 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69633         reported by Bruno Haible.
69634
69635 2007-03-29  Bruno Haible  <bruno@clisp.org>
69636
69637         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69638         a bug in AIX iconv().
69639
69640 2007-03-29  Bruno Haible  <bruno@clisp.org>
69641
69642         * modules/ldexpl-tests: New file.
69643         * tests/test-ldexpl.c: New file.
69644
69645 2007-03-29  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/ldexpl.c: Include fpucw.h.
69648         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69649         multiplication.
69650         * modules/ldexpl (Depends-on): Add fpucw.
69651
69652 2007-03-29  Bruno Haible  <bruno@clisp.org>
69653
69654         * modules/ldexpl: New file.
69655         * m4/ldexpl.m4: New file.
69656         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69657         set.
69658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69659         REPLACE_LDEXPL.
69660         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69661         REPLACE_LDEXPL.
69662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69663         gl_FUNC_LDEXPL_WORKS.
69664         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69665         * modules/mathl (Files): Remove lib/ldexpl.c.
69666         (Depends-on): Add ldexpl.
69667
69668 2007-03-29  Bruno Haible  <bruno@clisp.org>
69669
69670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69671
69672 2007-03-29  Bruno Haible  <bruno@clisp.org>
69673
69674         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69675         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69676         and possibly also HP-UX.
69677         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69678         work on AIX, IRIX, HP-UX, OSF/1.
69679         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69680         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69681         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69682         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69683         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69684         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69685
69686 2007-03-29  Bruno Haible  <bruno@clisp.org>
69687
69688         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69689
69690 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69693         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69694
69695 2007-03-29  Eric Blake  <ebb9@byu.net>
69696
69697         * lib/acl-internal.h: Remove redundant include.
69698         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69699         Cygwin when a file is locked.
69700
69701 2007-03-29  Bruno Haible  <bruno@clisp.org>
69702
69703         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69704         file.
69705         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69706
69707 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69710         try to remove a parent directory if the child couldn't be removed
69711         (except for the first rmdir, which could fail because the child
69712         doesn't exist).  Problem reported by Jeff Blaine in
69713         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69714
69715 2007-03-28  Bruno Haible  <bruno@clisp.org>
69716
69717         * lib/striconveh.c (utf8conv_carefully): New function.
69718         (mem_cd_iconveh_internal): Invoke it.
69719
69720 2007-03-28  Bruno Haible  <bruno@clisp.org>
69721
69722         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69723         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69724         input.
69725         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69726         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69727         unistr/u8-uctomb.
69728
69729 2007-03-28  Bruno Haible  <bruno@clisp.org>
69730
69731         * modules/unistr/u8-mbtoucr: New file.
69732         * lib/unistr/u8-mbtoucr.c: New file.
69733         * modules/unistr/u16-mbtoucr: New file.
69734         * lib/unistr/u16-mbtoucr.c: New file.
69735         * modules/unistr/u16-mbtoucr: New file.
69736         * lib/unistr/u16-mbtoucr.c: New file.
69737         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69738
69739 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69740             Bruno Haible  <bruno@clisp.org>
69741
69742         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69743         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69744         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69745
69746         * m4/stdio_h.m4: Add stubs for vasprintf too.
69747
69748         * modules/stdio: Support vasprintf in sed command.
69749
69750         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69751         vasprintf.h.  Add stdio module indicator.
69752
69753         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69754         vasprintf.h.
69755
69756         * lib/vasprintf.h: File removed.
69757
69758         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69759         * lib/vasprintf.c: Ditto.
69760         * lib/xvasprintf.c: Ditto.
69761         * tests/test-vasprintf-posix.c: Ditto.
69762         * tests/test-vasprintf.c: Ditto.
69763
69764 2007-03-27  Bruno Haible  <bruno@clisp.org>
69765
69766         Make vasnprintf multithread-safe.
69767         * lib/vasnprintf.c (decimal_point_char): New function.
69768         (VASNPRINTF): Use it.
69769         Suggested by Simon Josefsson.
69770
69771 2007-03-27  Eric Blake  <ebb9@byu.net>
69772
69773         Support sub-second birthtime on cygwin.
69774         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69775         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69776         (get_stat_birthtime): Also work with st_birthtim.
69777
69778 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69781         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69782         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69783         (get_stat_birthtime_ns): Simplify compile-time tests.
69784         (get_stat_birthtime): Change the API to look like
69785         get_stat_mtime etc., except return a negative tv_nsec on error.
69786         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69787         Don't check for "spare" fields.
69788         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69789         or for struct stat.st_birthtime, as these tests aren't used.
69790         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69791
69792 2007-03-27  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/stat-time.h: Include <sys/stat.h>.
69795
69796 2007-03-27  James Youngman  <jay@gnu.org>
69797
69798         * lib/stat-time.h (get_stat_birthtime): New function for
69799           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69800         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69801           and its variants.
69802         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69803         * modules/stat-time-test: New file.
69804         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69805
69806 2007-03-26  Bruno Haible  <bruno@clisp.org>
69807
69808         Better support of signalling NaNs.
69809         * lib/atanl.c: Include isnanl.h.
69810         (atanl): Perform test for NaN at the beginning of the function and
69811         through a call to isnanl.
69812         * lib/cosl.c: Include isnanl.h.
69813         (cosl): Perform test for NaN at the beginning of the function and
69814         through a call to isnanl.
69815         * lib/ldexpl.c: Include isnanl.h.
69816         (ldexpl): Perform test for NaN through a call to isnanl.
69817         * lib/logl.c: Include isnanl.h.
69818         (logl): Perform test for NaN at the beginning of the function and
69819         through a call to isnanl.
69820         * lib/sinl.c: Include isnanl.h.
69821         (sinl): Perform test for NaN at the beginning of the function and
69822         through a call to isnanl.
69823         * lib/sqrtl.c: Include isnanl.h.
69824         (sqrtl): Perform test for NaN at the beginning of the function and
69825         through a call to isnanl.
69826         * lib/tanl.c: Include isnanl.h.
69827         (tanl): Perform test for NaN at the beginning of the function and
69828         through a call to isnanl.
69829         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69830         * modules/mathl (Depends-on): Add isnanl.
69831
69832 2007-03-26  Eric Blake  <ebb9@byu.net>
69833
69834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69835         regression in logic sense of previous patch.
69836
69837 2007-03-26  Bruno Haible  <bruno@clisp.org>
69838
69839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69840         unportable shell command "if ! ...".
69841         Reported by Ralf Wildenhues.
69842
69843 2007-03-25  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69846         <sysexits.h> file, and only add EX_CONFIG.
69847         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69848         absolute file name and whether it is sufficient. Substitute also
69849         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69850         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69851         ABSOLUTE_SYSEXITS_H into sysexits.h.
69852
69853 2007-03-25  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69856         hints is NULL.
69857
69858 2007-03-25  Bruno Haible  <bruno@clisp.org>
69859
69860         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69861         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69862
69863 2007-03-25  Bruno Haible  <bruno@clisp.org>
69864
69865         * lib/vasnprintf.c: Include langinfo.h.
69866         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69867         multithread-safe.
69868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69877         Reported by Simon Josefsson.
69878
69879 2007-03-25  Bruno Haible  <bruno@clisp.org>
69880
69881         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69882         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69883         * modules/vasnprintf (Depends-on): Add stdint.
69884
69885 2007-03-25  Bruno Haible  <bruno@clisp.org>
69886
69887         * modules/fpieee: New file.
69888         * m4/fpieee.m4: New file.
69889         * modules/isnan-nolibm (Depends-on): Add fpieee.
69890         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69891         * modules/isnanl (Depends-on): Add fpieee.
69892
69893 2007-03-25  Bruno Haible  <bruno@clisp.org>
69894
69895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69896
69897 2007-03-25  Bruno Haible  <bruno@clisp.org>
69898
69899         Avoid test failures on IRIX 6.5.
69900         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69901         (main): Use it.
69902         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69903         macros.
69904         (main): Use them.
69905
69906 2007-03-25  Bruno Haible  <bruno@clisp.org>
69907
69908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69909         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69910         exists but doesn't work.
69911         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69912         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69914         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69915         math.h.
69916
69917 2007-03-25  Bruno Haible  <bruno@clisp.org>
69918
69919         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69920         returns inf. Needed on IRIX 6.5.
69921
69922 2007-03-25  Bruno Haible  <bruno@clisp.org>
69923
69924         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69925         (main): Use isnanl instead of x != x idiom.
69926         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69927
69928         * tests/test-frexp.c: Include isnan.h.
69929         (main): Use isnan instead of x != x idiom.
69930         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69931
69932 2007-03-25  Bruno Haible  <bruno@clisp.org>
69933
69934         * tests/test-frexp.c (NaN): New function/macro.
69935         (main): Use it instead of 0.0 / 0.0.
69936         * tests/test-isnan.c (NaN): New function/macro.
69937         (main): Use it instead of 0.0 / 0.0.
69938         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69939         (test_function): Use it instead of 0.0 / 0.0.
69940         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69941         (test_function): Use it instead of 0.0 / 0.0.
69942         * tests/test-snprintf-posix.h (NaN): New function/macro.
69943         (test_function): Use it instead of 0.0 / 0.0.
69944         * tests/test-sprintf-posix.h (NaN): New function/macro.
69945         (test_function): Use it instead of 0.0 / 0.0.
69946         * tests/test-fprintf-posix.h (NaN): New function/macro.
69947         (test_function): Use it instead of 0.0 / 0.0.
69948         * tests/test-printf-posix.h (NaN): New function/macro.
69949         (test_function): Use it instead of 0.0 / 0.0.
69950
69951         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69952
69953 2007-03-25  Bruno Haible  <bruno@clisp.org>
69954
69955         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69956
69957 2007-03-25  Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/regexec.c (merge_state_with_log): Make static.
69960
69961 2007-03-25  Bruno Haible  <bruno@clisp.org>
69962
69963         * lib/trigl.c (kernel_rem_pio2): Make static.
69964
69965 2007-03-25  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/sincosl.c (sincosl_table): Make static.
69968
69969 2007-03-25  Bruno Haible  <bruno@clisp.org>
69970
69971         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69972         if the compiler does not support C99.
69973
69974 2007-03-25  Bruno Haible  <bruno@clisp.org>
69975
69976         * modules/time (Makefile.am): Ensure all rule action lines start with a
69977         tab.
69978
69979 2007-03-24  Bruno Haible  <bruno@clisp.org>
69980
69981         * modules/tsearch-tests: New file.
69982         * tests/test-tsearch.sh: New file.
69983         * tests/test-tsearch.c: New file, mostly copied from glibc.
69984
69985         * modules/search-tests: New file.
69986         * tests/test-search.c: New file.
69987
69988         * modules/search: New file.
69989         * lib/search_.h: New file, incorporating lib/tsearch.h.
69990         * m4/search_h.m4: New file.
69991         * lib/tsearch.h: Remove file.
69992         * lib/tsearch.c: Include search.h instead of tsearch.h.
69993         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69994         HAVE_TSEARCH.
69995         * modules/tsearch (Files): Remove lib/tsearch.h.
69996         (Depends-on): Add search.
69997         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69998         (Include): Change tsearch.h into search.h.
69999
70000 2007-03-24  Bruno Haible  <bruno@clisp.org>
70001
70002         * modules/fpucw: New file.
70003         * lib/fpucw.h: New file.
70004         * lib/frexp.c: Include fpucw.h.
70005         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70006         (FUNC): Use them.
70007         * lib/printf-frexp.c: Include fpucw.h.
70008         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70009         (FUNC): Use them.
70010         * lib/vasnprintf.c: Include fpucw.h.
70011         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70012         'long double' calculations.
70013         * tests/test-frexpl.c: Include fpucw.h.
70014         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70015         * tests/test-printf-frexpl.c: Include fpucw.h.
70016         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70017         * modules/frexpl (Depends-on): Add fpucw.
70018         * modules/printf-frexpl (Depends-on): Likewise.
70019         * modules/fprintf-posix (Depends-on): Likewise.
70020         * modules/snprintf-posix (Depends-on): Likewise.
70021         * modules/sprintf-posix (Depends-on): Likewise.
70022         * modules/vasnprintf-posix (Depends-on): Likewise.
70023         * modules/vasprintf-posix (Depends-on): Likewise.
70024         * modules/vfprintf-posix (Depends-on): Likewise.
70025         * modules/vsnprintf-posix (Depends-on): Likewise.
70026         * modules/vsprintf-posix (Depends-on): Likewise.
70027         * modules/frexpl-tests (Depends-on): Likewise.
70028         * modules/printf-frexpl-tests (Depends-on): Likewise.
70029
70030 2007-03-24  Bruno Haible  <bruno@clisp.org>
70031
70032         * lib/float+.h: New file.
70033         * lib/isnan.c: Include float+.h.
70034         (SIZE): New macro.
70035         (FUNC): Compare only SIZE bytes of the value.
70036         * lib/vasnprintf.c: Include float+.h.
70037         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70038         SIZEOF_LDBL or SIZEOF_DBL bytes.
70039         * modules/isnan-nolibm (Files): Add lib/float+.h.
70040         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70041         * modules/isnanl (Files): Add lib/float+.h.
70042         * modules/vasnprintf (Files): Add lib/float+.h.
70043
70044 2007-03-24  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70047         include isnanl-nolibm.h.
70048
70049 2007-03-24  Bruno Haible  <bruno@clisp.org>
70050
70051         * tests/test-read-file.c (main): Don't produce spurious output for
70052         expected situations. Make the test fail if it encountered unexpected
70053         results.
70054
70055 2007-03-24  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70058         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70059
70060 2007-03-24  Bruno Haible  <bruno@clisp.org>
70061
70062         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70063
70064 2007-03-24  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70067         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70068
70069         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70070         * modules/utf8-ucs4: Turn into a symbolic link to module
70071         unistr/u8-mbtouc.
70072
70073         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70074         utf8-ucs4-unsafe.
70075         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70076         unistr/u8-mbtouc-unsafe.
70077
70078         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70079         * modules/utf16-ucs4: Turn into a symbolic link to module
70080         unistr/u16-mbtouc.
70081
70082         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70083         utf16-ucs4-unsafe.
70084         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70085         unistr/u16-mbtouc-unsafe.
70086
70087         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70088         * modules/ucs4-utf8: Turn into a symbolic link to module
70089         unistr/u8-ubtomb.
70090
70091         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70092         * modules/ucs4-utf16: Turn into a symbolic link to module
70093         unistr/u16-ubtomb.
70094
70095 2007-03-24  Bruno Haible  <bruno@clisp.org>
70096
70097         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70098         Enable the function only if HAVE_INLINE.
70099         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70100         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70101         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70102         Enable the function only if HAVE_INLINE.
70103         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70104         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70105         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70106         Enable the function only if HAVE_INLINE.
70107         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70108         Enable the function only if HAVE_INLINE.
70109         * modules/utf8-ucs4: Update.
70110         * modules/utf8-ucs4-unsafe: Update.
70111         * modules/utf16-ucs4: Update.
70112         * modules/utf16-ucs4-unsafe: Update.
70113         * modules/ucs4-utf8: Update.
70114         * modules/ucs4-utf16: Update.
70115
70116 2007-03-24  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/utf8-ucs4.h: Remove file.
70119         * lib/utf8-ucs4-unsafe.h: Remove file.
70120         * lib/utf16-ucs4.h: Remove file.
70121         * lib/utf16-ucs4-unsafe.h: Remove file.
70122         * lib/ucs4-utf8.h: Remove file.
70123         * lib/ucs4-utf16.h: Remove file.
70124         * lib/unistr.h: Include their previous contents.
70125         * m4/utf-ucs4.m4: Remove file.
70126         * m4/ucs4-utf.m4: Remove file.
70127         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70128         (Depends-on): Add unistr/base.
70129         (configure.ac): Remove gl_UTF_UCS4.
70130         (Makefile.am): Update.
70131         (Include): Change to unistr.h.
70132         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70133         (Depends-on): Add unistr/base.
70134         (configure.ac): Remove gl_UTF_UCS4.
70135         (Makefile.am): Update.
70136         (Include): Change to unistr.h.
70137         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70138         (Depends-on): Add unistr/base.
70139         (configure.ac): Remove gl_UTF_UCS4.
70140         (Makefile.am): Update.
70141         (Include): Change to unistr.h.
70142         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70143         (Depends-on): Add unistr/base.
70144         (configure.ac): Remove gl_UTF_UCS4.
70145         (Makefile.am): Update.
70146         (Include): Change to unistr.h.
70147         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70148         (Depends-on): Add unistr/base.
70149         (configure.ac): Remove gl_UCS4_UTF.
70150         (Makefile.am): Update.
70151         (Include): Change to unistr.h.
70152         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70153         (Depends-on): Add unistr/base.
70154         (configure.ac): Remove gl_UCS4_UTF.
70155         (Makefile.am): Update.
70156         (Include): Change to unistr.h.
70157         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70158         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70159         utf8-ucs4-unsafe.h.
70160         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70161         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70162         utf16-ucs4-unsafe.h.
70163         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70164         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70165         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70166         * lib/unistr/u8-strchr.c: Likewise.
70167         * lib/unistr/u8-strrchr.c: Likewise.
70168         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70169         * lib/unistr/u16-strchr.c: Likewise.
70170         * lib/unistr/u16-strrchr.c: Likewise.
70171         * lib/striconveh.c: Update.
70172         * lib/linebreak.c: Update.
70173
70174 2007-03-24  Bruno Haible  <bruno@clisp.org>
70175
70176         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70177         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70178
70179 2007-03-22  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70182
70183 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * MODULES.html.sh (File system functions): New module write-any-file.
70186         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70187         * m4/write-any-file.m4: New files.
70188
70189 2007-03-23  Eric Blake  <ebb9@byu.net>
70190
70191         * gnulib-tool: Rearrange space-tab sequences, since some editors
70192         like to eat them.
70193
70194 2007-03-23  Eric Blake  <ebb9@byu.net>
70195
70196         * lib/version-etc.c (version_etc_va): Update license wording to
70197         be more concise.  Recommended by Richard Stallman.
70198
70199 2007-03-22  Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/poll.c (MSG_PEEK): New fallback definition.
70202
70203 2007-03-22  Bruno Haible  <bruno@clisp.org>
70204
70205         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70206         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70207         (main): Update.
70208         Fixes a compilation error on BeOS.
70209
70210 2007-03-22  Bruno Haible  <bruno@clisp.org>
70211
70212         * modules/frexpl-tests: New file.
70213         * tests/test-frexpl.c: New file.
70214
70215         * modules/frexpl: New file.
70216         * m4/frexpl.m4: New file.
70217         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70218         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70220         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70221         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70222         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70223
70224 2007-03-22  Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/frexpl.c: Share code with lib/frexp.c.
70227         * modules/mathl (Files): Add lib/frexp.c.
70228         (Depends-on): Add isnanl-nolibm.
70229
70230 2007-03-22  Bruno Haible  <bruno@clisp.org>
70231
70232         * modules/printf-frexp (Files): Add m4/frexp.m4.
70233         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70234         only if the found frexp function actually works.
70235
70236 2007-03-22  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/frexp.c: Remove older implementation that uses divisions.
70239
70240 2007-03-21  Bruno Haible  <bruno@clisp.org>
70241
70242         * modules/frexp-tests: New file.
70243         * tests/test-frexp.c: New file.
70244
70245         * modules/frexp: New file.
70246         * lib/frexp.c: New file.
70247         * m4/frexp.m4: New file.
70248         * lib/math_.h (frexp): New declaration.
70249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70250         REPLACE_FREXP.
70251         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70252
70253 2007-03-21  Bruno Haible  <bruno@clisp.org>
70254
70255         * modules/isnanl-tests: New file.
70256         * tests/test-isnanl.c: New file.
70257
70258         * modules/isnanl: New file.
70259         * lib/isnanl.h: New file.
70260         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70261         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70262         gl_FUNC_ISNANL_WORKS.
70263         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70264         New macros.
70265
70266 2007-03-21  Bruno Haible  <bruno@clisp.org>
70267
70268         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70269         lib/isnanl.h.
70270         (Include): Update.
70271         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70272         * lib/vasnprintf.c: Update.
70273         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70274         tests/test-isnanl.h, remove tests/test-isnanl.c.
70275         (Makefile.am): Update.
70276         * tests/test-isnanl-nolibm.c: New file.
70277         * tests/test-isnanl.h: New file.
70278         * tests/test-isnanl.c: Remove file.
70279
70280 2007-03-21  Jim Meyering  <jim@meyering.net>
70281
70282         When trying to open ".", treat ESTALE like EACCES.
70283         * lib/savewd.c (savewd_save): Resort to forking not just upon
70284         failure with EACCES, but also when errno is ESTALE.
70285
70286 2007-03-20  Bruno Haible  <bruno@clisp.org>
70287
70288         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70289         Needed on AIX 5.1. Reported by Matthew Woehlke.
70290
70291 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70292
70293         Suggestions by Bruno Haible:
70294         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70295         our own.
70296         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70297         * modules/acl (Depends-on): Add gettext.
70298
70299 2007-03-19  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/iconvme: Remove file.
70302         * lib/iconvme.h: Remove file.
70303         * lib/iconvme.c: Remove file.
70304         * m4/iconvme.m4: Remove file.
70305
70306 2007-03-19  Bruno Haible  <bruno@clisp.org>
70307
70308         * doc/relocatable-maint.texi: Break long shell script line.
70309         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70310
70311 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70314         handle file_has_acl.
70315         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70316         * lib/acl.c: Move header inclusions and related macro defns into
70317         lib/acl-internal.h.
70318         (S_ISLNK): Remove defn, since that's now done for us.
70319         (file_has_acl): Move to lib/file-has-acl.c.
70320         Call acl_trivial if available.  This is the crucial part of the fix.
70321         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70322         shared within the library.  Rewrite a bit, partly to make it compatible
70323         with the GNU coding style.
70324         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70325         Remove unnecessary double-quotes.
70326         Don't test for acl_to_text; the build will catch that.
70327         Replace acl_entries if it doesn't exist and it is needed.
70328         Check for -lsec and acl_trivial (as used on Solaris 10).
70329         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70330         lib/file-has-acl.c.
70331         (Depends-on): Add sys_stat, for S_ISLNK.
70332
70333 2007-03-19  Ben Pfaff  <blp@gnu.org>
70334
70335         * doc/gnulib.texi: Fix typos.
70336         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70337
70338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70341         If size is zero here, buf must be zero.
70342
70343 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70344
70345         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70346         <bruno@clisp.org>.
70347
70348 2007-03-18  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70351         Suggested by Eric Blake.
70352
70353 2007-03-18  Ben Pfaff  <blp@gnu.org>
70354
70355         * doc/relocatable.texi: Recommend using as prefix a directory
70356         that does not exist and will never be created.  Based on
70357         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70358         and others.
70359
70360 2007-03-17  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/fchownat.c: Include lchown.h.
70363
70364 2007-03-17  Bruno Haible  <bruno@clisp.org>
70365
70366         Fix endless loop when the given allocated size was > INT_MAX.
70367         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70368         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70369         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70370         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70371         * lib/sprintf.c (sprintf): Likewise.
70372
70373 2007-03-17  Bruno Haible  <bruno@clisp.org>
70374
70375         * tests/test-argp-2.sh (func_compare): Output a context diff.
70376
70377 2007-03-17  Bruno Haible  <bruno@clisp.org>
70378
70379         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70380         locale's decimal-point character.
70381
70382 2007-03-17  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70385         before comparing it. Needed because on some platforms (e.g. x86) a
70386         'long double' occupies less bytes than sizeof (long double).
70387
70388 2007-03-17  Bruno Haible  <bruno@clisp.org>
70389
70390         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70391         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70392         * tests/test-getaddrinfo.c (simple): Likewise.
70393         * tests/test-read-file.c (main): Likewise.
70394
70395 2007-03-17  Bruno Haible  <bruno@clisp.org>
70396
70397         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70398
70399 2007-03-17  Bruno Haible  <bruno@clisp.org>
70400
70401         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70402         unused variable.
70403
70404 2007-03-17  Bruno Haible  <bruno@clisp.org>
70405
70406         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70407         * tests/test-c-strncasecmp.c: Likewise.
70408
70409 2007-03-17  Bruno Haible  <bruno@clisp.org>
70410
70411         * modules/stdlib (Depends-on): Add unistd.
70412         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70413         Needed for MacOS X 10.3.
70414
70415 2007-03-17  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70418
70419 2007-03-17  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70422
70423 2007-03-17  Bruno Haible  <bruno@clisp.org>
70424
70425         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70426         to reflect files copied from gnulib (with or without modifications).
70427         Suggested by Jim Meyering.
70428
70429 2007-03-17  Eric Blake  <ebb9@byu.net>
70430
70431         * NEWS: Document stdlib change from 2007-02-18.
70432
70433 2007-03-17  Jim Meyering  <jim@meyering.net>
70434
70435         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70436         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70437         someone uses a name containing shell meta-characters.
70438         Reported by Alfred M. Szmidt.
70439
70440         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70441
70442 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70443
70444         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70445         and copy gettext configuration files only if configure.ac contains
70446         a use of AM_GNU_GETTEXT_VERSION.
70447
70448 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70449
70450         * build-aux/bootstrap (gnulib_name): New variable.
70451         (gnulib_tool_options): Use it.
70452
70453 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70454
70455         * tests/test-des.c: Use new namespace.
70456
70457 2007-03-15  Bruno Haible  <bruno@clisp.org>
70458
70459         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70460         Reported by James Youngman <jay@gnu.org>.
70461
70462 2007-03-15  Bruno Haible  <bruno@clisp.org>
70463
70464         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70465         declared prototype. Needed with cc on OSF/1 5.1.
70466
70467 2007-03-15  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70470         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70471         (struct gl_list_implementation): Add dispose_fn argument to the
70472         'create_empty', 'create' methods.
70473         (struct gl_list_impl_base): Add field 'dispose_fn'.
70474         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70475         argument.
70476         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70477         dispose_fn argument.
70478         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70479         dispose_fn on the dropped values.
70480         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70481         dispose_fn argument.
70482         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70483         dropped values.
70484         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70485         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70486         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70487         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70488         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70489         argument.
70490         (gl_tree_list_free): Call dispose_fn on the dropped values.
70491         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70492         the dropped values.
70493         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70494         Add dispose_fn argument.
70495         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70496         Call dispose_fn on the dropped values.
70497         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70498         Add dispose_fn argument.
70499         (gl_sublist_create): Initialize the 'dispose_fn' field.
70500         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70501         * tests/test-array_list.c (main): Update.
70502         * tests/test-carray_list.c (main): Update.
70503         * tests/test-avltree_list.c (main): Update.
70504         * tests/test-rbtree_list.c (main): Update.
70505         * tests/test-avltreehash_list.c (main): Update.
70506         * tests/test-rbtreehash_list.c (main): Update.
70507         * tests/test-linked_list.c (main): Update.
70508         * tests/test-linkedhash_list.c (main): Update.
70509         * tests/test-array_oset.c (main): Update.
70510
70511 2007-03-15  Bruno Haible  <bruno@clisp.org>
70512
70513         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70514         (gl_oset_create_empty): Add dispose_fn argument.
70515         (struct gl_oset_implementation): Add dispose_fn argument to
70516         'create_empty' method.
70517         (struct gl_oset_impl_base): Add dispose_fn field.
70518         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70519         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70520         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70521         values.
70522         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70523         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70524         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70525         dropped value.
70526         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70527         dropped value.
70528         * tests/test-array_oset.c (main): Update.
70529         * tests/test-avltree_oset.c (main): Update.
70530         * tests/test-rbtree_oset.c (main): Update.
70531         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70532
70533 2007-03-13  Bruno Haible  <bruno@clisp.org>
70534
70535         * tests/test-stdbool.c (i): Update after last patch.
70536
70537 2007-03-12  Bruno Haible  <bruno@clisp.org>
70538
70539         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70540         the iswprint macro. Needed on Solaris 2.5.1.
70541
70542 2007-03-12  Bruno Haible  <bruno@clisp.org>
70543
70544         * tests/test-printf-frexp.c (main): Declare x as volatile.
70545
70546 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70547
70548         * doc/gnulib.texi (Build robot for gnulib): New section.
70549
70550 2007-03-12  Jim Meyering  <jim@meyering.net>
70551
70552         * build-aux/bootstrap: New file.
70553         * build-aux/bootstrap.conf: New file, from coreutils.
70554
70555 2007-03-11  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70558
70559 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70560
70561         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70562         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70563         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70564
70565 2007-03-11  Bruno Haible  <bruno@clisp.org>
70566
70567         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70568         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70569
70570 2007-03-11  Bruno Haible  <bruno@clisp.org>
70571
70572         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70573         formula. Needed for SunPRO C 5.0.
70574
70575 2007-03-11  Bruno Haible  <bruno@clisp.org>
70576
70577         * modules/long-options (Depends-on): Add getopt.
70578
70579 2007-03-11  Bruno Haible  <bruno@clisp.org>
70580
70581         * modules/modechange (Depends-on): Add stdbool.
70582
70583 2007-03-11  Bruno Haible  <bruno@clisp.org>
70584
70585         * modules/i-ring (Depends-on): Add stdbool.
70586
70587 2007-03-11  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/gc-des (Depends-on): Add stdbool.
70590
70591 2007-03-11  Bruno Haible  <bruno@clisp.org>
70592
70593         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70594
70595 2007-03-11  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70598
70599 2007-03-11  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70602
70603 2007-03-11  Bruno Haible  <bruno@clisp.org>
70604
70605         * lib/vasnprintf.c (sprintf): Undefine.
70606
70607 2007-03-11  Bruno Haible  <bruno@clisp.org>
70608
70609         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70610         initializers in SunPRO C and Compaq C compilers.
70611
70612 2007-03-11  Bruno Haible  <bruno@clisp.org>
70613
70614         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70615         decrementing code ANSI C compliant.
70616
70617 2007-03-11  Bruno Haible  <bruno@clisp.org>
70618
70619         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70620         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70621
70622 2007-03-11  Bruno Haible  <bruno@clisp.org>
70623
70624         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70625         <stdbool.h> substitute doesn't pass.
70626
70627 2007-03-11  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70630
70631 2007-03-11  Bruno Haible  <bruno@clisp.org>
70632
70633         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70634         script, for submission to autobuild.josefsson.org.
70635
70636 2007-03-10  Bruno Haible  <bruno@clisp.org>
70637
70638         * modules/canonicalize-lgpl-tests: New file.
70639         * tests/test-canonicalize-lgpl.sh: New file.
70640         * tests/test-canonicalize-lgpl.c: New file.
70641
70642         * modules/c-strcase-tests: New file.
70643         * tests/test-c-strcase.sh: New file.
70644         * tests/test-c-strcasecmp.c: New file.
70645         * tests/test-c-strncasecmp.c: New file.
70646
70647         * modules/atexit-tests: New file.
70648         * tests/test-atexit.sh: New file.
70649         * tests/test-atexit.c: New file.
70650
70651 2007-03-10  Bruno Haible  <bruno@clisp.org>
70652
70653         * tests/test-binary-io.sh: Use temporary filenames that are not so
70654         likely to clash with those of other tests (in a parallel make).
70655         * tests/test-binary-io.c: Likewise.
70656
70657 2007-03-10  Bruno Haible  <bruno@clisp.org>
70658
70659         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70660         fallback; use #error instead.
70661         Suggested by Simon Josefsson.
70662
70663 2007-03-10  Bruno Haible  <bruno@clisp.org>
70664
70665         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70666         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70667         first and the last.
70668
70669 2007-03-10  Bruno Haible  <bruno@clisp.org>
70670
70671         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70672
70673 2007-03-10  Bruno Haible  <bruno@clisp.org>
70674
70675         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70676         "make distcheck".
70677         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70678         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70679         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70680
70681 2007-03-10  Bruno Haible  <bruno@clisp.org>
70682
70683         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70684         variable.
70685         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70686         variable.
70687
70688 2007-03-09  Eric Blake  <ebb9@byu.net>
70689         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70690
70691         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70692         types are not being provided by gnulib.
70693         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70694         types are supported.
70695
70696 2007-03-10  Bruno Haible  <bruno@clisp.org>
70697
70698         * lib/stdio_.h (__attribute__): New macro.
70699         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70700         vsprintf): Specify __attribute__ __format__ for GCC.
70701         Suggested by Eric Blake.
70702
70703 2007-03-09  Bruno Haible  <bruno@clisp.org>
70704
70705         * modules/printf-posix-tests: New file.
70706         * tests/test-printf-posix.sh: New file.
70707         * tests/test-printf-posix.c: New file.
70708
70709         * modules/printf-posix: New file.
70710         * lib/printf.c: New file.
70711         * m4/printf-posix-rpl.m4: New file.
70712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70713         REPLACE_PRINTF.
70714         * lib/stdio_.h (printf): New declaration.
70715         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70716         ____strfmon____): New macros.
70717         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70718         REPLACE_PRINTF.
70719
70720 2007-03-09  Bruno Haible  <bruno@clisp.org>
70721
70722         * tests/test-vasnprintf-posix2.sh: New file.
70723         * tests/test-vasnprintf-posix2.c: New file.
70724         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70725         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70726         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70727
70728         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70729         a locale dependent decimal point, rather than always '.'.
70730
70731 2007-03-09  Eric Blake  <ebb9@byu.net>
70732
70733         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70734         spite of platforms like Tandem/NSK that define it to -1.
70735
70736 2007-03-08  Bruno Haible  <bruno@clisp.org>
70737
70738         * modules/vprintf-posix-tests: New file.
70739         * tests/test-vprintf-posix.sh: New file.
70740         * tests/test-vprintf-posix.c: New file.
70741         * tests/test-printf-posix.h: New file.
70742
70743         * modules/vprintf-posix: New file.
70744         * lib/vprintf.c: New file.
70745         * m4/vprintf-posix.m4: New file.
70746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70747         REPLACE_VPRINTF.
70748         * lib/stdio_.h (vprintf): New declaration.
70749         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70750         REPLACE_VPRINTF.
70751
70752 2007-03-08  Bruno Haible  <bruno@clisp.org>
70753
70754         * modules/fprintf-posix-tests: New file.
70755         * tests/test-fprintf-posix.sh: New file.
70756         * tests/test-fprintf-posix.c: New file.
70757
70758         * modules/fprintf-posix: New file.
70759         * lib/fprintf.c: New file.
70760         * m4/fprintf-posix.m4: New file.
70761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70762         REPLACE_FPRINTF.
70763         * lib/stdio_.h (fprintf): New declaration.
70764         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70765         REPLACE_FPRINTF.
70766
70767 2007-03-08  Bruno Haible  <bruno@clisp.org>
70768
70769         * modules/vfprintf-posix-tests: New file.
70770         * tests/test-vfprintf-posix.sh: New file.
70771         * tests/test-vfprintf-posix.c: New file.
70772         * tests/test-fprintf-posix.h: New file.
70773         * tests/test-fprintf-posix.out: New file.
70774
70775         * modules/vfprintf-posix: New file.
70776         * lib/vfprintf.c: New file.
70777         * m4/vfprintf-posix.m4: New file.
70778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70779         REPLACE_VFPRINTF.
70780         * lib/stdio_.h (vfprintf): New declaration.
70781         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70782         REPLACE_VFPRINTF.
70783
70784 2007-03-08  Bruno Haible  <bruno@clisp.org>
70785
70786         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70787
70788 2007-03-08  Bruno Haible  <bruno@clisp.org>
70789
70790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70791         instead of 'expr' invocations.
70792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70795         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70796         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70797         Suggested by Paul Eggert.
70798
70799 2007-03-08  Bruno Haible  <bruno@clisp.org>
70800
70801         * modules/fseterr-tests: New file.
70802         * tests/test-fseterr.c: New file.
70803
70804         * modules/fseterr: New file.
70805         * lib/fseterr.h: New file.
70806         * lib/fseterr.c: New file.
70807
70808 2007-03-08  Bruno Haible  <bruno@clisp.org>
70809
70810         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70811         * lib/getopt_.h: Likewise.
70812         * lib/mbswidth.h: Likewise.
70813         * lib/setenv.h: Likewise.
70814         * lib/vasnprintf.h: Likewise.
70815         * lib/vasprintf.h: Likewise.
70816         * lib/verror.h: Likewise.
70817         * lib/xsetenv.h: Likewise.
70818         * lib/xvasprintf.h: Likewise.
70819
70820 2007-03-08  Jim Meyering  <jim@meyering.net>
70821
70822         * users.txt: Add parted.
70823
70824         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70825
70826 2007-03-07  Bruno Haible  <bruno@clisp.org>
70827
70828         * m4/printf.m4: Make the shell script snippets copy&pastable.
70829
70830 2007-03-02  Bruno Haible  <bruno@clisp.org>
70831
70832         * lib/netinet_in_.h: New file.
70833         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70834         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70835         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70836         (Depends-on): Add absolute-header.
70837         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70838         into netinet/in.h.
70839
70840 2007-03-03  Bruno Haible  <bruno@clisp.org>
70841
70842         * lib/sys_select_.h: New file.
70843         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70844         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70845         * modules/sys_select (Files): Add lib/sys_select_.h.
70846         (Depends-on): Add absolute-header.
70847         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70848         into sys/select.h.
70849
70850 2007-03-02  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70853         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70854         values.
70855         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70856         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70857         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70858         * modules/sys_socket (Depends-on): Add absolute-header.
70859         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70860         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70861         (Include): Remove requirement of inclusion of <sys/types.h>.
70862
70863 2007-03-02  Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/byteswap_.h (bswap_32): Fix formula.
70866
70867 2007-03-06  Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/sprintf-posix-tests: New file.
70870         * tests/test-sprintf-posix.c: New file.
70871
70872         * modules/sprintf-posix: New file.
70873         * lib/sprintf.c: New file.
70874         * m4/sprintf-posix.m4: New file.
70875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70876         REPLACE_SPRINTF.
70877         * lib/stdio_.h (sprintf): New declaration.
70878         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70879         REPLACE_SPRINTF.
70880
70881 2007-03-06  Bruno Haible  <bruno@clisp.org>
70882
70883         * modules/vsprintf-posix-tests: New file.
70884         * tests/test-vsprintf-posix.c: New file.
70885         * tests/test-sprintf-posix.h: New file.
70886
70887         * modules/vsprintf-posix: New file.
70888         * lib/vsprintf.c: New file.
70889         * m4/vsprintf-posix.m4: New file.
70890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70891         REPLACE_VSPRINTF.
70892         * lib/stdio_.h (vsprintf): New declaration.
70893         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70894         REPLACE_VSPRINTF.
70895
70896 2007-03-06  Bruno Haible  <bruno@clisp.org>
70897
70898         * modules/vsnprintf (Depend-on): Remove minmax.
70899
70900 2007-03-06  Bruno Haible  <bruno@clisp.org>
70901
70902         * modules/snprintf-posix-tests: New file.
70903         * tests/test-snprintf-posix.c: New file.
70904
70905         * modules/snprintf-posix: New file.
70906         * m4/snprintf-posix.m4: New file.
70907         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70908         gl_FUNC_SNPRINTF.
70909         (gl_FUNC_SNPRINTF): Invoke it.
70910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70911         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70912         is set.
70913         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70914
70915 2007-03-06  Bruno Haible  <bruno@clisp.org>
70916
70917         * modules/vsnprintf-posix-tests: New file.
70918         * tests/test-vsnprintf-posix.c: New file.
70919         * tests/test-snprintf-posix.h: New file.
70920
70921         * modules/vsnprintf-posix: New file.
70922         * m4/vsnprintf-posix.m4: New file.
70923         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70924         gl_FUNC_VSNPRINTF.
70925         (gl_FUNC_VSNPRINTF): Invoke it.
70926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70927         * lib/stdio_.h (vsnprintf): Define as a replacement if
70928         REPLACE_VSNPRINTF is set.
70929         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70930
70931 2007-03-06  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70935
70936 2007-03-06  Bruno Haible  <bruno@clisp.org>
70937
70938         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70939         (asinl): Declare also if HAVE_DECL_ASINL is set.
70940         (atanl): Declare also if HAVE_DECL_ATANL is set.
70941         (ceill): Declare also if HAVE_DECL_CEILL is set.
70942         (cosl): Declare also if HAVE_DECL_COSL is set.
70943         (expl): Declare also if HAVE_DECL_EXPL is set.
70944         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70945         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70946         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70947         (logl): Declare also if HAVE_DECL_LOGL is set.
70948         (sinl): Declare also if HAVE_DECL_SINL is set.
70949         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70950         (tanl): Declare also if HAVE_DECL_TANL is set.
70951         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70953         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70954         declaration of frexpl, ldexpl.
70955         * modules/printf-frexpl (Depends-on): Add math.
70956         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70957
70958 2007-03-05  Bruno Haible  <bruno@clisp.org>
70959
70960         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70961         frexpl and ldexpl are declared.
70962         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70963
70964 2007-03-05  Bruno Haible  <bruno@clisp.org>
70965
70966         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70967         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70968
70969 2007-03-05  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/stdio_.h: Include <stddef.h>.
70972
70973 2007-03-05  Bruno Haible  <bruno@clisp.org>
70974
70975         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70976
70977 2007-03-05  Bruno Haible  <bruno@clisp.org>
70978
70979         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70980         NetBSD 4, from Ralf Wildenhues.
70981
70982 2007-03-04  Bruno Haible  <bruno@clisp.org>
70983
70984         * lib/vasprintf.h: Update #if logic for the case when the functions
70985         exist but are overridden.
70986
70987 2007-03-04  Bruno Haible  <bruno@clisp.org>
70988
70989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70990         implementations: glibc-2.4 and MacOS X 10.3.
70991         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70992         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70993         * tests/test-vasprintf-posix.c (test_function): Likewise.
70994
70995 2007-03-04  Bruno Haible  <bruno@clisp.org>
70996
70997         * modules/vasprintf-posix-tests: New file.
70998         * tests/test-vasprintf-posix.c: New file.
70999
71000         * modules/vasprintf-posix: New file.
71001         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71002         defined.
71003         * m4/vasprintf-posix.m4: New file.
71004         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71005         gl_FUNC_VASPRINTF.
71006         (gl_FUNC_VASPRINTF): Invoke it.
71007         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71008         here.
71009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71010
71011 2007-03-04  Bruno Haible  <bruno@clisp.org>
71012
71013         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71014         REPLACE_GETTIMEOFDAY.
71015         * modules/sys_time (Makefile.am): Likewise.
71016         * m4/sys_time_h.m4: Likewise.
71017         * m4/gettimeofday.m4: Likewise.
71018
71019 2007-03-04  Bruno Haible  <bruno@clisp.org>
71020
71021         * modules/vasnprintf-posix-tests: New file.
71022         * tests/test-vasnprintf-posix.c: New file.
71023
71024         * modules/vasnprintf-posix: New file.
71025         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71026         printf-frexpl.h.
71027         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71028         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71029         REPLACE_VASNPRINTF is defined.
71030         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71031         gl_FUNC_VASNPRINTF.
71032         (gl_FUNC_VASNPRINTF): Invoke it.
71033         * m4/vasnprintf-posix.m4: New file.
71034         * m4/printf.m4: New file.
71035
71036 2007-03-04  Bruno Haible  <bruno@clisp.org>
71037
71038         Compile progreloc.c only if --enable-relocatable is specified.
71039         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71040         if --enable-relocatable was specified.
71041         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71042         lib_SOURCES.
71043
71044 2007-03-04  Jim Meyering  <jim@meyering.net>
71045
71046         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71047         Use it consistently, rather than enumerating errno constants.
71048
71049 2007-03-04  Bruno Haible  <bruno@clisp.org>
71050
71051         * modules/xvasprintf-tests: New file.
71052         * tests/test-xvasprintf.c: New file.
71053
71054         * modules/vasprintf-tests: New file.
71055         * tests/test-vasprintf.c: New file.
71056
71057         * modules/vasnprintf-tests: New file.
71058         * tests/test-vasnprintf.c: New file.
71059
71060         * modules/vsnprintf-tests: New file.
71061         * tests/test-vsnprintf.c: New file.
71062
71063         * modules/snprintf-tests: New file.
71064         * tests/test-snprintf.c: New file.
71065
71066 2007-03-04  Bruno Haible  <bruno@clisp.org>
71067
71068         Compile relocatable.c only if --enable-relocatable is specified.
71069         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71070         gl_RELOCATABLE_LIBRARY.
71071         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71072         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71073         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71074         gl_RELOCATABLE_LIBRARY.
71075         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71076         (Makefile.am): Remove lib_SOURCES.
71077         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71078         gl_RELOCATABLE_LIBRARY.
71079         (Makefile.am): Remove lib_SOURCES.
71080         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71081         always.
71082         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71083         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71084
71085 2007-03-04  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/argmatch-tests: New file.
71088         * tests/test-argmatch.c: New file.
71089
71090         * tests/test-allocsa.c (main): Halve the number of loop runs.
71091
71092         * modules/alloca-opt-tests: New file.
71093         * tests/test-alloca-opt.c: New file.
71094
71095 2007-03-04  Jim Meyering  <jim@meyering.net>
71096
71097         Work around difference between Linux ACLs and Solaris 10 ZFS.
71098         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71099         for EINVAL.
71100
71101 2007-03-03  Bruno Haible  <bruno@clisp.org>
71102
71103         * modules/relocatable-prog (Depends-on): Add back progreloc's
71104         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71105
71106 2007-03-03  Bruno Haible  <bruno@clisp.org>
71107
71108         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71109         * modules/relocatable-lib: New file.
71110
71111 2007-03-03  Bruno Haible  <bruno@clisp.org>
71112
71113         * modules/relocatable-prog: Renamed from modules/relocatable.
71114         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71115
71116 2007-03-03  Bruno Haible  <bruno@clisp.org>
71117
71118         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71119         m4/relocatable-lib.m4.
71120         (Depends-on): Remove 'relocatable'.
71121         (configure.ac): Add gl_RELOCATABLE_NOP.
71122
71123 2007-03-03  Bruno Haible  <bruno@clisp.org>
71124
71125         * modules/relocatable-prog-wrapper: New file.
71126         * modules/relocatable (Depends-on): Add it. Remove all other
71127         dependencies except progname.
71128         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71129
71130         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71131         (gl_FUNC_STRERROR): Nop.
71132         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71133
71134         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71135         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71136
71137         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71138         (gl_FUNC_READLINK): Update.
71139
71140         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71141
71142 2007-03-03  Bruno Haible  <bruno@clisp.org>
71143
71144         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71145         * modules/xreadlink (Depends-on): Add unistd.
71146         * modules/xreadlink-with-size (Depends-on): Likewise.
71147
71148 2007-03-03  Bruno Haible  <bruno@clisp.org>
71149
71150         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71151         extracted from gt_FUNC_SETENV.
71152         (gt_FUNC_SETENV): Remove macro.
71153         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71154         remove gt_FUNC_SETENV.
71155
71156 2007-03-03  Bruno Haible  <bruno@clisp.org>
71157
71158         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71159         ENABLE_RELOCATABLE here.
71160         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71161
71162 2007-03-03  Bruno Haible  <bruno@clisp.org>
71163
71164         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71165         * tests/test-rbtreehash_list.c: Include progname.h.
71166         (main): Call set_program_name.
71167
71168         * modules/rbtree-oset-tests (Depends-on): Add progname.
71169         * tests/test-rbtree_oset.c: Include progname.h.
71170         (main): Call set_program_name.
71171
71172         * modules/rbtree-list-tests (Depends-on): Add progname.
71173         * tests/test-rbtree_list.c: Include progname.h.
71174         (main): Call set_program_name.
71175
71176         * modules/linked-list-tests (Depends-on): Add progname.
71177         * tests/test-linked_list.c: Include progname.h.
71178         (main): Call set_program_name.
71179
71180 2007-03-03  Bruno Haible  <bruno@clisp.org>
71181
71182         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71183         All uses of __restrict changed to _Restrict_.
71184         * lib/glob_.h (__restrict): Remove macro.
71185
71186 2007-03-02  Bruno Haible  <bruno@clisp.org>
71187
71188         * modules/gettext (configure.ac): Require gettext infrastructure
71189         from version 0.16.1.
71190
71191 2007-03-02  Bruno Haible  <bruno@clisp.org>
71192
71193         * modules/linkedhash-list-tests (Depends-on): Add progname.
71194         * tests/test-linkedhash_list.c: Include progname.h.
71195         (main): Call set_program_name.
71196
71197         * modules/carray-list-tests (Depends-on): Add progname.
71198         * tests/test-carray_list.c: Include progname.h.
71199         (main): Call set_program_name.
71200
71201         * modules/avltreehash-list-tests (Depends-on): Add progname.
71202         * tests/test-avltreehash_list.c: Include progname.h.
71203         (main): Call set_program_name.
71204
71205         * modules/avltree-oset-tests (Depends-on): Add progname.
71206         * tests/test-avltree_oset.c: Include progname.h.
71207         (main): Call set_program_name.
71208
71209         * modules/avltree-list-tests (Depends-on): Add progname.
71210         * tests/test-avltree_list.c: Include progname.h.
71211         (main): Call set_program_name.
71212
71213         * modules/array-oset-tests (Depends-on): Add progname.
71214         * tests/test-array_oset.c: Include progname.h.
71215         (main): Call set_program_name.
71216
71217         * modules/array-list-tests (Depends-on): Add progname.
71218         * tests/test-array_list.c: Include progname.h.
71219         (main): Call set_program_name.
71220
71221         * modules/argp-tests (Depends-on): Add progname.
71222         * tests/test-argp.c: Include argp.h first. Include progname.h.
71223         (main): Call set_program_name.
71224
71225 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * doc/gnulib-tool.texi (Initial import): Reword description of
71228         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71229         limited effect even if defined after the first system include.
71230
71231 2007-03-01  Bruno Haible  <bruno@clisp.org>
71232
71233         * build-aux/config.libpath: Update to libtool-1.5.22.
71234         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71235
71236 2007-03-01  Bruno Haible  <bruno@clisp.org>
71237
71238         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71239         foo_CFLAGS.
71240         Reported by Ralf Wildenhues.
71241
71242 2007-03-01  Bruno Haible  <bruno@clisp.org>
71243
71244         * build-aux/install-reloc: Remove object files left over by some
71245         compilers.
71246         Reported by Ralf Wildenhues.
71247
71248 2007-03-01  Bruno Haible  <bruno@clisp.org>
71249
71250         * build-aux/install-reloc: Break long lines.
71251
71252 2007-03-01  Bruno Haible  <bruno@clisp.org>
71253
71254         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71255         Reported by Ralf Wildenhues.
71256
71257 2007-03-01  Bruno Haible  <bruno@clisp.org>
71258
71259         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71260         include ordering constraints.
71261
71262 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71266         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71267         as another example.
71268         * lib/time_.h: Fix misspelling.
71269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71270         Require gl_HEADER_TIME_H_DEFAULTS.
71271         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71272         * m4/time_r.m4 (gl_TIME_R): Likewise.
71273         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71274
71275 2007-03-01  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71278         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71279
71280 2007-03-01  Jim Meyering  <jim@meyering.net>
71281
71282         * modules/xreadlink (Maintainer): Add my name.
71283         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71284
71285 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71286             Bruno Haible  <bruno@clisp.org>
71287
71288         * build-aux/install-reloc: Compile also c-ctype.c.
71289         * build-aux/relocatable.sh.in: New file.
71290         * doc/relocatable.texi: New file.
71291         * doc/relocatable-maint.texi: New file.
71292         * doc/gnulib.texi: Include relocatable-maint.texi.
71293         * lib/progreloc.c: Include unistd.h unconditionally.
71294         * lib/relocwrapper.c: Include unistd.h unconditionally.
71295         Include c-ctype.h.
71296         (add_dotbin): Use c_tolower.
71297         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71298         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71299         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71300         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71301         to m4/relocatable-lib.m4.
71302         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71303         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71304         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71305         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71306         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71307         * modules/relocatable: New file.
71308         * modules/relocatable-lib: New file.
71309         * modules/relocatable-script: New file.
71310
71311 2007-02-28  Bruno Haible  <bruno@clisp.org>
71312
71313         Import --enable-relocatable infrastructure.
71314         * build-aux/config.libpath: New file, from GNU gettext.
71315         * build-aux/install-reloc: New file, from GNU gettext.
71316         * build-aux/reloc-ldflags: New file, from GNU gettext.
71317         * lib/relocatable.h: New file, from GNU gettext.
71318         * lib/relocatable.c: New file, from GNU gettext.
71319         * lib/relocwrapper.c: New file, from GNU gettext.
71320         * m4/relocatable.m4: New file, from GNU gettext.
71321
71322 2007-02-28  Bruno Haible  <bruno@clisp.org>
71323
71324         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71325
71326         * modules/xreadlink: New file, from GNU gettext with modifications.
71327         * lib/xreadlink.c: New file, from GNU gettext.
71328         * lib/xreadlink.h: Add comments.
71329         (xreadlink): New declaration.
71330
71331         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71332         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71333         lib/xreadlink-with-size.c.
71334         (configure.ac): Remove gl_XREADLINK invocation.
71335         (Makefile.am): Augment lib_SOURCES.
71336         * m4/xreadlink.m4: Remove file.
71337         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71338         (xreadlink_with_size): Renamed from xreadink.
71339         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71340         * modules/canonicalize (Depends-on): Replace xreadlink with
71341         xreadlink-with-size.
71342         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71343
71344 2007-02-25  Jim Meyering  <jim@meyering.net>
71345
71346         * build-aux/announce-gen: When complaining about excess arguments,
71347         list them.
71348
71349 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71350
71351         * README: Document signed integer overflow situation more
71352         accurately.
71353
71354 2007-02-25  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71357         'a' or 'A' conversion.
71358
71359 2007-02-25  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/filename: Renamed from modules/pathname.
71362         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71363         lib/concatpath.c with lib/concat-filename.c.
71364         (Makefile.am): Update.
71365         (Include): Replace pathname.h with filename.h.
71366         * lib/filename.h: Renamed from lib/pathname.h.
71367         (concatenated_filename): Renamed from concatenated_pathname.
71368         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71369         (concatenated_filename): Renamed from concatenated_pathname.
71370         * lib/findprog.c: Include filename.h instead of pathname.h.
71371         (find_in_path): Update.
71372         * lib/javacomp.c: Include filename.h instead of pathname.h.
71373         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71374         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71375         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71376         is_oldgcj_14_13_usable, is_javac_usable): Update.
71377         * lib/javaexec.c: Include filename.h instead of pathname.h.
71378         (execute_java_class): Update.
71379         * modules/findprog: Update.
71380         * modules/javacomp: Update.
71381         * modules/javaexec: Update.
71382         * MODULES.html.sh (File system functions): Add 'filename', remove
71383         'pathname'.
71384
71385 2007-02-25  Bruno Haible  <bruno@clisp.org>
71386
71387         * modules/printf-frexpl-tests: New file.
71388         * tests/test-printf-frexpl.c: New file.
71389
71390         * modules/printf-frexpl: New file.
71391         * lib/printf-frexpl.h: New file.
71392         * lib/printf-frexpl.c: New file.
71393         * m4/printf-frexpl.m4: New file.
71394
71395 2007-02-25  Bruno Haible  <bruno@clisp.org>
71396
71397         * modules/printf-frexp-tests: New file.
71398         * tests/test-printf-frexp.c: New file.
71399
71400         * modules/printf-frexp: New file.
71401         * lib/printf-frexp.h: New file.
71402         * lib/printf-frexp.c: New file.
71403         * m4/printf-frexp.m4: New file.
71404
71405 2007-02-25  Bruno Haible  <bruno@clisp.org>
71406
71407         Assume automake >= 1.10 for the tests.
71408         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71409         * modules/arctwo-tests: Likewise.
71410         * modules/argp-tests: Likewise.
71411         * modules/avltree-list-tests: Likewise.
71412         * modules/avltree-oset-tests: Likewise.
71413         * modules/avltreehash-list-tests: Likewise.
71414         * modules/carray-list-tests: Likewise.
71415         * modules/crc-tests: Likewise.
71416         * modules/des-tests: Likewise.
71417         * modules/gc-arcfour-tests: Likewise.
71418         * modules/gc-arctwo-tests: Likewise.
71419         * modules/gc-des-tests: Likewise.
71420         * modules/gc-hmac-md5-tests: Likewise.
71421         * modules/gc-hmac-sha1-tests: Likewise.
71422         * modules/gc-md2-tests: Likewise.
71423         * modules/gc-md4-tests: Likewise.
71424         * modules/gc-md5-tests: Likewise.
71425         * modules/gc-pbkdf2-sha1-tests: Likewise.
71426         * modules/gc-rijndael-tests: Likewise.
71427         * modules/gc-sha1-tests: Likewise.
71428         * modules/gc-tests: Likewise.
71429         * modules/getaddrinfo-tests: Likewise.
71430         * modules/hmac-md5-tests: Likewise.
71431         * modules/hmac-sha1-tests: Likewise.
71432         * modules/linked-list-tests: Likewise.
71433         * modules/linkedhash-list-tests: Likewise.
71434         * modules/lock-tests: Likewise.
71435         * modules/md2-tests: Likewise.
71436         * modules/md4-tests: Likewise.
71437         * modules/md5-tests: Likewise.
71438         * modules/rbtree-list-tests: Likewise.
71439         * modules/rbtree-oset-tests: Likewise.
71440         * modules/rbtreehash-list-tests: Likewise.
71441         * modules/read-file-tests: Likewise.
71442         * modules/rijndael-tests: Likewise.
71443         * modules/stdint-tests: Likewise.
71444         * modules/tls-tests: Likewise.
71445
71446 2007-02-24  Bruno Haible  <bruno@clisp.org>
71447
71448         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71449         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71450         function; instead check whether isnan with a double argument links.
71451         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71452         function; instead check whether isnan with a 'long double' argument
71453         links.
71454         Reported by Eric Blake <ebb9@byu.net>.
71455
71456 2007-02-24  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71459         defined.
71460         * lib/isnanl.c: Remove all code. Just include isnan.c.
71461         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71462
71463 2007-02-25  Jim Meyering  <jim@meyering.net>
71464
71465         Avoid conflicting types for 'unsetenv' on FreeBSD.
71466         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71467         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71468         in stdlib.h.
71469
71470 2007-02-24  Bruno Haible  <bruno@clisp.org>
71471
71472         * modules/isnanl-nolibm-tests: New file.
71473         * tests/test-isnanl.c: New file.
71474
71475         * modules/isnanl-nolibm: New file.
71476         * lib/isnanl.h: New file.
71477         * lib/isnanl.c: New file.
71478         * m4/isnanl.m4: New file.
71479
71480 2007-02-24  Bruno Haible  <bruno@clisp.org>
71481
71482         * modules/isnan-nolibm-tests: New file.
71483         * tests/test-isnan.c: New file.
71484
71485         * modules/isnan-nolibm: New file.
71486         * lib/isnan.h: New file.
71487         * lib/isnan.c: New file.
71488         * m4/isnan.m4: New file.
71489
71490 2007-02-24  Bruno Haible  <bruno@clisp.org>
71491
71492         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71493         assume that an exponent fits in 20 bits.
71494
71495 2007-02-24  Jim Meyering  <jim@meyering.net>
71496
71497         * m4/regex.m4: Update the description of the configure-time option,
71498         --without-included-regex, to state accurately what the defaults are,
71499         and perhaps to give people an idea why using this option is risky.
71500
71501 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71504         loops on small arguments.  This attempts to avoid the problem
71505         Bruno Haible reported for AIX 4.3.2 in
71506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71507
71508 2007-02-23  Bruno Haible  <bruno@clisp.org>
71509
71510         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71511         Needed for help2man.
71512
71513 2007-02-23  Karl Berry  <karl@gnu.org>
71514
71515         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71516         exists, foo.h should be cvs-ignored, not committed.
71517
71518 2007-02-23  Eric Blake  <ebb9@byu.net>
71519
71520         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71521         * lib/stat-time.h (includes): Likewise.
71522         * lib/utimecmp.c (includes): Likewise.
71523         * lib/utimens.h (includes): Likewise.
71524         * lib/getdate.y (includes): Also include "timespec.h" for use
71525         internal to the module.
71526         * modules/utimens (Depends-on): Revert yesterday's patch.
71527         * modules/nanosleep (Depends-on): Add missing dependency.
71528
71529 2007-02-22  Bruno Haible  <bruno@clisp.org>
71530
71531         * lib/glob.c: Don't include getlogin_r.h.
71532
71533 2007-02-22  Jim Meyering  <jim@meyering.net>
71534
71535         * modules/utimens (Depends-on): Add timespec, required for
71536         utimens.h's inclusion of timespec.h.
71537
71538 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71541         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71542         Schwab in
71543         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71544         I'll try to think of a better way to fix the Solaris problem.
71545
71546         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71547         like glibc; on Solaris 10, it fails with errno == EINVAL.
71548         POSIX says the behavior is unspecified if the first argument is NULL,
71549         so play it safe and never pass NULL to the system getcwd.
71550
71551 2007-02-21  Jim Meyering  <jim@meyering.net>
71552
71553         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71554         of gettimeofday.  It would conflict with the one now always
71555         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71556         an IRIX 6.5 build failure.
71557
71558 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         Minor fixups to port to Solaris 10 with Sun C 5.8.
71561         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71562         * modules/getcwd (Depends-on): Add dirfd.
71563         * lib/putenv.c (putenv): #undef it.
71564         (rpl_putenv): New decl.
71565         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71566
71567 2007-02-20  Bruno Haible  <bruno@clisp.org>
71568
71569         * modules/stdio-tests: New file.
71570         * tests/test-stdio.c: New file.
71571
71572         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71573         (Depends-on): Add stdio.
71574         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71575         (Include): Use <stdio.h> instead of vsnprintf.h.
71576         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71577         HAVE_DECL_VSNPRINTF.
71578         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71579
71580         * modules/snprintf (Files): Remove lib/snprintf.h.
71581         (Depends-on): Add stdio.
71582         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71583         (Include): Use <stdio.h> instead of snprintf.h.
71584         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71585         HAVE_DECL_SNPRINTF.
71586         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71587         * lib/getaddrinfo.c: Likewise.
71588
71589         * modules/stdio: New file.
71590         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71591         * lib/snprintf.h: Remove file.
71592         * lib/vsnprintf.h: Remove file.
71593         * lib/.cppi-disable: Remove snprintf.h.
71594         * m4/stdio_h.m4: New file.
71595         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71596
71597 2007-02-20  Jim Meyering  <jim@meyering.net>
71598
71599         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71600         used by e.g., mingw.  From Bruno Haible.
71601
71602 2007-02-19  Bruno Haible  <bruno@clisp.org>
71603
71604         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71605         warnings.
71606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71607
71608 2007-02-19  Bruno Haible  <bruno@clisp.org>
71609
71610         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71611         from mingw users.
71612
71613 2007-02-19  Bruno Haible  <bruno@clisp.org>
71614
71615         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71616         warnings.
71617         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71618
71619 2007-02-19  Jim Meyering  <jim@meyering.net>
71620
71621         Don't use FD after a successful "fdopendir (fd)".
71622         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71623         Reset it by calling dirfd on the just-obtained DIR*.
71624
71625         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71626         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71627
71628 2007-02-18  Bruno Haible  <bruno@clisp.org>
71629
71630         * lib/readlink.c: Include <unistd.h>.
71631         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71632         HAVE_READLINK.
71633         * modules/readlink (Depends-on): Add unistd.
71634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71635         (Include): Add <unistd.h>.
71636
71637         * lib/getlogin_r.h: Remove file.
71638         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71639         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71640         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71641         HAVE_DECL_GETLOGIN_R.
71642         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71643         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71644         (Include): Use <unistd.h> instead of getlogin_r.h.
71645
71646         * lib/getcwd.h: Remove file.
71647         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71648         * lib/xgetcwd.c: Likewise.
71649         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71650         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71651         * modules/getcwd (Files): Remove lib/getcwd.h.
71652         (Depends-on): Add unistd.
71653         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71654         (Include): Use <unistd.h> instad of getcwd.h.
71655
71656         * lib/ftruncate.c: Include <unistd.h> first.
71657         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71658         Set HAVE_FTRUNCATE.
71659         * modules/ftruncate (Depends-on): Add unistd.
71660         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71661
71662         * lib/fchdir.c: Include <unistd.h> first.
71663         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71665         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71666         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71667         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71668
71669         * lib/dup2.c: Include <unistd.h> first.
71670         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71671         HAVE_DUP2.
71672         * modules/dup2 (Depends-on): Add unistd.
71673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71674
71675         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71676         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71677         REPLACE_CHOWN. Don't define chown as a macro here.
71678         * modules/chown (Depends-on): Add unistd.
71679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71680
71681         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71682         Add definition for GL_LINK_WARNING.
71683         (chown, dup2): New declarations.
71684         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71685         link warning.
71686         (ftruncate): New declaration.
71687         (getcwd): New declaration, taken from old getcwd.h.
71688         (getlogin_r): New declaration, taken from old getlogin_r.h.
71689         (readlink): New declaration.
71690         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71691         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71692         (gl_PREREQ_UNISTD): Remove macro.
71693         (gl_UNISTD_MODULE_INDICATOR): New macro.
71694         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71695         many new variables. Don't set UNISTD_H.
71696         * modules/unistd (Description): Change.
71697         (Depends-on): Add link-warning.
71698         (configure.ac): Update.
71699         (Makefile.am): Create unistd.h always. Substitute many new variables
71700         into it.
71701
71702 2007-02-18  Bruno Haible  <bruno@clisp.org>
71703
71704         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71705         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71706         HAVE_GETSUBOPT.
71707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71708         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71709         * lib/getsubopt.h: Remove file.
71710         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71711         (Depends-on): Add stdlib.
71712         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71713         (Includes): Use <stdlib.h> instead of getsubopt.h.
71714         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71715         Set HAVE_GETSUBOPT.
71716         * lib/getsubopt.c: Don't include getsubopt.h.
71717
71718 2007-02-18  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/fchdir (Depends-on): Add dup2.
71721
71722 2007-02-18  Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/stdlib_.h: Handle glibc's special invocation convention
71725         specially.
71726
71727 2007-02-18  Bruno Haible  <bruno@clisp.org>
71728
71729         * modules/stdlib-tests: New file.
71730         * tests/test-stdlib.c: New file.
71731
71732         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71733         (Depends-on): Add stdlib.
71734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71735         (Includes): Use <stdlib.h> instead of mkstemp.h.
71736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71737         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71738         * lib/mkstemp.c: Don't include mkstemp.h.
71739         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71740         * lib/stdlib--.h: Don't include mkstemp.h.
71741
71742         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71743         (Depends-on): Add stdlib.
71744         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71745         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71746         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71747         HAVE_MKDTEMP.
71748         * lib/mkdtemp.c: Don't include mkdtemp.h.
71749         * lib/clean-temp.c: Don't include mkdtemp.h.
71750
71751         * modules/exit (Files): Remove lib/exit.h.
71752         (Depends-on): Add stdlib.
71753         (Makefile.am): Remove lib_SOURCES.
71754         (Include): Use <stdlib.h> instead of exit.h.
71755         * lib/argmatch.c: Don't include exit.h.
71756         * lib/execute.c: Likewise.
71757         * lib/pagealign_alloc.c: Likewise.
71758         * lib/pipe.c: Likewise.
71759         * lib/wait-process.c: Likewise.
71760         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71761         * lib/exitfail.c: Likewise.
71762         * lib/savewd.c: Likewise.
71763         * lib/xsetenv.c: Likewise.
71764
71765         * modules/stdlib: New file.
71766         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71767         and extra comments about mkstemp().
71768         * lib/exit.h: Remove file.
71769         * lib/mkdtemp.h: Remove file.
71770         * lib/mkstemp.h: Remove file.
71771         * m4/stdlib_h.m4: New file.
71772         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71773
71774 2007-02-18  Bruno Haible  <bruno@clisp.org>
71775
71776         * modules/math-tests: New file.
71777         * tests/test-math.c: New file.
71778
71779         * modules/math: New file.
71780         * modules/mathl (Files): Remove lib/mathl.h.
71781         (Depends-on): Add math.
71782         (Makefile.am): Don't mention mathl.h.
71783         (Include): Use <math.h> instead of mathl.h.
71784         * lib/math_.h: New file.
71785         * lib/mathl.h: Remove file.
71786         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71787         mathl.h.
71788         * lib/asinl.c: Likewise.
71789         * lib/atanl.c: Likewise.
71790         * lib/ceill.c: Likewise.
71791         * lib/cosl.c: Likewise.
71792         * lib/expl.c: Likewise.
71793         * lib/floorl.c: Likewise.
71794         * lib/frexpl.c: Likewise.
71795         * lib/ldexpl.c: Likewise.
71796         * lib/logl.c: Likewise.
71797         * lib/sincosl.c: Likewise.
71798         * lib/sinl.c: Likewise.
71799         * lib/sqrtl.c: Likewise.
71800         * lib/tanl.c: Likewise.
71801         * lib/trigl.c: Likewise.
71802         * m4/math_h.m4: New file.
71803         * MODULES.html.sh (Mathematics): Add math.
71804
71805 2007-02-17  Bruno Haible  <bruno@clisp.org>
71806
71807         * modules/wctype-tests: New file.
71808         * tests/test-wctype.c: New file.
71809
71810         * modules/wchar-tests: New file.
71811         * tests/test-wchar.c: New file.
71812
71813         * modules/unistd-tests: New file.
71814         * tests/test-unistd.c: New file.
71815
71816         * modules/time-tests: New file.
71817         * tests/test-time.c: New file.
71818
71819         * modules/sysexits-tests: New file.
71820         * tests/test-sysexits.c: New file.
71821
71822         * modules/sys_time-tests: New file.
71823         * tests/test-sys_time.c: New file.
71824
71825         * modules/sys_stat-tests: New file.
71826         * tests/test-sys_stat.c: New file.
71827
71828         * modules/sys_socket-tests: New file.
71829         * tests/test-sys_socket.c: New file.
71830
71831         * modules/sys_select-tests: New file.
71832         * tests/test-sys_select.c: New file.
71833
71834         * modules/string-tests: New file.
71835         * tests/test-string.c: New file.
71836
71837         * modules/stdbool-tests: New file.
71838         * tests/test-stdbool.c: New file.
71839
71840         * modules/netinet_in-tests: New file.
71841         * tests/test-netinet_in.c: New file.
71842
71843         * modules/inttypes-tests: New file.
71844         * tests/test-inttypes.c: New file.
71845
71846         * modules/fcntl-tests: New file.
71847         * tests/test-fcntl.c: New file.
71848
71849         * modules/byteswap-tests: New file.
71850         * tests/test-byteswap.c: New file.
71851
71852         * modules/arpa_inet-tests: New file.
71853         * tests/test-arpa_inet.c: New file.
71854
71855 2007-02-17  Bruno Haible  <bruno@clisp.org>
71856
71857         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71858         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71859         if the corresponding module is not enabled. Emit link warnings if
71860         the function is used nevertheless.
71861         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71862         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71863         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71864         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71865         * modules/inttypes (Depends-on): Add link-warning.
71866         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71867         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71868         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71869         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71870         * modules/imaxdiv (configure.ac): Likewise.
71871         * modules/strtoimax (configure.ac): Likewise.
71872         * modules/strtoumax (configure.ac): Likewise.
71873
71874 2007-02-17  Bruno Haible  <bruno@clisp.org>
71875
71876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71877         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71878         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71879         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71880
71881 2007-02-17  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/link-warning: New file.
71884         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71885         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71886         * modules/string (Depends-on): Add link-warning.
71887         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71888         string.h.
71889         * MODULES.html.sh (Support for building libraries and executables): Add
71890         link-warning.
71891
71892 2007-02-17  Bruno Haible  <bruno@clisp.org>
71893
71894         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71895         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71896         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71897         long lines.
71898
71899 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71900             Bruno Haible  <bruno@clisp.org>
71901
71902         * modules/tmpfile: New file.
71903         * lib/tmpfile.c: New file.
71904         * m4/tmpfile.m4: New file.
71905         * MODULES.html.sh (func_all_modules): New section "Input/output".
71906
71907 2007-02-15  Bruno Haible  <bruno@clisp.org>
71908
71909         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71910         (supports_delete_on_close): New function.
71911         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71912
71913 2007-02-14  Bruno Haible  <bruno@clisp.org>
71914
71915         * modules/mbspcasecmp-tests: New file.
71916         * tests/test-mbspcasecmp.sh: New file.
71917         * tests/test-mbspcasecmp.c: New file.
71918
71919         New module mbspcasecmp.
71920         * modules/mbspcasecmp: New file.
71921         * lib/mbspcasecmp.c: New file.
71922         * lib/string_.h (strncasecmp): Change warning message.
71923         (mbspcasecmp): New declaration.
71924         * m4/mbspcasecmp.m4: New file.
71925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71926         GNULIB_MBSPCASECMP.
71927         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71928         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71929
71930 2007-02-14  Bruno Haible  <bruno@clisp.org>
71931
71932         * modules/mbsncasecmp-tests: New file.
71933         * tests/test-mbsncasecmp.sh: New file.
71934         * tests/test-mbsncasecmp.c: New file.
71935
71936         New module mbsncasecmp.
71937         * modules/mbsncasecmp: New file.
71938         * lib/mbsncasecmp.c: New file.
71939         * lib/string_.h (mbsncasecmp): New declaration.
71940         * m4/mbsncasecmp.m4: New file.
71941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71942         GNULIB_MBSNCASECMP.
71943         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71944         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71945
71946 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71949         Verify that it doesn't overlap with our flags.
71950         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71951         do not have the desired effect in multibyte locales; instead, use
71952         mbscasecmp.
71953         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71954         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71955         we don't require GNU fnmatch ourselves (if our users require it, they
71956         should do so explicitly).
71957
71958         Fix regex code so it doesn't rely on strcasecmp.
71959         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71960         Otherwise, include gnulib's langinfo.h.
71961         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71962         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71963         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71964         * modules/regex (FILES): Remove m4/codeset.m4.
71965         (Depends-on): Add localcharset.  Remove strcase.
71966
71967 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71968
71969         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71970         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71971
71972 2007-02-13  Bruno Haible  <bruno@clisp.org>
71973
71974         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71976
71977 2007-02-12  Bruno Haible  <bruno@clisp.org>
71978
71979         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71980         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71981         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71982         time warning rather than a link error.
71983
71984 2007-02-12  Bruno Haible  <bruno@clisp.org>
71985
71986         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71987         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71989
71990 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71993         args, not 2.
71994
71995 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         New module 'time', so that apps can include <time.h> as per
71998         POSIX and GNU instead of separate include files like time_r.h
71999         and timegm.h.  This implementation tries out a simpler approach
72000         for replacing decls in standard include files (as compared to
72001         the string module), somewhat as an experiment.
72002
72003         * config/srclist.txt: Comment out mktime.c for now.
72004         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72005         since it doesn't apply any more.  Use generic wording instead.
72006         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72007         'time'.
72008         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72009         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72010         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72011         Don't include <sys/types.h>; no longer needed since we assume C89.
72012         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72013         * lib/strftime.c: Likewise.
72014         * lib/time_r.c: Likewise.
72015         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72016         * lib/nanosleep.c: Include <time.h> first, to check interface.
72017         * lib/strptime.c: Likewise.
72018         * lib/time_r.c: Likewise.
72019         * lib/timegm.c: Likewise.
72020         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72021         needed.
72022         * lib/timegm.c: Don't include timegm.h; no longer needed.
72023         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72024         time.h now handles any problems in that area.
72025         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72026         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72027         that time.h defines struct timespec.
72028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72029         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72030         handles that.
72031         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72032         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72033         needed.  Set REPLACE_LOCALTIME.
72034         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72035         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72036         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72037         nanosleep; time_h.m4 now does that.  Don't require
72038         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72039         module handles this now.
72040         * modules/getdate (Depends-on): Remove timespec.  Add time.
72041         * modules/nanosleep (Depends-on): Likewise.
72042         * modules/stat-time (Depends-on): Likewise.
72043         * modules/nanosleep (Include): Include time.h, not timespec.h.
72044         * modules/strptime (Files): Remove lib/strptime.h.
72045         (Depends-on): Add extensions, time.
72046         (Include): Include time.h, not strptime.h.
72047         * modules/time_r (Files): Remove lib/time_r.h.
72048         (Depends-on): Add time.
72049         (Include): Include time.h, not time_r.h.
72050         * modules/timegm: Likewise.
72051         * modules/timespec (Description): Now does timespec-related decls
72052         of our own, instead of struct timespec itself.
72053         (Depends-on): Add time; remove extensions.
72054         (Maintainer): Add self.
72055         * modules/utimecmp (Depends-on): Add time; remove timespec.
72056         * modules/utimens (Depends-on): Likewise.
72057         * modules/xnanosleep (Depends-on): Likewise.
72058
72059 2007-02-11  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/c-strstr.c: Include allocsa.h.
72062         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72063         * lib/c-strcasestr.c: Include allocsa.h.
72064         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72065         * lib/strcasestr.c: Include allocsa.h.
72066         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72067         * lib/mbsstr.c: Include allocsa.h.
72068         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72069         allocsa/freesa instead of malloc/free.
72070         * lib/mbscasestr.c: Include allocsa.h.
72071         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72072         allocsa/freesa instead of malloc/free.
72073         * modules/c-strstr (Depends-on): Add allocsa.
72074         * modules/c-strcasestr (Depends-on): Likewise.
72075         * modules/strcasestr (Depends-on): Likewise.
72076         * modules/mbsstr (Depends-on): Likewise.
72077         * modules/mbscasestr (Depends-on): Likewise.
72078
72079 2007-02-11  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72082
72083         * modules/mbsspn-tests: New file.
72084         * tests/test-mbsspn.sh: New file.
72085         * tests/test-mbsspn.c: New file.
72086
72087 2007-02-11  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72090
72091         * modules/mbspbrk-tests: New file.
72092         * tests/test-mbspbrk.sh: New file.
72093         * tests/test-mbspbrk.c: New file.
72094
72095 2007-02-11  Bruno Haible  <bruno@clisp.org>
72096
72097         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72098         unneeded cast.
72099
72100         * modules/mbscspn-tests: New file.
72101         * tests/test-mbscspn.sh: New file.
72102         * tests/test-mbscspn.c: New file.
72103
72104 2007-02-11  Bruno Haible  <bruno@clisp.org>
72105
72106         * modules/mbscasecmp-tests: New file.
72107         * tests/test-mbscasecmp.sh: New file.
72108         * tests/test-mbscasecmp.c: New file.
72109
72110 2007-02-11  Bruno Haible  <bruno@clisp.org>
72111
72112         Ensure O(n) worst-case complexity of mbscasestr.
72113         * lib/mbscasestr.c: Include stdbool.h.
72114         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72115         functions.
72116         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72117         the bookkeeping indicates that it's worth it.
72118         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72119
72120         * modules/mbscasestr-tests: New file.
72121         * tests/test-mbscasestr1.c: New file.
72122         * tests/test-mbscasestr2.sh: New file.
72123         * tests/test-mbscasestr2.c: New file.
72124         * tests/test-mbscasestr3.sh: New file.
72125         * tests/test-mbscasestr3.c: New file.
72126         * tests/test-mbscasestr4.sh: New file.
72127         * tests/test-mbscasestr4.c: New file.
72128         * m4/locale-tr.m4: New file.
72129
72130 2007-02-11  Bruno Haible  <bruno@clisp.org>
72131
72132         Ensure O(n) worst-case complexity of mbsstr.
72133         * lib/mbsstr.c: Include stdbool.h.
72134         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72135         functions.
72136         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72137         bookkeeping indicates that it's worth it.
72138         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72139
72140         * modules/mbsstr-tests: New file.
72141         * tests/test-mbsstr1.c: New file.
72142         * tests/test-mbsstr2.sh: New file.
72143         * tests/test-mbsstr2.c: New file.
72144         * tests/test-mbsstr3.sh: New file.
72145         * tests/test-mbsstr3.c: New file.
72146         * m4/locale-fr.m4: New file.
72147
72148 2007-02-11  Bruno Haible  <bruno@clisp.org>
72149
72150         * lib/mbsrchr.c (mbsrchr): Fix bug.
72151
72152         * modules/mbsrchr-tests: New file.
72153         * tests/test-mbsrchr.sh: New file.
72154         * tests/test-mbsrchr.c: New file.
72155
72156 2007-02-11  Bruno Haible  <bruno@clisp.org>
72157
72158         * lib/mbschr.c (mbschr): Fix bug.
72159
72160         * modules/mbschr-tests: New file.
72161         * tests/test-mbschr.sh: New file.
72162         * tests/test-mbschr.c: New file.
72163         * m4/locale-zh.m4: New file.
72164
72165 2007-02-11  Bruno Haible  <bruno@clisp.org>
72166
72167         Support for copying multibyte string iterators.
72168         * lib/mbiter.h: Include <string.h>.
72169         (mbiter_multi_copy): New function.
72170         (mbi_copy): New macro.
72171         * lib/mbuiter.h: Include <string.h>.
72172         (mbuiter_multi_copy): New function.
72173         (mbui_copy): New macro.
72174
72175 2007-02-11  Bruno Haible  <bruno@clisp.org>
72176
72177         New module mbslen.
72178         * modules/mbslen: New file.
72179         * lib/mbslen.c: New file.
72180         * lib/string_.h (mbslen): New declaration.
72181         * m4/mbslen.m4: New file.
72182         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72183         GNULIB_MBSLEN.
72184         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72185         * MODULES.html.sh (Internationalization functions): Add mbslen.
72186
72187 2007-02-11  Bruno Haible  <bruno@clisp.org>
72188
72189         Ensure O(n) worst-case complexity of strcasestr substitute.
72190         * lib/strcasestr.c: Include stdbool.h.
72191         (knuth_morris_pratt): New function.
72192         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72193         bookkeeping indicates that it's worth it.
72194         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72195
72196         * modules/strcasestr-tests: New file.
72197         * tests/test-strcasestr.c: New file.
72198
72199 2007-02-11  Bruno Haible  <bruno@clisp.org>
72200
72201         Ensure O(n) worst-case complexity of c_strcasestr.
72202         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72203         (knuth_morris_pratt): New function.
72204         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72205         the bookkeeping indicates that it's worth it.
72206         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72207
72208         * modules/c-strcasestr-tests: New file.
72209         * tests/test-c-strcasestr.c: New file.
72210
72211 2007-02-11  Bruno Haible  <bruno@clisp.org>
72212
72213         Ensure O(n) worst-case complexity of c_strstr.
72214         * lib/c-strstr.c: Include stdbool.h, string.h.
72215         (knuth_morris_pratt): New function.
72216         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72217         bookkeeping indicates that it's worth it.
72218         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72219
72220         * lib/c-strstr.c: Complete rewrite for maintainability.
72221
72222         * modules/c-strstr-tests: New file.
72223         * tests/test-c-strstr.c: New file.
72224
72225 2007-02-11  Bruno Haible  <bruno@clisp.org>
72226
72227         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72228         5.2.1 and earlier, whereby \055 was treated just like the range
72229         delimiter '-'.
72230         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72231
72232 2007-02-08  Bruno Haible  <bruno@clisp.org>
72233
72234         * modules/regex (Depends-on): Add stdbool.
72235         Reported by Dalibor Topic <robilad@kaffe.org>.
72236
72237 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72240         Prefer returning from main to exiting from it.
72241         Remove unnecessary parens after sizeof.
72242
72243 2007-02-05  Bruno Haible  <bruno@clisp.org>
72244
72245         New module mbssep.
72246         * modules/mbssep: New file.
72247         * lib/mbssep.c: New file.
72248         * lib/string_.h (strsep): Add a conditional link warning.
72249         (mbssep): New declaration.
72250         * m4/mbssep.m4: New file.
72251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72252         GNULIB_MBSSEP.
72253         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72254         * MODULES.html.sh (Internationalization functions): Add mbssep.
72255
72256 2007-02-05  Bruno Haible  <bruno@clisp.org>
72257
72258         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72259         Optimize search in case of 1 delimiter.
72260
72261 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72262
72263         * lib/acl.h: Include sys/types.h before sys/acl.h.
72264
72265 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72266
72267         Merge upstream fix for glibc bugzilla #3957:
72268
72269         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72270
72271         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72272         bit for RE_HAT_LISTS_NOT_NEWLINE.
72273         (build_charclass_op): Remove bogus comment.
72274
72275 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72276
72277         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72278
72279 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72282         * lib/memmem.c [!defined _LIBC]: Include config.h.
72283
72284 2007-02-04  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72287         warning message.
72288
72289 2007-02-04  Bruno Haible  <bruno@clisp.org>
72290
72291         New module mbstok_r.
72292         * modules/mbstok_r: New file.
72293         * lib/mbstok_r.c: New file.
72294         * lib/string_.h (strtok_r): Change argument names to match the
72295         comments. Add a conditional link warning.
72296         (mbstok_r): New declaration.
72297         * m4/mbstok_r.m4: New file.
72298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72299         GNULIB_MBSTOK_R.
72300         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72301         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72302
72303 2007-02-04  Bruno Haible  <bruno@clisp.org>
72304
72305         New module mbsspn.
72306         * modules/mbsspn: New file.
72307         * lib/mbsspn.c: New file.
72308         * lib/string_.h (strspn): Add a conditional link warning.
72309         (mbsspn): New declaration.
72310         * m4/mbsspn.m4: New file.
72311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72312         GNULIB_MBSSPN.
72313         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72314         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72315
72316 2007-02-04  Bruno Haible  <bruno@clisp.org>
72317
72318         New module mbspbrk.
72319         * modules/mbspbrk: New file.
72320         * lib/mbspbrk.c: New file.
72321         * lib/string_.h (strpbrk): Add a conditional link warning.
72322         (mbspbrk): New declaration.
72323         * m4/mbspbrk.m4: New file.
72324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72325         GNULIB_MBSPBRK.
72326         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72327         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72328
72329 2007-02-04  Bruno Haible  <bruno@clisp.org>
72330
72331         New module mbscspn.
72332         * modules/mbscspn: New file.
72333         * lib/mbscspn.c: New file.
72334         * lib/string_.h (strcspn): Add a conditional link warning.
72335         (mbscspn): New declaration.
72336         * m4/mbscspn.m4: New file.
72337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72338         GNULIB_MBSCSPN.
72339         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72340         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72341
72342 2007-02-04  Bruno Haible  <bruno@clisp.org>
72343
72344         New module mbscasestr, reduced goal of strcasestr.
72345         * modules/mbscasestr: New file.
72346         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72347         (mbscasestr): Renamed from strcasestr.
72348         * lib/strcasestr.c: Don't include mbuiter.h.
72349         (strcasestr): Remove support for multibyte locales.
72350         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72351         Change the conditional link warning.
72352         (mbscasestr): New declaration.
72353         * m4/mbscasestr.m4: New file.
72354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72355         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72356         REPLACE_STRCASESTR.
72357         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72359         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72360         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72361         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72362         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72363         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72364         (Depends-on): Remove mbuiter.
72365         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72366
72367 2007-02-04  Bruno Haible  <bruno@clisp.org>
72368
72369         Simplify handling of strncasecmp.
72370         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72371         the conditional link warning.
72372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72373         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72374         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72375         * modules/strcase (configure.ac): Don't invoke
72376         gl_STRING_MODULE_INDICATOR.
72377         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72378
72379 2007-02-04  Bruno Haible  <bruno@clisp.org>
72380
72381         New module mbscasecmp, reduced goal of strcasecmp.
72382         * modules/mbscasecmp: New file.
72383         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72384         (mbscasecmp): Renamed from strcasecmp.
72385         * lib/strcasecmp.c: Don't include mbuiter.h.
72386         (strcasecmp): Remove support for multibyte locales.
72387         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72388         Change the conditional link warning.
72389         (mbscasecmp): New declaration.
72390         * m4/mbscasecmp.m4: New file.
72391         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72392         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72393         REPLACE_STRCASECMP.
72394         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72396         GNULIB_MBSCASECMP.
72397         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72398         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72399         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72400         (Depends-on): Remove mbuiter.
72401         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72402
72403 2007-02-04  Bruno Haible  <bruno@clisp.org>
72404
72405         New module mbsstr. Remove module strstr.
72406         * modules/mbsstr: New file.
72407         * modules/strstr: Remove file.
72408         * lib/mbsstr.c: Renamed from lib/strstr.c.
72409         (mbsstr): Renamed from strstr.
72410         * lib/string_.h (strstr): Remove declaration. Change the conditional
72411         link warning.
72412         (mbsstr): New declaration.
72413         * m4/mbsstr.m4: New file.
72414         * m4/strstr.m4: Remove file.
72415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72416         REPLACE_STRSTR.
72417         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72418         Don't initialize GNULIB_STRSTR.
72419         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72420         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72421         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72422         (Support for systems lacking ANSI C 89): Remove strstr.
72423
72424 2007-02-04  Bruno Haible  <bruno@clisp.org>
72425
72426         New module mbsrchr.
72427         * modules/mbsrchr: New file.
72428         * lib/mbsrchr.c: New file.
72429         * lib/string_.h (strrchr): Add a conditional link warning.
72430         (mbsrchr): New declaration.
72431         * m4/mbsrchr.m4: New file.
72432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72433         GNULIB_MBSRCHR.
72434         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72435         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72436
72437 2007-02-04  Bruno Haible  <bruno@clisp.org>
72438
72439         New module mbschr.
72440         * modules/mbschr: New file.
72441         * lib/mbschr.c: New file.
72442         * lib/string_.h (strchr): Add a conditional link warning.
72443         (mbschr): New declaration.
72444         * m4/mbschr.m4: New file.
72445         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72446         GNULIB_MBSCHR.
72447         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72448         * MODULES.html.sh (Internationalization functions): Add mbschr.
72449
72450 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72451
72452         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72453
72454         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72455
72456 2007-02-04  Bruno Haible  <bruno@clisp.org>
72457
72458         New module description section 'configure.ac-early'.
72459         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72460         (func_get_autoconf_early_snippet): New function.
72461         (func_import, func_create_testdir): Use it. Remove special cases for
72462         modules 'extensions' and 'lock'.
72463         * modules/extensions (configure.ac-early): Require
72464         gl_USE_SYSTEM_EXTENSIONS.
72465         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72466
72467 2007-02-04  Bruno Haible  <bruno@clisp.org>
72468
72469         Make use of gcj-4.3's -fsource and -ftarget option.
72470         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72471         and if so try the options -fsource and -ftarget.
72472         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72473         source_version, ftarget_option, target_version arguments.
72474         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72475         (is_envjavac_oldgcj_14_14_usable): Renamed from
72476         is_envjavac_gcj_14_14_usable.
72477         (is_envjavac_oldgcj_14_13_usable): Renamed from
72478         is_envjavac_gcj_14_13_usable.
72479         (is_gcj_present): Update.
72480         (is_gcj_43, is_gcj43_usable): New functions.
72481         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72482         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72483         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72484         try the options -fsource and -ftarget.
72485
72486 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72489         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72490         larger value.
72491
72492 2007-02-03  Jim Meyering  <jim@meyering.net>
72493
72494         Give tools a better chance to allocate space for very large buffers.
72495         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72496
72497         Make pwd and readlink work also when run with an unreadable parent dir
72498         on systems with openat support.
72499         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72500         provided getcwd function, even when we have openat support.
72501         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72502
72503 2007-02-02  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72506         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72507         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72508         portability problems if one of these functions is only used on specific
72509         platforms.
72510         Reported by Paul Eggert.
72511
72512 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72513
72514         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72515         is causing more trouble than it's curing.
72516         * lib/regex_internal.h (__mempcpy): Remove.
72517         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72518         (and make the code a tad smaller to boot).
72519         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72520
72521 2007-02-02  Jim Meyering  <jim@meyering.net>
72522
72523         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72524         section, not in the Makefile.am: one.
72525
72526 2007-02-02  Eric Blake  <ebb9@byu.net>
72527
72528         * lib/strchrnul.c: Always include config.h first.
72529
72530         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72531         gnulib strstr is not necessary here.
72532
72533 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72534
72535         * m4/socklen.m4: Fix typo.
72536
72537 2007-02-02  Eric Blake  <ebb9@byu.net>
72538
72539         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72540         * modules/netinet_in (Makefile.am): Likewise.
72541
72542 2007-02-01  Bruno Haible  <bruno@clisp.org>
72543
72544         * lib/string_.h (GL_LINK_WARNING): New macro.
72545         (strcasecmp, strstr, strcasestr): If provided by the system,
72546         conditionally define as a macro that leads to a warning instead of to
72547         an error.
72548         (strncasecmp): Conditionally define as a macro that leads to a warning.
72549
72550 2007-02-01  Karl Berry  <karl@gnu.org>
72551
72552         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72553
72554 2007-02-01  Bruno Haible  <bruno@clisp.org>
72555
72556         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72557         renamings.
72558
72559 2007-02-01  Eric Blake  <ebb9@byu.net>
72560
72561         * modules/regex (Depends-on): Revert dependence on mempcpy.
72562         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72563         module's definition of mempcpy.
72564         Reported by Paul Eggert.
72565
72566 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72569         the symbol XYZ before redefining it.  This fixes a problem with
72570         programs that don't use XYZ, when compiled on systems that define
72571         XYZ to something else.
72572
72573 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72576         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72577         writeable to group or other and (2) is intended to have a special
72578         mode bit that is set or cleared.  In such a case, the directory
72579         should be neither group- nor other-writeable until the special
72580         mode bits are right.
72581
72582 2007-01-31  Eric Blake  <ebb9@byu.net>
72583
72584         * modules/mountlist (Depends-on): Add strstr.
72585
72586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72587         bug.
72588         * modules/string (Makefile.am): Remove redundant replacement.
72589         * modules/regex (Depends-on): Add mempcpy.
72590
72591 2007-01-31  Bruno Haible  <bruno@clisp.org>
72592
72593         New module description field 'Link'.
72594         * gnulib-tool (func_usage): Document --extract-link-directive.
72595         (sed_extract_prog): Recognize 'Link' directive.
72596         (func_get_link_directive): New function.
72597         (func_import): Show summary of link directives.
72598         Handle --extract-link-directive option.
72599         * modules/acl (Link): New section.
72600         * modules/clock-time (Link): New section.
72601         * modules/euidaccess (Link): New section.
72602         * modules/gettext (Link): New section.
72603         * modules/iconv (Link): New section.
72604         * modules/lock (Link): New section.
72605         * modules/nanosleep (Link): New section.
72606         * modules/readline (Link): New section.
72607
72608 2007-01-27  Bruno Haible  <bruno@clisp.org>
72609
72610         Enforce the use of gnulib modules for unportable <string.h> functions.
72611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72612         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72613         (gl_HEADER_STRING_H_BODY): Require it.
72614         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72615         the symbol XYZ to one that gives a link error.
72616         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72617         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72618         * modules/mempcpy (configure.ac): Likewise.
72619         * modules/memrchr (configure.ac): Likewise.
72620         * modules/stpcpy (configure.ac): Likewise.
72621         * modules/stpncpy (configure.ac): Likewise.
72622         * modules/strcase (configure.ac): Likewise.
72623         * modules/strcasestr (configure.ac): Likewise.
72624         * modules/strchrnul (configure.ac): Likewise.
72625         * modules/strdup (configure.ac): Likewise.
72626         * modules/strndup (configure.ac): Likewise.
72627         * modules/strnlen (configure.ac): Likewise.
72628         * modules/strpbrk (configure.ac): Likewise.
72629         * modules/strsep (configure.ac): Likewise.
72630         * modules/strstr (configure.ac): Likewise.
72631         * modules/strtok_r (configure.ac): Likewise.
72632
72633 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72634
72635         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72636
72637 2007-01-30  Jim Meyering  <jim@meyering.net>
72638
72639         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72640
72641 2007-01-29  Bruno Haible  <bruno@clisp.org>
72642
72643         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72644         * lib/execute.c: Likewise.
72645         * lib/pipe.c: Likewise.
72646         * lib/printf-args.h: Likewise.
72647         * lib/printf-args.c: Likewise.
72648         * lib/printf-parse.c: Likewise.
72649         * lib/vasnprintf.c: Likewise.
72650
72651 2007-01-29  Eric Blake  <ebb9@byu.net>
72652
72653         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72654         declaration.
72655
72656 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * lib/strptime.h (strptime): Use 'restrict' for args where
72659         POSIX requires this.
72660         * lib/strptime.c (strptime): Likewise.
72661         Change license notice from LGPL to GPL, since gnulib-tool will
72662         change this as needed.
72663         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72664         defined.
72665         Include "strptime.h" first, to check interface.
72666         Do not #undef _LIBC and _NL_CURRENT.
72667         Do not include <stdlib.h>; no longer needed.
72668         Include "time_r.h" and declare ptime_locale_status
72669         only if _LIBC is not defined.
72670         (__P): Remove unused macro.
72671         (match_string): Bring back glibc version, but use it only if _LIBC
72672         is defined.
72673         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72674         Remove unnecessary assertion and abort() call.
72675         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72676         * m4/strptime.m4: Fix serial number comment.
72677         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72678         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72679         (Depends-on): Add time_r.
72680
72681 2007-01-29  Bruno Haible  <bruno@clisp.org>
72682
72683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72684         strptime.
72685         * modules/strptime (Depends-on): Add stdbool.
72686         * lib/strptime.h: Include <time.h> always. Add comments.
72687
72688 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72689
72690         * modules/strptime: New file.
72691         * lib/strptime.h: New file.
72692         * lib/strptime.c: New file.
72693         * m4/strptime.m4: New file.
72694
72695 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * MODULES.html.sh: New module mpsort.
72698         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72699
72700         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72701         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72703         All uses changed.
72704         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72705         All uses changed.
72706         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72707         to _Restrict_.
72708         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72709         the parameter matches the prototype.
72710
72711 2007-01-28  Jim Meyering  <jim@meyering.net>
72712
72713         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72714         sys/time.h here, reverting that part of the previous patch:
72715         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72716
72717 2007-01-28  Bruno Haible  <bruno@clisp.org>
72718
72719         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72720         value of $(SYS_TIME_H).
72721         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72722         remove it conditionally, too. [added by Jim Meyering]
72723         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72724         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72725         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72726         GETTIMEOFDAY_REPLACEMENT to 1.
72727
72728 2007-01-28  Bruno Haible  <bruno@clisp.org>
72729
72730         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72731         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72733         Set UNISTD_H instead of UNISTD_H2.
72734         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72735
72736 2007-01-28  Bruno Haible  <bruno@clisp.org>
72737
72738         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72739         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72740
72741 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72742
72743         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72744         (func_create_testdir): Ensure C locale for `grep' and `tr'
72745         character ranges.
72746         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72747         ACLOCAL_AMFLAGS parsing state machine.
72748
72749 2007-01-27  Bruno Haible  <bruno@clisp.org>
72750
72751         * modules/unistr/base: Update.
72752
72753 2007-01-27  Bruno Haible  <bruno@clisp.org>
72754
72755         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72756         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72757         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72758         modules/unistr/u32-mbtouc.
72759         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72760         * lib/unistr.h: Update.
72761         * lib/linebreak.c: Update.
72762         * modules/unistr/u32-mbtouc: Renamed from
72763         modules/unistr/u32-mbtouc-safe.
72764         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72765         * lib/unistr.h: Update.
72766         * lib/unistr/u32-to-u8.c: Update.
72767         * lib/unistr/u32-to-u16.c: Update.
72768
72769 2007-01-27  Bruno Haible  <bruno@clisp.org>
72770
72771         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72772         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72773         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72774         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72775         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72776         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72777         modules/unistr/u16-mbtouc.
72778         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72779         * lib/unistr.h: Update.
72780         * lib/linebreak.c: Update.
72781         * modules/linebreak: Update.
72782         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72783         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72784         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72785         * modules/unistr/u16-mbtouc: Renamed from
72786         modules/unistr/u16-mbtouc-safe.
72787         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72788         * lib/unistr.h: Update.
72789         * lib/unistr/u16-to-u8.c: Update.
72790         * modules/unistr/u16-to-u8: Update.
72791         * lib/unistr/u16-to-u32.c: Update.
72792         * modules/unistr/u16-to-u32: Update.
72793
72794 2007-01-27  Bruno Haible  <bruno@clisp.org>
72795
72796         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72797         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72798         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72799         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72800         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72801         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72802         modules/unistr/u8-mbtouc.
72803         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72804         * lib/unistr.h: Update.
72805         * lib/striconveh.c: Update.
72806         * modules/striconveh: Update.
72807         * lib/linebreak.c: Update.
72808         * modules/linebreak: Update.
72809         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72810         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72811         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72812         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72813         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72814         * lib/unistr.h: Update.
72815         * lib/striconveh.c: Update.
72816         * modules/striconveh: Update.
72817         * lib/unistr/u8-to-u16.c: Update.
72818         * modules/unistr/u8-to-u16: Update.
72819         * lib/unistr/u8-to-u32.c: Update.
72820         * modules/unistr/u8-to-u32: Update.
72821
72822 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72823
72824         Sync from Libtool.
72825         * lib/argz.c: Do not include strings.h nor memory.h, include
72826         string.h unconditionally.  Patch by Simon Josefsson.
72827
72828 2007-01-27  Bruno Haible  <bruno@clisp.org>
72829
72830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72831         from gl_HEADER_STRING_H_BODY.
72832         (gl_HEADER_STRING_H_BODY): Require it.
72833         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72834         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72835         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72836         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72837         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72838         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72840         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72841         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72842         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72843         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72844         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72845         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72846         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72847         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72848
72849 2007-01-27  Bruno Haible  <bruno@clisp.org>
72850
72851         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72852         check_PROGRAMS into noinst_PROGRAMS.
72853         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72854         check_PROGRAMS in this case.
72855         (func_import): Set for_test to false.
72856         (func_create_testdir): Set for_test to true.
72857
72858 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72859             Bruno Haible  <bruno@clisp.org>
72860
72861         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72862         (Depends-on): Add string.
72863         (Includes): Use <string.h> instead of strcasestr.h.
72864         * modules/string (Makefile.am): Also substitute the value of
72865         REPLACE_STRCASESTR.
72866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72867         assume strcasestr is declared in <string.h> not <strings.h>. Also
72868         set REPLACE_STRCASESTR.
72869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72870         REPLACE_STRCASESTR.
72871         * lib/strcasestr.h: Remove file.
72872         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72873         * lib/string_.h (strcasestr): New declaration.
72874
72875 2007-01-27  Bruno Haible  <bruno@clisp.org>
72876
72877         * lib/string_.h: Use 'extern'.
72878
72879 2007-01-27  Jim Meyering  <jim@meyering.net>
72880
72881         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72882         of set-but-not-used local, "q".
72883
72884         * lib/mempcpy.c: Include <config.h> before <string.h>.
72885         This fixes a compilation error on HP-UX, due to the system's
72886         "restrict"-using mempcpy prototype.
72887
72888 2007-01-26  Bruno Haible  <bruno@clisp.org>
72889
72890         Small optimization.
72891         * lib/javacomp.c: Include c-strstr.h.
72892          (is_envjavac_gcj): Use c_strstr instead of strstr.
72893         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72894
72895 2007-01-26  Bruno Haible  <bruno@clisp.org>
72896
72897         * MODULES.html.sh (Unicode string functions): Add the new modules.
72898
72899         * modules/uniconv/u32-strconv-to-locale: New file.
72900         * lib/uniconv/u32-strconv-to-locale.c: New file.
72901
72902         * modules/uniconv/u16-strconv-to-locale: New file.
72903         * lib/uniconv/u16-strconv-to-locale.c: New file.
72904
72905         * modules/uniconv/u8-strconv-to-locale: New file.
72906         * lib/uniconv/u8-strconv-to-locale.c: New file.
72907
72908         * modules/uniconv/u32-strconv-from-locale: New file.
72909         * lib/uniconv/u32-strconv-from-locale.c: New file.
72910
72911         * modules/uniconv/u16-strconv-from-locale: New file.
72912         * lib/uniconv/u16-strconv-from-locale.c: New file.
72913
72914         * modules/uniconv/u8-strconv-from-locale: New file.
72915         * lib/uniconv/u8-strconv-from-locale.c: New file.
72916
72917         * modules/uniconv/u32-strconv-to-enc: New file.
72918         * lib/uniconv/u32-strconv-to-enc.c: New file.
72919         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72920         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72921
72922         * modules/uniconv/u16-strconv-to-enc: New file.
72923         * lib/uniconv/u16-strconv-to-enc.c: New file.
72924         * lib/uniconv/u-strconv-to-enc.h: New file.
72925         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72926         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72927
72928         * modules/uniconv/u8-strconv-to-enc: New file.
72929         * lib/uniconv/u8-strconv-to-enc.c: New file.
72930         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72931         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72932
72933         * modules/uniconv/u32-strconv-from-enc: New file.
72934         * lib/uniconv/u32-strconv-from-enc.c: New file.
72935         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72936         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72937
72938         * modules/uniconv/u16-strconv-from-enc: New file.
72939         * lib/uniconv/u16-strconv-from-enc.c: New file.
72940         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72941         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72942
72943         * modules/uniconv/u8-strconv-from-enc: New file.
72944         * lib/uniconv/u8-strconv-from-enc.c: New file.
72945         * lib/uniconv/u-strconv-from-enc.h: New file.
72946         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72947         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72948
72949         * modules/uniconv/u32-conv-from-enc: New file.
72950         * lib/uniconv/u32-conv-from-enc.c: New file.
72951         * modules/uniconv/u32-conv-from-enc-tests: New file.
72952         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72953
72954         * modules/uniconv/u16-conv-from-enc: New file.
72955         * lib/uniconv/u16-conv-from-enc.c: New file.
72956         * lib/uniconv/u-conv-from-enc.h: New file.
72957         * modules/uniconv/u16-conv-from-enc-tests: New file.
72958         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72959
72960         * modules/uniconv/u8-conv-from-enc: New file.
72961         * lib/uniconv/u8-conv-from-enc.c: New file.
72962         * modules/uniconv/u8-conv-from-enc-tests: New file.
72963         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72964
72965         * modules/uniconv/base: New file.
72966         * lib/uniconv.h: New file.
72967
72968 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * doc/gnulib-tool.texi (Initial import): Update to match current
72971         behavior with strdup module.
72972         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72973         * lib/memmem.h: Remove; all uses removed.  This is now done
72974         by <string.h>.
72975         * lib/mempcpy.h: Likewise.
72976         * lib/memrchr.h: Likewise.
72977         * lib/stpcpy.h: Likewise.
72978         * lib/stpncpy.h: Likewise.
72979         * lib/strcase.h: Likewise.
72980         * lib/strchrnul.h: Likewise.
72981         * lib/strdup.h: Likewise.
72982         * lib/strndup.h: Likewise.
72983         * lib/strnlen.h: Likewise.
72984         * lib/strpbrk.h: Likewise.
72985         * lib/strsep.h: Likewise.
72986         * lib/strstr.h: Likewise.
72987         * lib/strtok_r.h: Likewise.
72988         * lib/string_.h: New file.
72989         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72990         Rely on <string.h> instead.
72991         * lib/canon-host.c: Likewise.
72992         * lib/chdir-long.c: Likewise.
72993         * lib/concatpath.c: Likewise.
72994         * lib/exclude.c: Likewise.
72995         * lib/fchdir.c: Likewise.
72996         * lib/getaddrinfo.c: Likewise.
72997         * lib/getcwd.c: Likewise.
72998         * lib/getsubopt.c: Likewise.
72999         * lib/glob.c: Likewise.
73000         * lib/hard-locale.c: Likewise.
73001         * lib/iconvme.c: Likewise.
73002         * lib/javacomp.c: Likewise.
73003         * lib/mempcpy.c: Likewise.
73004         * lib/memrchr.c: Likewise.
73005         * lib/regex_internal.h: Likewise.
73006         * lib/stpncpy.c: Likewise.
73007         * lib/strcasecmp.c: Likewise.
73008         * lib/strchrnul.c: Likewise.
73009         * lib/strdup.c: Likewise.
73010         * lib/striconv.c: Likewise.
73011         * lib/striconveh.c: Likewise.
73012         * lib/striconveha.c: Likewise.
73013         * lib/strncasecmp.c: Likewise.
73014         * lib/strndup.c: Likewise.
73015         * lib/strnlen.c: Likewise.
73016         * lib/strsep.c: Likewise.
73017         * lib/strstr.c: Likewise.
73018         * lib/strtok_r.c: Likewise.
73019         * lib/userspec.c: Likewise.
73020         * lib/w32spawn.h: Likewise.
73021         * lib/xstrndup.c: Likewise.
73022         * lib/mountlist.c (strstr): Remove decl.
73023         * m4/string_h.m4: New file.
73024         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73025         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73026         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73027         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73028         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73029         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73030         Set REPLACE_STRCASECMP if necessary.
73031         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73032         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73033         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73034         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73035         HAVE_DECL_STRDUP if necessary.
73036         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73037         since gl_FUNC_STRNDUP does that now.
73038         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73039         Check for decl here...
73040         (gl_PREREQ_STRNLEN): ... not here.
73041         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73042         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73043         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73044         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73045         necessary.
73046         * modules/string: New file.
73047         * modules/memmem (Files): Remove special-purpose include file.
73048         (Depends-on): Add string.
73049         (Include): Include <string.h>, not the removed file.
73050         * modules/mempcpy: Likewise.
73051         * modules/memrchr: Likewise.
73052         * modules/stpcpy: Likewise.
73053         * modules/stpncpy: Likewise.
73054         * modules/strcase: Likewise.
73055         * modules/strchrnul: Likewise.
73056         * modules/strdup: Likewise.
73057         * modules/strndup: Likewise.
73058         * modules/strnlen: Likewise.
73059         * modules/strpbrk: Likewise.
73060         * modules/strsep: Likewise.
73061         * modules/strstr: Likewise.
73062         * modules/strtok_r: Likewise.
73063         * tests/test-dirname.c: Don't include "strdup.h", since
73064         <string.h> now suffices.
73065         * tests/test-memmem.c: Don't include "memmem.h", since
73066         <string.h> now suffices.
73067
73068 2007-01-25  Bruno Haible  <bruno@clisp.org>
73069
73070         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73071         *resultp is 0.
73072
73073         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73074         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73075         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73076         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73077
73078         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73079         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73080         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73081         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73082         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73083         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73084
73085 2007-01-24  Bruno Haible  <bruno@clisp.org>
73086
73087         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73088         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73089         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73090         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73091         gl_FUNC_FTS_CORE.
73092         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73093         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73094         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73095         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73096         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73097         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73098         gl_FUNC_FCHOWNAT.
73099         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73100         gl_FUNC_STRFTIME.
73101         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73102         Reported by Ralf Wildenhues.
73103
73104 2007-01-24  Bruno Haible  <bruno@clisp.org>
73105
73106         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73107         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73108         gl_GETADDRINFO.
73109         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73110         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73111         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73112
73113 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73114
73115         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73116         Don't use 'exit'; just return from 'main'.
73117         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73118
73119         * lib/fnmatch_.h: Readjust white space and comments to match
73120         glibc, to avoid spurious diffs.
73121
73122 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73125         2004-12-01 change by Jakub Jelinek, since this code won't compile
73126         if !LIBC.  Problem reported by Bob Proulx.
73127
73128 2007-01-23  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/striconveh.c: Include c-strcaseeq.h.
73131         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73132         * modules/striconveh (Depends-on): Add c-strcaseeq.
73133
73134 2007-01-23  Bruno Haible  <bruno@clisp.org>
73135
73136         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73137
73138         * modules/c-strcaseeq: New file.
73139         * lib/c-strcaseeq.h: New file.
73140
73141         * modules/streq: New file.
73142         * lib/streq.h: New file.
73143
73144 2007-01-23  Bruno Haible  <bruno@clisp.org>
73145
73146         * modules/striconveha-tests: New file.
73147         * tests/test-striconveha.c: New file.
73148
73149         * lib/striconveha.h: Include <stdbool.h>.
73150         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73151         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73152         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73153         (mem_iconveha): New function.
73154         (str_iconveha_notranslit): Renamed from str_iconveha.
73155         (str_iconveha): New function.
73156         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73157         c-strcase.
73158
73159 2007-01-23  Bruno Haible  <bruno@clisp.org>
73160
73161         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73162         encodings without forgiving before trying any encoding with handler.
73163         (str_iconveha): Try all encodings without forgiving before trying any
73164         encoding with handler.
73165
73166 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         Import the following changes from libc.
73169
73170         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73171
73172         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73173
73174         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73175
73176         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73177         normal_bracket label.
73178
73179         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73180
73181         [BZ #361]
73182         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73183         to normal_bracket after fetching the next character.
73184
73185 2007-01-22  Bruno Haible  <bruno@clisp.org>
73186
73187         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73188         argument.
73189         * lib/striconveh.c (iconv_carefully_1): New function.
73190         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73191         argument.
73192         (str_cd_iconveh): Update.
73193         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73194         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73195         * tests/test-striconveh.c (MAGIC): New macro.
73196         (new_offsets): New function.
73197         (main): Test call with and without offsets.
73198
73199 2007-01-22  Bruno Haible  <bruno@clisp.org>
73200
73201         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73202         * modules/sys_select (Makefile.am): Likewise.
73203         * modules/sys_socket (Makefile.am): Likewise.
73204         * modules/sys_time (Makefile.am): Likewise.
73205
73206 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * modules/gettimeofday (License): Change from GPL to LGPL, since
73209         gettimeofday is a library function.
73210
73211 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73212
73213         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73214
73215 2007-01-21  Bruno Haible  <bruno@clisp.org>
73216
73217         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73218
73219 2007-01-21  Bruno Haible  <bruno@clisp.org>
73220
73221         * modules/striconveha: New file.
73222         * lib/striconveha.h: New file.
73223         * lib/striconveha.c: New file.
73224         * MODULES.html.sh (Internationalization functions): Add striconveha.
73225         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73226         string.
73227         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73228
73229 2007-01-21  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73232         * lib/striconveh.c (str_iconveh): Likewise.
73233
73234 2007-01-21  Bruno Haible  <bruno@clisp.org>
73235
73236         * lib/striconveh.h (mem_iconveh): New declaration.
73237         * lib/striconveh.c (mem_iconveh): New function.
73238         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73239
73240 2007-01-21  Bruno Haible  <bruno@clisp.org>
73241
73242         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73243
73244         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73245         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73246         original result buffer.
73247         (str_cd_iconveh): Update.
73248         * tests/test-striconveh.c (main): Update.
73249
73250         * lib/striconv.h (mem_cd_iconv): Change specification.
73251         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73252         result buffer.
73253         (str_cd_iconv): Update.
73254         * tests/test-striconv.c (main): Update.
73255
73256 2007-01-21  Bruno Haible  <bruno@clisp.org>
73257
73258         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73259
73260 2007-01-20  Jim Meyering  <jim@meyering.net>
73261
73262         * lib/userspec.c (parse_with_separator): If a user or group string
73263         starts with "+", skip the corresponding name-to-ID look-up, since
73264         such a look-up must fail: user and group names may not include "+".
73265
73266 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73269         since we now assume the sys_time module.
73270         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73271         check for sys/time.h; no longer needed.
73272         * modules/poll (Depends-on): Depend on sys_time.
73273
73274 2007-01-18  Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73277         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73278
73279         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73280         gettimeofday.
73281
73282         * tests/test-gettimeofday.c: Include <time.h>.
73283         (dummy): Remove variable.
73284
73285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73286         gl_HEADER_SYS_TIME_H.
73287         (gl_HEADER_SYS_TIME_H): New macro.
73288
73289         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73290         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73291         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73292         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73293         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73294         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73295         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73296         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73297         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73298         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73299         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73300
73301         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73302         last change; it caused a compilation error when cross-compiling to
73303         Cygwin.
73304
73305 2007-01-18  Jim Meyering  <jim@meyering.net>
73306
73307         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73308         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73309         than the race-prone "test -d sys || mkdir sys".
73310         (configure.ac): Use AC_PROG_MKDIR_P.
73311         * modules/sys_select: Likewise.
73312         * modules/sys_socket: Likewise.
73313         * modules/sys_time: Likewise.
73314
73315 2007-01-18  Eric Blake  <ebb9@byu.net>
73316
73317         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73318         replace gettimeofday.
73319         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73320         name, to avoid infinite recursion.
73321
73322 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73325         module sys_time.
73326         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73327         assume timespec.h defines struct timeval.
73328         * lib/settime.c: Likewise.
73329         * lib/utimens.c: Likewise.
73330         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73331         since we now assume the gettimeofday module.
73332         * lib/tempname.c (__gen_tempname): Likewise.
73333         * lib/gettimeofday.h: Remove.
73334         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73335         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73336         Include <time.h>, for 'time()'.
73337         (localtime_buffer_addr): Also use this workaround if
73338         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73339         to simplify the uses.  All uses changed.
73340         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73341         that #undef is inside {}, and 'const' follows type name consistently.
73342         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73343         (gettimeofday): Do not use the maximum possible value for
73344         tv->tv_usec, since that might break usages other than ls.c.
73345         Instead, we'll leave ls.c alone.  This undoes today's patch
73346         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73347         we've never observed the problem but might as well keep the
73348         canary.
73349         * lib/nanosleep.c: Include timespec.h first, for interface check.
73350         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73351         now assume the sys_time module.
73352         * lib/tempname.c: Likewise.
73353         * lib/timespec.h: Likewise.
73354         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73355         needed.
73356         * lib/strftime.c: Likewise.
73357         * lib/timespec.h: Likewise.
73358         * lib/posixtm.c: Include posixtm.h first, for interface check.
73359         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73360         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73361         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73362         * lib/sys_time_.h: New file.
73363         * lib/timespec.h (struct timespec): Use long int, not long.
73364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73365         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73366         Remove obsolescent call to AC_HEADER_TIME.
73367         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73369         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73370         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73371         Likewise.
73372         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73373         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73375         into the sys_time module.  Check for gettimeofday just once.
73376         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73377         for gettimeofday signature to just check the signature.  Merely
73378         compile it, since linking doesn't test signature.  Improve test for
73379         whether gettimeofday.o is actually needed.
73380         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73381         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73382         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73383         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73384         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73385         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73386         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73387         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73388         than worrying about sys/time.h.
73389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73390         Don't bother worrying about TIME_WITH_SYS_TIME.
73391         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73392         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73393         * m4/sys_time_h.m4: New file.
73394         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73395         Don't include sys/time.h.  Return from main rather than exiting.
73396         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73397         all uses changed.
73398         * modules/gethrxtime (Depends-on): Add sys_time.
73399         * modules/gettime (Depends-on): Likewise.
73400         * modules/gettimeofday (Depends-on): Likewise.
73401         * modules/nanosleep (Depends-on): Likewise.
73402         * modules/settime (Depends-on): Likewise.
73403         * modules/tempname (Depends-on): Likewise.
73404         * modules/utimens (Depends-on): Likewise.
73405         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73406         (Include): Change back to <sys/time.h>.
73407         (Maintainer): Add self.
73408         * modules/sys_time: New file.
73409         * modules/tempname (Depends-on): Add gettimeofday.
73410         * tests/test-gettimeofday.c: Include <sys/time.h>
73411         rather than gettimeofday.h.
73412
73413 2007-01-17  Bruno Haible  <bruno@clisp.org>
73414
73415         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73416         the license default to GPL.
73417         (func_create_testdir): Don't complain if a module is LGPL and its
73418         tests module depends on GPLed modules.
73419
73420 2007-01-17  Bruno Haible  <bruno@clisp.org>
73421
73422         * lib/gettimeofday.c (gettimeofday): Add code for the case
73423         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73424         maximum possible value for tv->tv_usec, rather than the minimum one.
73425
73426 2005-10-08  Martin Lambers  <marlam@marlam.de>
73427 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73428 2007-01-16  Bruno Haible  <bruno@clisp.org>
73429
73430         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73431         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73432         gl_FUNC_GETTIMEOFDAY.
73433         (Include): Add gettimeofday.h.
73434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73435         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73436         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73437         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73438         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73439         * lib/gettimeofday.h: New file.
73440         * lib/gettimeofday.c: Include <sys/timeb.h>.
73441         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73442         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73443         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73444         fall back on time().
73445
73446         * tests/test-gettimeofday.c: New file.
73447         * modules/gettimeofday-tests: New file.
73448
73449 2007-01-16  Eric Blake  <ebb9@byu.net>
73450
73451         * modules/fnmatch (Depends-on): Depend on wchar.
73452         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73453         * m4/fnmatch.m4: Likewise.
73454         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73455         * m4/mbchar.m4: Likewise.
73456         * modules/mbswidth (Depends-on): Depend on wchar.
73457         * lib/mbswidth.c: Assume <wchar.h>.
73458         * m4/mbswidth.m4: Likewise.
73459         * modules/quotearg (Depends-on): Depend on wchar.
73460         * lib/quotearg.c: Assume <wchar.h>.
73461         * m4/quotearg.m4: Likewise.
73462         * modules/regex (Depends-on): Depend on wchar.
73463         * lib/regex_internal.h: Assume <wchar.h>.
73464         * m4/regex.m4: Likewise.
73465         * modules/stdint (Depends-on): Depend on wchar.
73466         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73467         * m4/stdint.m4: Likewise.
73468         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73469         * modules/strftime (Depends-on): Depend on wchar.
73470         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73471         * modules/strtol (Depends-on): Depend on wchar.
73472         * lib/strtol.c: Assume <wchar.h>.
73473         * modules/wcwidth (Depends-on): Depend on wchar.
73474         * lib/wcwidth.h: Assume <wchar.h>.
73475         * m4/wcwidth.m4: Likewise.
73476
73477 2007-01-16  Bruno Haible  <bruno@clisp.org>
73478
73479         * modules/csharpexec-script: New, created from...
73480         * modules/csharpexec: ... this.
73481
73482 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73483
73484         * modules/javaexec-script: New, created from...
73485         * modules/javaexec: ... this.
73486
73487 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73488
73489         * modules/poll (Dependencies): Add sys_select.
73490
73491 2007-01-15  Jim Meyering  <jim@meyering.net>
73492
73493         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73494         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73495         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73496         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73497
73498 2007-01-15  Bruno Haible  <bruno@clisp.org>
73499
73500         * modules/striconveh: New file.
73501         * lib/striconveh.h: New file.
73502         * lib/striconveh.c: New file.
73503         * MODULES.html.sh (Internationalization functions): Add striconveh.
73504
73505         * modules/striconveh-tests: New file.
73506         * tests/test-striconveh.c: New file.
73507
73508 2007-01-15  Bruno Haible  <bruno@clisp.org>
73509
73510         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73511         not from GNU libiconv or GNU libc.
73512
73513 2007-01-15  Bruno Haible  <bruno@clisp.org>
73514
73515         * doc/gnulib-intro.texi (Copyright): Explain the different license
73516         terms for module descriptions, autoconf macros, tests, documentation.
73517
73518 2007-01-14  Bruno Haible  <bruno@clisp.org>
73519
73520         * modules/striconv-tests: New file.
73521         * tests/test-striconv.c: New file.
73522
73523 2007-01-14  Bruno Haible  <bruno@clisp.org>
73524
73525         * modules/iconv-tests: New file.
73526         * tests/test-iconv.c: New file.
73527
73528 2007-01-14  Bruno Haible  <bruno@clisp.org>
73529
73530         * gnulib-tool (func_get_license): For test modules, use the license of
73531         the main module.
73532
73533 2007-01-14  Bruno Haible  <bruno@clisp.org>
73534
73535         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73536         if iconv is found to exist.
73537
73538 2007-01-14  Bruno Haible  <bruno@clisp.org>
73539
73540         * modules/c-ctype-tests: New file.
73541         * tests/test-c-ctype.c: New file.
73542
73543 2007-01-14  Bruno Haible  <bruno@clisp.org>
73544
73545         * modules/binary-io-tests: New file.
73546         * tests/test-binary-io.sh: New file.
73547         * tests/test-binary-io.c: New file.
73548
73549 2007-01-14  Bruno Haible  <bruno@clisp.org>
73550
73551         * modules/array-oset-tests: New file.
73552         * tests/test-array_oset.c: New file.
73553
73554 2007-01-14  Bruno Haible  <bruno@clisp.org>
73555
73556         * modules/array-list-tests: New file.
73557         * tests/test-array_list.c: New file.
73558
73559 2007-01-14  Bruno Haible  <bruno@clisp.org>
73560
73561         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73562         and make.
73563         Reported by Simon Josefsson in
73564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73565
73566 2007-01-14  Bruno Haible  <bruno@clisp.org>
73567
73568         * modules/allocsa-tests: New file.
73569         * tests/test-allocsa.c: New file.
73570
73571 2007-01-14  Bruno Haible  <bruno@clisp.org>
73572
73573         * modules/fchdir (Depends-on): Add absolute-header.
73574         * modules/unistd (Depends-on): Likewise.
73575
73576 2006-12-30  Bruno Haible  <bruno@clisp.org>
73577
73578         * modules/fchdir: New file.
73579         * modules/unistd (Files): Add lib/unistd_.h.
73580         (Makefile.am): Generate unistd.h from unistd_.h.
73581         * lib/fchdir.c: New file.
73582         * lib/dirent_.h: New file.
73583         * lib/unistd_.h: New file.
73584         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73585         * m4/fchdir.m4: New file.
73586         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73587         (gl_HEADER_UNISTD): Invoke it.
73588         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73589         function.
73590         * lib/backupfile.c (opendir, closedir): Undefine.
73591         * lib/chown.c (open, close): Undefine.
73592         * lib/clean-temp.c (open, close): Undefine.
73593         * lib/copy-file.c (open, close): Undefine.
73594         * lib/execute.c (open, close): Undefine.
73595         * lib/fsusage.c (open, close): Undefine.
73596         * lib/gc-gnulib.c (open, close): Undefine.
73597         * lib/getcwd.c (opendir, closedir): Undefine.
73598         * lib/glob.c (opendir, closedir): Undefine.
73599         * lib/javacomp.c (open, close): Undefine.
73600         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73601         * lib/openat-proc.c (open, close): Undefine.
73602         * lib/pagealign_alloc.c (open, close): Undefine.
73603         * lib/pipe.c (open, close): Undefine.
73604         * lib/progreloc.c (open, close): Undefine.
73605         * lib/savedir.c (opendir, closedir): Undefine.
73606         * lib/utime.c (open, close): Undefine.
73607         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73608
73609 2007-01-10  Bruno Haible  <bruno@clisp.org>
73610
73611         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73612
73613 2007-01-12  Eric Blake  <ebb9@byu.net>
73614
73615         Provide a robust <wchar.h>.  Further simplifications are now
73616         possible in other modules, but not included here.
73617         * modules/wchar: New module.
73618         * m4/wchar.m4: New file.
73619         * lib/wchar_.h: Likewise.
73620         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73621         of the new module.
73622         * MODULES.html.sh (Extended multibyte and wide character utilities):
73623         New section.
73624
73625 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73626
73627         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73628         to a reasonable default for memory allocation.
73629         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73630         file system that reports garbage st_size values for symlinks.
73631         Problem reported by Liyang Hu.
73632
73633 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73634
73635         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73636         Emacs .#* auto-save files).
73637
73638 2007-01-11  Bruno Haible  <bruno@clisp.org>
73639
73640         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73641         directory.
73642
73643 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73644
73645         Use @...@ consistently in lib/wctype_.h.
73646         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73647         on it being set to 1 or 0.
73648         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73649         go back to AC_SUBSTing it.
73650         * modules/wctype (Makefile.am): Undo previous change.
73651
73652 2007-01-10  Eric Blake  <ebb9@byu.net>
73653
73654         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73655         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73656         * modules/wctype (Makefile.am): Likewise.
73657         Reported by Chris McGuire.
73658
73659 2007-01-10  Jim Meyering  <jim@meyering.net>
73660
73661         fts.c: a small readability/maintainability improvement
73662         * lib/fts.c (fts_read): Make this code slightly more readable and
73663         maintainable by hoisting the "sp->fts_cur = p" assignments to
73664         immediately follow the statements that set P.  Derived from
73665         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73666
73667 2007-01-10  Eric Blake  <ebb9@byu.net>
73668
73669         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73670         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73672         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73673         Reported by Chris McGuire.
73674
73675 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73676
73677         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73678         in sed script.
73679
73680 2007-01-09  Bruno Haible  <bruno@clisp.org>
73681
73682         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73683         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73684         variables.
73685         (func_module): Use them.
73686
73687 2007-01-09  Bruno Haible  <bruno@clisp.org>
73688
73689         * modules/unistr/base: New file.
73690         * lib/unistr.h: New file.
73691
73692         * modules/unistr/u8-to-u16: New file.
73693         * lib/unistr/u8-to-u16.c: New file.
73694
73695         * modules/unistr/u8-to-u32: New file.
73696         * lib/unistr/u8-to-u32.c: New file.
73697
73698         * modules/unistr/u16-to-u8: New file.
73699         * lib/unistr/u16-to-u8.c: New file.
73700
73701         * modules/unistr/u16-to-u32: New file.
73702         * lib/unistr/u16-to-u32.c: New file.
73703
73704         * modules/unistr/u32-to-u8: New file.
73705         * lib/unistr/u32-to-u8.c: New file.
73706
73707         * modules/unistr/u32-to-u16: New file.
73708         * lib/unistr/u32-to-u16.c: New file.
73709
73710         * modules/unistr/u8-check: New file.
73711         * modules/unistr/u16-check: New file.
73712         * modules/unistr/u32-check: New file.
73713         * lib/unistr/u8-check.c: New file.
73714         * lib/unistr/u16-check.c: New file.
73715         * lib/unistr/u32-check.c: New file.
73716
73717         * modules/unistr/u8-chr: New file.
73718         * modules/unistr/u16-chr: New file.
73719         * modules/unistr/u32-chr: New file.
73720         * lib/unistr/u8-chr.c: New file.
73721         * lib/unistr/u16-chr.c: New file.
73722         * lib/unistr/u32-chr.c: New file.
73723
73724         * modules/unistr/u8-cmp: New file.
73725         * modules/unistr/u16-cmp: New file.
73726         * modules/unistr/u32-cmp: New file.
73727         * lib/unistr/u8-cmp.c: New file.
73728         * lib/unistr/u16-cmp.c: New file.
73729         * lib/unistr/u32-cmp.c: New file.
73730
73731         * modules/unistr/u8-cpy: New file.
73732         * modules/unistr/u16-cpy: New file.
73733         * modules/unistr/u32-cpy: New file.
73734         * lib/unistr/u8-cpy.c: New file.
73735         * lib/unistr/u16-cpy.c: New file.
73736         * lib/unistr/u32-cpy.c: New file.
73737         * lib/unistr/u-cpy.h: New file.
73738
73739         * modules/unistr/u8-cpy-alloc: New file.
73740         * modules/unistr/u16-cpy-alloc: New file.
73741         * modules/unistr/u32-cpy-alloc: New file.
73742         * lib/unistr/u8-cpy-alloc.c: New file.
73743         * lib/unistr/u16-cpy-alloc.c: New file.
73744         * lib/unistr/u32-cpy-alloc.c: New file.
73745         * lib/unistr/u-cpy-alloc.h: New file.
73746
73747         * modules/unistr/u8-endswith: New file.
73748         * modules/unistr/u16-endswith: New file.
73749         * modules/unistr/u32-endswith: New file.
73750         * lib/unistr/u8-endswith.c: New file.
73751         * lib/unistr/u16-endswith.c: New file.
73752         * lib/unistr/u32-endswith.c: New file.
73753         * lib/unistr/u-endswith.h: New file.
73754
73755         * modules/unistr/u8-mblen: New file.
73756         * modules/unistr/u16-mblen: New file.
73757         * modules/unistr/u32-mblen: New file.
73758         * lib/unistr/u8-mblen.c: New file.
73759         * lib/unistr/u16-mblen.c: New file.
73760         * lib/unistr/u32-mblen.c: New file.
73761
73762         * modules/unistr/u8-mbtouc: New file.
73763         * modules/unistr/u16-mbtouc: New file.
73764         * modules/unistr/u32-mbtouc: New file.
73765         * lib/unistr/u8-mbtouc.c: New file.
73766         * lib/unistr/u16-mbtouc.c: New file.
73767         * lib/unistr/u32-mbtouc.c: New file.
73768
73769         * modules/unistr/u8-mbtouc-safe: New file.
73770         * modules/unistr/u16-mbtouc-safe: New file.
73771         * modules/unistr/u32-mbtouc-safe: New file.
73772         * lib/unistr/u8-mbtouc-safe.c: New file.
73773         * lib/unistr/u16-mbtouc-safe.c: New file.
73774         * lib/unistr/u32-mbtouc-safe.c: New file.
73775
73776         * modules/unistr/u8-move: New file.
73777         * modules/unistr/u16-move: New file.
73778         * modules/unistr/u32-move: New file.
73779         * lib/unistr/u8-move.c: New file.
73780         * lib/unistr/u16-move.c: New file.
73781         * lib/unistr/u32-move.c: New file.
73782         * lib/unistr/u-move.h: New file.
73783
73784         * modules/unistr/u8-next: New file.
73785         * modules/unistr/u16-next: New file.
73786         * modules/unistr/u32-next: New file.
73787         * lib/unistr/u8-next.c: New file.
73788         * lib/unistr/u16-next.c: New file.
73789         * lib/unistr/u32-next.c: New file.
73790
73791         * modules/unistr/u8-prev: New file.
73792         * modules/unistr/u16-prev: New file.
73793         * modules/unistr/u32-prev: New file.
73794         * lib/unistr/u8-prev.c: New file.
73795         * lib/unistr/u16-prev.c: New file.
73796         * lib/unistr/u32-prev.c: New file.
73797
73798         * modules/unistr/u8-set: New file.
73799         * modules/unistr/u16-set: New file.
73800         * modules/unistr/u32-set: New file.
73801         * lib/unistr/u8-set.c: New file.
73802         * lib/unistr/u16-set.c: New file.
73803         * lib/unistr/u32-set.c: New file.
73804         * lib/unistr/u-set.h: New file.
73805
73806         * modules/unistr/u8-startswith: New file.
73807         * modules/unistr/u16-startswith: New file.
73808         * modules/unistr/u32-startswith: New file.
73809         * lib/unistr/u8-startswith.c: New file.
73810         * lib/unistr/u16-startswith.c: New file.
73811         * lib/unistr/u32-startswith.c: New file.
73812         * lib/unistr/u-startswith.h: New file.
73813
73814         * modules/unistr/u8-stpcpy: New file.
73815         * modules/unistr/u16-stpcpy: New file.
73816         * modules/unistr/u32-stpcpy: New file.
73817         * lib/unistr/u8-stpcpy.c: New file.
73818         * lib/unistr/u16-stpcpy.c: New file.
73819         * lib/unistr/u32-stpcpy.c: New file.
73820         * lib/unistr/u-stpcpy.h: New file.
73821
73822         * modules/unistr/u8-stpncpy: New file.
73823         * modules/unistr/u16-stpncpy: New file.
73824         * modules/unistr/u32-stpncpy: New file.
73825         * lib/unistr/u8-stpncpy.c: New file.
73826         * lib/unistr/u16-stpncpy.c: New file.
73827         * lib/unistr/u32-stpncpy.c: New file.
73828         * lib/unistr/u-stpncpy.h: New file.
73829
73830         * modules/unistr/u8-strcat: New file.
73831         * modules/unistr/u16-strcat: New file.
73832         * modules/unistr/u32-strcat: New file.
73833         * lib/unistr/u8-strcat.c: New file.
73834         * lib/unistr/u16-strcat.c: New file.
73835         * lib/unistr/u32-strcat.c: New file.
73836         * lib/unistr/u-strcat.h: New file.
73837
73838         * modules/unistr/u8-strchr: New file.
73839         * modules/unistr/u16-strchr: New file.
73840         * modules/unistr/u32-strchr: New file.
73841         * lib/unistr/u8-strchr.c: New file.
73842         * lib/unistr/u16-strchr.c: New file.
73843         * lib/unistr/u32-strchr.c: New file.
73844
73845         * modules/unistr/u8-strcmp: New file.
73846         * modules/unistr/u16-strcmp: New file.
73847         * modules/unistr/u32-strcmp: New file.
73848         * lib/unistr/u8-strcmp.c: New file.
73849         * lib/unistr/u16-strcmp.c: New file.
73850         * lib/unistr/u32-strcmp.c: New file.
73851
73852         * modules/unistr/u8-strcpy: New file.
73853         * modules/unistr/u16-strcpy: New file.
73854         * modules/unistr/u32-strcpy: New file.
73855         * lib/unistr/u8-strcpy.c: New file.
73856         * lib/unistr/u16-strcpy.c: New file.
73857         * lib/unistr/u32-strcpy.c: New file.
73858         * lib/unistr/u-strcpy.h: New file.
73859
73860         * modules/unistr/u8-strcspn: New file.
73861         * modules/unistr/u16-strcspn: New file.
73862         * modules/unistr/u32-strcspn: New file.
73863         * lib/unistr/u8-strcspn.c: New file.
73864         * lib/unistr/u16-strcspn.c: New file.
73865         * lib/unistr/u32-strcspn.c: New file.
73866         * lib/unistr/u-strcspn.h: New file.
73867
73868         * modules/unistr/u8-strdup: New file.
73869         * modules/unistr/u16-strdup: New file.
73870         * modules/unistr/u32-strdup: New file.
73871         * lib/unistr/u8-strdup.c: New file.
73872         * lib/unistr/u16-strdup.c: New file.
73873         * lib/unistr/u32-strdup.c: New file.
73874         * lib/unistr/u-strdup.h: New file.
73875
73876         * modules/unistr/u8-strlen: New file.
73877         * modules/unistr/u16-strlen: New file.
73878         * modules/unistr/u32-strlen: New file.
73879         * lib/unistr/u8-strlen.c: New file.
73880         * lib/unistr/u16-strlen.c: New file.
73881         * lib/unistr/u32-strlen.c: New file.
73882         * lib/unistr/u-strlen.h: New file.
73883
73884         * modules/unistr/u8-strmblen: New file.
73885         * modules/unistr/u16-strmblen: New file.
73886         * modules/unistr/u32-strmblen: New file.
73887         * lib/unistr/u8-strmblen.c: New file.
73888         * lib/unistr/u16-strmblen.c: New file.
73889         * lib/unistr/u32-strmblen.c: New file.
73890
73891         * modules/unistr/u8-strmbtouc: New file.
73892         * modules/unistr/u16-strmbtouc: New file.
73893         * modules/unistr/u32-strmbtouc: New file.
73894         * lib/unistr/u8-strmbtouc.c: New file.
73895         * lib/unistr/u16-strmbtouc.c: New file.
73896         * lib/unistr/u32-strmbtouc.c: New file.
73897
73898         * modules/unistr/u8-strncat: New file.
73899         * modules/unistr/u16-strncat: New file.
73900         * modules/unistr/u32-strncat: New file.
73901         * lib/unistr/u8-strncat.c: New file.
73902         * lib/unistr/u16-strncat.c: New file.
73903         * lib/unistr/u32-strncat.c: New file.
73904         * lib/unistr/u-strncat.h: New file.
73905
73906         * modules/unistr/u8-strncmp: New file.
73907         * modules/unistr/u16-strncmp: New file.
73908         * modules/unistr/u32-strncmp: New file.
73909         * lib/unistr/u8-strncmp.c: New file.
73910         * lib/unistr/u16-strncmp.c: New file.
73911         * lib/unistr/u32-strncmp.c: New file.
73912
73913         * modules/unistr/u8-strncpy: New file.
73914         * modules/unistr/u16-strncpy: New file.
73915         * modules/unistr/u32-strncpy: New file.
73916         * lib/unistr/u8-strncpy.c: New file.
73917         * lib/unistr/u16-strncpy.c: New file.
73918         * lib/unistr/u32-strncpy.c: New file.
73919         * lib/unistr/u-strncpy.h: New file.
73920
73921         * modules/unistr/u8-strnlen: New file.
73922         * modules/unistr/u16-strnlen: New file.
73923         * modules/unistr/u32-strnlen: New file.
73924         * lib/unistr/u8-strnlen.c: New file.
73925         * lib/unistr/u16-strnlen.c: New file.
73926         * lib/unistr/u32-strnlen.c: New file.
73927         * lib/unistr/u-strnlen.h: New file.
73928
73929         * modules/unistr/u8-strpbrk: New file.
73930         * modules/unistr/u16-strpbrk: New file.
73931         * modules/unistr/u32-strpbrk: New file.
73932         * lib/unistr/u8-strpbrk.c: New file.
73933         * lib/unistr/u16-strpbrk.c: New file.
73934         * lib/unistr/u32-strpbrk.c: New file.
73935         * lib/unistr/u-strpbrk.h: New file.
73936
73937         * modules/unistr/u8-strrchr: New file.
73938         * modules/unistr/u16-strrchr: New file.
73939         * modules/unistr/u32-strrchr: New file.
73940         * lib/unistr/u8-strrchr.c: New file.
73941         * lib/unistr/u16-strrchr.c: New file.
73942         * lib/unistr/u32-strrchr.c: New file.
73943
73944         * modules/unistr/u8-strspn: New file.
73945         * modules/unistr/u16-strspn: New file.
73946         * modules/unistr/u32-strspn: New file.
73947         * lib/unistr/u8-strspn.c: New file.
73948         * lib/unistr/u16-strspn.c: New file.
73949         * lib/unistr/u32-strspn.c: New file.
73950         * lib/unistr/u-strspn.h: New file.
73951
73952         * modules/unistr/u8-strstr: New file.
73953         * modules/unistr/u16-strstr: New file.
73954         * modules/unistr/u32-strstr: New file.
73955         * lib/unistr/u8-strstr.c: New file.
73956         * lib/unistr/u16-strstr.c: New file.
73957         * lib/unistr/u32-strstr.c: New file.
73958         * lib/unistr/u-strstr.h: New file.
73959
73960         * modules/unistr/u8-strtok: New file.
73961         * modules/unistr/u16-strtok: New file.
73962         * modules/unistr/u32-strtok: New file.
73963         * lib/unistr/u8-strtok.c: New file.
73964         * lib/unistr/u16-strtok.c: New file.
73965         * lib/unistr/u32-strtok.c: New file.
73966         * lib/unistr/u-strtok.h: New file.
73967
73968         * modules/unistr/u8-uctomb: New file.
73969         * modules/unistr/u16-uctomb: New file.
73970         * modules/unistr/u32-uctomb: New file.
73971         * lib/unistr/u8-uctomb.c: New file.
73972         * lib/unistr/u16-uctomb.c: New file.
73973         * lib/unistr/u32-uctomb.c: New file.
73974
73975         * MODULES.html.sh (Unicode string functions): Add the new modules.
73976
73977 2007-01-08  Bruno Haible  <bruno@clisp.org>
73978
73979         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73980         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73981         subdirectories.
73982
73983 2007-01-08  Karl Berry  <karl@gnu.org>
73984
73985         * doc/error.texi: mention that main() fns must set program_name
73986         when progname is used.
73987
73988 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73991         WCTYPE_H is empty, for the benefit of builds from non-distclean
73992         directories.  Problem reported by Eric Blake in
73993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73994
73995 2007-01-08  Bruno Haible  <bruno@clisp.org>
73996
73997         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73998         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73999         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74000         PROVIDE_CANONICALIZE_FILENAME_MODE.
74001         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74002
74003 2007-01-08  Bruno Haible  <bruno@clisp.org>
74004
74005         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74006         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74007         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74008         * lib/fts.c: Likewise.
74009         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74010
74011 2006-12-25  Bruno Haible  <bruno@clisp.org>
74012
74013         * modules/utf8-ucs4-safe: New file.
74014         * lib/utf8-ucs4-safe.h: New file.
74015         * lib/unistr/utf8-ucs4-safe.c: New file.
74016
74017         * modules/utf16-ucs4-safe: New file.
74018         * lib/utf16-ucs4-safe.h: New file.
74019         * lib/unistr/utf16-ucs4-safe.c: New file.
74020
74021         * MODULES.html.sh (Unicode string functions): Add the new modules.
74022
74023 2007-01-08  Bruno Haible  <bruno@clisp.org>
74024
74025         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74026         (Depends-on): Add unitypes.
74027         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74028         (u8_mbtouc_aux): Move out to separate file.
74029         (u8_mbtouc): Use ucs4_t, uint8_t types.
74030         * lib/unistr/utf8-ucs4.c: New file.
74031
74032         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74033         (Depends-on): Add unitypes.
74034         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74035         (u16_mbtouc_aux): Move out to separate file.
74036         (u16_mbtouc): Use ucs4_t, uint16_t types.
74037         * lib/unistr/utf16-ucs4.c: New file.
74038
74039         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74040         (Depends-on): Add unitypes.
74041         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74042         (u8_uctomb_aux): Move out to separate file.
74043         (u8_uctomb): Use ucs4_t, uint8_t types.
74044         * lib/unistr/ucs4-utf8.c: New file.
74045
74046         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74047         (Depends-on): Add unitypes.
74048         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74049         (u16_uctomb_aux): Move out to separate file.
74050         (u16_uctomb): Use ucs4_t, uint16_t types.
74051         * lib/unistr/ucs4-utf16.c: New file.
74052
74053 2006-12-25  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/unitypes: New file.
74056         * lib/unitypes.h: New file.
74057         * MODULES.html.sh (func_all_modules): New section "Unicode string
74058         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74059         this section. Add unitypes.
74060
74061 2007-01-08  Bruno Haible  <bruno@clisp.org>
74062
74063         Avoid variable names that conflict with those from libtool.
74064         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74065         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74066         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74067         library_names_spec to acl_library_names_spec, hardcode_* to
74068         acl_hardcode_*.
74069         Reported by Ralf Wildenhues.
74070
74071 2007-01-08  Bruno Haible  <bruno@clisp.org>
74072
74073         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74074         definition.
74075         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74076         definition.
74077         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74078         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74079         definition.
74080         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74081         definition.
74082         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74083         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74084         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74085         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74086         definition.
74087         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74088         definition.
74089         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74090         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74091         GC_USE_<algorithm>.
74092         * lib/gc-libgcrypt.c: Likewise.
74093         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74094         * modules/gc-arctwo (configure.ac): Likewise.
74095         * modules/gc-des (configure.ac): Likewise.
74096         * modules/gc-hmac-md5 (configure.ac): Likewise.
74097         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74098         * modules/gc-md2 (configure.ac): Likewise.
74099         * modules/gc-md4 (configure.ac): Likewise.
74100         * modules/gc-md5 (configure.ac): Likewise.
74101         * modules/gc-random (configure.ac): Likewise.
74102         * modules/gc-rijndael (configure.ac): Likewise.
74103         * modules/gc-sha1 (configure.ac): Likewise.
74104
74105 2007-01-08  Bruno Haible  <bruno@clisp.org>
74106
74107         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74108         macro definition.
74109         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74110         definition.
74111         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74112         definition.
74113         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74114         * modules/fcntl-safer (configure.ac): Likewise.
74115         * modules/fopen-safer (configure.ac): Likewise.
74116         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74117         GNULIB_FWRITEERROR macro definition.
74118
74119 2007-01-08  Bruno Haible  <bruno@clisp.org>
74120
74121         * m4/gnulib-common.m4: New file.
74122         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74123         (func_get_filelist): Add m4/gnulib-common.m4.
74124
74125 2007-01-08  Bruno Haible  <bruno@clisp.org>
74126
74127         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74128         command.
74129
74130 2007-01-08  Jim Meyering  <jim@meyering.net>
74131
74132         Use a more robust test for a "can't happen" condition.
74133         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74134         narrowed the st_size value.  Presuming the "can't happen" condition
74135         is true, that narrowing could conceivably convert an invalid st_size
74136         value into a valid one.  Instead, use a change based on Matthew
74137         Woehlke's original patch.
74138
74139         Slight readability improvement: use an assert-like macro
74140         in place of literal "abort ()" uses.
74141         * lib/fts.c (fts_assert): Define.
74142         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74143         Use this macro instead of a bare 'abort'.
74144
74145 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74148         simply work around them.
74149         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74150         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74151         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74152         declaring.
74153         Don't bother to define as macros, since the standard doesn't require it.
74154         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74155         longer worry about IRIX 5.3.
74156         (HAVE_WCTYPE_CTMP_BUG): Remove.
74157
74158 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74161         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74162         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74163         Problems reported by Georg Schwarz for IRIX 5.3.
74164
74165         * gnulib-tool (autoconf_minversion): Take the maximum version number
74166         found, not the minimum.  Problem reported by James Youngman.
74167
74168 2007-01-03  Karl Berry  <karl@gnu.org>
74169
74170         * doc/error.texi: new file, explaining interaction with progname.
74171         * doc/gnulib.texi: include it.  Update copyright.
74172
74173 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74174
74175         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74176         AC_CANONICAL_HOST, to improve autobuild outputs.
74177
74178 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74179             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74180
74181         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74182         sockets, server sockets, and other file descriptors.  Count errors
74183         to compute the return value.  Reorder the code a bit to be easier
74184         to follow.  Don't set event bits that were not requested (except
74185         POLLERR and POLLHUP).
74186
74187 2007-01-01  Bruno Haible  <bruno@clisp.org>
74188
74189         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74190
74191 2007-01-03  Jim Meyering  <jim@meyering.net>
74192
74193         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74194
74195 2007-01-02  Bruno Haible  <bruno@clisp.org>
74196
74197         * modules/settime (Include): Require timespec.h.
74198         * modules/nanosleep (Include): Likewise.
74199
74200 2007-01-01  Bruno Haible  <bruno@clisp.org>
74201
74202         * gnulib-tool (func_emit_copyright_notice): Bump year.
74203         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74204
74205 2007-01-01  Bruno Haible  <bruno@clisp.org>
74206
74207         Improve support for OpenBSD.
74208         * build-aux/config.rpath (libname_spec): Export.
74209         (library_names_spec): New variable. Export.
74210         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74211         library_names_spec from the config.rpath output. Locate shared library
74212         through the name pattern in library_names_spec.
74213
74214 2007-01-01  Eric Blake  <ebb9@byu.net>
74215
74216         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74217
74218 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74221         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74222         assume the C locale, and avoid an "eval" that could cause trouble.
74223         Problem with SORT reported by Bob Proulx.
74224
74225         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74226         Define.  Trivial patch from Henning Nielsen Lund, originally
74227         sent to bug-grep@gnu.org today.
74228
74229 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74230
74231         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74232         struct stat.  Problem reported by Henning Nielsen Lund.
74233         * lib/acl.c: Include acl.h first, to check interface.  Don't
74234         bother to include sys/types.h and sys/stat.h again.
74235
74236 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         Import the following change from libc; problem reported by
74239         Sven Verdoolaege.
74240
74241         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74242
74243         [BZ #1373]
74244         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74245
74246 2006-12-28  Jim Meyering  <jim@meyering.net>
74247
74248         * build-aux/announce-gen: Do not assume that the package
74249         builds any of tar.gz, tar.bz2, and .xdelta files.
74250         Suggestion from Simon Josefsson.
74251
74252 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74253
74254         * modules/announce-gen: New file.
74255
74256 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74259         handles its gotchas now.
74260         * lib/mbswidth.c: Likewise.
74261         * lib/wcwidth.h: Likewise.
74262         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74263         and iswcntrl; the wctype module does this stuff now.
74264         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74266         * modules/mbchar (Depends-on): Add wctype.
74267         * modules/mbswidth (Depends-on): Likewise.
74268         * modules/wcwidth (Depends-on): Likewise.
74269
74270 2006-12-27  Eric Blake  <ebb9@byu.net>
74271
74272         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74273         module uses more than what <wctype.h> is required to provide.
74274
74275 2006-12-26  Eric Blake  <ebb9@byu.net>
74276
74277         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74278
74279 2006-12-26  Eric Blake  <ebb9@byu.net>
74280
74281         * modules/absolute-header: New module.
74282         * modules/fcntl (Depends-on): Depend on it.
74283         * modules/inttypes (Depends-on): Likewise.
74284         * modules/stdint (Depends-on): Likewise.
74285         * modules/sys_stat (Depends-on): Likewise.
74286         * modules/wctype (Depends-on): Likewise.
74287         * MODULES.html.sh (Support for building libraries and
74288         executables): Document it.
74289
74290 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * gnulib-tool (SED): Remove, undoing previous change.
74293         The problem was that it broke coreutils on Solaris, because
74294         "sed --posix" leaked into a makefile.
74295         (sed): New alias, if 'alias' and GNU sed.
74296
74297 2006-12-24  Jim Meyering  <jim@meyering.net>
74298
74299         Work around an fchownat bug in glibc-2.4:
74300         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74301         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74302         in spite of the -P option.
74303         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74304         New macros.
74305         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74306         * modules/openat (Files): Add lib/fchownat.c.
74307         * lib/openat.c (fchownat): Don't define here.  Move to...
74308         * lib/fchownat.c: ...this new file.
74309
74310 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         Fix bug reported by Bruno Haible in
74313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74314         where quotearg.c didn't compile on Mac OS X 10.2 because it
74315         lacks <wchar.h> and wint_t.
74316         * lib/wctype_.h (__wctype_wint_t): New type.
74317         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74318         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74319         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74320         Arg is now of type __wctype_wint_t, not wint_t.
74321         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74322         substitute HAVE_WINT_T.
74323         * modules/wctype (Files): Add m4/wint_t.m4.
74324         (wctype.h): Substitute HAVE_WINT_T.
74325
74326 2006-12-23  Bruno Haible  <bruno@clisp.org>
74327
74328         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74329
74330 2006-12-23  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74333         S_ISLNK.
74334         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74335         mingw.
74336
74337 2006-12-22  Bruno Haible  <bruno@clisp.org>
74338
74339         * lib/copy-file.c: Include acl.h.
74340         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74341         Close the file descriptors only after being done with copy_acl.
74342         * modules/copy-file (Depends-on): Add acl.
74343
74344 2006-12-22  Bruno Haible  <bruno@clisp.org>
74345
74346         * gnulib-tool (SED): New variable.
74347         Use $SED instead of sed everywhere.
74348
74349 2006-12-22  Bruno Haible  <bruno@clisp.org>
74350
74351         * modules/no-c++: New file.
74352         * m4/no-c++.m4: New file.
74353         * MODULES.html.sh (Support for building libraries and executables):
74354         Add no-c++.
74355
74356 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74359         Include <limits.h>, and use its INT_MAX to rewrite the
74360         j loop so that it does not overflow 'int'.  Problem reported by
74361         Ralf Wildenhues in
74362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74363         Play it safe by shifting left by 1 rather than multiplying by 2,
74364         as GCC is less likely to optimize this away when the value
74365         is signed (when it assumes overflow leads to undefined behavior).
74366         Also, don't assume time_t uses two's complement.
74367
74368 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * MODULES.html.sh: New module wctype.
74371         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74372         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74373         <wctype.h>, since the new wctype module should fix this.
74374         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74375         the wctype module should arrange for it.
74376         * lib/regex_internal.h: Likewise.
74377         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74378         since the wctype module should handle this now.
74379         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74380         * modules/fnmatch (Depends-on): Add wctype.
74381         * modules/quotearg (Depends-on): Likewise.
74382         * modules/regex (Depends-on): Likewise.
74383
74384 2006-12-19  Bruno Haible  <bruno@clisp.org>
74385
74386         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74387         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74388
74389 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74390
74391         * modules/savewd (Depends-on): Fix dependency on fcntl.
74392
74393 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74396         conforms to C99, rather than relying on the user's environment
74397         setting of STDINT_H.
74398
74399 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74400         and Eric Blake  <ebb9@byu.net>
74401
74402         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74403         This is more consistent with the other defines here.
74404         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74405         Port to z/OS.  Problem reported by Paul Gilmartin.
74406         Change local vars to use gl_ prefix rather than ac_.
74407         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74408         with other defines.
74409         * modules/double-slash-root: New module.
74410         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74411         (Depends-on): Add double-slash-root.
74412         * MODULES.html.sh (File system functions): Mention new module.
74413
74414 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74417         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74418         This is for the benefit of gzip, which doesn't do i18n.
74419
74420 2006-12-12  Jim Meyering  <jim@meyering.net>
74421
74422         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74423         Reported by Andreas Schwab <schwab@suse.de>.
74424
74425 2006-12-12  Bruno Haible  <bruno@clisp.org>
74426
74427         Merge these changes.
74428         2006-09-05  Bruno Haible  <bruno@clisp.org>
74429         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74430         iconv_alloc succeeded.
74431         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74432         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74433         test for " && dest " at the end - dest is always != NULL there. Call
74434         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74435         with 2xNULL arguments, also to flush the state storage. Handle the
74436         IRIX iconv behaviour. Realloc the final result, to throw away unused
74437         memory.
74438
74439 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74442         and fchmodat unconditionally, since glibc 2.4 has them.
74443         Problem reported by Arkadiusz Miskiewicz.
74444
74445 2006-12-10  Bruno Haible  <bruno@clisp.org>
74446
74447         * gnulib-tool (func_import): Show the include files only for those
74448         modules that are copied and specified.
74449         Reported by Karl Berry.
74450
74451 2006-12-08  Jim Meyering  <jim@meyering.net>
74452
74453         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74454         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74455
74456         * build-aux/announce-gen: Add two new options, both optional:
74457         --bootstrap-tools=TOOL_LIST
74458               a comma-separated list of tools, e.g.,
74459               autoconf,automake,bison,gnulib
74460         --gnulib-snapshot-date=DATE
74461               if gnulib is in the bootstrap tool list,
74462               then report this as the snapshot date.
74463               If not specified, use the current date/time.
74464               If you specify a date here, be sure it's UTC.
74465
74466 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74467
74468         * tests/test-argp-2.sh: Fix test to match actual output.
74469         (func_compare): Fix sed script to be portable.
74470
74471 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74472
74473         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74474         workaround for this case.  It is not autoconfigured now; offhand
74475         it's hard to see how to autoconfigure it.
74476
74477 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74480         a directory that is about to be chowned.  Such a directory's
74481         initial file permissions should permit the owner only and this
74482         should not be changed until after the chown, since the group and
74483         other bits would be incorrect if they granted permission before
74484         the chown.
74485
74486         Fix porting problem for iswctype reported by Georg Schwarz in:
74487         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74488         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74489         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74490         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74491         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74492
74493 2006-12-03  Jim Meyering  <jim@meyering.net>
74494
74495         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74496         p->fts_statp may not yet be defined.
74497         (fts_read): Instead, set it in the caller, once p->fts_statp is
74498         sure to be defined, and corresponds to a top-level directory.
74499         This bug made du -x fail.  Here's the coreutils test case:
74500         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74501         Reported by Mike Frysinger.
74502
74503 2006-12-01  Jim Meyering  <jim@meyering.net>
74504
74505         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74506         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74507         Reported by Simon Josefsson.
74508
74509 2006-11-30  Jim Meyering  <jim@meyering.net>
74510
74511         * m4/warning.m4: Use the all-permissive copyright notice
74512         recommended by RMS (rather than LGPL).
74513         * m4/vararrays.m4: Likewise.
74514         * m4/flexmember.m4: Likewise.
74515
74516 2006-11-29  Bruno Haible  <bruno@clisp.org>
74517
74518         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74519         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74520         using +=.
74521         Reported by Simon Josefsson <simon@josefsson.org>.
74522
74523 2006-11-28  James Youngman <jay@gnu.org>
74524
74525         * README: Advise users that they might find the bug-gnulib@gnu.org
74526         and autotools-announce@gnu.org mailing lists useful.
74527
74528 2006-11-28  Bruno Haible  <bruno@clisp.org>
74529
74530         * m4/ptrdiff_max.m4: Remove file.
74531
74532 2006-11-21  Bruno Haible  <bruno@clisp.org>
74533
74534         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74535         _AC_COMPUTE_INT.
74536         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74537         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74538         _AC_COMPUTE_INT.
74539         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74540         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74541         _AC_COMPUTE_INT.
74542         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74543
74544 2006-11-28  Jim Meyering  <jim@meyering.net>
74545
74546         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74547         warning from "gcc -Wshadow" about shadowing the builtin.
74548
74549 2006-11-27  Bruno Haible  <bruno@clisp.org>
74550
74551         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74552         _AC_COMPUTE_INT.
74553         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74554
74555 2006-11-27  Bruno Haible  <bruno@clisp.org>
74556             Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74559
74560 2006-11-26  Bruno Haible  <bruno@clisp.org>
74561
74562         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74563         noinst_LTLIBRARIES.
74564
74565 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74566             Bruno Haible  <bruno@clisp.org>
74567
74568         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74569         if compiling with "gcc -ansi".
74570
74571 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74572
74573         Fix some incompatibilities with gcc -ansi -pedantic.
74574         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74575         if compiling pedantically with GCC, unless it's C99 or later.
74576         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74577         it mishandles gcc -ansi -pedantic as well.
74578         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74579         if gcc -pedantic.
74580         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74581         initializers for struct if -pedantic, unless it's C99 or later.
74582
74583 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74584
74585         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74586         Don't close an fd more than once. Identical atimes indicate
74587         success, not failure.
74588
74589 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74590
74591         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74592
74593 2006-11-23  Jim Meyering  <jim@meyering.net>
74594
74595         * build-aux/announce-gen: New file.  From coreutils.
74596
74597 2006-11-22  Jim Meyering  <jim@meyering.net>
74598
74599         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74600         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74601         (fts_read): Use a temporary to narrow the overused st_size member
74602         before using it in a switch statement.  Reported by Matthew Woehlke.
74603
74604         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74605         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74606
74607 2006-11-20  Bruno Haible  <bruno@clisp.org>
74608
74609         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74610         changequote instead of pairs of brackets.
74611         Reported by Andreas Schwab <schwab@suse.de>.
74612
74613 2006-11-21  Jim Meyering  <jim@meyering.net>
74614
74615         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74616         so as to remain compatible with older compilers.
74617         Patch from Michael Deutschmann.
74618
74619 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * MODULES.html.sh (File system functions): Add openat.
74622
74623         * lib/openat.h (rpl_fstatat): New macro, if
74624         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74625         (fstatat): Define to rpl_fstatat under the same conditions,
74626         unless COMPILING_FSTATAT.
74627         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74628         seems to have the bug.
74629         * lib/fstatat.c: New file.
74630         * modules/openat (Files): Add it.
74631
74632 2006-11-20  Bruno Haible  <bruno@clisp.org>
74633
74634         * Makefile: New file.
74635
74636 2006-11-20  Jim Meyering  <jim@meyering.net>
74637
74638         The beginnings of syntax-related checks for gnulib.
74639         * lib/Makefile: New file.
74640         * lib/t-idcache: New script.  Ensure that the two halves of
74641         idcache.c stay in sync.
74642
74643         * lib/idcache.c: Adjust comments in user- and group- portions to
74644         be more accurate, and to be consistent with one another.
74645
74646 2006-11-20  Jim Meyering  <jim@meyering.net>
74647
74648         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74649         continue using the flexible array member (thus, this module performs
74650         half as many malloc calls), with the addition that...
74651         (getgroup, getuser): Consistently record a non-match via an empty
74652         "name" string, and map an empty string match to a NULL return value.
74653         * modules/idcache (Depends-on): Re-add flexmember.
74654
74655         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74656         (getuidbyname, getgroup, getgidbyname): Likewise.
74657
74658         Use cleaner syntax: NULL rather than 0.
74659         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74660
74661 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74664         It mishandled the case where the group was missing.
74665         Problem reported by Greg Schafer.
74666         * modules/idcache: Likewise.
74667
74668 2006-11-18  Jim Meyering  <jim@meyering.net>
74669
74670         * check-module (%exempt_header): Add exception for some
74671         conditionally-included headers.
74672
74673         * modules/i-ring (Depends-on): Add verify.
74674         (License): Change to LGPL.
74675
74676 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74679         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74680         and inttostr.h.  Use snprintf rather than uinttostr, so that
74681         LGPLed code doesn't depend on GPLed.
74682
74683 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * modules/inline (License): Change from GPL to LGPL.
74686
74687 2006-11-17  Jim Meyering  <jim@meyering.net>
74688
74689         * modules/d-type (License): Switch to LGPL.
74690
74691 2006-11-15  Bruno Haible  <bruno@clisp.org>
74692
74693         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74694
74695 2006-11-15  Eric Blake  <ebb9@byu.net>
74696
74697         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74698         the module dependency.
74699
74700 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74701             Bruno Haible  <bruno@clisp.org>
74702
74703         * gnulib-tool (func_create_testdir): Add license consistency check.
74704
74705 2006-11-15  Eric Blake  <ebb9@byu.net>
74706
74707         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74708         random "(cached)" in configure output.
74709
74710 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74711
74712         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74713         test for conforming inttypes.h is both announced and cached.
74714
74715         * MODULES.html.sh (seen_modules, seen_files): New variables.
74716         (func_module): Rewrite to use a few less gnulib-tool and sed
74717         invocations.  Avoid a couple of quadratic algorithms for ...
74718         (missed_modules, missed_files): ... these, with ...
74719         (func_append, func_tmpdir): ... these new functions, from
74720         gnulib-tool.  Analogously, install traps for cleanup.
74721
74722         * tests/test-gc.c (main): Remove unused variables.
74723         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74724
74725 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * modules/inttostr (License): Change to LGPL.
74728
74729 2006-11-14  Eric Blake  <ebb9@byu.net>
74730
74731         * modules/tempname (License): Change to LGPL.
74732
74733 2006-11-14  Eric Blake  <ebb9@byu.net>
74734
74735         * doc/functions.texi (Function Portability): *printf functions on
74736         Cygwin now understand all POSIX size specifiers.
74737
74738 2006-11-14  Bruno Haible  <bruno@clisp.org>
74739
74740         * modules/c-ctype (License): Change to LGPL.
74741
74742 2006-11-12  Bruno Haible  <bruno@clisp.org>
74743
74744         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74745         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74746         for GNOME libraries, for which the include files are installed in
74747         subdirectories of $prefix/include.
74748
74749 2006-11-12  Bruno Haible  <bruno@clisp.org>
74750
74751         * m4/lib-link.m4: Require at least autoconf-2.54.
74752         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74753         name to underscores for the --with option.
74754
74755 2006-11-13  Bruno Haible  <bruno@clisp.org>
74756
74757         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74758         the tests directory.
74759         Reported by Ralf Wildenhues.
74760
74761 2006-11-13  Bruno Haible  <bruno@clisp.org>
74762
74763         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74764         (func_emit_initmacro_end): Undo the override here.
74765         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74766         Works around the famous automake error in coreutils.
74767
74768 2006-11-13  Eric Blake  <ebb9@byu.net>
74769
74770         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74771         element, not its node.
74772
74773 2006-11-12  Bruno Haible  <bruno@clisp.org>
74774
74775         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74776         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74777
74778 2006-11-12  Bruno Haible  <bruno@clisp.org>
74779
74780         * gnulib-tool: New option --local-symlink.
74781         (func_usage): Document it.
74782         (lsymbolic): New variable.
74783         (func_import, func_create_testdir): If --symlink was not specified,
74784         test whether --local-symlink was specified and the file comes from
74785         the local_gnulib_dir.
74786
74787 2006-11-12  Bruno Haible  <bruno@clisp.org>
74788
74789         * gnulib-tool (func_ln): New function.
74790         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74791
74792 2006-11-12  Bruno Haible  <bruno@clisp.org>
74793
74794         Finish support for source files in subdirectories.
74795         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74796         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74797         AUTOMAKE_OPTIONS.
74798         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74799
74800 2006-11-12  Bruno Haible  <bruno@clisp.org>
74801
74802         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74803         EXTRA_lib_SOURCES augmentation.
74804         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74805
74806 2006-11-12  Jim Meyering  <jim@meyering.net>
74807
74808         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74809         file descriptors.  This also averts a failure on systems with
74810         native openat support when a traversed directory lacks "x" access.
74811         * lib/fts_.h: Include "i-ring.h"
74812         (struct FTS) [fts_fd_ring]: New member.
74813         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74814         (FCHDIR): Add parentheses.
74815         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74816         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74817         When descending, rather than simply closing the previous
74818         fts_cwd_fd value, push that file descriptor onto the ring.
74819         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74820         (fts_open): Initialize the new fd_ring member.
74821         (fts_close): Clear the ring.
74822         (fts_safe_changedir): When possible, use our new fd_ring to skip
74823         the diropen and fstat and dev/ino comparison that would normally
74824         accompany a virtual `chdir ("..")'.
74825
74826         * modules/fts (Depends-on): Add i-ring.
74827         * modules/i-ring: New module.
74828         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74829         * m4/i-ring.m4: New file.
74830
74831 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74832
74833         * gnulib-tool (func_create_testdir): Fix replacement of
74834         `build-aux' in configure.ac.  Run autotools in gltests
74835         subdirectory.
74836         (func_create_testdir, func_create_megatestdir, test): There is
74837         no need for '--force' in most autotool invocations in a new
74838         tree.  Actually fail the whole test if any of the tools, or the
74839         configure or make stages fail.
74840
74841         Sync from Automake.
74842         * build-aux/gnupload: Revert last change.  Add pointer to upload
74843         instructions of the GNU Maintenance Instructions.
74844         Suggestion by Karl Berry.
74845
74846 2006-11-10  Jim Meyering  <jim@meyering.net>
74847
74848         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74849
74850 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74851
74852         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74853         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74854         (bind_textdomain_codeset) [! ENABLE_NLS]:
74855         Evaluate all the arguments.  That way, callers get compatible behavior
74856         if the arguments have side effects.  Also, it avoids some GCC
74857         diagnostics in some cases; Joel E. Denny reported problems when Bison
74858         was configured with --enable-gcc-warnigs.
74859
74860 2006-11-10  Jim Meyering  <jim@meyering.net>
74861
74862         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74863         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74864         account.
74865
74866 2006-11-10  Jim Meyering  <jim@meyering.net>
74867
74868         * modules/inline: New file/module.
74869         * modules/xalloc (Files): Remove m4/inline.m4.
74870         (Depends-on): Add inline, instead.
74871         * modules/oset: Likewise.
74872         * modules/list: Likewise.
74873
74874 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74875
74876         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74877         Problem reported by Matthew Woehlke.
74878
74879 2006-11-09  Bruno Haible  <bruno@clisp.org>
74880
74881         * lib/tempname.c (gen_tempname): Remove variant that invokes
74882         __gen_tempname.
74883         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74884         __gen_tempname.
74885
74886 2006-11-08  Bruno Haible  <bruno@clisp.org>
74887
74888         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74889         to 'yes' instead of 'cross-compiling'.
74890
74891 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * lib/quotearg.h (quotearg_free): New decl.
74894         * lib/quotearg.c (quotearg_free): New function.
74895         (slot0, nslots, slotvec0, slotvec):
74896         Now file-scope so that quotearg_free can get at them.
74897
74898 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74899
74900         Sync from Automake.
74901         * build-aux/gnupload: Add missing 'gnu' to example URL.
74902         Report by Karl Berry.
74903
74904 2006-11-08  Bruno Haible  <bruno@clisp.org>
74905
74906         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74907         Suggested by Paul Eggert.
74908
74909 2006-11-08  Jim Meyering  <jim@meyering.net>
74910
74911         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74912         It's already included if !_LIBC.
74913         (fts_safe_changedir): Add a comment.
74914
74915 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74918         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74919         Matthew Woehlke.
74920
74921         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74922         definitions up, to avoid colliding with change below.
74923         (static_inline) [HAVE_INLINE]: New macro.
74924         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74925         Provide extern decls when !HAVE_INLINE.  Do not define unless
74926         static_inline is defined, either by us or by xmalloc.c.  Use
74927         static_inline rather than static inline.
74928         (XCALLOC): Optimize sizeof(T) = 1 case.
74929         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74930
74931 2006-11-07  Bruno Haible  <bruno@clisp.org>
74932
74933         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74934         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74935         AC_C_INLINE.
74936         * modules/xalloc (Files): Add m4/inline.m4.
74937
74938 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74939
74940         * README: Fix typo.
74941         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74942         (Miscellanous Notes): ...from this.
74943
74944 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74947         Mention that offsetof should be used instead of sizeof.
74948         From Bruno Haible.
74949
74950 2006-11-07  Bruno Haible  <bruno@clisp.org>
74951
74952         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74953
74954 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74957         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74958         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74959         (gl_tree_add_before, gl_tree_add_after):
74960         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74961         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74962         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74963         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74964         (gl_linked_add_after, gl_linked_add_at): Likewise.
74965         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74966         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74967         (gl_tree_add_before, gl_tree_add_after): Likewise.
74968         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74969         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74970         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74971
74972 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74973
74974         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74975
74976 2006-11-06  Bruno Haible  <bruno@clisp.org>
74977
74978         * m4/inline.m4: New file.
74979         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74980         * modules/list (Files): Add m4/inline.m4.
74981         * modules/oset (Files): Likewise.
74982
74983 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * lib/idcache.c: Include <stddef.h>, for offsetof.
74986         (struct userid.name): Change from char * to a flexible array member.
74987         All uses changed.
74988         * modules/idcache (Depends-on): Add flexmember.
74989
74990         * MODULES.html.sh (Core language properties): New module flexmember.
74991         * modules/flexmember, m4/flexmember.m4: New files.
74992
74993         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74994         inline functions that are identical with the old xnmalloc_inline,
74995         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74996         that we can avoid some unnecessary integer multiplications and
74997         divisions in the common case where the element size is known at
74998         compile time.
74999         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75000         needed.
75001         (xnboundedmalloc): Remove.
75002         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75003         arguments, for consistency with rest of this header.
75004         (xcharalloc): Rewrite using XNMALLOC.
75005         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75006         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75007         versions have been moved to lib/xalloc.h and renamed to be the
75008         non-*_inline versions.
75009         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75010         and xnrealloc functions, since those functions are now inline and
75011         now call us.
75012         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75013         renaming described above.
75014         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75015         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75016         captures the dependency in AC_C_INLINE.
75017
75018         New module canonicalize-lgpl, proposed by Charles Wilson in
75019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75020         with a few small changes afterwards.
75021         * MODULES.html.sh (File system functions): New module
75022         canonicalize-lgpl.
75023         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75024         and canonicalize_file_name.
75025         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75026         * modules/canonicalize-lgpl: New files.
75027
75028 2006-11-05  Bruno Haible  <bruno@clisp.org>
75029
75030         * gnulib-tool (func_import, func_create_testdir): Create directories
75031         also for files in subdirectories of lib/.
75032
75033 2006-11-05  Bruno Haible  <bruno@clisp.org>
75034
75035         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75036         ANSI C compliant.
75037
75038 2006-11-03  Bruno Haible  <bruno@clisp.org>
75039
75040         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75041         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75042         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75043         (xnboundedmalloc): New inline function.
75044         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75045         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75046         xmalloc.
75047         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75048         xmalloc.
75049         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75050         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75051         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75052         xmalloc.
75053         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75054         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75055         xmalloc.
75056         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75057         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75058         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75059         xmalloc.
75060         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75061         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75062         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75063         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75064         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75065         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75066         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75067
75068 2006-11-03  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/c-ctype.h [C++]: Define functions without name mangling.
75071         * lib/fwriteerror.h [C++]: Likewise.
75072         * lib/gcd.h [C++]: Likewise.
75073         * lib/linebreak.h [C++]: Likewise.
75074
75075 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75078         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75079         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75080         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75081         Check for functions and headers just once.
75082         Check for declaration of canonicalize_file_name.
75083         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75084
75085 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75086
75087         * gnulib-tool (func_import): Fix typo in actioncmd.
75088
75089 2006-11-02  Bruno Haible  <bruno@clisp.org>
75090
75091         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75092         newline sequence in the Makefile.am snippet as a space, like "make"
75093         does.
75094         Reported by Roger Persson <perrog@gmail.com>.
75095
75096 2006-11-01  Bruno Haible  <bruno@clisp.org>
75097
75098         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75099         already declared in <string.h>.
75100         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75101
75102 2006-11-01  Bruno Haible  <bruno@clisp.org>
75103
75104         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75105         * lib/strcase.h: Include <string.h>.
75106         (strcasecmp): Define to rpl_strcasecmp here.
75107
75108 2006-11-01  Bruno Haible  <bruno@clisp.org>
75109
75110         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75111
75112 2006-11-01  Eric Blake  <ebb9@byu.net>
75113
75114         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75115
75116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75117
75118 2006-10-29  Bruno Haible  <bruno@clisp.org>
75119
75120         Make it compile in C++ mode.
75121         * lib/full-write.c (full_rw): Add a cast.
75122
75123 2006-11-01  Bruno Haible  <bruno@clisp.org>
75124
75125         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75126         be POSIX compliant.
75127         Reported by Roger Persson <perrog@gmail.com>.
75128
75129 2006-11-01  Eric Blake  <ebb9@byu.net>
75130
75131         * lib/getopt_.h: Fix comments.
75132
75133 2006-10-31  Eric Blake  <ebb9@byu.net>
75134
75135         * modules/tmpdir (Depends-on): Add sys_stat.
75136         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75137         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75138         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75139         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75140         tempname.
75141
75142 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         Avoid some C++ diagnostics reported by Bruno Haible.
75145         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75146         xmalloc.
75147         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75148         (struct slotvec): Move to top level.
75149         (quotearg_n_options): Rewrite to avoid xmalloc.
75150         * lib/xalloc.h (xcharalloc): New function.
75151         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75152         [defined __cplusplus]: Add function template that provides result
75153         type propagation.  This part of the change is from Bruno Haible.
75154
75155 2006-10-29  Bruno Haible  <bruno@clisp.org>
75156
75157         Make it compile in C++ mode.
75158         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75159         * lib/strnlen1.c (strnlen1): Cast memchr result.
75160         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75161         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75162         (create_temp_dir): Rename local variable 'template'.
75163         (compile_csharp_using_sscli): Add cast.
75164         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75165         * lib/findprog.c (find_in_path): Likewise.
75166         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75167         * lib/wait-process.c (register_slave_subprocess): Likewise.
75168
75169 2006-10-22  Bruno Haible  <bruno@clisp.org>
75170
75171         * modules/tsearch: New file.
75172         * lib/tsearch.h: New file.
75173         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75174         * m4/tsearch.m4: New file.
75175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75176
75177 2006-10-29  Eric Blake  <ebb9@byu.net>
75178
75179         * lib/arcfour.c: Assume config.h.
75180         * lib/arctwo.c: Likewise.
75181         * lib/base64.c: Likewise.
75182         * lib/check-version.c: Likewise.
75183         * lib/crc.c: Likewise.
75184         * lib/des.c: Likewise.
75185         * lib/gc-gnulib.c: Likewise.
75186         * lib/gc-libgcrypt.c: Likewise.
75187         * lib/gc-pbkdf2-sha1.c: Likewise.
75188         * lib/getaddrinfo.c: Likewise.
75189         * lib/getdelim.c: Likewise.
75190         * lib/getline.c: Likewise.
75191         * lib/hmac-md5.c: Likewise.
75192         * lib/hmac-sha1.c: Likewise.
75193         * lib/iconvme.c: Likewise.
75194         * lib/md2.c: Likewise.
75195         * lib/md4.c: Likewise.
75196         * lib/memxor.c: Likewise.
75197         * lib/read-file.c: Likewise.
75198         * lib/readline.c: Likewise.
75199         * lib/rijndael-alg-fst.c: Likewise.
75200         * lib/rijndael-api-fst.c: Likewise.
75201         * lib/xgetdomainname.c: Likewise.
75202
75203 2006-10-28  Eric Blake  <ebb9@byu.net>
75204
75205         * lib/xstrndup.c: Assume config.h.
75206
75207 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75210         stat-macros.h is now for our own macros, whereas stat_h is for
75211         macros in the <sys/stat.h> name space.
75212         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75213         (STAT_MACROS_H): Remove.
75214         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75215         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75216         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75217         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75218         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75219         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75220         Move these macros to ...
75221         * lib/stat_.h: here.  Don't include stat-macros.h.
75222         * lib/canonicalize.c: Don't include stat-macros.h.
75223         * lib/chown.c: Likewise.
75224         * lib/euidaccess.c: Likewise.
75225         * lib/file-type.c: Likewise.
75226         * lib/filemode.c: Likewise.
75227         * lib/glob.c: Likewise.
75228         * lib/isapipe.c: Likewise.
75229         * lib/lchown.c: Likewise.
75230         * lib/lstat.c: Likewise.
75231         * lib/mkdir-p.c: Likewise.
75232         * lib/rmdir.c: Likewise.
75233         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75235         unless mkdir isn't declared, to speed up 'configure'.
75236         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75237         would define all the S_* symbols.
75238         * modules/canonicalize (Depends-on):
75239         Depend on sys_stat, not stat-macros.
75240         * modules/chown: Likewise.
75241         * modules/euidaccess: Likewise.
75242         * modules/filemode: Likewise.
75243         * modules/file-type: Likewise.
75244         * modules/glob: Likewise.
75245         * modules/isapipe: Likewise.
75246         * modules/lchown: Likewise.
75247         * modules/lstat: Likewise.
75248         * modules/mkancesdirs: Likewise.
75249         * modules/rmdir: Likewise.
75250         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75251         * modules/modechange: Likewise.
75252         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75253         (configure.ac): Remove gl_STAT_MACROS.
75254         * modules/sys_stat (Depends-on): Remove stat-macros.
75255
75256 2006-10-27  Bruno Haible  <bruno@clisp.org>
75257
75258         * m4/signed.m4: Remove file.
75259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75260         invocation.
75261         * modules/vasnprintf (Files): Remove m4/signed.m4.
75262
75263 2006-10-27  Bruno Haible  <bruno@clisp.org>
75264
75265         Update to GNU gettext 0.16.
75266         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75267         m4/inttypes-h.m4, m4/signed.m4.
75268         * m4/gettext.m4: Update to GNU gettext 0.16.
75269         * m4/intl.m4: New file, from GNU gettext.
75270         * m4/intldir.m4: New file, from GNU gettext.
75271         * config/srclist.txt: Update
75272
75273 2006-10-27  Eric Blake  <ebb9@byu.net>
75274
75275         * MODULES.html.sh: Document tempname.
75276         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75277         dependencies.
75278         (Files): Move lib/tempname.c...
75279         * modules/tempname: ...to this new module.
75280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75281         (gl_PREREQ_TEMPNAME): Move...
75282         * m4/tempname.m4: ...to this new file.
75283         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75284         * modules/sys_stat (Depends-on): Add stat-macros.
75285         * lib/stat_.h (includes): Pick up stat macros.
75286         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75287         if stat macros are broken.
75288         * lib/tempname.c (includes): No need to include "stat-macros.h".
75289         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75290         (direxists, __path_search) [!_LIBC]: Don't compile these in
75291         gnulib; the tmpdir module covers that.
75292         * lib/tempname.h: New file.
75293
75294 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * COPYING: Explain how gnulib-tool converts licence headers.
75297         Almost all wording by Eric Blake.
75298
75299 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * lib/mbchar.h (is_basic_table): Make read-only.
75302         * lib/mbchar.c (is_basic_table): Likewise.
75303         Reported by John Darrington.
75304
75305 2006-10-25  Bruno Haible  <bruno@clisp.org>
75306
75307         * lib/progname.h (set_program_name): Undefine before defining.
75308
75309 2006-10-25  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75312         false for non-gcc C++ compilers.
75313         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75314
75315 2006-10-24  Bruno Haible  <bruno@clisp.org>
75316
75317         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75318         iconv implementations like Irix iconv.
75319
75320 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75321
75322         * modules/vararrays: New file.
75323         * m4/vararrays.m4: New file, taken from diffutils.
75324         * MODULES.html.sh: New module vararrays.
75325
75326 2006-10-24  Karl Berry  <karl@gnu.org>
75327
75328         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75329         Don't call GNU Unix.
75330
75331 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75332
75333         * users.txt: Add Libtool.
75334
75335         Sync from Libtool:
75336
75337         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75340         to gnulib's policy of including config.h unconditionally.
75341
75342 2006-10-24  Bruno Haible  <bruno@clisp.org>
75343
75344         * modules/wcwidth (Files): Add m4/wint_t.m4.
75345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75346         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75347
75348 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75351         to pacify GCC with some -W flags enabled.  Problem reported by
75352         Bruno Haible.
75353
75354 2006-10-24  Jim Meyering  <jim@meyering.net>
75355
75356         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75357         Reported by Karl Berry.
75358
75359 2006-10-23  Bruno Haible  <bruno@clisp.org>
75360
75361         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75362
75363 2006-10-24  Bruno Haible  <bruno@clisp.org>
75364
75365         * lib/gl_list.h: Use C comment style, not C++ comment style.
75366
75367 2006-10-23  Eric Blake  <ebb9@byu.net>
75368
75369         * lib/getaddrinfo.c (includes): Add missing include.
75370
75371 2006-10-23  Bruno Haible  <bruno@clisp.org>
75372             Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         Ability to rename obstack_free.
75375         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75376         obstack_free.
75377         (obstack_free): Invoke the __obstack_free macro.
75378         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75379
75380 2006-10-23  Bruno Haible  <bruno@clisp.org>
75381             Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75384         __argc, __argv from the declaration. (They are defined as macros on
75385         mingw.)
75386
75387 2006-10-22  Bruno Haible  <bruno@clisp.org>
75388
75389         * doc/gnulib-intro.texi: New file.
75390         * doc/gnulib.texi: Include it.
75391
75392 2006-10-21  Bruno Haible  <bruno@clisp.org>
75393
75394         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75395         "Introduction", "Miscellanous Notes", "Particular Modules".
75396
75397 2006-10-21  Bruno Haible  <bruno@clisp.org>
75398
75399         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75400         Change mostlyclean-local rule to avoid sh syntax error from bash
75401         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75402
75403 2006-10-23  Jim Meyering  <jim@meyering.net>
75404
75405         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75406         in place of snprintf.
75407
75408         * modules/inttostr (Files): Add lib/uinttostr.c.
75409         * lib/uinttostr.c (inttostr): New file/function.
75410         * lib/inttostr.h (uinttostr): Declare.
75411         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75412         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75413         Add uinttostr.
75414         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75415
75416 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * lib/canonicalize.c (ELOOP): Define if not already defined.
75419         Problem reported by Bruno Haible in
75420         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75421
75422 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75425         Problem reported by Perry Smith and Ville Laurikari.
75426
75427         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75428         uses.
75429
75430 2006-10-19  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75433         for mingw.
75434
75435 2006-10-19  Bruno Haible  <bruno@clisp.org>
75436
75437         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75438         Needed for mingw.
75439
75440 2006-10-19  Bruno Haible  <bruno@clisp.org>
75441
75442         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75443
75444 2006-10-19  Bruno Haible  <bruno@clisp.org>
75445
75446         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75447         it.
75448
75449 2006-10-19  Bruno Haible  <bruno@clisp.org>
75450
75451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75452         invocation.
75453
75454 2006-10-19  Bruno Haible  <bruno@clisp.org>
75455
75456         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75457         mountlist by default.
75458
75459 2006-10-16  Bruno Haible  <bruno@clisp.org>
75460
75461         * lib/c-strstr.c: Include c-strstr.h.
75462
75463 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75464
75465         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75466         in a slash.
75467
75468 2006-10-18  Bruno Haible  <bruno@clisp.org>
75469
75470         * lib/lock.h [C++]: Wrap definitions in extern "C".
75471
75472 2006-10-18  Bruno Haible  <bruno@clisp.org>
75473
75474         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75475         gl_LIBOBJS list.
75476
75477 2006-10-18  Bruno Haible  <bruno@clisp.org>
75478
75479         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75480
75481 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * lib/xstrtol.h: Include gettext.h.
75484         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75485         Problem reported by Eric Blake.
75486         * modules/xstrtol (Depends-on): Add gettext-h.
75487
75488 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75489
75490         * lib/strftime.c (advance): New macro.
75491         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75492         incomplete type, so you can't add 0 to it.  Problem and patch
75493         reported by Eelco Dolstra for dietlibc.
75494
75495 2006-10-18  Jim Meyering  <jim@meyering.net>
75496
75497         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75498         type for a local, and rename it: s/up/user_proc/.
75499
75500 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75501
75502         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75503         READ_UTMP_USER_PROCESS.
75504         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75505
75506 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75507
75508         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75509         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75510
75511 2006-10-17  Eric Blake  <ebb9@byu.net>
75512
75513         * lib/sigprocmask.c (sigprocmask): Fix typo.
75514
75515         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75516
75517         * modules/clean-temp (Makefile.am): Don't add to make output...
75518         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75519         config.h.
75520
75521 2006-10-17  Bruno Haible  <bruno@clisp.org>
75522
75523         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75524         differently if DEFAULT_TEXT_DOMAIN is set.
75525
75526 2006-10-16  Bruno Haible  <bruno@clisp.org>
75527
75528         * lib/clean-temp.c: Include fwriteerror.h.
75529
75530 2006-10-16  Bruno Haible  <bruno@clisp.org>
75531
75532         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75533
75534 2006-10-16  Bruno Haible  <bruno@clisp.org>
75535
75536         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75537         * lib/sigprocmask.h: Include <sys/types.h>.
75538         (sigset_t): Use the system's definition if present.
75539
75540 2006-10-17  Eric Blake  <ebb9@byu.net>
75541
75542         * lib/xvasprintf.c (includes): Assume config.h.
75543         * lib/xasprintf.c (includes): Likewise.
75544
75545 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75546
75547         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75548         at least as wide as intmax_t.
75549
75550 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75551
75552         (Imported from Automake.)
75553         * build-aux/gnupload: Update to version 1.1 of directive file.
75554
75555 2006-10-16  Eric Blake  <ebb9@byu.net>
75556
75557         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75558         match Automake 1.10a.
75559
75560 2006-10-14  Bruno Haible  <bruno@clisp.org>
75561
75562         * modules/sigprocmask: New file.
75563         * lib/sigprocmask.h: New file.
75564         * lib/sigprocmask.c: New file.
75565         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75566         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75567         request sigprocmask.o.
75568         (gl_PREREQ_SIGPROCMASK): New macro.
75569         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75570         (Depends-on): Add sigprocmask.
75571         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75572         gt_SIGNALBLOCKING. Test for 'raise' only once.
75573         * lib/fatal-signal.c: Include sigprocmask.h.
75574         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75575         unblock_fatal_signals): Define always.
75576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75577         sigprocmask.
75578
75579 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         Sync from Automake.
75582         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75583         which incorrectly sets the mode of an existing destination
75584         directory.  In some cases the unpatched install-sh could do the
75585         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75586         system.  We hope this is rare in practice, but it's clearly worth
75587         fixing.  Problem reported by Alex Unleashed in
75588         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75589         Also, don't bother to check for -m bugs unless we're using -m;
75590         suggested by Stepan Kasal.
75591
75592 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75593
75594         Sync from Automake.
75595         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75596         `-c' flag, so they appear at the same position as in %FASTDEP%
75597         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75598         which ignores unknown options only after the first non-option.
75599         Bug report against M4 by Nelson H. F. Beebe.
75600
75601 2006-10-13  Jim Meyering  <jim@meyering.net>
75602
75603         Fix a bug in yesterday's change.
75604         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75605         p->fts_statp->st_dev would be used uninitialized.
75606         Ensures that we always call fts_stat on the very first entry.
75607         Miklos Szeredi reported that find -xdev stopped working.
75608
75609 2006-10-12  Bruno Haible  <bruno@clisp.org>
75610
75611         * gnulib-tool (func_get_automake_snippet): Append an automatically
75612         computed EXTRA_DIST augmentation.
75613         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75614         * modules/alloca-opt (Makefile.am): Likewise.
75615         * modules/allocsa (Makefile.am): Likewise.
75616         * modules/arcfour (Makefile.am): Likewise.
75617         * modules/arctwo (Makefile.am): Likewise.
75618         * modules/argmatch (Makefile.am): Likewise.
75619         * modules/argz (Makefile.am): Likewise.
75620         * modules/atexit (Makefile.am): Likewise.
75621         * modules/backupfile (Makefile.am): Likewise.
75622         * modules/byteswap (Makefile.am): Likewise.
75623         * modules/c-strtod (Makefile.am): Likewise.
75624         * modules/c-strtold (Makefile.am): Likewise.
75625         * modules/calloc (Makefile.am): Likewise.
75626         * modules/canon-host (Makefile.am): Likewise.
75627         * modules/canonicalize (Makefile.am): Likewise.
75628         * modules/chdir-long (Makefile.am): Likewise.
75629         * modules/chdir-safer (Makefile.am): Likewise.
75630         * modules/check-version (Makefile.am): Likewise.
75631         * modules/chown (Makefile.am): Likewise.
75632         * modules/cloexec (Makefile.am): Likewise.
75633         * modules/close-stream (Makefile.am): Likewise.
75634         * modules/closeout (Makefile.am): Likewise.
75635         * modules/crc (Makefile.am): Likewise.
75636         * modules/csharpexec (Makefile.am): Likewise.
75637         * modules/cycle-check (Makefile.am): Likewise.
75638         * modules/des (Makefile.am): Likewise.
75639         * modules/dev-ino (Makefile.am): Likewise.
75640         * modules/dirfd (Makefile.am): Likewise.
75641         * modules/dirname (Makefile.am): Likewise.
75642         * modules/dup2 (Makefile.am): Likewise.
75643         * modules/eealloc (Makefile.am): Likewise.
75644         * modules/error (Makefile.am): Likewise.
75645         * modules/euidaccess (Makefile.am): Likewise.
75646         * modules/exclude (Makefile.am): Likewise.
75647         * modules/exitfail (Makefile.am): Likewise.
75648         * modules/fcntl-safer (Makefile.am): Likewise.
75649         * modules/fcntl (Makefile.am): Likewise.
75650         * modules/file-type (Makefile.am): Likewise.
75651         * modules/fileblocks (Makefile.am): Likewise.
75652         * modules/filemode (Makefile.am): Likewise.
75653         * modules/filenamecat (Makefile.am): Likewise.
75654         * modules/fnmatch (Makefile.am): Likewise.
75655         * modules/fopen-safer (Makefile.am): Likewise.
75656         * modules/fpending (Makefile.am): Likewise.
75657         * modules/fprintftime (Makefile.am): Likewise.
75658         * modules/free (Makefile.am): Likewise.
75659         * modules/fsusage (Makefile.am): Likewise.
75660         * modules/ftruncate (Makefile.am): Likewise.
75661         * modules/fts (Makefile.am): Likewise.
75662         * modules/gc-arcfour (Makefile.am): Likewise.
75663         * modules/gc-des (Makefile.am): Likewise.
75664         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75665         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75666         * modules/gc-md4 (Makefile.am): Likewise.
75667         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75668         * modules/gc-sha1 (Makefile.am): Likewise.
75669         * modules/gc (Makefile.am): Likewise.
75670         * modules/getaddrinfo (Makefile.am): Likewise.
75671         * modules/getcwd (Makefile.am): Likewise.
75672         * modules/getdelim (Makefile.am): Likewise.
75673         * modules/getdomainname (Makefile.am): Likewise.
75674         * modules/getgroups (Makefile.am): Likewise.
75675         * modules/gethostname (Makefile.am): Likewise.
75676         * modules/gethrxtime (Makefile.am): Likewise.
75677         * modules/getline (Makefile.am): Likewise.
75678         * modules/getloadavg (Makefile.am): Likewise.
75679         * modules/getlogin_r (Makefile.am): Likewise.
75680         * modules/getndelim2 (Makefile.am): Likewise.
75681         * modules/getopt (Makefile.am): Likewise.
75682         * modules/getpagesize (Makefile.am): Likewise.
75683         * modules/getpass-gnu (Makefile.am): Likewise.
75684         * modules/getpass (Makefile.am): Likewise.
75685         * modules/getsubopt (Makefile.am): Likewise.
75686         * modules/gettime (Makefile.am): Likewise.
75687         * modules/gettimeofday (Makefile.am): Likewise.
75688         * modules/getugroups (Makefile.am): Likewise.
75689         * modules/getusershell (Makefile.am): Likewise.
75690         * modules/glob (Makefile.am): Likewise.
75691         * modules/group-member (Makefile.am): Likewise.
75692         * modules/hard-locale (Makefile.am): Likewise.
75693         * modules/hash (Makefile.am): Likewise.
75694         * modules/hmac-md5 (Makefile.am): Likewise.
75695         * modules/hmac-sha1 (Makefile.am): Likewise.
75696         * modules/human (Makefile.am): Likewise.
75697         * modules/idcache (Makefile.am): Likewise.
75698         * modules/imaxabs (Makefile.am): Likewise.
75699         * modules/imaxdiv (Makefile.am): Likewise.
75700         * modules/inet_ntop (Makefile.am): Likewise.
75701         * modules/inet_pton (Makefile.am): Likewise.
75702         * modules/intprops (Makefile.am): Likewise.
75703         * modules/inttostr (Makefile.am): Likewise.
75704         * modules/inttypes (Makefile.am): Likewise.
75705         * modules/isapipe (Makefile.am): Likewise.
75706         * modules/javaversion (Makefile.am): Likewise.
75707         * modules/lchmod (Makefile.am): Likewise.
75708         * modules/lchown (Makefile.am): Likewise.
75709         * modules/localcharset (Makefile.am): Likewise.
75710         * modules/long-options (Makefile.am): Likewise.
75711         * modules/lstat (Makefile.am): Likewise.
75712         * modules/malloc (Makefile.am): Likewise.
75713         * modules/mathl (Makefile.am): Likewise.
75714         * modules/mbchar (Makefile.am): Likewise.
75715         * modules/md2 (Makefile.am): Likewise.
75716         * modules/md4 (Makefile.am): Likewise.
75717         * modules/md5 (Makefile.am): Likewise.
75718         * modules/memcasecmp (Makefile.am): Likewise.
75719         * modules/memchr (Makefile.am): Likewise.
75720         * modules/memcmp (Makefile.am): Likewise.
75721         * modules/memcoll (Makefile.am): Likewise.
75722         * modules/memcpy (Makefile.am): Likewise.
75723         * modules/memmem (Makefile.am): Likewise.
75724         * modules/memmove (Makefile.am): Likewise.
75725         * modules/mempcpy (Makefile.am): Likewise.
75726         * modules/memrchr (Makefile.am): Likewise.
75727         * modules/memset (Makefile.am): Likewise.
75728         * modules/memxor (Makefile.am): Likewise.
75729         * modules/mkancesdirs (Makefile.am): Likewise.
75730         * modules/mkdir-p (Makefile.am): Likewise.
75731         * modules/mkdir (Makefile.am): Likewise.
75732         * modules/mkdtemp (Makefile.am): Likewise.
75733         * modules/mkstemp (Makefile.am): Likewise.
75734         * modules/mktime (Makefile.am): Likewise.
75735         * modules/modechange (Makefile.am): Likewise.
75736         * modules/mountlist (Makefile.am): Likewise.
75737         * modules/nanosleep (Makefile.am): Likewise.
75738         * modules/obstack (Makefile.am): Likewise.
75739         * modules/openat (Makefile.am): Likewise.
75740         * modules/pagealign_alloc (Makefile.am): Likewise.
75741         * modules/pathmax (Makefile.am): Likewise.
75742         * modules/physmem (Makefile.am): Likewise.
75743         * modules/poll (Makefile.am): Likewise.
75744         * modules/posixtm (Makefile.am): Likewise.
75745         * modules/posixver (Makefile.am): Likewise.
75746         * modules/putenv (Makefile.am): Likewise.
75747         * modules/quote (Makefile.am): Likewise.
75748         * modules/quotearg (Makefile.am): Likewise.
75749         * modules/raise (Makefile.am): Likewise.
75750         * modules/read-file (Makefile.am): Likewise.
75751         * modules/readline (Makefile.am): Likewise.
75752         * modules/readlink (Makefile.am): Likewise.
75753         * modules/readtokens (Makefile.am): Likewise.
75754         * modules/readutmp (Makefile.am): Likewise.
75755         * modules/realloc (Makefile.am): Likewise.
75756         * modules/regex (Makefile.am): Likewise.
75757         * modules/rename-dest-slash (Makefile.am): Likewise.
75758         * modules/rename (Makefile.am): Likewise.
75759         * modules/rijndael (Makefile.am): Likewise.
75760         * modules/rmdir (Makefile.am): Likewise.
75761         * modules/rpmatch (Makefile.am): Likewise.
75762         * modules/safe-read (Makefile.am): Likewise.
75763         * modules/safe-write (Makefile.am): Likewise.
75764         * modules/same-inode (Makefile.am): Likewise.
75765         * modules/same (Makefile.am): Likewise.
75766         * modules/save-cwd (Makefile.am): Likewise.
75767         * modules/savedir (Makefile.am): Likewise.
75768         * modules/setenv (Makefile.am): Likewise.
75769         * modules/settime (Makefile.am): Likewise.
75770         * modules/sha1 (Makefile.am): Likewise.
75771         * modules/sig2str (Makefile.am): Likewise.
75772         * modules/snprintf (Makefile.am): Likewise.
75773         * modules/stat-macros (Makefile.am): Likewise.
75774         * modules/stat-time (Makefile.am): Likewise.
75775         * modules/stdbool (Makefile.am): Likewise.
75776         * modules/stdint (Makefile.am): Likewise.
75777         * modules/stdlib-safer (Makefile.am): Likewise.
75778         * modules/stpcpy (Makefile.am): Likewise.
75779         * modules/stpncpy (Makefile.am): Likewise.
75780         * modules/strcase (Makefile.am): Likewise.
75781         * modules/strcasestr (Makefile.am): Likewise.
75782         * modules/strchrnul (Makefile.am): Likewise.
75783         * modules/strcspn (Makefile.am): Likewise.
75784         * modules/strdup (Makefile.am): Likewise.
75785         * modules/strerror (Makefile.am): Likewise.
75786         * modules/strftime (Makefile.am): Likewise.
75787         * modules/strndup (Makefile.am): Likewise.
75788         * modules/strnlen (Makefile.am): Likewise.
75789         * modules/strpbrk (Makefile.am): Likewise.
75790         * modules/strsep (Makefile.am): Likewise.
75791         * modules/strstr (Makefile.am): Likewise.
75792         * modules/strtod (Makefile.am): Likewise.
75793         * modules/strtoimax (Makefile.am): Likewise.
75794         * modules/strtok_r (Makefile.am): Likewise.
75795         * modules/strtol (Makefile.am): Likewise.
75796         * modules/strtoll (Makefile.am): Likewise.
75797         * modules/strtoul (Makefile.am): Likewise.
75798         * modules/strtoull (Makefile.am): Likewise.
75799         * modules/strtoumax (Makefile.am): Likewise.
75800         * modules/strverscmp (Makefile.am): Likewise.
75801         * modules/sys_socket (Makefile.am): Likewise.
75802         * modules/sys_stat (Makefile.am): Likewise.
75803         * modules/sysexits (Makefile.am): Likewise.
75804         * modules/time_r (Makefile.am): Likewise.
75805         * modules/timegm (Makefile.am): Likewise.
75806         * modules/timespec (Makefile.am): Likewise.
75807         * modules/tmpfile-safer (Makefile.am): Likewise.
75808         * modules/trim (Makefile.am): Likewise.
75809         * modules/unistd-safer (Makefile.am): Likewise.
75810         * modules/unlinkdir (Makefile.am): Likewise.
75811         * modules/unlocked-io (Makefile.am): Likewise.
75812         * modules/userspec (Makefile.am): Likewise.
75813         * modules/utime (Makefile.am): Likewise.
75814         * modules/utimecmp (Makefile.am): Likewise.
75815         * modules/utimens (Makefile.am): Likewise.
75816         * modules/vasnprintf (Makefile.am): Likewise.
75817         * modules/vasprintf (Makefile.am): Likewise.
75818         * modules/vsnprintf (Makefile.am): Likewise.
75819         * modules/xalloc (Makefile.am): Likewise.
75820         * modules/xgetcwd (Makefile.am): Likewise.
75821         * modules/xnanosleep (Makefile.am): Likewise.
75822         * modules/xreadlink (Makefile.am): Likewise.
75823         * modules/xstrtod (Makefile.am): Likewise.
75824         * modules/xstrtol (Makefile.am): Likewise.
75825         * modules/xstrtold (Makefile.am): Likewise.
75826         * modules/yesno (Makefile.am): Likewise.
75827         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75828
75829 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * modules/error (Makefile.am): Distribute files through
75832         EXTRA_DIST, not lib_SOURCES.
75833
75834 2006-10-12  Eric Blake  <ebb9@byu.net>
75835
75836         * modules/error (Makefile.am): Distribute files in /lib.
75837         * modules/obstack (Makefile.am): Likewise.
75838
75839 2006-10-12  Bruno Haible  <bruno@clisp.org>
75840
75841         * modules/acl (Makefile.am): Distribute all files in lib/ through
75842         EXTRA_DIST.
75843         * modules/arcfour (Makefile.am): Likewise.
75844         * modules/arctwo (Makefile.am): Likewise.
75845         * modules/argmatch (Makefile.am): Likewise.
75846         * modules/argz (Makefile.am): Likewise.
75847         * modules/atexit (Makefile.am): Likewise.
75848         * modules/backupfile (Makefile.am): Likewise.
75849         * modules/c-strtod (Makefile.am): Likewise.
75850         * modules/c-strtold (Makefile.am): Likewise.
75851         * modules/calloc (Makefile.am): Likewise.
75852         * modules/canon-host (Makefile.am): Likewise.
75853         * modules/canonicalize (Makefile.am): Likewise.
75854         * modules/chdir-long (Makefile.am): Likewise.
75855         * modules/chdir-safer (Makefile.am): Likewise.
75856         * modules/check-version (Makefile.am): Likewise.
75857         * modules/chown (Makefile.am): Likewise.
75858         * modules/cloexec (Makefile.am): Likewise.
75859         * modules/close-stream (Makefile.am): Likewise.
75860         * modules/closeout (Makefile.am): Likewise.
75861         * modules/crc (Makefile.am): Likewise.
75862         * modules/cycle-check (Makefile.am): Likewise.
75863         * modules/des (Makefile.am): Likewise.
75864         * modules/dirfd (Makefile.am): Likewise.
75865         * modules/dirname (Makefile.am): Likewise.
75866         * modules/dup2 (Makefile.am): Likewise.
75867         * modules/euidaccess (Makefile.am): Likewise.
75868         * modules/exclude (Makefile.am): Likewise.
75869         * modules/exitfail (Makefile.am): Likewise.
75870         * modules/fcntl-safer (Makefile.am): Likewise.
75871         * modules/file-type (Makefile.am): Likewise.
75872         * modules/fileblocks (Makefile.am): Likewise.
75873         * modules/filemode (Makefile.am): Likewise.
75874         * modules/filenamecat (Makefile.am): Likewise.
75875         * modules/fnmatch (Makefile.am): Likewise.
75876         * modules/fopen-safer (Makefile.am): Likewise.
75877         * modules/fpending (Makefile.am): Likewise.
75878         * modules/fprintftime (Makefile.am): Likewise.
75879         * modules/free (Makefile.am): Likewise.
75880         * modules/fsusage (Makefile.am): Likewise.
75881         * modules/ftruncate (Makefile.am): Likewise.
75882         * modules/fts (Makefile.am): Likewise.
75883         * modules/gc (Makefile.am): Likewise.
75884         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75885         * modules/getaddrinfo (Makefile.am): Likewise.
75886         * modules/getcwd (Makefile.am): Likewise.
75887         * modules/getdelim (Makefile.am): Likewise.
75888         * modules/getdomainname (Makefile.am): Likewise.
75889         * modules/getgroups (Makefile.am): Likewise.
75890         * modules/gethostname (Makefile.am): Likewise.
75891         * modules/gethrxtime (Makefile.am): Likewise.
75892         * modules/getline (Makefile.am): Likewise.
75893         * modules/getloadavg (Makefile.am): Likewise.
75894         * modules/getlogin_r (Makefile.am): Likewise.
75895         * modules/getopt (Makefile.am): Likewise.
75896         * modules/getpass (Makefile.am): Likewise.
75897         * modules/getpass-gnu (Makefile.am): Likewise.
75898         * modules/getsubopt (Makefile.am): Likewise.
75899         * modules/gettime (Makefile.am): Likewise.
75900         * modules/gettimeofday (Makefile.am): Likewise.
75901         * modules/getugroups (Makefile.am): Likewise.
75902         * modules/getusershell (Makefile.am): Likewise.
75903         * modules/glob (Makefile.am): Likewise.
75904         * modules/group-member (Makefile.am): Likewise.
75905         * modules/hard-locale (Makefile.am): Likewise.
75906         * modules/hash (Makefile.am): Likewise.
75907         * modules/hmac-md5 (Makefile.am): Likewise.
75908         * modules/hmac-sha1 (Makefile.am): Likewise.
75909         * modules/human (Makefile.am): Likewise.
75910         * modules/idcache (Makefile.am): Likewise.
75911         * modules/imaxabs (Makefile.am): Likewise.
75912         * modules/imaxdiv (Makefile.am): Likewise.
75913         * modules/inet_ntop (Makefile.am): Likewise.
75914         * modules/inet_pton (Makefile.am): Likewise.
75915         * modules/inttostr (Makefile.am): Likewise.
75916         * modules/isapipe (Makefile.am): Likewise.
75917         * modules/lchown (Makefile.am): Likewise.
75918         * modules/long-options (Makefile.am): Likewise.
75919         * modules/lstat (Makefile.am): Likewise.
75920         * modules/malloc (Makefile.am): Likewise.
75921         * modules/mathl (Makefile.am): Likewise.
75922         * modules/mbchar (Makefile.am): Likewise.
75923         * modules/md2 (Makefile.am): Likewise.
75924         * modules/md4 (Makefile.am): Likewise.
75925         * modules/md5 (Makefile.am): Likewise.
75926         * modules/memcasecmp (Makefile.am): Likewise.
75927         * modules/memchr (Makefile.am): Likewise.
75928         * modules/memcmp (Makefile.am): Likewise.
75929         * modules/memcoll (Makefile.am): Likewise.
75930         * modules/memcpy (Makefile.am): Likewise.
75931         * modules/memmem (Makefile.am): Likewise.
75932         * modules/memmove (Makefile.am): Likewise.
75933         * modules/mempcpy (Makefile.am): Likewise.
75934         * modules/memrchr (Makefile.am): Likewise.
75935         * modules/memset (Makefile.am): Likewise.
75936         * modules/memxor (Makefile.am): Likewise.
75937         * modules/mkancesdirs (Makefile.am): Likewise.
75938         * modules/mkdir (Makefile.am): Likewise.
75939         * modules/mkdir-p (Makefile.am): Likewise.
75940         * modules/mkdtemp (Makefile.am): Likewise.
75941         * modules/mkstemp (Makefile.am): Likewise.
75942         * modules/mktime (Makefile.am): Likewise.
75943         * modules/modechange (Makefile.am): Likewise.
75944         * modules/mountlist (Makefile.am): Likewise.
75945         * modules/nanosleep (Makefile.am): Likewise.
75946         * modules/openat (Makefile.am): Likewise.
75947         * modules/pagealign_alloc (Makefile.am): Likewise.
75948         * modules/physmem (Makefile.am): Likewise.
75949         * modules/poll (Makefile.am): Likewise.
75950         * modules/posixtm (Makefile.am): Likewise.
75951         * modules/posixver (Makefile.am): Likewise.
75952         * modules/putenv (Makefile.am): Likewise.
75953         * modules/quote (Makefile.am): Likewise.
75954         * modules/quotearg (Makefile.am): Likewise.
75955         * modules/raise (Makefile.am): Likewise.
75956         * modules/read-file (Makefile.am): Likewise.
75957         * modules/readline (Makefile.am): Likewise.
75958         * modules/readlink (Makefile.am): Likewise.
75959         * modules/readtokens (Makefile.am): Likewise.
75960         * modules/readutmp (Makefile.am): Likewise.
75961         * modules/realloc (Makefile.am): Likewise.
75962         * modules/regex (Makefile.am): Likewise.
75963         * modules/rename (Makefile.am): Likewise.
75964         * modules/rename-dest-slash (Makefile.am): Likewise.
75965         * modules/rijndael (Makefile.am): Likewise.
75966         * modules/rmdir (Makefile.am): Likewise.
75967         * modules/rpmatch (Makefile.am): Likewise.
75968         * modules/safe-read (Makefile.am): Likewise.
75969         * modules/safe-write (Makefile.am): Likewise.
75970         * modules/same (Makefile.am): Likewise.
75971         * modules/save-cwd (Makefile.am): Likewise.
75972         * modules/savedir (Makefile.am): Likewise.
75973         * modules/setenv (Makefile.am): Likewise.
75974         * modules/settime (Makefile.am): Likewise.
75975         * modules/sha1 (Makefile.am): Likewise.
75976         * modules/sig2str (Makefile.am): Likewise.
75977         * modules/snprintf (Makefile.am): Likewise.
75978         * modules/stdlib-safer (Makefile.am): Likewise.
75979         * modules/stpcpy (Makefile.am): Likewise.
75980         * modules/stpncpy (Makefile.am): Likewise.
75981         * modules/strcase (Makefile.am): Likewise.
75982         * modules/strcasestr (Makefile.am): Likewise.
75983         * modules/strchrnul (Makefile.am): Likewise.
75984         * modules/strcspn (Makefile.am): Likewise.
75985         * modules/strdup (Makefile.am): Likewise.
75986         * modules/strerror (Makefile.am): Likewise.
75987         * modules/strftime (Makefile.am): Likewise.
75988         * modules/strndup (Makefile.am): Likewise.
75989         * modules/strnlen (Makefile.am): Likewise.
75990         * modules/strpbrk (Makefile.am): Likewise.
75991         * modules/strsep (Makefile.am): Likewise.
75992         * modules/strstr (Makefile.am): Likewise.
75993         * modules/strtod (Makefile.am): Likewise.
75994         * modules/strtoimax (Makefile.am): Likewise.
75995         * modules/strtok_r (Makefile.am): Likewise.
75996         * modules/strtol (Makefile.am): Likewise.
75997         * modules/strtoll (Makefile.am): Likewise.
75998         * modules/strtoul (Makefile.am): Likewise.
75999         * modules/strtoull (Makefile.am): Likewise.
76000         * modules/strtoumax (Makefile.am): Likewise.
76001         * modules/strverscmp (Makefile.am): Likewise.
76002         * modules/time_r (Makefile.am): Likewise.
76003         * modules/timegm (Makefile.am): Likewise.
76004         * modules/tmpfile-safer (Makefile.am): Likewise.
76005         * modules/unistd-safer (Makefile.am): Likewise.
76006         * modules/unlinkdir (Makefile.am): Likewise.
76007         * modules/userspec (Makefile.am): Likewise.
76008         * modules/utime (Makefile.am): Likewise.
76009         * modules/utimecmp (Makefile.am): Likewise.
76010         * modules/utimens (Makefile.am): Likewise.
76011         * modules/vasnprintf (Makefile.am): Likewise.
76012         * modules/vasprintf (Makefile.am): Likewise.
76013         * modules/vsnprintf (Makefile.am): Likewise.
76014         * modules/xalloc (Makefile.am): Likewise.
76015         * modules/xgetcwd (Makefile.am): Likewise.
76016         * modules/xnanosleep (Makefile.am): Likewise.
76017         * modules/xreadlink (Makefile.am): Likewise.
76018         * modules/xstrtod (Makefile.am): Likewise.
76019         * modules/xstrtol (Makefile.am): Likewise.
76020         * modules/xstrtold (Makefile.am): Likewise.
76021         * modules/yesno (Makefile.am): Likewise.
76022
76023 2006-10-12  Jim Meyering  <jim@meyering.net>
76024
76025         * m4/getloadavg.m4: Revert the change below.
76026
76027         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76028         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76029         fail with a symlink, which is what coreutils' ./bootstrap now
76030         creates by default.
76031
76032 2006-10-12  Bruno Haible  <bruno@clisp.org>
76033
76034         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76035         mingw.
76036         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76037         MSVC and mingw explicitly.
76038
76039 2006-10-11  Simon Josefsson  <jas@extundo.com>
76040             Bruno Haible  <bruno@clisp.org>
76041
76042         Add support for multiple gnulib-tool invocations in the scope of a
76043         single configure.ac file.
76044         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76045         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76046         with the same contents as the _LIBADD variable.
76047         (func_emit_initmacro_start, func_emit_initmacro_end,
76048         func_emit_initmacro_done): New functions.
76049         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76050         gl_LIBOBJS and gl_LTLIBOBJS.
76051
76052 2006-10-11  Bruno Haible  <bruno@clisp.org>
76053
76054         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76055         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76056         autoreconf. Instead, invoke autopoint explicitly but move back the
76057         *.m4 files from gnulib.
76058
76059 2006-10-11  Bruno Haible  <bruno@clisp.org>
76060
76061         * gnulib-tool (func_usage): Make module names after --create-testdir
76062         optional.
76063         (func_create_testdir): If no module was specified, use nearly all
76064         modules.
76065
76066 2006-10-12  Jim Meyering  <jim@meyering.net>
76067
76068         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76069         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76070         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76071         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76072         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76073         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76074         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76075         (fts_set_stat_required): New function.
76076         (fts_open): Defer the calls to fts_stat, if possible or requested.
76077         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76078         into fts_stat itself.
76079         (fts_read): Perform any required (deferred) fts_stat call.
76080         (fts_build): Likewise, for the directory we're about to open and read.
76081         In the readdir loop, carefully decide whether each entry will require
76082         an eventual call to fts_stat, using dirent.d_type info if available.
76083         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76084         a command line argument into this function.  Update all callers.
76085         Map a return value of FTS_DOT to FTS_D for a command line argument.
76086         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76087         Thanks to Miklos Szeredi for his tenacity and for the initial
76088         bug report about "find" failing on a FUSE-based file system.
76089
76090         * lib/fts.c (fts_open): Use consistent indentation.
76091
76092 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76095         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76096         reported by Jim Meyering.  All uses of cache variables renamed
76097         to match Autoconf's.
76098         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76099         the other one.
76100
76101         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76102         Fix misspelling in diagnostic.
76103
76104 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76105
76106         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76107         defined.  Problem reported by Matthew Woehlke.
76108
76109         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76110         Add support for Tandem NonStop R series.
76111         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76112         Use new macro.
76113
76114         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76115         (has_trailing_slash): Omit size arg; all callers changed.
76116         Omit 'inline', since it doesn't help performance and we'd
76117         need to configure it.
76118         Don't count //, ///, etc. as having a trailing slash.
76119         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76120         (rpl_rename_dest_slash): On failure, use rename's errno rather
76121         than (in some cases) an incorrect or junk errno.
76122         Simplify code by removing need to compute length; this does
76123         cause it to make two passes instead of one over the file name,
76124         but it's worth it.
76125
76126         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76127         change, since Autoconf's version may no longer be appropriate now
76128         that we are using CVS Autoconf's version.  Add support for Tandem.
76129
76130 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76131             Bruno Haible  <bruno@clisp.org>
76132
76133         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76134         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76135         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76136         gl_AC_TYPE_LONG_LONG.
76137
76138         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76139         instead of HAVE_LONG_LONG.
76140         * lib/printf-args.c (printf_fetchargs): Likewise.
76141         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76142         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76144         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76145         gl_AC_TYPE_LONG_LONG.
76146
76147 2006-10-11  Bruno Haible  <bruno@clisp.org>
76148
76149         * m4/longlong.m4: Add comments.
76150         * m4/ulonglong.m4: Likewise.
76151
76152 2006-10-10  Bruno Haible  <bruno@clisp.org>
76153
76154         Make it possible to #define stpcpy, strdup to aliases.
76155         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76156         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76157
76158 2006-10-10  Bruno Haible  <bruno@clisp.org>
76159
76160         Make it possible to #define gcd to an alias.
76161         * lib/gcd.c: Include config.h.
76162
76163 2006-10-10  Bruno Haible  <bruno@clisp.org>
76164
76165         Make it possible to #define c_isascii to an alias.
76166         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76167         defined. Undefine the macros before defining them, to avoid gcc
76168         warnings.
76169         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76170         define NO_C_CTYPE_MACROS early.
76171
76172 2006-10-10  Bruno Haible  <bruno@clisp.org>
76173
76174         Make it possible to #define set_program_name to an alias.
76175         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76176         ENABLE_RELOCATABLE early.
76177
76178 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76181         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76182         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76183         More generally, don't assume that 64-bit signed int is available
76184         if unsigned int is, and vice versa.
76185         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76186         unsigned symbols, not on their signed counterparts.
76187         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76188         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76189         (UINT64_C, UINTMAX_C):
76190         Likewise.
76191         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76192         unsigned counterparts.
76193         (Have_long_long, Unsigned): New macros.
76194         (Int): Renamed from INT.
76195         (strtoimax): Use the new macros.
76196         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76197         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76198         * modules/inttypes (inttypes.h): Substitute
76199         HAVE_UNSIGNED_LONG_LONG_INT.
76200         * modules/stdint (stdint.h): Likewise.
76201         (Files): Add m4/ulonglong.m4.
76202
76203 2006-10-10  Bruno Haible  <bruno@clisp.org>
76204
76205         Fix a gcc -Wshadow warning.
76206         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76207         to 'bucket'.
76208         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76209         gl_linked_indexof_from_to): Likewise.
76210         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76211         Likewise.
76212         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76213         Likewise.
76214         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76215         Reported by Eric Blake.
76216
76217 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76220         for NetBSD.  Problem reported by Bruno Haible.
76221
76222 2006-10-09  Jim Meyering  <jim@meyering.net>
76223
76224         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76225         Patch from Bruno Haible.
76226
76227 2006-10-09  Jim Meyering  <jim@meyering.net>
76228
76229         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76230         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76231         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76232
76233 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         Don't include <config.h> twice; this doesn't work in some cases,
76236         e.g., when config.h has "#define intmax_t long long int" and
76237         we include <config.h>, <inttypes.h>, <config.h> in that order.
76238         Problem reported by Matthew Woehlke in:
76239         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76240         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76241         * lib/fts-cycle.c: Don't include config.h.
76242         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76243         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76244         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76245         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76246         inttypes.h.
76247         * lib/xstrtoumax.c: Likewise.
76248         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76249         __strtol and the like, so that this module is more like its siblings.
76250         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76251         Remove; no longer needed now that we assume gnulib inttypes.h.
76252
76253 2006-10-08  Bruno Haible  <bruno@clisp.org>
76254
76255         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76256         option.
76257
76258 2006-10-07  Jim Meyering  <jim@meyering.net>
76259
76260         * modules/inttypes (inttypes.h): Revert what seems to have been
76261         an inadvertent part of today's change: use "|", not "/" in the
76262         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76263
76264 2006-10-07  Bruno Haible  <bruno@clisp.org>
76265
76266         * modules/sublist: New file.
76267
76268 2006-10-07  Bruno Haible  <bruno@clisp.org>
76269
76270         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76271         * modules/argz (argz.h): Likewise.
76272         * modules/arpa_inet (arpa/inet.h): Likewise.
76273         * modules/byteswap (byteswap.h): Likewise.
76274         * modules/configmake (configmake.h): Likewise.
76275         * modules/fcntl (fcntl.h): Likewise.
76276         * modules/fnmatch (fnmatch.h): Likewise.
76277         * modules/getopt (getopt.h): Likewise.
76278         * modules/glob (glob.h): Likewise.
76279         * modules/inttypes (inttypes.h): Likewise.
76280         * modules/netinet_in (netinet/in.h): Likewise.
76281         * modules/poll (poll.h): Likewise.
76282         * modules/stdbool (stdbool.h): Likewise.
76283         * modules/stdint (stdint.h): Likewise.
76284         * modules/sys_select (sys/select.h): Likewise.
76285         * modules/sys_socket (sys/socket.h): Likewise.
76286         * modules/sys_stat (sys/stat.h): Likewise.
76287         * modules/sysexits (sysexits.h): Likewise.
76288         * modules/unistd (unistd.h): Likewise.
76289         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76290         Add a "DO NOT EDIT" comment to the generated file.
76291         (func_import): Likewise for gnulib-comp.m4.
76292
76293 2006-10-07  Bruno Haible  <bruno@clisp.org>
76294
76295         * lib/gl_sublist.h: New file.
76296         * lib/gl_sublist.c: New file.
76297
76298 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76301         name (relative to the original working directory) and the file
76302         name component (relative to the temporary working directory).  All
76303         callers changed.
76304         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76305         * lib/mkdir-p.c (make_dir_parents): Likewise.
76306         * lib/mkdir-p.h (make_dir_parents): Likewise.
76307
76308 2006-10-06  Eric Blake  <ebb9@byu.net>
76309
76310         Define several macros for use by the clean-temp module.
76311         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76313         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76314
76315         * lib/clean-temp.h (close_stream_temp): New declaration.
76316         * lib/clean-temp.c (includes): Pull in headers according to what
76317         other modules are in use.
76318         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76319
76320 2006-10-06  Bruno Haible  <bruno@clisp.org>
76321
76322         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76323         instead of fopen, fwriteerror.
76324
76325 2006-10-06  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76328         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76329         int.
76330         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76331         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76332         Return an error indicator.
76333         Suggested by Eric Blake.
76334
76335 2006-10-06  Bruno Haible  <bruno@clisp.org>
76336
76337         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76338         Reported by Eric Blake.
76339
76340 2006-10-06  Bruno Haible  <bruno@clisp.org>
76341
76342         * modules/closeout (Description): Mention stderr too.
76343
76344 2006-10-06  Bruno Haible  <bruno@clisp.org>
76345         and Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * lib/closeout.c (close_stdout): Also close stderr.
76348         * lib/closeout.h: Update comment.
76349
76350 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76353         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76354         * lib/dirchownmod.c: Include lchown.h.
76355         * lib/lchown.c: Don't include files that lchown.h now includes.
76356         Don't declare chown, since lchown.h now does that.
76357         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76358         (lchown): Define to rpl_chown if lchown is declared but
76359         does not exist.  Declare using a prototype if lchown is not
76360         declared.  Add a copyright notice.
76361         * lib/mkstemp.h: Include <unistd.h>.
76362         * lib/openat.c: Include lchown.h.
76363
76364         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76365         we now test for that separately.
76366         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76367         rather than O_NOFOLLOW, when testing whether it's possible to
76368         avoid a race condition reliably.
76369         * lib/savewd.c (savewd_chdir): Likewise.
76370
76371         Remove macros that are no longer needed now that stdint.h is
76372         reliable.
76373         * lib/fsusage.c (UINTMAX_MAX): Remove.
76374         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76375         * lib/utimecmp.c (SIZE_MAX): Remove.
76376
76377         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76378
76379         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76380         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76381         O_NOATIME works.
76382
76383 2006-10-05  Bruno Haible  <bruno@clisp.org>
76384
76385         * lib/gl_list.h (gl_sortedlist_search_from_to,
76386         gl_sortedlist_indexof_from_to): New declarations.
76387         (gl_list_implementation): New fields sortedlist_search_from_to,
76388         sortedlist_indexof_from_to.
76389         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76390         inline functions.
76391         * lib/gl_list.c (gl_sortedlist_search_from_to,
76392         gl_sortedlist_indexof_from_to): New functions.
76393         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76394         function.
76395         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76396         (gl_array_sortedlist_search_from_to): New function.
76397         (gl_array_list_implementation): Update.
76398         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76399         function.
76400         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76401         (gl_carray_sortedlist_search_from_to): New function.
76402         (gl_carray_list_implementation): Update.
76403         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76404         gl_linked_sortedlist_indexof_from_to): New functions.
76405         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76406         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76407         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76408         gl_tree_sortedlist_indexof_from_to): New functions.
76409         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76410         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76411         Update.
76412         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76413         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76414         Update.
76415
76416 2006-10-05  Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76419         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76420         (struct gl_list_implementation): Add fields search_from_to,
76421         indexof_from_to. Remove fields search, indexof.
76422         (gl_list_search): Use the search_from_to method.
76423         (gl_list_search_from, gl_list_search_from_to): New functions.
76424         (gl_list_indexof): Use the indexof_from_to method.
76425         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76426         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76427         (gl_list_search_from, gl_list_search_from_to): New functions.
76428         (gl_list_indexof): Use the indexof_from_to method.
76429         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76430         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76431         gl_array_indexof. Add start_index, end_index arguments.
76432         (gl_array_search_from_to): Renamed from gl_array_search. Add
76433         start_index, end_index arguments.
76434         (gl_array_remove, gl_array_list_implementation): Update.
76435         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76436         gl_carray_indexof. Add start_index, end_index arguments.
76437         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76438         start_index, end_index arguments.
76439         (gl_carray_remove, gl_carray_list_implementation): Update.
76440         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76441         gl_linked_search. Add start_index, end_index arguments.
76442         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76443         start_index, end_index arguments.
76444         (gl_linked_remove): Update.
76445         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76446         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76447         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76448         field to 'size_t'.
76449         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76450         gl_tree_search. Add start_index, end_index arguments.
76451         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76452         start_index, end_index arguments.
76453         (gl_tree_remove): Update.
76454         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76455         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76456         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76457         function.
76458         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76459         gl_tree_search. Add start_index, end_index arguments.
76460         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76461         start_index, end_index arguments.
76462         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76463         Update.
76464         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76465
76466 2006-10-05  Bruno Haible  <bruno@clisp.org>
76467
76468         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76469
76470         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76471         fwriteerror_temp): New declarations.
76472         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76473         (descriptors): New variable.
76474         (cleanup): First, close the descriptors.
76475         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76476         fclose_temp, fwriteerror_temp): New functions.
76477
76478 2006-10-04  Jim Meyering  <jim@meyering.net>
76479
76480         * lib/fts.c (fts_open): Tiny comment change.
76481
76482 2006-10-04  Bruno Haible  <bruno@clisp.org>
76483
76484         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76485         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76486         gl_LOCK_BODY.
76487         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76488         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76489         gl_LOCK_EARLY_BODY.
76490         (gl_LOCK): Require gl_LOCK_BODY.
76491
76492 2006-10-04  Bruno Haible  <bruno@clisp.org>
76493
76494         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76495         (gl_oset_search_atleast): New declaration.
76496         (struct gl_oset_implementation): Add field 'search_atleast'.
76497         (gl_oset_search_atleast): New inline function.
76498         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76499         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76500         (gl_array_oset_implementation): Update.
76501         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76502         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76503         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76504
76505 2006-10-04  Bruno Haible  <bruno@clisp.org>
76506
76507         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76508
76509 2006-10-03  Bruno Haible  <bruno@clisp.org>
76510
76511         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76512         from gl_avltreehash_list_implementation.
76513
76514 2006-10-03  Bruno Haible  <bruno@clisp.org>
76515
76516         * lib/gl_oset.c (gl_oset_add): Fix return type.
76517
76518 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76519
76520         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76521
76522 2006-10-02  Eric Blake  <ebb9@byu.net>
76523
76524         * modules/strnlen (Depends-on): Add extensions.
76525
76526 2006-10-02  Eric Blake  <ebb9@byu.net>
76527
76528         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76529         definition in 2.60+.
76530
76531 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76532
76533         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76534         checks.
76535
76536 2006-10-02  Bruno Haible  <bruno@clisp.org>
76537
76538         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76539         to the AUTOMAKE_OPTIONS.
76540         Reported by Jim Meyering.
76541
76542 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         Work around bug in Solaris 10 /proc file system:
76545         /proc/self/fd/NNN/.. isn't the parent directory of
76546         the directory whose file descriptor is NNN.  This needs to
76547         be worked around at run time, not compile time, since a
76548         program might be built on Solaris 8, where things work, and
76549         run on Solaris 10.
76550         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76551         to use the following interface instead:
76552         (OPENAT_BUFFER_SIZE): New macro.
76553         (openat_proc_name): New function.
76554         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76555         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76556         Likewise.
76557         * lib/openat-proc.c: New file.
76558         * modules/openat (Files): Add lib/openat-proc.c.
76559         (Depends-on): Add same-inode, stdbool.
76560         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76561
76562 2006-09-29  Bruno Haible  <bruno@clisp.org>
76563
76564         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76565         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76566         argument. Set stdout_closed before testing for ferror, not after.
76567         (fwriteerror, fwriteerror_no_ebadf): New functions.
76568
76569 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76570
76571         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76572
76573 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76574
76575         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76576         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76577
76578 2006-09-28  Jim Meyering  <jim@meyering.net>
76579
76580         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76581         Include <unistd.h>.
76582
76583 2006-09-28  Bruno Haible  <bruno@clisp.org>
76584
76585         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76586         * modules/linkedhash-list (Depends-on): Likewise.
76587         * modules/rbtreehash-list (Depends-on): Likewise.
76588
76589 2006-09-28  Bruno Haible  <bruno@clisp.org>
76590
76591         * lib/strndup.h: Simplify the redefinition of strndup.
76592         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76593         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76594
76595 2006-09-28  Bruno Haible  <bruno@clisp.org>
76596
76597         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76598         * lib/gl_linkedhash_list.c: Likewise.
76599         * lib/gl_rbtreehash_list.c: Likewise.
76600
76601 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76604         getaddrinfo.
76605
76606         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76607         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76608         it causes <stdio_ext.h> to cause a compile-time error.
76609         Problem reported by Nelson H. F. Beebe.
76610         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76611         of HAVE_DECL___PENDING.
76612
76613         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76614         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76615         declaration.
76616
76617 2006-09-27  Jim Meyering  <jim@meyering.net>
76618
76619         This file could end up with a definition for a function
76620         named __strndup, rather than rpl_strndup on a system with
76621         incomplete weak_alias support.
76622         * lib/strndup.c (strndup): Rename from __strndup.
76623         Remove #defines that used to map __strndup to strndup.
76624         Don't use K&R prototypes.
76625         Remove LIBC-related code, since this file is not sync'd with glibc.
76626         * lib/strndup.h: Revamp, accordingly.
76627         * m4/strndup.m4: Modernize.
76628
76629 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * modules/savewd (Depends-on): Add 'raise'.
76632         * lib/savewd.c: Include <signal.h>, for 'raise'.
76633
76634 2006-09-26  Jim Meyering  <jim@meyering.net>
76635
76636         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76637         when we detect Darwin 8.7.0's acl_get_file bug.
76638         Rearrange to perform the new (below) run-test while $LIBS
76639         contains any acl-related library.  Set USE_ACL at the end.
76640         (gl_ACL_GET_FILE): New function.
76641
76642 2006-09-26  Eric Blake  <ebb9@byu.net>
76643
76644         * lib/verror.c: Include <config.h> unconditionally.
76645
76646 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * modules/clock-time (Maintainer): Add self.
76649         * modules/getlogin_r (Depends-on): Add extensions.
76650
76651 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76652
76653         * modules/clock-time: New module.
76654         * modules/nanosleep (Depends-on): Add clock-time.
76655         * modules/gethrxtime (Depends-on): Likewise.
76656         * modules/gettime (Depends-on): Likewise.
76657         * modules/settime (Depends-on): Likewise.
76658
76659         * modules/fts-lgpl: Depend on openat.
76660         * modules/mkancesdirs: Depend on savewd.
76661         * modules/mkdir-p: Likewise.
76662
76663 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76664
76665         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76666
76667         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76668         `gl_have_arbitrary_file_name_length_limit' to
76669         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76670         actually works between configure runs.
76671
76672 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76673             Bruno Haible  <bruno@clisp.org>
76674
76675         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76676
76677 2006-09-25  Jim Meyering  <jim@meyering.net>
76678
76679         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76680         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76681
76682 2006-09-25  Eric Blake  <ebb9@byu.net>
76683
76684         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76685         exec's in 2006-09-18 patch when shuffling fds.
76686
76687 2006-09-25  Bruno Haible  <bruno@clisp.org>
76688
76689         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76690         Reported by Jim Meyering.
76691
76692 2006-09-24  Jim Meyering  <jim@meyering.net>
76693
76694         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76695         compare a pointer against a literal "0".  That caused failures with
76696         at least HP-UX's hpcc.
76697
76698 2006-09-22  Simon Josefsson  <jas@extundo.com>
76699
76700         * modules/gc-sha1:
76701         * modules/gc-md4:
76702         * modules/gc-hmac-sha1:
76703         * modules/gc-hmac-md5:
76704         * modules/gc-des:
76705         * modules/gc-arcfour: Distribute more files.
76706
76707 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76708
76709         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76710         (gl_linked_iterator_from_to): Initialize struct completely.
76711         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76712         (gl_tree_iterator_from_to): Likewise
76713         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76714         * lib/gl_array_list.c [lint] (gl_array_iterator)
76715         (gl_array_iterator_from_to): Likewise.
76716         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76717         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76718         (gl_carray_iterator_from_to): Likewise.
76719
76720         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76721         * lib/md4.c (md4_process_block): Remove unused variable.
76722         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76723         parentheses for clarity.
76724
76725 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76726
76727         * modules/bison-i18n (Depends-on): Add gettext.
76728
76729 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76730
76731         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76732         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76733         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76734         also add missing comma that caused broken test.
76735         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76736         stdlib.h, for `abort'.
76737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76738         variables.
76739         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76740         include unistd.h if present, for `rmdir'.
76741         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76742         variables.
76743         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76744         in the process include standard headers for prototypes.
76745         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76746         gets declared on GNU/Linux.
76747         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76748         unistd.h, for `rmdir'.
76749         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76750
76751         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76752         always true.
76753         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76754
76755         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76756
76757 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76758
76759         * gnulib-tool (func_version): Create output all at once.  This
76760         may help avoid triggering unnecessary SIGPIPEs, and at any
76761         rate it doesn't hurt.
76762
76763 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76764             Bruno Haible  <bruno@clisp.org>
76765
76766         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76767         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76768         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76769
76770         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76771         (gl_FUNC_VASPRINTF): Invoke it.
76772
76773 2006-09-22  Bruno Haible  <bruno@clisp.org>
76774
76775         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76776         getloadavg.c as first argument.
76777
76778 2006-09-22  Bruno Haible  <bruno@clisp.org>
76779
76780         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76781         at the beginning of the gl_INIT macro.
76782         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76783         gl_GETLOADAVG.
76784
76785 2006-09-22  Bruno Haible  <bruno@clisp.org>
76786
76787         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76788         module.
76789         Suggested by Ralf Wildenhues.
76790
76791 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         Import this patch from libc:
76794
76795         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76796
76797         * lib/regex_internal.c (re_string_reconstruct): Handle
76798         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76799         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76800         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76801         re_string_context_at.
76802
76803         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76804         now requires it.
76805         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76806         gl_REGEX now does it for us.
76807         (gl_REGEX): Add test taken from
76808         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76809
76810         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76811         Check that large offsets work.  Modernize Autoconf usages.
76812         Prefer "yes" to mean a good thing rather than a bad.
76813         Don't put "#define mkstemp" in config.h, as this might interfere
76814         with standard system headers that "#define mkstemp mkstemp64".
76815
76816         * modules/mkstemp (Depends-on): Add extensions, so that
76817         mkstemp is visible on some platforms.
76818         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76819         (Include): Change to "mkstemp.h" from <stdlib.h>.
76820         (Files): Add mkstemp.h.
76821
76822         * lib/mkstemp.h: New file, since some standard headers
76823         #define mkstemp.
76824         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76825         Include "mkstemp.h".
76826         Make the _LIBC code resemble glibc original more,
76827         e.g., use K&R style.
76828         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76829         (mkstemp): Remove, since mkstemp.h does this for us.
76830         * lib/stdlib--.h: Include mkstemp.h.
76831
76832         Import this patch from libc:
76833
76834         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76835
76836         * lib/tempname.c (__gen_tempname): Change attempts_min
76837         into a macro.  Use preprocessor to decide how to initialize
76838         attempts [Coverity CID 67].
76839
76840 2006-09-20  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/mkdtemp.c: Import from libc.
76843         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76844                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76845                 attempts_min into a macro.  Use preprocessor to decide how to
76846                 initialize attempts [Coverity CID 67].
76847         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76848                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76849                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76850
76851 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76852
76853         * gnulib-tool (func_exit): New function, to allow to pass the
76854         exit status portably through the trap.  Use everywhere.
76855         (--help, --version): Signal a write error.
76856         (trap): catch SIGPIPE, for write errors.
76857         Exit at the end of the trap, with the correct exit status.
76858
76859 2006-09-19  Karl Berry  <karl@gnu.org>
76860
76861         * doc/gnulib.texi: note about the license texinfo files.
76862
76863 2006-09-19  Eric Blake  <ebb9@byu.net>
76864
76865         * gnulib-tool: Avoid space-tab.
76866
76867 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76870         that prevented coreutils 6.1 from building.  Problem reported
76871         by Petter Reinholdtsen.
76872
76873 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * gnulib-tool (avoidlist): Fix typo that broke options like
76876         --avoid=lock that are used by coreutils bootstrap.
76877
76878 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76879
76880         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76881         more systematically.
76882
76883 2006-09-18  Jim Meyering  <jim@meyering.net>
76884
76885         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76886
76887 2006-09-18  Bruno Haible  <bruno@clisp.org>
76888
76889         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76890
76891 2006-09-18  Bruno Haible  <bruno@clisp.org>
76892
76893         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76894         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76895         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76896         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76897         * m4/gettext.m4: Require autoconf >= 2.52.
76898         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76899         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76900         of gl_cv_header_inttypes_h.
76901
76902 2006-09-18  Bruno Haible  <bruno@clisp.org>
76903
76904         * lib/javaversion.c: Include configmake.h.
76905
76906 2006-09-18  Bruno Haible  <bruno@clisp.org>
76907
76908         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76909         avoid that the while loops be executed in a subshell.
76910
76911 2006-09-18  Bruno Haible  <bruno@clisp.org>
76912
76913         * MODULES.html.sh (func_module): Break long lines.
76914         Suggested by Bruce Korb <bkorb@gnu.org>.
76915
76916 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76917
76918         Speed up by a factor of 1.12.
76919         * gnulib-tool (nl): New variable.
76920         (func_import): Rewrite include directive extraction to only read each
76921         directive once.
76922
76923 2006-09-17  Bruno Haible  <bruno@clisp.org>
76924
76925         * modules/javaversion (Makefile.am): Remove DEFS setting.
76926         (Depends-on): Add configmake, for PKGDATADIR definition.
76927
76928 2006-09-17  Bruno Haible  <bruno@clisp.org>
76929
76930         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76931
76932 2006-09-17  Bruno Haible  <bruno@clisp.org>
76933
76934         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76935         (func_modules_transitive_closure, func_modules_add_dummy,
76936         func_modules_to_filelist, func_import, func_create_testdir,
76937         func_create_megatestdir, ...): Use it wherever possible.
76938         Suggested by Ralf Wildenhues.
76939
76940 2006-09-16  Karl Berry  <karl@gnu.org>
76941
76942         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76943         to avoid sectioning errors.
76944         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76945         [ifinfo]: blank line after @center-ed titles.
76946         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76947         Spell FSF address consistently with others.
76948         (These changes approved by rms.)
76949
76950 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76951
76952         Speed up by a factor of 1.61.
76953         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76954         already checked module names again.
76955
76956 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76957
76958         Speed up by a factor of 1.13.
76959         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76960         for new_files, and the input to func_add_or_update.
76961
76962 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76963
76964         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76965         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76966
76967 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * modules/mkancesdirs (Depends-on): Add fcntl.
76970         * modules/savewd: New file.
76971         * MODULES.html.sh (File system functions): Add savewd.
76972
76973         * modules/configmake (Makefile.am): Add support for the
76974         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76975
76976 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * m4/savewd.m4: New file.
76979
76980 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76983         (dirchownmod): New arg FD.  All callers changed.
76984         Use FD rather than opening the directory ourself, as opening is
76985         now the caller's responsibility.
76986         * lib/dirchownmod.h: Likewise.
76987         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76988         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76989         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76990         (test_dir): Remove.
76991         (mkancesdirs): Return length of prefix of FILE that has already
76992         been made, or -2 if there is a child doing the work.  Redo
76993         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76994         ".", and treat ".." specially since it might stray back into
76995         already-created areas.  Use a subprocess if necessary.  New arg
76996         WD; all users changed.  MAKE_DIR function should now return 1
76997         if it creates a directory that is not readable.  Return -2 if
76998         a child process is spun off.
76999         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77000         Adjust signature to match code.
77001         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77002         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77003         all users changed.
77004         * lib/savewd.c, lib/savewd.h: New files.
77005
77006 2006-09-15  Jim Meyering  <jim@meyering.net>
77007
77008         * modules/rename-dest-slash: New module.
77009         * MODULES.html.sh (posix_compat): Add it here.
77010
77011         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77012
77013 2006-09-15  Jim Meyering  <jim@meyering.net>
77014
77015         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77016         file.
77017
77018         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77019
77020 2006-09-15  Jim Meyering  <jim@meyering.net>
77021
77022         * lib/rename-dest-slash.c (has_trailing_slash): Use
77023         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77024         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77025         test before testing whether SRC is a directory.
77026         Suggestions from Bruno Haible.
77027
77028         Avoid a warning about an unused variable.
77029         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77030         into the #ifdef block where it's used.
77031
77032         * lib/rename-dest-slash.c: New file.
77033
77034 2006-09-14  Bruno Haible  <bruno@clisp.org>
77035
77036         * lib/allocsa.c: Include <config.h> unconditionally.
77037         * lib/asnprintf.c: Likewise.
77038         * lib/asprintf.c: Likewise.
77039         * lib/c-strcasecmp.c: Likewise.
77040         * lib/c-strcasestr.c: Likewise.
77041         * lib/c-strncasecmp.c: Likewise.
77042         * lib/c-strstr.c: Likewise.
77043         * lib/classpath.c: Likewise.
77044         * lib/clean-temp.c: Likewise.
77045         * lib/concatpath.c: Likewise.
77046         * lib/copy-file.c: Likewise.
77047         * lib/csharpcomp.c: Likewise.
77048         * lib/csharpexec.c: Likewise.
77049         * lib/execute.c: Likewise.
77050         * lib/fatal-signal.c: Likewise.
77051         * lib/findprog.c: Likewise.
77052         * lib/fwriteerror.c: Likewise.
77053         * lib/gl_array_list.c: Likewise.
77054         * lib/gl_array_oset.c: Likewise.
77055         * lib/gl_avltree_list.c: Likewise.
77056         * lib/gl_avltree_oset.c: Likewise.
77057         * lib/gl_avltreehash_list.c: Likewise.
77058         * lib/gl_carray_list.c: Likewise.
77059         * lib/gl_linked_list.c: Likewise.
77060         * lib/gl_linkedhash_list.c: Likewise.
77061         * lib/gl_list.c: Likewise.
77062         * lib/gl_oset.c: Likewise.
77063         * lib/gl_rbtree_list.c: Likewise.
77064         * lib/gl_rbtree_oset.c: Likewise.
77065         * lib/gl_rbtreehash_list.c: Likewise.
77066         * lib/imaxabs.c: Likewise.
77067         * lib/imaxdiv.c: Likewise.
77068         * lib/javacomp.c: Likewise.
77069         * lib/javaexec.c: Likewise.
77070         * lib/javaversion.c: Likewise.
77071         * lib/linebreak.c: Likewise.
77072         * lib/localcharset.c: Likewise.
77073         * lib/lock.c: Likewise.
77074         * lib/mbchar.c: Likewise.
77075         * lib/mbswidth.c: Likewise.
77076         * lib/mkdtemp.c: Likewise.
77077         * lib/pipe.c: Likewise.
77078         * lib/printf-args.c: Likewise.
77079         * lib/printf-parse.c: Likewise.
77080         * lib/progname.c: Likewise.
77081         * lib/progreloc.c: Likewise.
77082         * lib/readlink.c: Likewise.
77083         * lib/sh-quote.c: Likewise.
77084         * lib/stpcpy.c: Likewise.
77085         * lib/stpncpy.c: Likewise.
77086         * lib/strcasecmp.c: Likewise.
77087         * lib/strcasestr.c: Likewise.
77088         * lib/strcspn.c: Likewise.
77089         * lib/striconv.c: Likewise.
77090         * lib/strncasecmp.c: Likewise.
77091         * lib/strnlen1.c: Likewise.
77092         * lib/strstr.c: Likewise.
77093         * lib/strtok_r.c: Likewise.
77094         * lib/tls.c: Likewise.
77095         * lib/tmpdir.c: Likewise.
77096         * lib/unicodeio.c: Likewise.
77097         * lib/unsetenv.c: Likewise.
77098         * lib/vasnprintf.c: Likewise.
77099         * lib/vasprintf.c: Likewise.
77100         * lib/wait-process.c: Likewise.
77101         * lib/xallocsa.c: Likewise.
77102         * lib/xsetenv.c: Likewise.
77103         * lib/xstriconv.c: Likewise.
77104
77105 2006-09-13  Simon Josefsson  <jas@extundo.com>
77106
77107         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77108         that internally, suggested by Ralf Wildenhues
77109         <Ralf.Wildenhues@gmx.de>.
77110
77111 2006-09-13  Simon Josefsson  <jas@extundo.com>
77112
77113         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77114         @LIBOBJS@.
77115         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77116
77117 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77120         longer worry about uses that don't define HAVE_CONFIG_H.
77121         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77122         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77123         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77124         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77125         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77126         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77127         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77128         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77129         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77130         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77131         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77132         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77133         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77134         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77135         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77136         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77137         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77138         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77139         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77140         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77141         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77142         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77143         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77144         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77145         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77146         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77147         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77148         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77149         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77150         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77151         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77152         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77153         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77154         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77155         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77156         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77157         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77158         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77159         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77160         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77161         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77162         Likewise.
77163
77164 2006-09-13  Eric Blake  <ebb9@byu.net>
77165
77166         * lib/getopt.c: Fix typo in last commit.
77167
77168 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77169
77170         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77171         dgettext.
77172
77173 2006-09-12  Jim Meyering  <jim@meyering.net>
77174
77175         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77176         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77177         Reported by Nelson H. F. Beebe.
77178
77179 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77180
77181         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77182         program_invocation_name and program_invocation_short_name are
77183         initialized.
77184         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77185         and program_invocation_short_name to argp.h, so they are visible
77186         to user programs.
77187         * lib/argp.h: Likewise
77188
77189 2006-09-10  Bruno Haible  <bruno@clisp.org>
77190
77191         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77192         m4/inttypes_h.m4, m4/uintmax_t.m4.
77193
77194 2006-09-10  Bruno Haible  <bruno@clisp.org>
77195
77196         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77197         gl_AC_TYPE_UINTMAX_T.
77198
77199 2006-09-10  Bruno Haible  <bruno@clisp.org>
77200
77201         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77202
77203 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77204
77205         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77206         convention.  Text proposed by Bruno Haible.
77207         (struct argp_option): Document the use of N_() wrappers.
77208
77209         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77210         '\v', and translate the two parts separately, instead of feeding
77211         the whole string to gettext.  This allows to exclude
77212         '\v' from the strings visible to the translator by writing doc
77213         strings as N_("..") "\v" N_("..").
77214
77215 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77216
77217         * config/srclist.txt: Undo latest change; the bug was fixed.
77218
77219 2006-09-09  Bruno Haible  <bruno@clisp.org>
77220
77221         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77222         assignments if building a library without libtool.
77223         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77224         in func_emit_lib_Makefile_am.
77225         (func_import): When building a static library libfoo.a, arrange to
77226         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77227         (func_create_testdir): Likewise.
77228         * modules/gc (configure.ac, Makefile.am): If building statically,
77229         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77230         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77231         * modules/striconv (configure.ac, Makefile.am): Likewise.
77232         Based on a suggestion by Ralf Wildenhues.
77233
77234 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77237         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77238         Also:
77239
77240         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77241         Add year_2050_test to catch glibc bug 2821
77242         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77243
77244         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77245         Prefer #ifdef to #if.
77246
77247         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77248         Return from 'main' instead of calling 'exit'.
77249
77250 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77253         returned the maximum time_t value rather than (time_t) -1.
77254         Problem originally reported by William Bardwell
77255         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77256
77257         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77258         Moved to here ...
77259         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77260         ... from here.
77261
77262 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77265         2821 is fixed.
77266
77267 2006-09-08  Jim Meyering  <jim@meyering.net>
77268
77269         Don't make generated files read-only.  That would bother too many
77270         people.  However, do retain the ability to work when targets are
77271         read-only: remove the destination and temporary files before writing
77272         them (when generated via sed or echo), or by using the -f option for
77273         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77274         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77275         * modules/byteswap, modules/configmake, modules/fcntl:
77276         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77277         * modules/localcharset, modules/netinet_in, modules/poll:
77278         * modules/stdbool, modules/stdint, modules/sys_select:
77279         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77280
77281 2006-09-08  Jim Meyering  <jim@meyering.net>
77282
77283         Avoid new build failure on FreeBSD 6.0.
77284         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77285         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77286         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77287
77288 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77289
77290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77291
77292 2006-09-07  Jim Meyering  <jim@meyering.net>
77293
77294         Fix global typo in last change: use chmod u-w, not chmod u-x.
77295         Spotted by Paul Eggert and Bruce Korb.
77296         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77297         * modules/byteswap, modules/configmake, modules/fcntl:
77298         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77299         * modules/localcharset, modules/netinet_in, modules/poll:
77300         * modules/stdbool, modules/stdint, modules/sys_select:
77301         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77302
77303 2006-09-06  Jim Meyering  <jim@meyering.net>
77304
77305         Make generated files be read-only.
77306         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77307         Ensure that each generated file is now read-only.
77308         * modules/argz: Likewise.
77309         * modules/arpa_inet: Likewise.
77310         * modules/byteswap: Likewise.
77311         * modules/configmake: Likewise.
77312         * modules/fcntl: Likewise.
77313         * modules/fnmatch: Likewise.
77314         * modules/getopt: Likewise.
77315         * modules/glob: Likewise.
77316         * modules/inttypes: Likewise.
77317         * modules/netinet_in: Likewise.
77318         * modules/poll: Likewise.
77319         * modules/stdbool: Likewise.
77320         * modules/stdint: Likewise.
77321         * modules/sys_select: Likewise.
77322         * modules/sys_socket: Likewise.
77323         * modules/sys_stat: Likewise.
77324         * modules/sysexits: Likewise.
77325         * modules/localcharset: Same as above, but continue using temporary
77326         file named "t-$@" (why different?) rather than the "$@-t" used
77327         everywhere else.
77328
77329         * modules/sysexits (Makefile.am): Replace literal occurrences
77330         of "sysexit.h" more readable, and more consistent, "$@".
77331
77332 2006-09-06  Bruno Haible  <bruno@clisp.org>
77333
77334         * modules/striconv: New file.
77335         * modules/xstriconv: New file.
77336         * MODULES.html.sh (Internationalization functions): Add striconv,
77337         xstriconv.
77338
77339 2006-09-06  Bruno Haible  <bruno@clisp.org>
77340
77341         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77342         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77343         not using libtool correctly.
77344
77345 2006-09-06  Bruno Haible  <bruno@clisp.org>
77346
77347         * lib/striconv.h: New file.
77348         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77349         iconvstring.c.
77350         * lib/xstriconv.h: New file.
77351         * lib/xstriconv.c: New file.
77352
77353 2006-09-06  Bruno Haible  <bruno@clisp.org>
77354
77355         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77356         lib_..._LDFLAGS.
77357
77358 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77359
77360         * lib/argz_.h: Sync from Libtool.
77361
77362         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77363                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77364
77365         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77366
77367 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77368
77369         * modules/trim: New file.
77370
77371 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77372
77373         * lib/trim.h: New file.
77374         * lib/trim.c: New file.
77375
77376 2006-09-05  Bruno Haible  <bruno@clisp.org>
77377
77378         * MODULES.html.sh (String handling): Add trim.
77379
77380 2006-09-04  Karl Berry  <karl@gnu.org>
77381
77382         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77383         until next release.
77384
77385 2006-09-03  Bruno Haible  <bruno@clisp.org>
77386
77387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77388         correctly.
77389
77390 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77393         not gl_GETLOADAVG.  Omit unneeded semicolons.
77394         Problems reported by Ralf Wildenhues in
77395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77396         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77397         at the end, which is the usual gnulib style.
77398
77399         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77400         of doing all the work ourselves.
77401         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77402         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77403
77404 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77407         Problem reported by Ralf Wildenhues in
77408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77409
77410         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77411         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77412
77413 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77416         yesterday's patch by changing test -n to test -z.
77417
77418 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77421         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77422         the former is now obsolescent.
77423
77424         * modules/chdir-long (Depends-on): Add fcntl.
77425
77426 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77427
77428         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77429         obsolescent, and programs should use gnulib instead.
77430         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77431         but with prefixes changed.
77432
77433 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77436         or stdbool.h, because they might not exist while configuring.
77437
77438         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77439         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77440         does that for us.
77441         (O_DIRECTORY): Remove.
77442
77443 2006-08-31  Eric Blake  <ebb9@byu.net>
77444
77445         * gnulib-tool: Don't let emacs change spaces to TAB.
77446
77447 2006-08-31  Bruno Haible  <bruno@clisp.org>
77448
77449         * gnulib-tool: When calling func_import more than once, do it in a
77450         subshell.
77451         Reported by Eric Blake <ebb9@byu.net>.
77452
77453 2006-08-31  Bruno Haible  <bruno@clisp.org>
77454
77455         * gnulib-tool (nl): Remove variable.
77456         (sed_transform_lib_file): Use more robust test for config-h module.
77457         (func_import): Fix typo in 2006-08-25 patch.
77458
77459 2006-08-31  Bruno Haible  <bruno@clisp.org>
77460
77461         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77462         specified, augment Makefile.am variables instead of assigning them.
77463
77464 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         Work around a bug in both the Linux and SunOS 64-bit kernels:
77467         nanosleep mishandles sleeps for longer than 2**31 seconds.
77468         Problem reported by Frank v Waveren in
77469         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77471         Check for nanosleep bug.
77472         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77473
77474 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77475
77476         Work around a bug in both the Linux and SunOS 64-bit kernels:
77477         nanosleep mishandles sleeps for longer than 2**31 seconds.
77478         Problem reported by Frank v Waveren in
77479         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77480         * lib/nanosleep.c (BILLION): New constant.
77481         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77482         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77483         implementation.
77484
77485 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * modules/nanosleep (Depends-on): Add gettime.
77488
77489 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77490         and Simon Josefsson  <jas@extundo.com>
77491         and Oskar Liljeblad  <oskar@osk.mine.nu>
77492
77493         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77494         * gnulib-tool (func_import): New license type 'unmodifiable license
77495         text'.
77496         * modules/fdl: Use it.  Longer description.
77497         * module/gpl, module/lgpl: New files.
77498
77499 2006-08-30  Jim Meyering  <jim@meyering.net>
77500
77501         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77502         shadowing the parameter.
77503
77504 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77505
77506         Sync from Libtool:
77507
77508         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77509
77510         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77511         sharing with gnulib.  Report by Eric Blake.
77512
77513 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * modules/isapipe: New file.
77516         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77517
77518 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77519
77520         * modules/configmake (Makefile.am): Add a comment, and omit
77521         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77522         by Bruno Haible.
77523
77524 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * m4/isapipe.m4: New file.
77527
77528 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         * lib/isapipe.c, lib/isapipe.h: New files.
77531
77532 2006-08-29  Jim Meyering  <jim@meyering.net>
77533
77534         * modules/configmake (Makefile.am): Make configmake.h depend on
77535         Makefile.  Otherwise, a stale configmake.h could hang around.
77536
77537 2006-08-29  Eric Blake  <ebb9@byu.net>
77538
77539         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77540         resolution of upstream bug 3044.
77541
77542 2006-08-29  Bruno Haible  <bruno@clisp.org>
77543
77544         * modules/localcharset (Depends-on): Add configmake.
77545         (Makefile.am): Remove setting of LIBDIR through DEFS.
77546
77547 2006-08-29  Bruno Haible  <bruno@clisp.org>
77548
77549         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77550         defined.
77551
77552 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * modules/fcntl: New file.
77555         * modules/chdir-safer (Depends-on): Add fcntl.
77556         * modules/fts: Likewise.
77557         * modules/mkdir-p: Likewise.
77558
77559         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77560         This undoes the most recent change, since we're now addressing the
77561         problem in a different way.
77562
77563         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77564         into output, since the output might be called Makefile.am even
77565         if $makefile_name is something different.
77566         (func_import): Use $makefile_am rather than
77567         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77568         empty.
77569
77570         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77571
77572 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77575         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77576         recent change to stdint.m4, since we're now addressing the problem in a
77577         different way.
77578
77579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         * m4/fcntl_h.m4: New file.
77582
77583 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * lib/fcntl_.h: New file.
77586         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77587         the fcntl module.
77588         * lib/dirchownmod.c: Likewise.
77589         * lib/fts.c: Likewise.
77590
77591         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77592         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77593         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77594         just before including <inttypes.h>, to avoid circular inclusion.
77595
77596 2006-08-28  Jim Meyering  <jim@meyering.net>
77597
77598         * doc/visibility.texi: Actually read and correct the grammar of the
77599         sentence affected by yesterday's change.
77600
77601 2006-08-28  Eric Blake  <ebb9@byu.net>
77602
77603         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77604         needs wrapper.
77605
77606 2006-08-28  Eric Blake  <ebb9@byu.net>
77607
77608         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77609
77610 2006-08-28  Eric Blake  <ebb9@byu.net>
77611
77612         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77613
77614 2006-08-28  Bruno Haible  <bruno@clisp.org>
77615
77616         * modules/c-strstr: New file, from GNU gettext.
77617         * MODULES.html.sh (String handling): Add c-strstr.
77618
77619 2006-08-28  Bruno Haible  <bruno@clisp.org>
77620
77621         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77622         macros.
77623         Reported by Eric Blake.
77624
77625 2006-08-28  Bruno Haible  <bruno@clisp.org>
77626
77627         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77628         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77629         * lib/vasprintf.c: Include errno.h, limits.h.
77630         (EOVERFLOW): New fallback definition.
77631         (vasprintf): Test here whether the string length is > INT_MAX.
77632         * lib/vsnprintf.c: Include errno.h, limits.h.
77633         (EOVERFLOW): New fallback definition.
77634         (vsnprintf): Fix bug when generated string was too long for the buffer.
77635         Test here whether the string length is > INT_MAX.
77636
77637 2006-08-28  Bruno Haible  <bruno@clisp.org>
77638
77639         * lib/inttypes_.h (SCNX*): Remove definitions.
77640         Reported by Eric Blake.
77641
77642 2006-08-28  Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/c-strstr.h: New file, from GNU gettext.
77645         * lib/c-strstr.c: New file, from GNU gettext.
77646
77647 2006-08-28  Bruno Haible  <bruno@clisp.org>
77648
77649         * gnulib-tool: Reorder some statements.
77650
77651 2006-08-28  Bruno Haible  <bruno@clisp.org>
77652
77653         * gnulib-tool: New option --makefile-name.
77654         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77655         $makefile_name.
77656         (func_import): Write $makefile_name to the cache file, and read it from
77657         there unless explicitly specified. Use $makefile_name as file name
77658         instead of Makefile.am. Adjust the recommendations accordingly.
77659
77660 2006-08-28  Bruno Haible  <bruno@clisp.org>
77661
77662         * gnulib-tool (func_verify_module): Check against misapplying patch.
77663
77664 2006-08-28  Bruno Haible  <bruno@clisp.org>
77665
77666         * gnulib-tool (func_relativize, func_relconcat): New functions.
77667         Give an error if --local-dir is given with --update.
77668         Remove trailing slashes from $local_gnulib_dir.
77669         (func_import): Store the relativized $local_gnulib_dir in
77670         gnulib-cache.m4, and read it from there if not specified explicitly.
77671
77672 2006-08-28  Bruno Haible  <bruno@clisp.org>
77673
77674         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77675         is the current directory. Respect also $local_gnulib_dir.
77676
77677 2006-08-28  Bruno Haible  <bruno@clisp.org>
77678             Simon Josefsson  <jas@extundo.com>
77679
77680         BeOS portability.
77681         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77682
77683 2006-08-27  Jim Meyering  <jim@meyering.net>
77684
77685         * doc/visibility.texi: Remove duplicate word: "pointer".
77686
77687 2006-08-26  Bruno Haible  <bruno@clisp.org>
77688
77689         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77690         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77691         (Makefile.am): Create inttypes.h from inttypes_.h.
77692         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77693
77694         * modules/imaxabs: New file.
77695
77696         * modules/imaxdiv: New file.
77697
77698 2006-08-26  Bruno Haible  <bruno@clisp.org>
77699
77700         * m4/inttypes.m4: New file.
77701         * m4/_inttypes_h.m4: Remove file.
77702         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77703         PRI_MACROS_BROKEN.
77704         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77705
77706         * m4/imaxabs.m4: New file.
77707
77708         * m4/imaxdiv.m4: New file.
77709
77710 2006-08-26  Bruno Haible  <bruno@clisp.org>
77711
77712         * lib/inttypes_.h: New file.
77713         * lib/inttypes.h: Remove file.
77714         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77715
77716         * lib/imaxabs.c: New file.
77717
77718         * lib/imaxdiv.c: New file.
77719
77720 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77721
77722         New config-h module, so that "make" output needn't be cluttered
77723         by -DHAVE_CONFIG_H.
77724         * MODULES.html.sh (Support for building libraries and executables):
77725         Add config-h.
77726         * modules/config-h: New file.
77727         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77728         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77729         the config-h module is used.
77730
77731         New configmake module, so that "make" output needn't be cluttered
77732         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77733         * MODULES.html.sh (Support for building libraries and executables):
77734         Add configmake.
77735         * modules/configmake: New file.
77736
77737 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * m4/config-h.m4: New file.
77740
77741 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * config/srclist.txt: Add elisp-comp.
77744
77745 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * MODULES.html.sh (Support for building libraries and executables):
77748         Add elisp-comp.
77749         * build-aux/elisp-comp: New file.
77750         * modules/elisp-comp: New file.
77751
77752 2006-08-24  Bruno Haible  <bruno@clisp.org>
77753
77754         * gnulib-tool (func_create_testdir): Use non-default values of
77755         sourcebase and m4base.
77756
77757 2006-08-24  Bruno Haible  <bruno@clisp.org>
77758
77759         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77760         HTML structure.
77761
77762 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * modules/openat (Depends-on): Add lchown.
77765
77766 2006-08-23  Bruno Haible  <bruno@clisp.org>
77767
77768         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77769         of gl_LOCK_EARLY instead of gl_LOCK.
77770
77771 2006-08-23  Bruno Haible  <bruno@clisp.org>
77772
77773         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77774         on OSF/1 to no.
77775         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77776
77777 2006-08-23  Bruno Haible  <bruno@clisp.org>
77778
77779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77780         as unusable.
77781
77782         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77783         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77784         (gl_LOCK): New macro.
77785
77786 2006-08-22  Simon Josefsson  <jas@extundo.com>
77787
77788         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77789         to md5 module.
77790
77791 2006-08-22  Simon Josefsson  <jas@extundo.com>
77792
77793         * MODULES.html.sh: Add "Support for maintaining and release
77794         projects".
77795
77796         * build-aux/gnupload: New file, from coreutils.
77797
77798 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         Avoid the need for AC_LIBSOURCES in m4 macros.
77801         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77802         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77803         * modules/check-version (EXTRA_DIST): Add check-version.h.
77804         * modules/crc (EXTRA_DIST): Add crc.h.
77805         * modules/des (EXTRA_DIST): Add des.h.
77806         * modules/gc (EXTRA_DIST): Add gc.h.
77807         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77808         * modules/getline (EXTRA_DIST): Add getline.h.
77809         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77810         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77811         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77812         * modules/md2 (EXTRA_DIST): Add md2.h.
77813         * modules/md4 (EXTRA_DIST): Add md4.h.
77814         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77815         * modules/read-file (EXTRA_DIST): Add read-file.h.
77816         * modules/readline (EXTRA_DIST): Add readline.h.
77817         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77818         rijndael-api-fst.h.
77819
77820 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * m4/rijndael.m4 (gl_ARCFOUR):
77823         * m4/arctwo.m4 (gl_ARCTWO):
77824         * m4/check-version.m4 (gl_CHECK_VERSION):
77825         * m4/crc.m4 (gl_CRC):
77826         * m4/des.m4 (gl_DES):
77827         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77828         * m4/gc.m4 (gl_GC):
77829         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77830         * m4/getline.m4 (gl_FUNC_GETLINE):
77831         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77832         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77833         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77834         * m4/md2.m4 (gl_MD2):
77835         * m4/md4.m4 (gl_MD4):
77836         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77837         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77838         * m4/readline.m4 (gl_FUNC_READLINE):
77839         * m4/rijndael.m4 (gl_RIJNDAEL):
77840         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77841         to get the necessary .h files and whatnot.
77842
77843 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77846         gnulib rather than the other way around.
77847         * config/srclistvars.sh (COREUTILS): Remove.
77848
77849 2006-08-22  Jim Meyering  <jim@meyering.net>
77850
77851         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77852
77853         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77854
77855 2006-08-22  Eric Blake  <ebb9@byu.net>
77856
77857         * modules/regexprops-generic: New file.
77858         * MODULES.html.sh (Support for building documentation): List it.
77859
77860 2006-08-22  Eric Blake  <ebb9@byu.net>
77861
77862         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77863         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77864         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77865         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77866
77867 2006-08-22  Bruno Haible  <bruno@clisp.org>
77868
77869         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77870         and lib_LTLIBRARIES like the other lib_* variables.
77871
77872 2006-08-22  Bruno Haible  <bruno@clisp.org>
77873
77874         * build-aux/x-to-1.in: New file, from GNU gettext.
77875
77876 2006-08-22  Bruno Haible  <bruno@clisp.org>
77877
77878         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77879         <utmpx.h> exists.
77880
77881 2006-08-22  Bruno Haible  <bruno@clisp.org>
77882
77883         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77884         <utmpx.h> exists.
77885
77886 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         BeOS portability.
77889         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77890         exist.
77891         Problem reported by Bruno Haible.
77892
77893 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77894
77895         Avoid the need for AC_LIBSOURCES in m4 macros.
77896         * modules/acl (EXTRA_DIST): Add acl.h.
77897         * modules/argmatch (Files): Add m4/argmatch.m4.
77898         (configure.ac): Add gl_ARGMATCH.
77899         (EXTRA_DIST): Renamed from lib_SOURCES, for
77900         consistency with the other modules.  Remove argmatch.c.
77901         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77902         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77903         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77904         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77905         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77906         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77907         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77908         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77909         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77910         * modules/closeout (EXTRA_DIST): Add closeout.h.
77911         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77912         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77913         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77914         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77915         dirname.h; remove basename.c and stripslash.c.
77916         * modules/exclude (EXTRA_DIST): Add exclude.h.
77917         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77918         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77919         * modules/file-type (EXTRA_DIST): Add file-type.h.
77920         * modules/filemode (EXTRA_DIST): Add filemode.h.
77921         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77922         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77923         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77924         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77925         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77926         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77927         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77928         * modules/getdate (EXTRA_DIST): Add getdate.c.
77929         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77930         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77931         * modules/getpass (EXTRA_DIST): Add getpass.h.
77932         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77933         * modules/group-member (EXTRA_DIST): Add group-member.h.
77934         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77935         * modules/hash (EXTRA_DIST): Add hash.h.
77936         * modules/human (EXTRA_DIST): Add human.h.
77937         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77938         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77939         * modules/lchown (EXTRA_DIST): Add lchown.h.
77940         * modules/long-options (EXTRA_DIST): Add long-options.h.
77941         * modules/lstat (EXTRA_DIST): Add lstat.h.
77942         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77943         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77944         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77945         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77946         * modules/memxor (EXTRA_DIST): Add memxor.h.
77947         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77948         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77949         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77950         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77951         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77952         * modules/physmem (EXTRA_DIST): Add physmem.h.
77953         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77954         * modules/posixver (EXTRA_DIST): Add posixver.h.
77955         * modules/quote (EXTRA_DIST): Add quote.h.
77956         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77957         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77958         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77959         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77960         regex_internal.h regexec.c.
77961         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77962         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77963         * modules/same (EXTRA_DIST): Add same.h.
77964         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77965         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77966         * modules/savedir (EXTRA_DIST): Add savedir.h.
77967         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77968         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77969         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77970         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77971         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77972         * modules/strdup (EXTRA_DIST): Add strdup.h.
77973         * modules/strftime (EXTRA_DIST): Add strftime.h.
77974         * modules/strndup (EXTRA_DIST): Add strndup.h.
77975         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77976         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77977         * modules/time_r (EXTRA_DIST): Add time_r.h.
77978         * modules/timespec (EXTRA_DIST): Add timespec.h.
77979         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77980         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77981         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77982         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77983         * modules/userspec (EXTRA_DIST): Add userspec.h.
77984         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77985         * modules/utimens (EXTRA_DIST): Add utimens.h.
77986         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77987         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77988         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77989         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77990         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77991         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77992         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77993         * modules/yesno (EXTRA_DIST): Add yesno.h.
77994
77995 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77998
77999         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78000         * m4/dev-ino.m4, same-inode.m4: Remove.
78001
78002         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78003         * m4/acl.m4 (AC_FUNC_ACL):
78004         * m4/backupfile.m4 (gl_BACKUPFILE):
78005         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78006         * m4/canon-host.m4 (gl_CANON_HOST):
78007         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78008         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78009         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78010         * m4/cloexec.m4 (gl_CLOEXEC):
78011         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78012         * m4/closeout.m4 (gl_CLOSEOUT):
78013         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78014         * m4/dirname.m4 (gl_DIRNAME):
78015         * m4/exclude.m4 (gl_EXCLUDE):
78016         * m4/exitfail.m4 (gl_EXITFAIL):
78017         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78018         * m4/file-type.m4 (gl_FILE_TYPE):
78019         * m4/filemode.m4 (gl_FILEMODE):
78020         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78021         * m4/fpending.m4 (gl_FUNC_FPENDING):
78022         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78023         * m4/fts.m4 (gl_FUNC_FTS):
78024         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78025         * m4/getdate.m4 (gl_GETDATE):
78026         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78027         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78028         * m4/getpass.m4 (gl_FUNC_GETPASS):
78029         * m4/gettime.m4 (gl_GETTIME):
78030         * m4/getugroups.m4 (gl_GETUGROUPS):
78031         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78032         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78033         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78034         * m4/hash.m4 (gl_HASH):
78035         * m4/idcache.m4 (gl_IDCACHE):
78036         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78037         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78038         * m4/long-options.m4 (gl_LONG_OPTIONS):
78039         * m4/lstat.m4 (gl_FUNC_LSTAT):
78040         * m4/md5.m4 (gl_MD5):
78041         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78042         * m4/memcoll.m4 (gl_MEMCOLL):
78043         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78044         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78045         * m4/memxor.m4 (gl_MEMXOR):
78046         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78047         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78048         * m4/modechange.m4 (gl_MODECHANGE):
78049         * m4/mountlist.m4 (gl_MOUNTLIST):
78050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78051         * m4/openat.m4 (gl_FUNC_OPENAT):
78052         * m4/pathmax.m4 (gl_PATHMAX):
78053         * m4/physmem.m4 (gl_PHYSMEM):
78054         * m4/posixtm.m4 (gl_POSIXTM):
78055         * m4/posixver.m4 (gl_POSIXVER):
78056         * m4/quote.m4 (gl_QUOTE):
78057         * m4/quotearg.m4 (gl_QUOTEARG):
78058         * m4/readtokens.m4 (gl_READTOKENS):
78059         * m4/readutmp.m4 (gl_READUTMP):
78060         * m4/regex.m4 (gl_REGEX):
78061         * m4/safe-read.m4 (gl_SAFE_READ):
78062         * m4/safe-write.m4 (gl_SAFE_WRITE):
78063         * m4/same.m4 (gl_SAME):
78064         * m4/save-cwd.m4 (gl_SAVE_CWD):
78065         * m4/savedir.m4 (gl_SAVEDIR):
78066         * m4/settime.m4 (gl_SETTIME):
78067         * m4/sha1.m4 (gl_SHA1):
78068         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78069         * m4/stat-macros.m4 (gl_STAT_MACROS):
78070         * m4/stat-time.m4 (gl_STAT_TIME):
78071         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78072         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78073         * m4/strdup.m4 (gl_FUNC_STRDUP):
78074         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78075         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78076         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78077         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78078         * m4/time_r.m4 (gl_TIME_R):
78079         * m4/timespec.m4 (gl_TIMESPEC):
78080         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78081         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78082         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78083         * m4/userspec.m4 (gl_USERSPEC):
78084         * m4/utimecmp.m4 (gl_UTIMECMP):
78085         * m4/utimens.m4 (gl_UTIMENS):
78086         * m4/xalloc.m4 (gl_XALLOC):
78087         * m4/xgetcwd.m4 (gl_XGETCWD):
78088         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78089         * m4/xreadlink.m4 (gl_XREADLINK):
78090         * m4/xstrtod.m4 (gl_XSTRTOD):
78091         * m4/yesno.m4 (gl_YESNO):
78092         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78093         to get the necessary .h files and whatnot.
78094
78095 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78096             Bruno Haible  <bruno@clisp.org>
78097
78098         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78099         /bin/sh understanding of '!' conditional negation.
78100
78101 2006-08-21  Jim Meyering  <jim@meyering.net>
78102
78103         * modules/openat (Depends-on): Really alphabetize.
78104
78105         * modules/acl (Depends-on): Add error and quote.
78106
78107         * check-module (find_included_lib_files): Add at-func.c to the
78108         ok-to-include-more-than-once white list.
78109
78110         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78111
78112 2006-08-21  Bruno Haible  <bruno@clisp.org>
78113
78114         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78115         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78116         Reported by Martin Lambers <marlam@marlam.de>.
78117
78118 2006-08-21  Bruno Haible  <bruno@clisp.org>
78119
78120         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78121         specify an installation location, don't emit a noinst_LIBRARIES or
78122         noinst_LTLIBRARIES assignment.
78123
78124 2006-08-21  Bruno Haible  <bruno@clisp.org>
78125
78126         BeOS portability.
78127         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78128         BeOS has mbrtowc() but no <wctype.h>.
78129
78130 2006-08-21  Bruno Haible  <bruno@clisp.org>
78131
78132         BeOS portability.
78133         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78134         exist.
78135
78136 2006-08-21  Bruno Haible  <bruno@clisp.org>
78137
78138         BeOS portability.
78139         * lib/mbchar.h: Include <wctype.h> only if it exists.
78140
78141 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78142
78143         Remove files that are no longer needed by their respective modules.
78144         * m4/obstack.m4: Remove.
78145         * m4/strerror_r.m4: Remove.
78146         * m4/uint32_t.m4: Remove.
78147         * m4/uintptr_t.m4: Remove.
78148         * m4/ullong_max.m4: Remove.
78149         * m4/xstrtoimax.m4: Remove.
78150         * m4/xstrtoumax.m4: Remove.
78151
78152         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78153         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78154         dependencies now capture this.
78155
78156         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78157         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78158         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78159         * m4/human.m4 (gl_HUMAN): Likewise.
78160         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78161         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78162
78163         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78164
78165         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78166         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78167         stdint.
78168         * m4/human.m4 (gl_HUMAN): Likewise.
78169         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78170         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78171         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78172         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78173         * m4/xstrtol (gl_XSTRTOL): Likewise.
78174
78175         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78176         AC_TYPE_LONG_LONG_INT.
78177         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78178         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78179         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78180         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78181
78182         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78183         on stdbool.
78184
78185         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78186         (gl_PREREQ_XSTRTOUL): Remove.
78187
78188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78189
78190         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78191         mode.
78192
78193 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78194
78195         Add and change modules to make it easier for coreutils to use
78196         gnulib-tool.
78197         * modules/backupfile (Files): Remove m4/d-ino.m4.
78198         (Depends-on): Add d-ino.
78199         * modules/cycle-check (Depends-on): Add stdint.
78200         (lib_SOURCES): Add cycle-check.h.
78201         * modules/d-ino: New module.
78202         * modules/d-type: New module.
78203         * modules/error (Files): Remove m4/strerror_r.m4.
78204         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78205         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78206         m4/inttypes_h.m4, m4/uintmax_t.m4.
78207         (Depends-on): Add stdint.
78208         (lib_SOURCES): Add fsusage.h.
78209         * modules/getcwd (Files): Remove d-ino.m4.
78210         (Depends-on): Add d-ino.
78211         * modules/getndelim2 (Depends-on): Add stdint.
78212         * modules/glob (Files): Remove m4/d-type.m4.
78213         (Depends-on): Add d-type.
78214         * modules/host-os: New module.
78215         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78216         m4/inttypes_h.m4, m4/uintmax_t.m4.
78217         * Depends-on: Add stdint.
78218         (lib_SOURCES): Add human.h.
78219         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78220         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78221         m4/uintmax_t.m4, m4/ulonglong.m4.
78222         (Depends-on): Add stdint.
78223         (EXTRA_DIST): Add inttostr.h.
78224         * modules/lchmod: New module.
78225         * modules/link-follow: New module.
78226         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78227         (Depends-on): Add lchmod.
78228         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78229         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78230         (Depends-on): Add stdint.
78231         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78232         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78233         (Depends-on): Add stdint.
78234         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78235         * modules/perl: New module.
78236         * modules/regex (Depends-on): Add stdint.
78237         * modules/rmdir-errno: New module.
78238         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78239         m4/intmax_t.m4.
78240         (Depends-on): Add stdint.
78241         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78242         m4/uintmax_t.m4.
78243         (Depends-on): Add stdint.
78244         * modules/unlink-busy: New module.
78245         * modules/utimecmp (Depends-on): Add stdint.
78246         * modules/uptime: New module.
78247         * modules/winsz-ioctl: New module.
78248         * modules/winsz-termios: New module.
78249         * modules/xnanosleep (Depends-on): Add nanosleep.
78250         * modules/ullong_max: Remove.
78251         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78252         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78253         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78254         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78255         (Depends-on): Add inttypes.
78256         (lib_SOURCES): Add xstrtol.h.
78257         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78258         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78259         * MODULES.html.sh: Move 'assert' into the assert section.
78260         Move 'dummy' into the linking section.
78261         Remove ullong_max.
78262         Add section for compatibility checks for POSIX:2001 functions,
78263         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78264         winsz-ioctl, and winsz-termios into it.
78265         Add lchmod.
78266         Add top-level Misc section and put host-os, perl, and uptime
78267         into it.
78268
78269 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78272         now assume the stdint module.  Do not include inttypes.h.
78273         * lib/fsusage.h: Likewise.
78274         * lib/getndelim2.c: Likewise.
78275         * lib/human.h: Likewise.
78276         * lib/inttostr.h: Likewise.
78277         * lib/obstack.c: Likewise.
78278         * lib/regex_internal.h: Likewise.
78279         * lib/tempname.c: Likewise.
78280         * lib/utimecmp.c: Likewise.
78281         * lib/xstrtol.h: Likewise.
78282
78283         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78284
78285         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78286         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78287         * lib/xtime.h: Likewise.
78288
78289 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         * modules/openat (Files): Add lib/fchmodat.c.
78292         Fixes problem reported by Jay Youngman.
78293
78294 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78297         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78298
78299 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78300             Bruno Haible  <bruno@clisp.org>
78301
78302         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78303         and is a script that invokes bison. Tighten the code. Add comments.
78304
78305 2006-08-18  Jim Meyering  <jim@meyering.net>
78306
78307         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78308         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78309         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78310         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78311
78312 2006-08-18  Bruno Haible  <bruno@clisp.org>
78313
78314         * modules/bison-i18n: New file.
78315         * MODULES.html.sh (Internationalization functions): Add it.
78316
78317 2006-08-18  Bruno Haible  <bruno@clisp.org>
78318
78319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78320         sys/statvfs.h. When getmntinfo was found, check its declaration and
78321         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78322
78323 2006-08-18  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/bison-i18n.m4: New file, from bison.
78326
78327 2006-08-18  Bruno Haible  <bruno@clisp.org>
78328
78329         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78330         (ME_DUMMY): Treat "kernfs" as a dummy.
78331         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78332
78333 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         Update from coreutils.
78336
78337         2006-08-15  Jim Meyering  <jim@meyering.net>
78338
78339         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78340
78341         2006-01-17  Jim Meyering  <jim@meyering.net>
78342
78343         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78344
78345         2006-01-11  Jim Meyering  <jim@meyering.net>
78346
78347         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78348         Check for the lchmod function.
78349
78350 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         Update from coreutils.
78353
78354         * lib/__fpending.h: Add copyright notice.
78355         * lib/fprintftime.h: Likewise.
78356         * lib/savedir.c: Use (C) in copyright notice.
78357         * lib/savedir.h: Likewise.
78358
78359         2006-08-15  Jim Meyering  <jim@meyering.net>
78360
78361         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78362         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78363         in support of the EXPECTED_ERRNO macro.
78364         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78365         definitions.  Instead, define the appropriate symbols and include
78366         "at-func.c".
78367         * lib/mkdirat.c (mkdirat): Likewise.
78368         * lib/fchmodat.c (fchmodat): Likewise.
78369         (ENOSYS): Remove definition.
78370         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78371         it.  Don't include "unistd--.h" -- it wasn't ever used.
78372
78373         2006-01-17  Jim Meyering  <jim@meyering.net>
78374
78375         Rewrite fts.c not to change the current working directory,
78376         by using openat, fstatat, fdopendir, etc..
78377
78378         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78379         (HAVE_OPENAT_SUPPORT): Define.
78380         [_LIBC] (fchdir): Don't undef or define; no longer used.
78381         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78382         Now, this `function' always succeeds, and consumes its file descriptor
78383         parameter -- so callers must not close such FDs.  Update callers.
78384         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78385         (diropen): Add parameter, SP.  Adjust all callers.
78386         Implement using diropen_fd, rather than open.
78387         (fts_open): Initialize new member, fts_cwd_fd.
78388         Remove fts_rft-setting code.
78389         (fts_close): Close fts_cwd_fd, if necessary.
78390         (__opendir2): Define in terms of opendir or opendirat,
78391         depending on whether the FST_NOCHDIR flag is set.
78392         (fts_build): Since fts_safe_changedir consumes its FD, and since
78393         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78394         and close the dup'd file descriptor upon failure.
78395         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78396         (fts_safe_changedir): Tweak semantics to reflect that this function
78397         now calls cwd_advance_fd and hence consumes its FD argument.
78398         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78399         [struct FTS] (fts_rft): Remove now-unused member.
78400         [struct FTS] (fts_cycle.state): Improve comment.
78401
78402         * lib/openat.c (openat_needs_fchdir): New function.
78403         * lib/openat.h (openat_needs_fchdir): Declare it.
78404
78405 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78408         Problem and fix reported by Pádraig Brady in
78409         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78410
78411 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78414
78415 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78416
78417         * lib/memcoll.c (memcoll): Optimize for the common case where the
78418         arguments are bytewise equal.
78419
78420 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         * doc/regexprops-generic.texi: Add a copyright notice.
78423
78424 2006-08-15  Bruno Haible  <bruno@clisp.org>
78425
78426         * modules/tmpdir (License): Change to LGPL.
78427
78428 2006-08-15  Bruno Haible  <bruno@clisp.org>
78429
78430         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78431         module.
78432
78433 2006-08-14  Simon Josefsson  <jas@extundo.com>
78434
78435         * config/srclist.txt: Add gnupload.
78436
78437 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78438
78439         Change copyright notice from LGPL 2 to GPL 2, since that's the
78440         standard form used in the gnulib repository.
78441         * tests/test-lock.c: Likewise.
78442         * tests/test-stdint.c: Likewise.
78443         * tests/test-tls.c: Likewise.
78444
78445         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78446         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78447         Add copyright notice.
78448
78449         * check-module: Add copyright notice.  Output a copyright
78450         notice if "--version" is specified.
78451         * modules/COPYING: New file.
78452         * tests/test-getaddrinfo.c: Add copyright notice.
78453         * tests/test-verify.c: Likewise.
78454
78455 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         Change copyright notice from LGPL 2 to GPL 2, since that's the
78458         standard form used in the gnulib repository.
78459         * lib/lock.c: LGPL -> GPL.
78460         * lib/lock.h: Likewise.
78461         * lib/strnlen1.c: Likewise.
78462         * lib/strnlen1.h: Likewise.
78463         * lib/tls.c: Likewise.
78464         * lib/tls.h: Likewise.
78465         * lib/tmpdir.c: Likewise.
78466
78467         * lib/TODO: Remove; this belongs only in coreutils.
78468
78469 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         Add copyright notices to long-enough files that lack them, since
78472         otherwise the files aren't clearly free.  Use the same notice that
78473         getdate.texi already uses.
78474         * doc/alloca-opt.texi: Add copyright notice.
78475         * doc/alloca.texi: Likewise.
78476         * doc/ctime.texi: Likewise.
78477         * doc/functions.texi: Likewise.
78478         * doc/gcd.texi: Likewise.
78479         * doc/gnulib-tool.texi: Likewise.
78480         * doc/inet_ntoa.texi: Likewise.
78481         * doc/visibility.texi: Likewise.
78482
78483         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78484         * doc/quote.texi: Add copyright notice.
78485
78486         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78487         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78488         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78489         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78490         is now obsolete, and give a pointer to the Sun list.
78491         Add copyright notice.
78492
78493 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * config/srclistvars.sh: Add copyright notice.
78496
78497 2006-08-14  Eric Blake  <ebb9@byu.net>
78498
78499         Import the following change from libc:
78500
78501         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78502
78503         Upstream bug 2997.
78504         * lib/misc/error.c: Add space between program name and message if file
78505         name is missing.
78506
78507 2006-08-12  Karl Berry  <karl@gnu.org>
78508
78509         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78510         remove, these originate in gnulib now.
78511
78512 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78513
78514         * doc/Makefile (standards.info standards.html standards.dvi):
78515         Also depend on make-stds.texi.
78516
78517 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78520         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78521
78522         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78523         in wchar_t.  Problem reported by Eric Blake.
78524
78525         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78526         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78527         Also, help the compiler to keep LEN in a register.
78528
78529 2006-08-11  Eric Blake  <ebb9@byu.net>
78530
78531         * users.txt: Sort.  Add tar.
78532
78533 2006-08-11  Bruno Haible  <bruno@clisp.org>
78534
78535         * users.txt: New file.
78536
78537 2006-08-11  Bruno Haible  <bruno@clisp.org>
78538
78539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78540         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78541
78542 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * modules/snprintf (Depends-on): Remove minmax.
78545         (Maintainer): Add self and Bruno.
78546
78547 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78550         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78551         (EOVERFLOW): Define if the system does not.
78552         Do not include "minmax.h"; it wasn't used.
78553         (snprintf): Don't assume size_t promotes to an unsigned type.
78554         Fix bug when generated string was too long for the buffer: the
78555         buffer's contents are supposed to be the initial prefix of the
78556         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78557         exceeds INT_MAX; do the check ourselves.
78558
78559         Import the following changes from libc:
78560
78561         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78562
78563         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78564         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78565         set wc to the byte which couldn't be converted.
78566         (re_string_reconstruct): Don't clear valid_raw_len before calling
78567         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78568         tip_context using re_string_context_at.
78569
78570         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78571
78572         * lib/posix/regex.h: g++ still cannot handled [restrict].
78573
78574         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78575
78576         * lib/posix/regex.h: Remove special handling for VMS.
78577
78578 2006-08-10  Jim Meyering  <jim@meyering.net>
78579
78580         * modules/same-inode: New module.
78581         * modules/dev-ino: New module.
78582         * modules/cycle-check: Depend on these modules, rather than simply
78583         including their .h files.
78584         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78585         required via m4/cycle-check.m4.
78586         * modules/same: Depend on new same-inode module, rather than
78587         including same-inode.h.
78588         * modules/chdir-safer: New file.
78589
78590         * modules/chown (Depends-on): Add stat-macros.
78591
78592 2006-08-10  Jim Meyering  <jim@meyering.net>
78593
78594         * m4/cycle-check.m4: New file.
78595         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78596         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78597
78598 2006-08-10  Eric Blake  <ebb9@byu.net>
78599
78600         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78601         in from original proposal.
78602
78603 2006-08-10  Eric Blake  <ebb9@byu.net>
78604         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78605
78606         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78607         namespace.
78608
78609 2006-08-10  Bruno Haible  <bruno@clisp.org>
78610
78611         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78612         as well.
78613
78614 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         Sync from coreutils.
78617
78618         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78619
78620         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78621         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78622
78623 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78624
78625         * modules/restrict: Remove; no longer needed now that we assume
78626         Autoconf 2.59 or later.
78627         * MODULES.html.sh: Remove 'restrict'.
78628         * modules/argp (Depends-on): Remove 'restrict'.
78629         * modules/base64 (Depends-on): Likewise.
78630         * modules/gc (Depends-on): Likewise.
78631         * modules/getaddrinfo (Depends-on): Likewise.
78632         * modules/glob (Depends-on): Likewise.
78633         * modules/inet_ntop (Depends-on): Likewise.
78634         * modules/inet_pton (Depends-on): Likewise.
78635         * modules/memxor (Depends-on): Likewise.
78636         * modules/regex (Depends-on): Likewise.
78637         * modules/strtok_r (Depends-on): Likewise.
78638         * modules/time_r (Depends-on): Likewise.
78639
78640 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78643         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78644         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78645         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78646         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78647         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78648         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78649         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78650
78651         Merge from coreutils.
78652         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78653         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78655         * m4/time_r.m4 (gl_TIME_R): Likewise.
78656
78657 2006-08-09  Karl Berry  <karl@gnu.org>
78658
78659         * config/srclist.txt: no more gettext-tools, per Bruno.
78660
78661 2006-08-08  Eric Blake  <ebb9@byu.net>
78662
78663         * modules/verror: New module.
78664         * MODULES.html.sh: Document it.
78665
78666 2006-08-08  Eric Blake  <ebb9@byu.net>
78667
78668         * lib/verror.h, lib/verror.c: New files.
78669
78670 2006-08-08  Eric Blake  <ebb9@byu.net>
78671
78672         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78673         verror_at_line output complies with GNU Coding Standards even when
78674         file is NULL.
78675
78676 2006-08-07  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78679         versions of AIX.
78680         Reported by Ralf Wildenhues.
78681
78682 2006-08-07  Bruno Haible  <bruno@clisp.org>
78683
78684         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78685         in an AC_DEFUN. Needed so that the autoconf snippets can use
78686         AC_REQUIRE.
78687
78688 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78689
78690         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78691         Initialize pkgdata_DATA.
78692         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78693         overriding it.
78694
78695 2006-08-06  Eric Blake  <ebb9@byu.net>
78696
78697         * lib/error.h: Fold in some upstream changes from glibc.
78698         * lib/error.c: Likewise.
78699
78700 2006-08-04  Bruno Haible  <bruno@clisp.org>
78701
78702         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78703         Make the mostlyclean-local rule depend on mostlyclean-generic.
78704         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78705
78706 2006-07-31  Bruno Haible  <bruno@clisp.org>
78707
78708         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78709         <stdlib.h>, <string.h>.
78710
78711 2006-07-30  Bruno Haible  <bruno@clisp.org>
78712
78713         * modules/readlink (License): Change to LGPL.
78714
78715 2006-07-30  Bruno Haible  <bruno@clisp.org>
78716
78717         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78718         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78719         set PKGDATADIR to point to it.
78720
78721 2006-07-30  Bruno Haible  <bruno@clisp.org>
78722
78723         * modules/csharpexec (configure.ac): Comment out macro invocation.
78724         * modules/javaexec (configure.ac): Likewise.
78725         * modules/javacomp-script (configure.ac): Likewise.
78726
78727         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78728
78729 2006-07-30  Bruno Haible  <bruno@clisp.org>
78730
78731         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78732         linked-list.
78733
78734 2006-07-30  Bruno Haible  <bruno@clisp.org>
78735
78736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78737
78738 2006-07-30  Bruno Haible  <bruno@clisp.org>
78739
78740         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78741         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78742         get removed.
78743
78744 2006-07-29  Bruno Haible  <bruno@clisp.org>
78745
78746         Make it possible for gnulib-tool to work with locally modified or
78747         augmented gnulib repositories.
78748         * gnulib-tool (func_usage): Document --local-dir option.
78749         (local_gnulib_dir): New variable.
78750         Handle --local-dir option.
78751         (func_lookup_file): New function.
78752         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78753         (func_get_description, func_get_filelist, func_get_description,
78754         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78755         func_get_automake_snippet, func_get_include_directive,
78756         func_get_license, func_get_maintainer): Use func_lookup_file.
78757         (func_import, func_create_testdir): Use func_lookup_file.
78758
78759 2006-07-29  Bruno Haible  <bruno@clisp.org>
78760
78761         * modules/setenv (Depends-on): Add unistd.
78762
78763 2006-07-29  Bruno Haible  <bruno@clisp.org>
78764
78765         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78766
78767 2006-07-29  Bruno Haible  <bruno@clisp.org>
78768
78769         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78770
78771 2006-07-29  Bruno Haible  <bruno@clisp.org>
78772
78773         * gnulib-tool (import, update): If there is no Makefile.am, look at
78774         aclocal.m4, instead of bailing out.
78775
78776 2006-07-29  Bruno Haible  <bruno@clisp.org>
78777
78778         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78779         Categorize the options by when they are useful.
78780
78781 2006-07-29  Bruno Haible  <bruno@clisp.org>
78782
78783         * gnulib-tool (func_usage): Document option --no-libtool.
78784         Handle option --no-libtool.
78785         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78786         for changed semantics of $libtool variable.
78787         (func_import): Likewise. If libtool is not used, show this through
78788         an option --no-libtool.
78789         (func_create_testdir): Update.
78790
78791 2006-07-29  Bruno Haible  <bruno@clisp.org>
78792
78793         * gnulib-tool (func_import): Extend error message about missing
78794         --doc-base.
78795
78796 2006-07-29  Bruno Haible  <bruno@clisp.org>
78797
78798         * gnulib-tool (func_import): Don't create the $docbase directory if
78799         there is no file to store there.
78800
78801 2006-07-29  Bruno Haible  <bruno@clisp.org>
78802
78803         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78804         relevant, look for configure.ac there, not in the current directory.
78805         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78806
78807 2006-07-29  Bruno Haible  <bruno@clisp.org>
78808
78809         * gnulib-tool (SORT): New variable.
78810         (func_usage): Undocument --assume-autoconf option.
78811         Remove --assume-autoconf option handling.
78812         (autoconf_minversion): Determine from the contents of configure.ac.
78813         (func_import): Remove autoconf_minversion handling.
78814         Suggested by Eric Blake.
78815
78816 2006-07-29  Bruno Haible  <bruno@clisp.org>
78817
78818         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78819
78820 2006-07-29  Bruno Haible  <bruno@clisp.org>
78821
78822         * config/srclist.txt (*setenv.[ch]): Remove rules.
78823
78824 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78825
78826         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78827
78828 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78829
78830         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78831         arpa/inet.h.
78832
78833 2006-07-28  Simon Josefsson  <jas@extundo.com>
78834
78835         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78836         * modules/inet_pton (Depends-on): Likewise.
78837
78838 2006-07-28  Simon Josefsson  <jas@extundo.com>
78839
78840         * m4/netinet_in_h.m4: New file.
78841
78842 2006-07-28  Simon Josefsson  <jas@extundo.com>
78843
78844         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78845         #include's.
78846
78847 2006-07-28  Simon Josefsson  <jas@extundo.com>
78848
78849         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78850         #include's.
78851
78852 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78855         setgid on directories only if they set these bits.
78856         * lib/modechange.h: Remove obsolete comment about masks.
78857
78858 2006-07-28  Eric Blake  <ebb9@byu.net>
78859
78860         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78861         macro expansion.
78862
78863 2006-07-28  Bruno Haible  <bruno@clisp.org>
78864
78865         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78866
78867 2006-07-28  Bruno Haible  <bruno@clisp.org>
78868
78869         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78870
78871 2006-07-28  Bruno Haible  <bruno@clisp.org>
78872
78873         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78874         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78875         Define fallbacks.
78876         Avoids link error on FreeBSD 4.x.
78877         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78878
78879         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78880         encoding.
78881         * lib/mbswidth.c (iswcntrl): Likewise.
78882
78883 2006-07-27  Bruno Haible  <bruno@clisp.org>
78884
78885         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78886         test.
78887
78888 2006-07-27  Bruno Haible  <bruno@clisp.org>
78889
78890         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78891         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78892         defined.
78893
78894 2006-07-26  Eric Blake  <ebb9@byu.net>
78895
78896         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78897
78898 2006-07-26  Eric Blake  <ebb9@byu.net>
78899
78900         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78901         like mingw that lack mkstemp.
78902         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78903         avoid compilation warning on mingw.
78904
78905 2006-07-26  Bruno Haible  <bruno@clisp.org>
78906
78907         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78908         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78909         INT_FAST*_MIN, INTPTR_MIN.
78910
78911 2006-07-25  Bruno Haible  <bruno@clisp.org>
78912
78913         * modules/version-etc (Depends-on): Add stdarg.
78914
78915 2006-07-25  Bruno Haible  <bruno@clisp.org>
78916
78917         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78918         complex commands.
78919
78920 2006-07-25  Bruno Haible  <bruno@clisp.org>
78921
78922         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78923         defined in <stdarg.h> or config.h.
78924
78925 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78928         (gl_STDIO_SAFER): Remove.
78929
78930 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * MODULES.html.sh (File stream based Input/Output):
78933         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78934         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78935         * modules/fopen-safer, modules/tmpfile-safer: New files.
78936         * modules/stdio-safer: Remove.
78937
78938 2006-07-24  Bruno Haible  <bruno@clisp.org>
78939
78940         * modules/tmpdir: New file.
78941         * MODULES.html.sh (File system functions): Add it.
78942
78943 2006-07-24  Bruno Haible  <bruno@clisp.org>
78944
78945         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78946         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78947
78948 2006-07-24  Bruno Haible  <bruno@clisp.org>
78949
78950         * modules/clean-temp: New file.
78951
78952 2006-07-24  Bruno Haible  <bruno@clisp.org>
78953
78954         * m4/tmpdir.m4: New file, from GNU gettext.
78955
78956 2006-07-24  Bruno Haible  <bruno@clisp.org>
78957
78958         * lib/tmpdir.h: New file, from GNU gettext.
78959         * lib/tmpdir.c: New file, from GNU gettext.
78960
78961 2006-07-24  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/clean-temp.h: New file, from GNU gettext.
78964         * lib/clean-temp.c: New file, from GNU gettext.
78965
78966 2006-07-23  Eric Blake  <ebb9@byu.net>
78967
78968         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78969         (Depends-on): Add binary-io.
78970
78971 2006-07-23  Eric Blake  <ebb9@byu.net>
78972
78973         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78974
78975 2006-07-23  Eric Blake  <ebb9@byu.net>
78976
78977         * lib/tmpfile-safer.c: New file.
78978         * lib/stdio-safer.h (fopen_safer): Add prototype.
78979         * lib/stdio--.h (tmpfile): Make safer.
78980
78981 2006-07-23  Bruno Haible  <bruno@clisp.org>
78982
78983         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78984         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78985         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78986         gl_linked_remove_at): Use it.
78987
78988 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78989         and Simon Josefsson <jas@extundo.com>
78990
78991         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78992
78993         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78994
78995 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * modules/close-stream: New file.
78998         * modules/closeout (Description): Make it clear that it exits
78999         with a diagnostic on error.
79000         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79001         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79002
79003 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79004
79005         * m4/close-stream.m4: New file.
79006
79007 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * lib/close-stream.c, lib/close-stream.h: New files.
79010
79011 2006-07-22  Bruno Haible  <bruno@clisp.org>
79012
79013         Merge from GNU gettext 0.15.
79014
79015         2006-05-01  Bruno Haible  <bruno@clisp.org>
79016
79017                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79018
79019         2006-07-22  Bruno Haible  <bruno@clisp.org>
79020
79021                 * modules/javaversion: New file.
79022                 * MODULES.html.sh (Java): Add javaversion.
79023
79024         2006-03-12  Bruno Haible  <bruno@clisp.org>
79025
79026                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79027
79028         2005-12-04  Bruno Haible  <bruno@clisp.org>
79029
79030                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79031                 (untested).
79032
79033         2006-06-21  Bruno Haible  <bruno@clisp.org>
79034
79035                 Avoid warnings from recent versions of mcs.
79036                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79037                 -o, -L, -r any more. Use options documented since mcs-1.0
79038                 instead. Similarly for -g.
79039
79040         2005-12-04  Bruno Haible  <bruno@clisp.org>
79041
79042                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79043                 .resources, not .resource.
79044
79045         2005-07-09  Bruno Haible  <bruno@clisp.org>
79046
79047                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79048                 add a .dll suffix.
79049                 Reported by Mark Junker <mjscod@gmx.de>.
79050
79051         2006-07-22  Bruno Haible  <bruno@clisp.org>
79052
79053                 * modules/gettext: Upgrade to gettext-0.15.
79054                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79055                 m4/visibility.m4.
79056                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79057
79058 2006-07-22  Bruno Haible  <bruno@clisp.org>
79059
79060         Merge from GNU gettext 0.15.
79061
79062         2006-03-25  Bruno Haible  <bruno@clisp.org>
79063
79064                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79065
79066         2006-07-21  Bruno Haible  <bruno@clisp.org>
79067
79068                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79069                 "1.1".
79070
79071         2006-05-09  Bruno Haible  <bruno@clisp.org>
79072
79073                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79074                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79075                 for the conftestver execution.
79076
79077         2006-05-01  Bruno Haible  <bruno@clisp.org>
79078
79079                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79080                 optional target-version argument. Verify that the compiler
79081                 groks source of the specified source-version, or add -source
79082                 option as necessary. Verify that the compiler produces
79083                 bytecode in the specified target-version, or add -target and
79084                 -source options as necessary. Make the result of the test
79085                 available as variable CONF_JAVAC. Also log error output in
79086                 config.log.
79087
79088         2006-03-11  Bruno Haible  <bruno@clisp.org>
79089
79090                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79091
79092         2006-05-09  Bruno Haible  <bruno@clisp.org>
79093
79094                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79095                 CLASSPATH_SEPARATOR to a semicolon.
79096
79097         2006-03-12  Bruno Haible  <bruno@clisp.org>
79098
79099                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79100                 available as variable CONF_JAVA, for subsequent autoconf
79101                 tests. Also log error output in config.log.
79102
79103         2006-07-19  Bruno Haible  <bruno@clisp.org>
79104
79105                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79106                 that getline works on glibc2 systems. Needed to avoid trouble
79107                 in relocatable.c.
79108                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79109
79110         2005-12-04  Bruno Haible  <bruno@clisp.org>
79111
79112                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79113                 launcher (untested).
79114
79115         2005-12-04  Bruno Haible  <bruno@clisp.org>
79116
79117                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79118
79119         2006-07-22  Bruno Haible  <bruno@clisp.org>
79120
79121                 * gettext.m4: Update from GNU gettext-0.15.
79122                 * nls.m4: Likewise.
79123                 * po.m4: Likewise.
79124                 * inttypes-pri.m4: Likewise.
79125                 * inttypes-h.m4: Renamed from inttypes.m4.
79126                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79127
79128 2006-07-22  Bruno Haible  <bruno@clisp.org>
79129
79130         Merge from GNU gettext 0.15.
79131
79132         2005-07-05  Bruno Haible  <bruno@clisp.org>
79133
79134                 * printf-args.c (printf_fetchargs): Work around broken
79135                 definition of wint_t on mingw.
79136
79137         2005-02-12  Bruno Haible  <bruno@clisp.org>
79138
79139                 * xallocsa.h: Add extern "C" for C++.
79140
79141         2006-05-17  Bruno Haible  <bruno@clisp.org>
79142
79143                 Cygwin portability.
79144                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79145
79146         2006-04-30  Bruno Haible  <bruno@clisp.org>
79147
79148                 * progreloc.c: Include <mach-o/dyld.h> if available.
79149                 (find_executable): Use _NSGetExecutablePath when possible.
79150
79151         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79152
79153                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79154                 function.
79155
79156         2005-12-29  Bruno Haible  <bruno@clisp.org>
79157
79158                 * progreloc.c (set_program_name_and_installdir): Fix
79159                 compilation error.
79160
79161         2005-12-04  Bruno Haible  <bruno@clisp.org>
79162
79163                 Cygwin portability.
79164                 * progreloc.c: Include <windows.h> also on Cygwin.
79165                 (find_executable): Add support for Cygwin.
79166                 (set_program_name_and_installdir): Handle also platforms with
79167                 nonempty EXEEXT.
79168
79169         2006-07-11  Bruno Haible  <bruno@clisp.org>
79170
79171                 * javacomp.c: Fix a comment.
79172                 Reported by Jim Meyering.
79173
79174         2006-04-30  Bruno Haible  <bruno@clisp.org>
79175
79176                 * javacomp.h (compile_java_class): Add source_version,
79177                 target_version arguments.
79178                 * javacomp.c: Rewritten to choose only a compiler that
79179                 respects the specified source_version and target_version.
79180
79181         2006-06-27  Bruno Haible  <bruno@clisp.org>
79182
79183                 Assume correct S_ISDIR macro.
79184                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79185
79186         2006-07-22  Bruno Haible  <bruno@clisp.org>
79187
79188                 * javaversion.h: New file, from GNU gettext.
79189                 * javaversion.c: New file, from GNU gettext.
79190                 * javaversion.java: New file, from GNU gettext.
79191                 * javaversion.class: New file, from GNU gettext.
79192
79193         2006-05-17  Bruno Haible  <bruno@clisp.org>
79194
79195                 Cygwin portability.
79196                 * javaexec.c (execute_java_class): Test for jview program
79197                 also on Cygwin.
79198
79199         2006-04-09  Bruno Haible  <bruno@clisp.org>
79200
79201                 * fatal-signal.c: Don't include string.h.
79202                 (at_fatal_signal): Use a copying loop instead of memcpy.
79203
79204         2005-12-04  Bruno Haible  <bruno@clisp.org>
79205
79206                 * csharpexec.c: Add support for 'clix' launcher (untested).
79207                 (execute_csharp_using_sscli): New function.
79208                 (execute_csharp_program): Call it.
79209
79210         2006-06-21  Bruno Haible  <bruno@clisp.org>
79211
79212                 Avoid warnings from recent versions of mcs.
79213                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79214                 -o, -L, -r any more. Use options documented since mcs-1.0
79215                 instead. Similarly for -g.
79216
79217         2005-07-09  Bruno Haible  <bruno@clisp.org>
79218
79219                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79220                 add a .dll suffix.
79221                 Reported by Mark Junker <mjscod@gmx.de>.
79222
79223         2006-06-17  Bruno Haible  <bruno@clisp.org>
79224
79225                 * config.charset: Update for NetBSD 3.0.
79226
79227         2006-05-17  Bruno Haible  <bruno@clisp.org>
79228
79229                 Cygwin portability.
79230                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79231
79232         2006-05-16  Bruno Haible  <bruno@clisp.org>
79233
79234                 * localcharset.c [CYGWIN]: Include <windows.h>.
79235                 (get_charset_aliases): For Cygwin, return the same CPxxx
79236                 aliases list as under WIN32.
79237                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79238                 the environment variables. Fall back to GetACP().
79239
79240         2006-04-05  Bruno Haible  <bruno@clisp.org>
79241
79242                 * config.charset: Update Juan Manuel Guerrero's address.
79243
79244         2005-02-12  Bruno Haible  <bruno@clisp.org>
79245
79246                 * allocsa.h: Add extern "C" for C++.
79247
79248         2005-02-10  Bruno Haible  <bruno@clisp.org>
79249
79250                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79251                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79252
79253         2006-07-22  Bruno Haible  <bruno@clisp.org>
79254
79255                 * gettext.h: Update to GNU gettext-0.15.
79256
79257 2006-07-22  Bruno Haible  <bruno@clisp.org>
79258
79259         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79260         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79261         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79262
79263 2006-07-21  Eric Blake  <ebb9@byu.net>
79264
79265         * modules/stdlib-safer: New file.
79266         * MODULES.html.sh (File stream based Input/Output): Add
79267         stdlib-safer.
79268
79269 2006-07-21  Eric Blake  <ebb9@byu.net>
79270
79271         * lib/stdlib-safer.h: New file from coreutils, required by
79272         stdlib--.h.
79273
79274 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79277
79278 2006-07-20  Bruno Haible  <bruno@clisp.org>
79279
79280         * gnulib-tool: Recognize new option --assume-autoconf.
79281         (autoconf_minversion): New variable.
79282         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79283
79284 2006-07-20  Bruno Haible  <bruno@clisp.org>
79285
79286         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79287
79288 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79289
79290         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79291         Reindent and repaginate.
79292
79293 2006-07-19  Derek Price  <derek@ximbiot.com>
79294
79295         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79296         Correct grammar.
79297
79298 2006-07-17  Bruno Haible  <bruno@clisp.org>
79299
79300         * modules/list: New file.
79301         * modules/array-list: New file.
79302         * modules/carray-list, modules/carray-list-tests: New files.
79303         * modules/linked-list, modules/linked-list-tests: New files.
79304         * modules/avltree-list, modules/avltree-list-tests: New files.
79305         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79306         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79307         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79308         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79309         * modules/oset: New file.
79310         * modules/array-oset: New file.
79311         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79312         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79313         * tests/test-carray_list.c: New file.
79314         * tests/test-linked_list.c: New file.
79315         * tests/test-avltree_list.c: New file.
79316         * tests/test-rbtree_list.c: New file.
79317         * tests/test-linkedhash_list.c: New file.
79318         * tests/test-avltreehash_list.c: New file.
79319         * tests/test-rbtreehash_list.c: New file.
79320         * tests/test-avltree_oset.c: New file.
79321         * tests/test-rbtree_oset.c: New file.
79322         * MODULES.html.sh (Container data structures): New section.
79323
79324 2006-07-17  Bruno Haible  <bruno@clisp.org>
79325
79326         * m4/gl_list.m4: New file.
79327
79328 2006-07-17  Bruno Haible  <bruno@clisp.org>
79329
79330         * lib/gl_list.h: New file.
79331         * lib/gl_list.c: New file.
79332         * lib/gl_array_list.h: New file.
79333         * lib/gl_array_list.c: New file.
79334         * lib/gl_carray_list.h: New file.
79335         * lib/gl_carray_list.c: New file.
79336         * lib/gl_linked_list.h: New file.
79337         * lib/gl_linked_list.c: New file.
79338         * lib/gl_anylinked_list1.h: New file.
79339         * lib/gl_anylinked_list2.h: New file.
79340         * lib/gl_avltree_list.h: New file.
79341         * lib/gl_avltree_list.c: New file.
79342         * lib/gl_anyavltree_list1.h: New file.
79343         * lib/gl_anyavltree_list2.h: New file.
79344         * lib/gl_rbtree_list.h: New file.
79345         * lib/gl_rbtree_list.c: New file.
79346         * lib/gl_anyrbtree_list1.h: New file.
79347         * lib/gl_anyrbtree_list2.h: New file.
79348         * lib/gl_anytree_list1.h: New file.
79349         * lib/gl_anytree_list2.h: New file.
79350         * lib/gl_linkedhash_list.h: New file.
79351         * lib/gl_linkedhash_list.c: New file.
79352         * lib/gl_anyhash_list1.h: New file.
79353         * lib/gl_anyhash_list2.h: New file.
79354         * lib/gl_avltreehash_list.h: New file.
79355         * lib/gl_avltreehash_list.c: New file.
79356         * lib/gl_rbtreehash_list.h: New file.
79357         * lib/gl_rbtreehash_list.c: New file.
79358         * lib/gl_anytreehash_list1.h: New file.
79359         * lib/gl_anytreehash_list2.h: New file.
79360
79361         * lib/gl_oset.h: New file.
79362         * lib/gl_oset.c: New file.
79363         * lib/gl_array_oset.h: New file.
79364         * lib/gl_array_oset.c: New file.
79365         * lib/gl_avltree_oset.h: New file.
79366         * lib/gl_avltree_oset.c: New file.
79367         * lib/gl_rbtree_oset.h: New file.
79368         * lib/gl_rbtree_oset.c: New file.
79369         * lib/gl_anytree_oset.h: New file.
79370
79371 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * m4/mkancesdirs.m4: New file.
79374         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79375         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79376         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79377         it.
79378
79379 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79382         * lib/mkancesdirs.h: New files.
79383         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79384         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79385         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79386         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79387         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79388         callers changed.  Revamp internals significantly, by not
79389         attempting to create directories that are temporarily more
79390         permissive than the final results.  Do not attempt to use
79391         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79392         This removes some race conditions, fixes some bugs, and simplifies
79393         things.  Use new dirchownmod function to do owner and mode changes.
79394         * lib/mkdir-p.h: Likewise.
79395         * lib/modechange.c (octal_to_mode): New function.
79396         (struct mode_change): New member mentioned.
79397         (make_node_op_equals): New arg mentioned.  All callers changed.
79398         (mode_compile): Keep track of which mode bits the user has explicitly
79399         mentioned.
79400         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79401         New arg PMODE_BITS, to keep track of which mode bits the user
79402         mentioned; it treats S_ISUID and S_ISGID speciall.
79403         All callers changed.
79404         * lib/modechange.h: Likewise.
79405
79406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79407
79408         * MODULES.html.sh: Add mkancestors.
79409         * modules/mkancesdirs: New module.
79410         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79411         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79412         The chdir-safer and afs files are now orphans; I'll remove them
79413         unless someone speaks up.
79414         Add lib/dirchownmod.c, lib/dirchownmod.h.
79415         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79416         Add lchown, mkancesdirs.
79417         (Maintainer): Add self.
79418
79419 2006-07-15  Karl Berry  <karl@gnu.org>
79420
79421         * gnulib-tool: help message wording/arrangement.
79422
79423 2006-07-14  Simon Josefsson  <jas@extundo.com>
79424
79425         * doc/gnulib.texi (Libtool and Windows): New section.
79426
79427 2006-07-12  Simon Josefsson  <jas@extundo.com>
79428
79429         * modules/gendocs (License): Fix license, approved by Karl.
79430
79431 2006-07-12  Eric Blake  <ebb9@byu.net>
79432
79433         * MODULES.html.sh: Add gendocs.
79434
79435 2006-07-11  Eric Blake  <ebb9@byu.net>
79436
79437         * modules/fdl: New module, to install doc/fdl.texi.
79438         * MODULES.html.sh: Add new section for documentation modules.
79439         * gnulib-tool: Avoid space-tab.
79440         (--doc-base): New option, to manage files from doc.
79441
79442 2006-07-11  Eric Blake  <ebb9@byu.net>
79443
79444         * m4/absolute-header.m4: Fix comments to match recent change.
79445
79446 2006-07-11  Eric Blake  <ebb9@byu.net>
79447
79448         * gnulib-tool: List --doc-base before --tests-base.
79449
79450 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79451
79452         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79453
79454 2006-07-11  Bruno Haible  <bruno@clisp.org>
79455
79456         * README: Mention where to put documentation.
79457
79458 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79459
79460         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79461
79462 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79465         to stdint.m4.
79466
79467 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79470         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79471         "no/such/file/stdint.h" when there is no such file, so that
79472         the resulting C code can be parsed by dodgy compilers.
79473         Problems reported by Bob Proulx.
79474
79475 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79476
79477         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79478         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79479         macros into the GNU _D_EXACT_NAMLEN.
79480         * lib/savedir.c:  Likewise.
79481         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79482
79483 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79484         and Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79487         * m4/savedir.m4:
79488         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79489         macros into the GNU _D_EXACT_NAMLEN.
79490
79491 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79494         around the absolute name, to work around a problem with the HP-UX
79495         11.23 native C compiler, reported by Bob Proulx.
79496
79497 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         * doc/maintain.texi, make-stds.texi: Sync from
79500         <http://savannah.gnu.org/projects/gnustandards>.
79501
79502 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79505
79506 2006-07-09  Jim Meyering  <jim@meyering.net>
79507
79508         * m4/glob.m4: Remove a doubled word in a comment.
79509
79510 2006-07-09  Jim Meyering  <jim@meyering.net>
79511
79512         * lib/argp-pv.c: Remove a doubled word in a comment.
79513         * lib/check-version.c (check_version): Likewise.
79514         * lib/javacomp.c (compile_java_class): Likewise.
79515
79516 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79519         for the benefit of people using Autoconf 2.60.  If you want to
79520         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79521         (or m4/onceonly.m4, if pre-2.57) manually.
79522
79523 2006-07-08  Jim Meyering  <jim@meyering.net>
79524
79525         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79526         comment.
79527         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79528         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79529         comment.
79530
79531 2006-07-08  Jim Meyering  <jim@meyering.net>
79532
79533         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79534
79535 2006-07-07  Simon Josefsson  <jas@extundo.com>
79536
79537         * tests/test-crc.c: Change expected crc value, the test vector
79538         were probably computed using the old broken crc.c?
79539
79540 2006-07-06  Simon Josefsson  <jas@extundo.com>
79541
79542         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79543         now the canonical place for the M4 file).
79544
79545         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79546         from the sys_socket dependency now.
79547
79548         * modules/inet_pton (Files): Ditto.
79549
79550         * modules/inet_ntop (Files): Ditto.
79551
79552 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79553
79554         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79555         not gl_PREREQ_GETUSERSHELL.
79556
79557 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79558
79559         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79560         with only one argument, for Autoconf 2.60.
79561         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79562         expand to nothing, so add a shell command to avoid syntax error.
79563         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79564
79565 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79566
79567         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79568
79569 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79570
79571         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79572         no longer needed.  Check for isblank decl.
79573         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79574         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79575         of existence.
79576
79577 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * lib/getloadavg.c: Use __VMS, not VMS.
79580         * lib/getopt.c: Likewise.
79581         * lib/getpagesize.h: Likewise.
79582         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79583         and probably does not work.
79584
79585 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * lib/.cppi-disable: Add wcwidth.
79588         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79589         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79590         (ISGRAPH): Remove.  All uses changed to isgraph.
79591         (FOLD) [!defined _LIBC]: Remove special case.
79592         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79593         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79594         HAVE_ISBLANK.
79595         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79596         case.
79597
79598 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79599
79600         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79601         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79602         brackets.  Other minor changes to suppress some compiler
79603         warnings.
79604
79605 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79606         and Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79609         of invoking obsolescent AC_HEADER_DIRENT macro.
79610         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79611         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79612         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79613         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79614         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79615         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79616         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79617         * m4/readdir.m4: Remove; no longer needed.
79618
79619 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79620         and Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79623         Don't worry about this obsolete case any more.
79624         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79625         directories.
79626         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79627         worry about this obsolete case any more.
79628         * lib/fts.c: Likewise.
79629         * lib/getcwd.c: Likewise.
79630         * lib/glob.h: Likewise.
79631         * lib/savedir.c: Likewise.
79632
79633 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79636         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79637         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79638         needed.
79639         All uses removed.
79640         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79641         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79642         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79643         needed.
79644         * m4/getdate.m4 (gl_GETDATE): Likewise.
79645         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79646         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79647         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79648         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79649         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79650         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79651         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79652         needed.
79653
79654 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * lib/memcasecmp.c: Include <limits.h>.
79657         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79658         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79659         Don't assume isdigit succeeds only on '0' through '9'.
79660
79661 2006-07-05  Eric Blake  <ebb9@byu.net>
79662
79663         * modules/getaddrinfo (Depends-on): Add snprintf.
79664
79665 2006-07-05  Eric Blake  <ebb9@byu.net>
79666
79667         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79668         to avoid 'header present but could not be compiled' on cygwin.
79669
79670 2006-07-05  Eric Blake  <ebb9@byu.net>
79671
79672         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79673         missing from netdb.h.
79674         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79675
79676 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79677
79678         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79679         no longer needed.
79680         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79681         * m4/getdate.m4 (gl_GETDATE): Likewise.
79682         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79683         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79684         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79685         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79686         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79687
79688 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79689
79690         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79691         All uses of is_space replaced by isspace.
79692         * lib/exit.h: Don't talk about STDC_HEADERS.
79693         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79694         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79695         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79696         replaced by isprint etc.
79697         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79698         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79699         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79700         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79701         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79702         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79703
79704 2006-07-05  Bruno Haible  <bruno@clisp.org>
79705
79706         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79707         the function exists, before testing against AIX.
79708         Reported by Martin Lambers <marlam@marlam.de>.
79709
79710 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79713         From Mark D. Baushke.
79714
79715 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79718         to the absolute name, not just one, to bypass Sun C 5.8's
79719         "warning: #include of /usr/include/... may be non-portable".
79720
79721 2006-07-04  Eric Blake  <ebb9@byu.net>
79722
79723         * modules/dirname-tests: New test module.
79724         * tests/test-dirname.c: New file, replacing dirname.c
79725         TEST_DIRNAME section that was recently deleted.
79726
79727 2006-07-04  Bruno Haible  <bruno@clisp.org>
79728
79729         Assume ANSI C header files and <ctype.h> functions.
79730         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79731         (mbsnwidth): Use isprint, iscntrl instead.
79732
79733 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79734
79735         Merge from coreutils.
79736         * MODULES.html.sh: Add xstrtold.
79737         * modules/xstrtold: New file.
79738         * modules/cycle-check (Files): Add lib/same-inode.h.
79739         * modules/dirname (Files): Add m4/double-slash-root.m4.
79740         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79741         * modules/mkdir-p (Files): Add lib/same-inode.h.
79742         * modules/same (Files): Add lib/same-inode.h.
79743
79744 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79747         This is to keep the terminology clean; POSIX talks about
79748         "absolute pathnames", not "full pathnames", but the GNU
79749         Coding Standards say to use "path" for something else;
79750         so use "absolute" to keep both sides happy.
79751         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79752         Set gl_absolute_header, not gl_full_header_path.
79753         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79754         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79755         All uses changed.
79756
79757         Merge from coreutils.
79758
79759         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79762         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79763         want to require the building of c-strtod.o.
79764         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79765         needs -lm directly.
79766         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79767
79768         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79771         --as-needed option if available.  Problem reported by Albert Chin in
79772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79773         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79774         cc merely issues a bunch of annoying warnings for --as-needed
79775         (this problem was reported by Bob Proulx).  Also, try linking with
79776         -lm to detect a bug in binutils 2.16 (this problem was reported
79777         by Ralf Wildenhues).
79778
79779         2006-06-18  Jim Meyering  <jim@meyering.net>
79780
79781         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79782         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79783         macro.
79784         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79785         also check for glibc-2.4's abort-inducing bug.
79786
79787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79788         Low-probability clean-up should be to use rmdir to get rid of
79789         the just-created directory, not unlink.
79790
79791         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79792         configure fail, and request a bug report to inform us about it.
79793         Add a comment that, barring reports to the contrary, in 2007 we'll
79794         assume ftruncate is universally available.
79795
79796         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79799
79800         2006-03-12  Jim Meyering  <jim@meyering.net>
79801
79802         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79803         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79804         * m4/same.m4 (gl_SAME): Likewise.
79805         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79806
79807         2006-03-11  Eric Blake  <ebb9@byu.net>
79808
79809         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79810         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79811         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79812         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79813
79814 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79817         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79818         reported by Mark D. Baushke, one in
79819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79820
79821         Merge from coreutils.
79822
79823         * lib/.cppi-disable: Add stdint_.h.
79824         * lib/.cvsignore: Add stdint.h.
79825
79826         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79829         both double and long double versions.
79830         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79831         * lib/xstrtold.c: New file.
79832         * lib/xstrtod.h (xstrtold): New decl.
79833
79834         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * lib/filemode.c (setst): Remove.
79837         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79838         (arguably) clearer, and the generated code is a bit smaller on my
79839         Debian GNU/Linux stable x86 host.
79840
79841         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79844         Assume that filemode.h includes sys/types.h and sys/stat.h.
79845         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79846         (ftypelet): Reorder to put common cases first, for efficiency.
79847         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79848         to do 'M'.
79849         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79850         of 10, for compatibility with FreeBSD.  All callers changed.
79851         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79852         types that can't be deduced solely from st_mode.  First arg is now a
79853         const pointer.
79854         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79855         (strmode): Renamed from mode_string.
79856         (filemodestring): New decl.
79857         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79858         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79859         needed.
79860         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79861
79862         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79865         fsusage.h now does that.  Include fsusage.h first, to test interface.
79866         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79867         at most one method (the old code could have generated decls that
79868         didn't conform to C89, not that this was ever exercised).
79869         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79870
79871         2006-03-19  Jim Meyering  <jim@meyering.net>
79872
79873         Work even in a chroot where d_ino values for entries in "/"
79874         don't match the stat.st_ino values for the same names.
79875         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79876         number, iterate through all entries again, using lstat instead.
79877         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79878         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79879
79880         * lib/getcwd.c (__getcwd): Clarify a comment.
79881         Use memcpy in place of a call to strcpy.
79882
79883         2006-03-12  Jim Meyering  <jim@meyering.net>
79884
79885         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79886         matches that of the current directory (which we're about to chdir ".."
79887         out of), then save the dev-ino of the parent, instead.
79888
79889         * lib/same-inode.h (SAME_INODE): New file/macro.
79890         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79891         Include "same-inode.h", instead.
79892         * lib/same.c: Likewise.
79893         * lib/cycle-check.h: Include "same-inode.h".
79894         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79895         * lib/cycle-check.c (SAME_INODE): Remove definition.
79896         * lib/root-dev-ino.h: Include "same-inode.h".
79897
79898         2006-03-11  Eric Blake  <ebb9@byu.net>
79899
79900         * lib/same.c (same_name): s/base_name/last_component/
79901         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79902         * lib/filenamecat.c (file_name_concat): Likewise.
79903
79904         2006-03-11  Eric Blake  <ebb9@byu.net>,
79905                     Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79908         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79909         drive prefix.
79910         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79911         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79912         (last_component): New method.
79913         * lib/dirname.c (dir_len): Determine when drive letters need a
79914         subsequent slash.  Preserve // when it is special.
79915         (dir_name): Don't append dot when drive letter is absolute.
79916         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79917         * lib/basename.c (base_name): New semantics - malloc the result.
79918         Preserve // when it is special.  Preserve relative files that look
79919         like drive letters.
79920         (base_len): Preserve // when it is special.
79921         (last_component): New method, similar to old base_name semantics.
79922         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79923         base_name.  Strip redundant slashes from ///.
79924
79925 2006-07-03  Jim Meyering  <jim@meyering.net>
79926
79927         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79928         macro is used before the first cycle_check call.
79929
79930 2006-07-03  Eric Blake  <ebb9@byu.net>
79931
79932         * modules/dirname (Depends-on): Add xstrndup.
79933
79934 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79937         test cases, so that config.log is a bit easier to follow.
79938
79939 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79942         both are 64 bits, since this seems to be the tradition, and this
79943         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79944         we ever run into a host that prefers long long to long in this
79945         case, we'll need another configure-time test.  Problem reported by
79946         Jim Meyering.
79947
79948 2006-07-02  Eric Blake  <ebb9@byu.net>
79949
79950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79951
79952 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * modules/inttypes (Depends-on): No longer depends on stdint.
79955         * modules/stdint (Description): Say more about assumptions.
79956         Say that the fast types might differ.  Say macros are used.
79957         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79958         (Makefile.am): Revise list of substituted symbols to match
79959         new stdint.m4.
79960         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79961         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79962         * tests/test-stdint.c (verify_same_types)
79963         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79964         the code conforms to C99/C89.
79965         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79966         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79967
79968 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79971         but fix a bug, by requiring at least 64 bits.
79972         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79973         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79974         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79975         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79976
79977         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79978         changes.  Make 2.59 a prerequisite.  Check and substitute for
79979         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79980         inttypes.h.  Do not use special include files; just use the
79981         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79982         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79983         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79984         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79985         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79986         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79987         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79988         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79989         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79990         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79991         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79992         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79993         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79994         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79995         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79996         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79997         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79998         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79999         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80000         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80001         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80002         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80003         not check for things that C99 does not require, e.g., int8_t.  If
80004         a test isn't needed unless <stdint.h> isn't working, and is
80005         unlikely to be needed for any other reason, then don't do it
80006         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80007         size_t, since we assume C89 freestanding at least.  Do not check
80008         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80009         the right thing even if the types are not defined.  Instead use:
80010         (gl_STDINT_TYPE_PROPERTIES): New macro.
80011         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80012         testing whether <sys/types.h> clashes, as Autoconf does this for
80013         us now.  All uses removed.
80014         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80015         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80016         (gl_CHECK_TYPE_SAME):
80017         Remove; no longer needed.
80018         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80019         exists, since we'll return 0 anyway in that case.
80020         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80021
80022 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80025         possible collision with system files.
80026         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80027         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80028         WCHAR_MIN and WCHAR_MAX in this case.
80029         (<stddef.h>): Do not include; no longer needed.
80030         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80031         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80032         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80033         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80034         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80035         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80036         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80037         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80038         !defined(__c99))]: Include in this case too, since it's harmless
80039         now.
80040         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80041         dangerous to do so.
80042         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80043         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80044         (_STDINT_MIN, _STDINT_MAX): New macros.
80045         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80046         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80047         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80048         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80049         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80050         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80051         macros, not typedefs; this simplifies things quite a bit.
80052         Use long int for all types narrower than int64_t.
80053         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80054         Define in terms of long long int or int64_t or long int,
80055         not int64_t or int32_t.  This saves some compile-time testing.
80056         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80057         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80058         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80059         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80060         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80061         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80062         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80063         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80064         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80065         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80066         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80067         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80068         undef any previous version and define our own version, for
80069         simplicity and consistency with the new macros for types.
80070         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80071         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80072         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80073         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80074         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80075         @WINT_T_SUFFIX@ to keep things simple here.
80076         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80077         Simplify by assuming typical 8/16/32/64 host, since we're
80078         already doing that elsewhere anyway.
80079         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80080         and assume long long int is 64 bits if available.  This
80081         speeds up 'configure'.
80082
80083 2006-07-01  Eric Blake  <ebb9@byu.net>
80084
80085         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80086         Reported by Andreas Buening.
80087
80088 2006-07-01  Eric Blake  <ebb9@byu.net>
80089
80090         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80091
80092 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80093
80094         * lib/getaddrinfo.c: fixed typo
80095
80096 2006-06-29  Jim Meyering  <jim@meyering.net>
80097
80098         * modules/strftime (Maintainer): Add my name, since with the
80099         FPRINTFTIME changes strftime.c has forked from glibc.
80100
80101 2006-06-29  Eric Blake  <ebb9@byu.net>
80102
80103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80104
80105 2006-06-29  Eric Blake  <ebb9@byu.net>
80106
80107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80108
80109 2006-06-29  Eric Blake  <ebb9@byu.net>
80110
80111         * lib/stat_.h: New file.
80112
80113 2006-06-29  Eric Blake  <ebb9@byu.net>
80114
80115         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80116         unused static function.
80117
80118 2006-06-29  Eric Blake  <ebb9@byu.net>
80119
80120         * doc/functions.texi (Function Portability): Document missing lstat
80121         on mingw.
80122
80123 2006-06-29  Eric Blake  <ebb9@byu.net>
80124
80125         * MODULES.html.sh: Add sys_stat.
80126         * modules/sys_stat: New module.
80127         * modules/mkstemp (Depends-on): Add sys_stat.
80128
80129 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80130
80131         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80132
80133 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80134
80135         * m4/c-bs-a.m4: Removed.
80136
80137 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80138
80139         * lib/strftime.c: Assume strftime() exists.
80140
80141 2006-06-29  Derek Price  <derek@ximbiot.com>
80142
80143         * modules/c-bs-a: Removed - \a is C89.
80144         * MODULES.html.sh: Remove c-bs-a.
80145
80146 2006-06-29  Bruno Haible  <bruno@clisp.org>
80147
80148         * modules/wcwidth (License): Change to LGPL.
80149
80150 2006-06-28  Simon Josefsson  <jas@extundo.com>
80151
80152         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80153         on _WIN32.
80154
80155         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80156         getnameinfo.
80157
80158 2006-06-28  Simon Josefsson  <jas@extundo.com>
80159
80160         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80161
80162 2006-06-28  Simon Josefsson  <jas@extundo.com>
80163
80164         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80165         functions there.  It will succeed on Windows XP, but on Windows
80166         2000 and (presumably) earlier, it will fail, and use the internal
80167         re-implementation.
80168         (use_win32_p): New function.
80169         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80170         Support AI_NUMERICSERV to disable getservbyname.
80171         (getnameinfo): New function, only supports
80172         NI_NUMERICHOST|NI_NUMERICSERV for now.
80173
80174         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80175         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80176         getnameinfo.
80177
80178 2006-06-28  Eric Blake  <ebb9@byu.net>
80179
80180         * modules/wcwidth: New file.
80181         * modules/mbchar (Depends-on): Add wcwidth.
80182         * modules/mbswidth (Depends-on): Add wcwidth.
80183         * MODULES.html.sh: Add wcwidth.
80184
80185 2006-06-28  Eric Blake  <ebb9@byu.net>
80186
80187         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80189
80190 2006-06-28  Eric Blake  <ebb9@byu.net>
80191
80192         * lib/xvasprintf.h: Fix comments.
80193
80194 2006-06-28  Eric Blake  <ebb9@byu.net>
80195
80196         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80197         * lib/mbswidth.c (wcwidth): Move from here...
80198         * lib/wcwidth.h: ...to this new file.
80199
80200 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80201
80202         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80203
80204         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80205         it's obsolete.
80206         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80207
80208 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80209
80210         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80211         Autoconf 2.60 says this stuff was obsolete.
80212
80213 2006-06-28  Bruno Haible  <bruno@clisp.org>
80214
80215         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80216
80217 2006-06-28  Bruno Haible  <bruno@clisp.org>
80218
80219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80220         gt_TYPE_WCHAR_T.
80221
80222 2006-06-28  Bruno Haible  <bruno@clisp.org>
80223
80224         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80225         declaration for wcwidth.
80226         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80227
80228 2006-06-28  Bruno Haible  <bruno@clisp.org>
80229
80230         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80231         (mkdir): Define using _mkdir.
80232
80233 2006-06-28  Bruno Haible  <bruno@clisp.org>
80234
80235         * lib/getaddrinfo.h: Fix POSIX URL.
80236         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80237         _WIN32.
80238         (use_win32_p): Make static.
80239         (getaddrinfo): Reject service name if it is empty or does not consist
80240         solely of decimal digits, or if its value is > 65535.
80241         (getnameinfo): Remove useless casts.
80242
80243 2006-06-27  Simon Josefsson  <jas@extundo.com>
80244
80245         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80246         Eggert and Martin Lambers.
80247
80248 2006-06-27  Simon Josefsson  <jas@extundo.com>
80249
80250         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80251         Eggert and Martin Lambers.
80252
80253 2006-06-27  Bruno Haible  <bruno@clisp.org>
80254
80255         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80256         result to 0, not to empty.
80257         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80258
80259 2006-06-27  Bruno Haible  <bruno@clisp.org>
80260
80261         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80262
80263 2006-06-26  Simon Josefsson  <jas@extundo.com>
80264
80265         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80266         present.
80267
80268 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80271         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80273
80274 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80275
80276         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80277
80278 2006-06-26  Bruno Haible  <bruno@clisp.org>
80279
80280         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80281
80282 2006-06-26  Bruno Haible  <bruno@clisp.org>
80283
80284         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80285
80286 2006-06-26  Bruno Haible  <bruno@clisp.org>
80287
80288         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80289         SGI C compiler in pre-C99 mode.
80290         Suggested by Mark D. Baushke and Larry Jones.
80291
80292 2006-06-26  Bruno Haible  <bruno@clisp.org>
80293
80294         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80295         WCHAR_MAX.
80296         Reported by Mark D. Baushke and Larry Jones.
80297
80298 2006-06-26  Bruno Haible  <bruno@clisp.org>
80299
80300         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80301         in pre-C99 mode.
80302         Suggested by Mark D. Baushke and Larry Jones.
80303
80304 2006-06-23  Simon Josefsson  <jas@extundo.com>
80305             Bruno Haible  <bruno@clisp.org>
80306
80307         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80308         Emit mostlyclean-local rule.
80309         (func_emit_tests_Makefile_am): Likewise.
80310         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80311
80312 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80313
80314         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80315
80316 2006-06-23  Bruno Haible  <bruno@clisp.org>
80317
80318         * tests/test-stdint.c: Update to match ISO C 99 Technical
80319         Corrigendum 1.
80320
80321 2006-06-23  Bruno Haible  <bruno@clisp.org>
80322
80323         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80324
80325 2006-06-23  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/stdint_.h: Treat IRIX like OpenBSD.
80328
80329 2006-06-23  Bruno Haible  <bruno@clisp.org>
80330
80331         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80332         ISO C 99 Technical Corrigendum 1.
80333
80334 2006-06-22  Simon Josefsson  <jas@extundo.com>
80335
80336         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80337         MinGW.
80338
80339 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80342         needed.  Some compiler complained about some of them.  Problem reported
80343         by Larry Jones in
80344         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80345
80346 2006-06-21  Simon Josefsson  <jas@extundo.com>
80347
80348         * tests/test-getaddrinfo.c: New file.
80349
80350         * modules/getaddrinfo-tests: New file.
80351
80352         * MODULES.html.sh: Add inet_pton.
80353
80354         * modules/inet_pton: New file.
80355
80356 2006-06-21  Simon Josefsson  <jas@extundo.com>
80357
80358         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80359         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80360         of using the (limited) gnulib implementation on Windows XP.
80361
80362         * m4/inet_pton.m4: New file.
80363
80364 2006-06-21  Simon Josefsson  <jas@extundo.com>
80365
80366         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80367         variable.
80368
80369         * lib/socket_.h: Don't define WINVER.
80370
80371         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80372         slightly modified to work in gnulib.
80373
80374 2006-06-21  Simon Josefsson  <jas@extundo.com>
80375
80376         * doc/gnulib.texi (Windows sockets): Add.
80377
80378 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80379
80380         * lib/read-file.c (fread_file): Start with buffer allocation of
80381         0 bytes rather than 1 byte; this simplifies the code.
80382         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80383         code to free buffer and save/restore errno.
80384         (internal_read_file): Remove unused local.
80385
80386 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80387
80388         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80389         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80390         Problem reported by Denis Excoffier in
80391         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80392
80393 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80394
80395         * modules/sys_socket, modules/socklen: Include sys/types since
80396         FreeBSD 4.x's sys/socket.h needs it.
80397
80398 2006-06-19  Simon Josefsson  <jas@extundo.com>
80399
80400         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80401
80402 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80403
80404         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80405
80406 2006-06-19  Bruno Haible  <bruno@clisp.org>
80407
80408         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80409         and FULL_PATH_INTTYPES_H in angle brackets.
80410         Reported by Mark D. Baushke <mdb@gnu.org>.
80411
80412 2006-06-17  Eric Blake  <ebb9@byu.net>
80413
80414         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80415         errno.
80416
80417 2006-06-17  Bruno Haible  <bruno@clisp.org>
80418
80419         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80420         <sys/inttypes.h>.
80421
80422 2006-06-17  Bruno Haible  <bruno@clisp.org>
80423
80424         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80425         whether errno is declared. Assume <errno.h> declares errno.
80426
80427 2006-06-17  Bruno Haible  <bruno@clisp.org>
80428
80429         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80430
80431 2006-06-17  Bruno Haible  <bruno@clisp.org>
80432
80433         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80434         problem on Solaris 2.5.1.
80435
80436 2006-06-16  Eric Blake  <ebb9@byu.net>
80437
80438         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80439         * lib/unicodeio.c [!defined errno]: Likewise.
80440         * lib/strtol.c [!defined errno]: Likewise.
80441         * lib/strtod.c [!defined errno]: Likewise.
80442
80443 2006-06-15  Eric Blake  <ebb9@byu.net>
80444
80445         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80446
80447 2006-06-15  Eric Blake  <ebb9@byu.net>
80448
80449         * config/srclist.txt (ssize_t.m4): Lose sync.
80450
80451 2006-06-15  Bruno Haible  <bruno@clisp.org>
80452
80453         * modules/stdint (Files): Include m4/full-header-path.m4,
80454         m4/size_max.m4, m4/wchar_t.m4.
80455         (Makefile.am): Many more substitutions.
80456         * modules/stdint-tests: New file.
80457         * tests/test-stdint.c: New file.
80458
80459 2006-06-15  Bruno Haible  <bruno@clisp.org>
80460
80461         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80462         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80463         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80464         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80465         gl_CHECK_TYPE_SAME): New macros.
80466
80467 2006-06-15  Bruno Haible  <bruno@clisp.org>
80468
80469         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80470
80471 2006-06-15  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/stdint_.h: Rewritten to be fully auto-configured.
80474         Fixes bug on HP-UX/IA64.
80475
80476 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         * lib/getdate.y (__attribute__): Don't define if already defined.
80479         Problem reported by Larry Jones.
80480         * lib/utimens.c (__attribute__): Likewise.
80481
80482 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80485         reported by Andreas Schwab.
80486
80487 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80488             Bruno Haible  <bruno@clisp.org>
80489
80490         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80491         check for the declaration of strnlen and a run test that exposes the
80492         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80493         rpl_strndup.
80494
80495 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80496             Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80499
80500 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80501
80502         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80503         compile test, for Tru64 4.0D.
80504
80505 2006-05-28  Karl Berry  <karl@gnu.org>
80506
80507         * config/srclist.txt (printf-args.c): lose sync.
80508
80509 2006-05-26  Martin Lambers  <marlam@marlam.de>
80510
80511         * lib/getpass.c: Updates the test for the native W32 API, and adds
80512         missing includes, thus fixing compilation warnings.
80513
80514 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80515
80516         * lib/exclude.c (exclude_fnmatch): New function.
80517         (excluded_file_name): Call exclude_fnmatch.
80518         * lib/exclude.h (excluded_file_name): New prototype
80519
80520 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80521
80522         * lib/tempname.c (small_open, large_open): New macros.
80523         (__open, __open64) [!_LIBC]: Remove.
80524         (__gen_tempname): Use small_open and large_open instead of __open
80525         and __open64.  This fixes a portability bug on HP-UX 11.11i
80526         reported by Simon Wing-Tang in
80527         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80528
80529 2006-05-24  Bruno Haible  <bruno@clisp.org>
80530
80531         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80532         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80533         Reported by Thorsten Maerz <torte@netztorte.de> via
80534         Aaron Stone <aaron@serendipity.cx>.
80535
80536 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80539         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80540         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80541         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80542         not really conditional on the cache.
80543         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80544
80545 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80548         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80549         (my_usleep): Don't mishandle maximum value.
80550
80551 2006-05-19  Jim Meyering  <jim@meyering.net>
80552
80553         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80554
80555 2006-05-17  Bruno Haible  <bruno@clisp.org>
80556
80557         Cygwin portability.
80558         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80559
80560 2006-05-17  Bruno Haible  <bruno@clisp.org>
80561
80562         * lib/stdint_.h: Fix recognition of Cygwin.
80563
80564 2006-05-15  Bruno Haible  <bruno@clisp.org>
80565
80566         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80567         on libtool patch by Ralf Wildenhues.
80568
80569 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80572         test for C99 conformance; (bool) 0.5 is an integer constant
80573         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80574         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80575
80576 2006-05-11  Simon Josefsson  <jas@extundo.com>
80577
80578         * m4/xvasprintf.m4: Fix obvious typo.
80579
80580 2006-05-11  Jim Meyering  <jim@meyering.net>
80581
80582         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80583         James Lemley.
80584
80585 2006-05-10  Simon Josefsson  <jas@extundo.com>
80586
80587         * lib/md4.c: Typo fix, update copyright years.
80588         (K1, K2): Don't use L because it turn computations into 64-bit on
80589         64-bit platforms.
80590
80591 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80594         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80595         unwanted sign propagation, e.g., on hosts with 64-bit int.
80596         There still are some problems with reeelly weird theoretical hosts
80597         (e.g., 33-bit int) but it's not worth worrying about now.
80598         * lib/sha1.c (rol): Likewise.
80599         (K1, K2, K3, K4): Remove unnecessary L suffix.
80600
80601 2006-05-10  Bruno Haible  <bruno@clisp.org>
80602
80603         * lib/des.c: Cast to avoid warnings.
80604
80605 2006-05-09  Bruno Haible  <bruno@clisp.org>
80606
80607         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80608         (Depends-on): Depend also on xsize, stdarg.
80609         (configure.ac): Add gl_XVASPRINTF.
80610
80611 2006-05-09  Bruno Haible  <bruno@clisp.org>
80612
80613         * m4/xvasprintf.m4: New file.
80614
80615 2006-05-09  Bruno Haible  <bruno@clisp.org>
80616
80617         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80618         (EOVERFLOW): Define fallback value.
80619         (xstrcat): New function.
80620         (xvasprintf): Recognize the special case of a string concatenation.
80621
80622 2006-05-08  Eric Blake  <ebb9@byu.net>
80623
80624         * gnulib-tool (func_version): Base copyright year on CVS date.
80625         (func_emit_copyright_notice): New function.
80626         (func_emit_lib_Makefile_am): Use it.
80627         (func_emit_tests_Makefile_am): Likewise.
80628         (func_import): Likewise.
80629
80630 2006-05-08  Bruno Haible  <bruno@clisp.org>
80631
80632         * modules/stdarg: New file.
80633         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80634
80635 2006-05-08  Bruno Haible  <bruno@clisp.org>
80636
80637         * m4/stdarg.m4: New file, from GNU gettext.
80638
80639 2006-05-08  Bruno Haible  <bruno@clisp.org>
80640
80641         * config/srclist.txt (build-aux/config.rpath): different from latest
80642         release.
80643
80644 2006-05-08  Bruno Haible  <bruno@clisp.org>
80645
80646         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80647
80648 2006-05-05  Jim Meyering  <jim@meyering.net>
80649
80650         * m4/warning.m4: New file, derived from bison's file by the same name.
80651
80652 2006-05-03  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/stdint_.h: Shorter URL.
80655         * lib/inttypes.h: Likewise.
80656
80657 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80660
80661 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80662
80663         * lib/verify.h: Document the internals better.  Most of this change
80664         was written by Bruno Haible.
80665
80666 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80667
80668         * doc/verify.texi: New file, partly based on a proposal by
80669         Bruno Haible.
80670
80671 2006-05-02  Bruno Haible  <bruno@clisp.org>
80672
80673         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80674         test from here...
80675         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80676
80677 2006-04-29  Bruno Haible  <bruno@clisp.org>
80678
80679         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80680         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80681
80682 2006-04-29  Bruno Haible  <bruno@clisp.org>
80683
80684         * gnulib-tool: Make --update option actually work.
80685
80686 2006-04-29  Bruno Haible  <bruno@clisp.org>
80687
80688         * doc/gcd.texi: New file.
80689         * doc/gnulib.texi: Include it.
80690
80691 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * lib/getdate.y (get_date): When adding relative date, start with the
80694         initial time, not with the result of the first mktime call.
80695
80696 2006-04-25  Bruno Haible  <bruno@clisp.org>
80697
80698         * gnulib-tool (func_import): Output the include directives in three
80699         blocks, sorted separately.
80700         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80701
80702 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80703
80704         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80705         to define main with arguments, for C++.  Reported by Eric Blake.
80706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80707         Prefer 'int main ()' to 'int main (void)', for C++.
80708         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80709         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80710         for 'main', for C99 and C++.
80711
80712 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80715         Don't assume that exit status -1 is valid.
80716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80717         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80718         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80719         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80720         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80721         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80722         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80723         functions can be used without declaring them, or that you can
80724         exit with status -1.
80725         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80726
80727 2006-04-24  Karl Berry  <karl@gnu.org>
80728
80729         * config/srclist.txt (longdouble.m4): sync lost.
80730
80731 2006-04-24  Eric Blake  <ebb9@byu.net>
80732
80733         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80734
80735 2006-04-24  Bruno Haible  <bruno@clisp.org>
80736
80737         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80738         poll() implementation in AIX.
80739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80740
80741 2006-04-24  Bruno Haible  <bruno@clisp.org>
80742
80743         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80744         assigned exactly once.
80745
80746 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80747             Bruno Haible  <bruno@clisp.org>
80748
80749         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80750         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80751         for AM_CPPFLAGS.
80752
80753 2006-04-23  Bruno Haible  <bruno@clisp.org>
80754
80755         * modules/copy-file: Depend on unistd.
80756         * modules/execute: Likewise.
80757         * modules/fatal-signal: Likewise.
80758         * modules/findprog: Likewise.
80759         * modules/mkdtemp : Likewise.
80760         * modules/pipe: Likewise.
80761         * modules/wait-process: Likewise.
80762
80763 2006-04-23  Bruno Haible  <bruno@clisp.org>
80764
80765         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80766         condition was already detected.
80767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80768
80769 2006-04-23  Bruno Haible  <bruno@clisp.org>
80770
80771         * lib/copy-file.c: Include <unistd.h> unconditionally.
80772         * lib/execute.c: Likewise.
80773         * lib/fatal-signal.c: Likewise.
80774         * lib/findprog.c: Likewise.
80775         * lib/mkdtemp.c: Likewise.
80776         * lib/pipe.h: Likewise.
80777         * lib/pipe.c: Likewise.
80778         * lib/wait-process.h: Likewise.
80779
80780 2006-04-23  Bruno Haible  <bruno@clisp.org>
80781
80782         * gnulib-tool (func_usage): Fix --import description. Document
80783         --update.
80784         (func_import): Create temporary file in a temporary directory, if
80785         --dry-run is specified. Silence errors from 'grep' when there are no
80786         m4 files in $m4dir.
80787         (func_create_testdir): Silence errors from 'grep' when there are no
80788         m4 files in $m4dir.
80789         Reported by Karl Berry <karl@freefriends.org>.
80790
80791 2006-04-20  Bruno Haible  <bruno@clisp.org>
80792
80793         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80794         one argument, so that the code will be portable to Autoconf 2.60.
80795         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80797         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80798
80799 2006-04-19  Derek Price  <derek@ximbiot.com>
80800             Eric Blake  <ebb9@byu.net>
80801
80802         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80803         rather than "/full/path.h".  Update comment to match.  Shorten &
80804         generalize m4_translit call via AS_TR_CPP.
80805
80806 2006-04-19  Derek Price  <derek@ximbiot.com>
80807             Eric Blake  <ebb9@byu.net>
80808
80809         * lib/inttypes.h: Correct grammar in comment.
80810
80811 2006-04-18  Derek Price  <derek@ximbiot.com>
80812             Paul Eggert  <eggert@cs.ucla.edu>
80813
80814         * modules/inttypes: New file.
80815         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80816
80817 2006-04-18  Derek Price  <derek@ximbiot.com>
80818             Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80821         New files.
80822
80823 2006-04-18  Derek Price  <derek@ximbiot.com>
80824             Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * lib/inttypes.h: New file.
80827         * lib/strtoimax.c: Assume <inttypes.h>.
80828
80829 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80830
80831         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80832         isn't mounted.  Problem reported by Kir Kolyshkin.
80833
80834 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80837         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80838         Derek R. Price.
80839         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80840         implementation.
80841
80842 2006-04-12  Eric Blake  <ebb9@byu.net>
80843
80844         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80845         is now done automatically by the corresponding Autoconf macro.
80846
80847 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80850         time_r.h.
80851
80852 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         Merge regex changes from libc, removing some of our
80855         POSIX-conformance changes that were rejected and redoing them in a
80856         less-intrusive way.
80857
80858         * lib/regcomp.c (re_compile_internal, init_dfa):
80859         Length arg is now size_t, not Idx.  All uses changed.
80860         (peek_token): Forward decl now says internal_function.
80861         (__re_error_msgid, __re_error_msgid_idx):
80862         Now static rather than extern with attribute_hidden.
80863         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80864         For some reason libc prefers K&R style defns for external functions.
80865         (regerror) [!defined _LIBC]: Likewise.
80866         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80867         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80868         (build_range_exp, build_collating_symbol):
80869         Use K&R-style defn.
80870         (re_compile_fastmap): Use '\0' to memset, not 0.
80871         (utf8_sb_map): Make the calculations more obvious.
80872         (init_dfa, parse_bracket_exp, build_charclass_op):
80873         Call calloc and cast result, as glibc does.
80874         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80875         (build_range_exp, build_collating_symbol):
80876         Now internal functions.
80877
80878         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80879
80880         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80881         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80882         Don't depend on VMS; depend on __VMS instead, for POSIX
80883         namespace cleanness.
80884         (regoff_t): Define to ssize_t, not long int.
80885
80886         Remove the REG_ macros named below.  Instead, make the old names
80887         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80888         __USE_GNU_REGEX.
80889         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80890         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80891         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80892         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80893         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80894         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80895         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80896         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80897         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80898         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80899         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80900         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80901         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80902         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80903         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80904         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80905         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80906         (REG_NREGS):
80907         Remove.  All uses replaced by the old RE_* names.
80908         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80909         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80910         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80911         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80912         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80913         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80914         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80915         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80916         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80917         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80918         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80919         Don't bother having these macros be independent of each others'
80920         values, since they no longer exist in the POSIX name space.
80921
80922         Rename the following member names back to their old names,
80923         unless !__USE_GNU_REGEX.  All uses changed back.
80924         (buffer): Renamed from re_buffer.
80925         (allocated): Renamed from re_allocated.
80926         (used): Renamed from re_used.
80927         (syntax): Renamed from re_syntax.
80928         (fastmap): Renamed from re_fastmap.
80929         (translate): Renamed from re_translate.
80930         (can_be_null): Renamed from re_can_be_null.
80931         (regs_allocated): Renamed from re_regs_allocated.
80932         (fastmap_accurate): Renamed from re_fastmap_accurate.
80933         (no_sub): Renamed from re_no_sub.
80934         (not_bol): Renamed from re_not_bol.
80935         (not_eol): Renamed from re_not_eol.
80936         (newline_anchor): Renamed from re_newline_anchor.
80937         (num_regs): Renamed from rm_num_regs.
80938         (start): Renamed from rm_start.
80939         (end): Renamed from rm_end.
80940
80941         (free_state): Move up a bit.
80942
80943         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80944         #define to be empty.
80945         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80946         when that is what is intended.
80947         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80948         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80949         (MAX): New macro.
80950         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80951         All uses changed back to re_malloc, etc.  It's now the caller's
80952         responsibility to check for overflow; all callers changed.
80953         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80954         (re_x2nrealloc): Remove.
80955         (free_state): Remove decl.
80956
80957         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80958         (re_set_registers, re_exec):
80959         Use K&R-style defn.
80960
80961         2006-01-31  Roland McGrath  <roland@redhat.com>
80962
80963         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80964         Reported by Mike Frysinger <vapier@gentoo.org>.
80965
80966         2006-01-15  Andreas Jaeger  <aj@suse.de>
80967
80968         [BZ #1950]
80969         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80970         build_wcs_upper_buffer change.
80971         (build_wcs_upper_buffer): Change return type.
80972
80973         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80974
80975         * lib/regex_internal.h: Include <stdint.h> if available.
80976
80977         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80978
80979         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80980
80981         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80982
80983         * lib/regcomp.c: Adjust for changed secondary hash function.
80984
80985         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80986
80987         * lib/regex.h: Pretty printing.
80988         Clean up namespace a bit.
80989
80990         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80991
80992         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80993         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80994
80995         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80996                     Ulrich Drepper  <drepper@redhat.com>
80997
80998         [BZ #1302]
80999         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81000         changed.
81001         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81002
81003         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81004
81005         [BZ #281]
81006         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81007         * lib/regcomp.c: Remove unnecessary uses of
81008         unsigned RE_TRANSLATE_TYPE.
81009         * lib/regex_internal.h: Likewise.
81010         * lib/regex_internal.c: Likewise.
81011         * lib/regexec.c: Likewise.
81012         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81013
81014         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81015
81016         * lib/regexec.c (find_recover_state): Remove unnecessary
81017         initialization.
81018         (transit_state_bkref): Make DFA a const pointer.
81019         (get_subexp): Likewise.
81020         (check_arrival): Likewise.
81021         (update_cur_sifted_state): Likewise.
81022         (re_search_internal): Likewise.
81023         (prune_impossible_nodes): Likewise.
81024         (acquire_init_state_context): Likewise.
81025         (proceed_next_node): Likewise.
81026         (set_regs): Likewise.
81027         (free_fail_stack_return): Likewise.
81028         (check_arrival_expand_ecl): Mark DFA parameter as const.
81029         (check_arrival_expand_ecl_sub): Likewise.
81030         (check_subexp_limits): Likewise.
81031         (sub_epsilon_src_nodes):  Likewise.
81032         (add_epsilon_src_nodes):  Likewise.
81033         (merge_state_array): Likewise.
81034         (update_regs): Likewise.
81035         (build_trtable): Likewise.
81036         (sift_states_backward): Mark MCTX parameter as const.
81037         (build_sifted_states): Likewise.
81038         (update_cur_sifted_state): Likewise.
81039         (sift_states_mkref): Likewise.
81040         (check_arrival_expand_ecl): Mark eclosure as const.
81041         (check_dst_limits_calc_pos_1): Likewise.
81042         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81043         pointer.
81044
81045         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81046
81047         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81048         (transit_state_sb): Likewise.
81049         (transit_state_mb): Likewise.
81050         (sift_states_iter_mb): Likewise.
81051         (check_arrival_add_next_nodes): Likewise.
81052         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81053         [_LIBC] (re_search_2_stub): Use mempcpy.
81054
81055         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81056         mbrtowc for very simple UTF-8 case.
81057
81058         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81059         a pointer-to-const.
81060         (re_acquire_state_context): Likewise.
81061         * lib/regex_internal.h: Adjust prototypes.
81062
81063         * lib/regex.c: Prevent using C++ compilers.
81064
81065         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81066         (re_acquire_state_context): Likewise.
81067
81068 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * modules/regex (Depends-on): Add ssize_t.
81071
81072 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81075         translation table.
81076
81077 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81080
81081 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81082             Bruno Haible  <bruno@clisp.org>
81083
81084         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81085         <sys/types.h> and <inttypes.h>.
81086
81087 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81088
81089         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81090         `__error_t_defined', so argp.h will not typedef the former.
81091
81092 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81093
81094         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81095         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81096         glibc names.  Even if glibc is changed to conform to POSIX, the
81097         traditional names will be available anyway, since regex depends on
81098         the extensions module.  Also, fix a longstanding typo in the
81099         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81100         reported by Emanuele Giaquinta.  Also, change sense of cached
81101         variable, so that the message makes sense.
81102
81103 2006-03-24  Simon Josefsson  <jas@extundo.com>
81104
81105         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81106         including some doc fixes.
81107         (base64_encode_alloc): Fix +1 bug on allocation failures.
81108
81109 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81110
81111         * lib/base64.c (base64_encode): Do not read past end of array with
81112         unsanitized input on systems with CHAR_BIT > 8.
81113
81114 2006-03-24  Eric Blake  <ebb9@byu.net>
81115
81116         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81117
81118 2006-03-22  Karl Berry  <karl@gnu.org>
81119
81120         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81121         * config/srclistvars.sh (COREUTILS): new var.
81122
81123 2006-03-17  Jim Meyering  <jim@meyering.net>
81124
81125         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81126         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81127
81128 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81131         no longer needs it.  Instead, check that regoff_t is as least
81132         as wide as ptrdiff_t.
81133
81134         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81135         so that our regex.h stays compatible with the installed regex.
81136         This is helpful for installers who configure --without-included-regex.
81137         Problem reported by Emanuele Giaquinta.
81138
81139 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81142         Typedef to long int, not to off_, as POSIX will likely change
81143         in that direction.
81144
81145 2006-03-15  Eric Blake  <ebb9@byu.net>
81146
81147         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81148
81149 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81150
81151         * lib/argp-help.c (validate_uparams): Fix typo
81152         * lib/argp-parse.c (argp_default_options): Consistently begin help
81153         messages with a lowercase letter.
81154
81155 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81158         overrun buffers and shouldn't be used (much as gets shouldn't be
81159         used).
81160         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81161
81162 2006-03-08  Simon Josefsson  <jas@extundo.com>
81163
81164         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81165         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81166
81167 2006-03-08  Simon Josefsson  <jas@extundo.com>
81168
81169         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81170         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81171
81172 2006-03-08  Simon Josefsson  <jas@extundo.com>
81173
81174         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81175         signal that configure disabled the device.
81176
81177 2006-03-08  Simon Josefsson  <jas@extundo.com>
81178
81179         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81180         languages.
81181
81182 2006-03-07  Simon Josefsson  <jas@extundo.com>
81183
81184         * modules/getopt (Depends-on): Add unistd.
81185
81186         * modules/unistd: New file.
81187
81188 2006-03-07  Simon Josefsson  <jas@extundo.com>
81189
81190         * modules/gc-random: New file.
81191
81192 2006-03-07  Simon Josefsson  <jas@extundo.com>
81193
81194         * m4/unistd_h.m4: New file.
81195
81196 2006-03-07  Simon Josefsson  <jas@extundo.com>
81197
81198         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81199         test to be side-effect free by storing the result in the cache
81200         variable gl_cv_lib_readline, and moving the assignment of
81201         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81202         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81203
81204 2006-03-07  Simon Josefsson  <jas@extundo.com>
81205
81206         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81207         error on missing devices (the functions will return an error).
81208
81209         * m4/gc.m4: Move random stuff to gc-random.m4
81210
81211 2006-03-07  Simon Josefsson  <jas@extundo.com>
81212
81213         * lib/unistd_.h: New file.
81214
81215 2006-03-07  Simon Josefsson  <jas@extundo.com>
81216
81217         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81218
81219 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81222         Problem reported by Juan Manuel Guerrero.
81223
81224 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81225
81226         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81227         the unistd module.
81228         * lib/getlogin_r.c: Likewise.
81229         * lib/getlogin_r.h: Likewise.
81230         * lib/glob.c: Likewise.
81231         * lib/pagealign_alloc.c: Likewise.
81232         * lib/unistd_.h: Remove; no longer needed.
81233
81234 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81235
81236         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81237         Add unistd.
81238         * modules/c-stack (Depends-on): Add unistd.
81239         * modules/getlogin_r: Likewise.
81240         * modules/glob: Likewise.
81241         * modules/pagealign_alloc: Likewise.
81242         * modules/unistd (Files): Remove lib/unistd_.h.
81243         (EXTRA_DIST): Remove.
81244         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81245         need unistd_.h.
81246         (MOSTLYCLEANFILES): Remove unistd.h-t.
81247
81248 2006-03-03  Simon Josefsson  <jas@extundo.com>
81249
81250         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81251
81252 2006-03-03  Simon Josefsson  <jas@extundo.com>
81253
81254         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81255         libidn and bison.
81256
81257 2006-03-03  Simon Josefsson  <jas@extundo.com>
81258
81259         * build-aux/maint.mk: Add indent target.
81260
81261 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81262
81263         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81264         our replacement poll.h in any case, to avoid a differing
81265         declaration from a system header.  Seen on AIX.
81266
81267 2006-03-01  Simon Josefsson  <jas@extundo.com>
81268
81269         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81270         <kasal@ucw.cz>.
81271
81272 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * modules/gettime (Depends-on): Add extensions module.
81275         * modules/nanosleep (Depends-on): Likewise.
81276         * modules/settime (Depends-on): Likewise.
81277
81278 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81281         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81282         pedantically.
81283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81284         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81285
81286         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81287         not "==".  Reported by Ralf Wildenhues.
81288
81289 2006-03-01  Karl Berry  <karl@gnu.org>
81290
81291         * doc/Copyright/request-*: new files, synced from gnuorg.
81292
81293 2006-03-01  Karl Berry  <karl@gnu.org>
81294
81295         * config/srclist.txt (Copyright/*): new entries.
81296
81297 2006-02-28  Simon Josefsson  <jas@extundo.com>
81298
81299         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81300
81301 2006-02-27  Simon Josefsson  <jas@extundo.com>
81302
81303         * lib/base64.h: Indent #define's.  From Jim Meyering
81304         <jim@meyering.net>.
81305
81306 2006-02-27  Jim Meyering  <jim@meyering.net>
81307
81308         Revert the change of 2006-02-24, so these files can continue
81309         to be sync'd from gettext.
81310         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81311         of `config.h'.
81312
81313 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * modules/intprops: New file.
81316         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81317         Add intprops.
81318         * modules/getloadavg (Files): Remove lib/intprops.h.
81319         (Depends-on): Add intprops.
81320         * modules/human: Likewise.
81321         * modules/inttostr: Likewise.
81322         * modules/openat: Likewise.
81323         * modules/sig2str: Likewise.
81324         * modules/userspec: Likewise.
81325         * modules/utimecmp: Likewise.
81326         * modules/xnanosleep: Likewise.
81327         * modules/xstrtol: Likewise.
81328
81329 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81330
81331         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81332         * modules/lock-tests (TESTS): Use $(EXEEXT).
81333         * modules/tls-tests: Likewise.
81334         * modules/argp-tests: Likewise.
81335         (check_PROGRAMS): New var, replacing...
81336         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81337
81338 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81339
81340         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81341         `config.h'.
81342
81343 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81346
81347 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81348
81349         Sync from coreutils.
81350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81351         gl_CHDIR_SAFER.
81352
81353 2006-02-22  Jim Meyering  <jim@meyering.net>
81354
81355         Sync from coreutils.
81356         * m4/chdir-safer.m4: New file.
81357
81358 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81361         AT_FDCWD exceeds INT_MAX.
81362         * lib/openat.h (AT_FDCWD): Likewise.
81363
81364 2006-02-17  Eric Blake  <address@hidden>
81365
81366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81367
81368 2006-02-16  Simon Josefsson  <jas@extundo.com>
81369
81370         * modules/getaddrinfo (Depends-on): Add sys_socket.
81371
81372 2006-02-15  Simon Josefsson  <jas@extundo.com>
81373
81374         * build-aux/maint.mk: Add dsyntax-check rule.
81375
81376 2006-02-15  Eric Blake  <ebb9@byu.net>
81377
81378         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81379         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81380         'present but cannot compile' warnings on cygwin.
81381         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81382         use ws2tcpip.h if sys/socket.h works.
81383         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81384         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81385
81386 2006-02-14  Simon Josefsson  <jas@extundo.com>
81387
81388         * modules/maintainer-makefile (Files): Rename.
81389
81390         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81391         and (the local) Makefile.cfg to maint-cfg.mk.
81392
81393         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81394         to the latter.
81395
81396         * modules/maintainer-makefile: New module.
81397
81398         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81399         severaly stripped to make it possible to build it up from scratch
81400         with reliable tests.
81401
81402         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81403         fixes to permit overriding the default actions when configure and
81404         makefile are not available.
81405
81406 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         Sync from coreutils.
81409         * modules/lstat (Depends-on): Don't depend on xalloc.
81410         (License): Change from GPL to LGPL, since this is now simply a
81411         replacement for a libc function.
81412
81413 2006-02-14  Jim Meyering  <jim@meyering.net>
81414
81415         Sync from coreutils.
81416
81417         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81418         failure on deficient systems, and simplify gnulib lgpl dependencies.
81419         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81420         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81421
81422         * lib/xalloc-die.c: Remove unused definition of N_.
81423
81424 2006-02-14  Jim Meyering  <jim@meyering.net>
81425
81426         Sync from coreutils.
81427         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81428         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81429         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81430         double-quote uses of that variable, to accommodate the rare case in
81431         which getmntent is available in none of the libraries checked.  This
81432         happens at least on FreeBSD 5.0.
81433
81434 2006-02-13  Simon Josefsson  <jas@extundo.com>
81435
81436         * gnulib-tool (Usage): Fix --import, from
81437         karl@freefriends.org (Karl Berry).
81438
81439 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81440
81441         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81442
81443 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81444
81445         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81446         "autoupdate" on 2005-12-12.
81447
81448 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81449
81450         * modules/closeout (Depends-on): Remove atexit.
81451
81452 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81455         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81456
81457 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81458
81459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81460         __EXTENSIONS__ if this causes compilation to fail.  Problem
81461         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81462         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81463
81464 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81465
81466         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81467         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81469         All uses changed.
81470
81471 2006-01-26  Simon Josefsson  <jas@extundo.com>
81472
81473         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81474         prototype is visible on mingw32.
81475
81476         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81477         for mingw32.
81478
81479         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81480         mingw32).
81481
81482 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81485         attempt to open for write; this always fails, at least on POSIX
81486         hosts.  This reinstates the 2006-01-09 change, which was
81487         inadvertently removed.
81488
81489 2006-01-26  Bruno Haible  <bruno@clisp.org>
81490
81491         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81492         Reported by Paul Eggert.
81493
81494 2006-01-26  Bruno Haible  <bruno@clisp.org>
81495             Paul Eggert  <eggert@cs.ucla.edu>
81496
81497         * lib/stdbool_.h (_Bool)
81498         [(! (defined __cplusplus || defined __BEOS__)
81499           && !defined __GNUC__
81500           && !(defined __HP_cc || defined __xlc__
81501                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81502                || defined __sgi))]:
81503         #define to signed char in these cases too; this simplifies
81504         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81505         etc., separately) and makes it more conservative.
81506
81507 2006-01-25  Simon Josefsson  <jas@extundo.com>
81508
81509         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81510         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81511         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81512
81513 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81514
81515         * lib/argp-namefrob.h: Bugfix. Remove stray #
81516
81517 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81518
81519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81520         so that we test the test.
81521         Check for yet another HP-UX cc bug involving *bool |= bool.
81522
81523 2006-01-25  Karl Berry  <karl@gnu.org>
81524
81525         * config/srclist.txt (vasnprintf.c): sync lost.
81526
81527 2006-01-25  Jim Meyering  <jim@meyering.net>
81528
81529         Sync from the stable (b5) branch of coreutils:
81530
81531         * lib/fts.c (fts_children): Don't let close() clobber errno from
81532         failed fchdir().
81533
81534         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81535         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81536         a dangling symlink.  That can also happen at least for ELOOP.
81537         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81538         FYI, this bug predates the inclusion of fts.c in coreutils.
81539
81540         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81541         in their own block, so pre-c99 compilers don't object.
81542
81543         Avoid the double-free (first in fts_read, second in fts_close) that
81544         would occur when an `active' directory is made inaccessible (e.g.,
81545         via chmod a-x) during a traversal.
81546         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81547         before returning.  Reproduce this failure by
81548         mkdir -p a/b; cd a; chmod a-x . b
81549         Reported by Stavros Passas.
81550
81551 2006-01-25  Jim Meyering  <jim@meyering.net>
81552
81553         * lib/fileblocks.c: Remove more useless parentheses.
81554         * lib/readutmp.h: Likewise.
81555
81556 2006-01-25  Bruno Haible  <bruno@clisp.org>
81557
81558         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81559         warnings.
81560         Reported by Paul Eggert.
81561
81562 2006-01-25  Bruno Haible  <bruno@clisp.org>
81563
81564         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81565         rid of a trap command. For Solaris sh.
81566         Reported by Mark D. Baushke <mdb@gnu.org>.
81567
81568 2006-01-24  Simon Josefsson  <jas@extundo.com>
81569
81570         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81571         Bruno.
81572
81573 2006-01-24  Karl Berry  <karl@gnu.org>
81574
81575         * config/srclist.txt (argp-namefrob.h): sync lost.
81576
81577 2006-01-24  Jim Meyering  <jim@meyering.net>
81578
81579         * modules/openat (Files): Add lib/intprops.h.
81580         From Mark D. Baushke.
81581
81582 2006-01-24  Jim Meyering  <jim@meyering.net>
81583
81584         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81585         Reported by Mark D. Baushke.
81586
81587 2006-01-24  Jim Meyering  <jim@meyering.net>
81588
81589         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81590
81591 2006-01-24  Bruno Haible  <bruno@clisp.org>
81592
81593         * modules/strnlen (Maintainer): Change from glibc to all.
81594
81595 2006-01-24  Bruno Haible  <bruno@clisp.org>
81596
81597         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81598         Patch by Paul Eggert.
81599
81600 2006-01-24  Bruno Haible  <bruno@clisp.org>
81601
81602         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81603         already has it.
81604         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81605         2005-11-26.
81606
81607         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81608         'signed char' to avoid problems with the built-in _Bool type.
81609         Reported by Paul Eggert on 2005-11-26.
81610
81611 2006-01-24  Bruno Haible  <bruno@clisp.org>
81612
81613         * gnulib-tool (func_import): Avoid constructing complicated sed
81614         expressions inside backquote.
81615         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81616
81617 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81618
81619         These changes imported from libc.
81620         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81621         test and two separate function calls.
81622         * lib/strndup.c (__strndup): Add libc_hidden_def.
81623
81624 2006-01-23  Simon Josefsson  <jas@extundo.com>
81625
81626         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81627         Remove the test_*_SOURCES variable: automake infers it by default.
81628         * modules/tls-tests: Likewise.
81629
81630 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81631
81632         Work around porting bugs reported by Dieter in
81633         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81634         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81635         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81636         Include "getopt.h" first, to check interface.
81637         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81638         !HAVE_DECL_GETENV.
81639         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81640         (__strndup): Revert to K&R-style function dfns, the glibc style.
81641         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81642         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81643         Include strnlen.h first, to get prototype properly.
81644         (strnlen): Renamed from __strnlen.
81645         Remove weak alias.
81646
81647 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81650
81651 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         * config/srclist.txt: Adjust to reflect glibc reorganization.
81654         This affects only comments.
81655
81656 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81657
81658          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81659          Reported by Bruce Korb <bkorb@gnu.org>.
81660
81661 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81664         to pacify gcc -Wswitch-default.
81665
81666 2006-01-22  Bruno Haible  <bruno@clisp.org>
81667
81668         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81669         temporary buffer for sprintf, take into account the precision also
81670         for 'd', 'i', 'u', 'o', 'x', 'X'.
81671
81672 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81673
81674         * modules/argp-tests: New module
81675         * tests/test-argp.c: New file
81676         * tests/test-argp-2.sh: New file
81677
81678 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81679
81680         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81681         (__argp_base_name): Removed
81682         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81683         typo.
81684         (__argp_base_name): Provide macro definition or extern declaration
81685         depending on the configuration
81686
81687 2006-01-20  Simon Josefsson  <jas@extundo.com>
81688
81689         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81690
81691 2006-01-20  Simon Josefsson  <jas@extundo.com>
81692
81693         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81694
81695 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81698         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81699         Suggested by Bruno Haible.
81700
81701 2006-01-20  Karl Berry  <karl@gnu.org>
81702
81703         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81704         until changes propagate, I guess.
81705
81706 2006-01-19  Simon Josefsson  <jas@extundo.com>
81707
81708         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81709
81710 2006-01-19  Simon Josefsson  <jas@extundo.com>
81711
81712         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81713
81714 2006-01-19  Simon Josefsson  <jas@extundo.com>
81715
81716         * gnulib-tool: Set check_PROGRAMS.
81717
81718         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81719         modules/des-tests, modules/gc-arcfour-tests,
81720         modules/gc-arctwo-tests, modules/gc-des-tests,
81721         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81722         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81723         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81724         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81725         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81726         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81727         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81728         test_*_SOURCES.
81729
81730 2006-01-18  Simon Josefsson  <jas@extundo.com>
81731
81732         * modules/socklen (Depends-on): Depend on sys_socket.
81733
81734 2006-01-18  Simon Josefsson  <jas@extundo.com>
81735
81736         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81737         modules/des-tests, modules/gc-arcfour-tests,
81738         modules/gc-arctwo-tests, modules/gc-des-tests,
81739         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81740         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81741         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81742         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81743         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81744         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81745         $(EXEEXT) to automake TESTS variable, for mingw32.
81746
81747 2006-01-17  Simon Josefsson  <jas@extundo.com>
81748
81749         * modules/socklen (Include): Need sys/socket.h.
81750
81751 2006-01-17  Bruno Haible  <bruno@clisp.org>
81752
81753         * modules/ssize_t (Include): Add <sys/types.h>.
81754
81755 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81756
81757         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81758         it's not portable and it doesn't work with cross-compiles.
81759         Problem reported by Bruno Haible.  Fix missing-$ typo in
81760         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81761         -zignore from being used with Sun's C compiler.
81762
81763 2006-01-12  Simon Josefsson  <jas@extundo.com>
81764
81765         * lib/base64.c: Fix warning, reported by Bruno Haible
81766         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81767
81768 2006-01-12  Bruno Haible  <bruno@clisp.org>
81769
81770         * modules/ldd: New file.
81771         * build-aux/ldd.sh.in: New file.
81772         * MODULES.html.sh (Support for building libraries and executables): Add
81773         ldd.
81774
81775 2006-01-12  Bruno Haible  <bruno@clisp.org>
81776
81777         * m4/ldd.m4: New file.
81778
81779 2006-01-12  Bruno Haible  <bruno@clisp.org>
81780
81781         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81782         endless loop while replacing $auxdir with build-aux.
81783
81784 2006-01-11  Simon Josefsson  <jas@extundo.com>
81785
81786         * lib/stdint_.h (SIZE_MAX): Add missing (.
81787
81788 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81789
81790         Sync from coreutils.
81791         * lib/md5.c: Fix commentary typos.
81792         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81793         * lib/md5.h (__attribute__): Remove; unused.
81794         * lib/sha1.c: Fix commentary to match md5 better.
81795         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81796         so that we don't need to worry about alignment.  All uses changed.
81797         This merges the 2005-10-28 md5 change into sha1.
81798
81799 2006-01-11  Jim Meyering  <jim@meyering.net>
81800
81801         Sync from coreutils.
81802         * lib/md5.c (OP): Fix spacing.
81803
81804 2006-01-11  Bruno Haible  <bruno@clisp.org>
81805
81806         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81807         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81808         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81809
81810 2006-01-11  Bruno Haible  <bruno@clisp.org>
81811
81812         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81813         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81814         the "early" section as well.
81815
81816 2006-01-11  Bruno Haible  <bruno@clisp.org>
81817
81818         Avoid "ar: no archive members specified" error on MacOS X.
81819         * gnulib-tool (func_modules_add_dummy): New function.
81820         (func_import, func_create_testdir): Invoke it.
81821
81822 2006-01-11  Bruno Haible  <bruno@clisp.org>
81823
81824         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81825         with $auxdir in AC_CONFIG_FILES statements.
81826
81827 2006-01-11  Bruno Haible  <bruno@clisp.org>
81828
81829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81830         Initialize also noinst_HEADERS to empty.
81831
81832 2006-01-11  Bruno Haible  <bruno@clisp.org>
81833
81834         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81835         variables.
81836         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81837         autoreconf.
81838
81839 2006-01-11  Bruno Haible  <bruno@clisp.org>
81840
81841         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81842         overridable by the user.
81843         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81844
81845 2006-01-10  Simon Josefsson  <jas@extundo.com>
81846
81847         * modules/sys_socket: New file.
81848
81849 2006-01-10  Simon Josefsson  <jas@extundo.com>
81850
81851         * m4/sys_socket_h.m4: New file.
81852
81853 2006-01-10  Simon Josefsson  <jas@extundo.com>
81854
81855         * lib/socket_.h: New file.
81856
81857 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81858
81859         * modules/readutmp (Maintainer): Add myself.
81860
81861 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81864         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81865         People who are still concerned with buggy memcmp implementations
81866         can invoke gl_FUNC_MEMCMP themselves.
81867
81868 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * lib/regex_internal.h (BITSET_WORD_BITS):
81871         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81872         preprocessor mishandles large unsigned values as if they were signed.
81873         Problem reported by Claudio Fontana in
81874         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81875
81876 2006-01-10  Jim Meyering  <jim@meyering.net>
81877
81878         Avoid the double-free (first in fts_read, second in fts_close) that
81879         would occur when an `active' directory is made inaccessible (e.g.,
81880         via chmod a-x) during a traversal.
81881         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81882         before returning.  Reproduce this failure by
81883         mkdir -p a/b; cd a; chmod a-x . b
81884         Reported by Stavros Passas.
81885
81886         Sync from coreutils.
81887         * lib/sha1.c: Tweak grammar in a comment.
81888
81889 2006-01-10  Jim Meyering  <jim@meyering.net>
81890
81891         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81892         Patch by Joerg Sonnenberger.
81893
81894 2006-01-10  Bruno Haible  <bruno@clisp.org>
81895
81896         * modules/readutmp: Depend on module free.
81897         * modules/strtok_r: Depend on module restrict.
81898
81899 2006-01-10  Bruno Haible  <bruno@clisp.org>
81900
81901         * modules/gettext (configure.ac): Add an invocation of
81902         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81903
81904 2006-01-10  Bruno Haible  <bruno@clisp.org>
81905
81906         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81907         Reported by Werner Lemberg <wl@gnu.org>.
81908
81909 2006-01-10  Bruno Haible  <bruno@clisp.org>
81910
81911         * lib/localcharset.c: Update from GNU gettext.
81912
81913 2006-01-10  Bruno Haible  <bruno@clisp.org>
81914
81915         * lib/argp.h (__const): Remove macro. Use const instead.
81916         * lib/argp-fmtstream.h (__const): Likewise.
81917         * lib/glob_.h (__const): Remove macro.
81918         * lib/glob-libc.h: Use const instead of __const.
81919
81920 2006-01-10  Bruno Haible  <bruno@clisp.org>
81921
81922         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81923         variable.
81924         Needed to avoid an automake error regarding the 'gettext' module.
81925
81926 2006-01-09  Simon Josefsson  <jas@extundo.com>
81927
81928         * modules/inet_ntop (Depends-on): Add restrict.
81929
81930 2006-01-09  Simon Josefsson  <jas@extundo.com>
81931
81932         * modules/gc-rijndael-tests (License): Put under LGPL.
81933
81934         * modules/gc-des-tests (License): Likewise.
81935
81936         * modules/gc-arcfour-tests (License): Likewise.
81937
81938         * modules/gc-arctwo-tests (License): Likewise.
81939
81940         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81941
81942         * modules/gc-hmac-sha1-tests (Files): Likewise.
81943
81944         * modules/gc-hmac-md5-tests (License): Likewise.
81945
81946         * modules/gc-sha1-tests (License): Likewise.
81947
81948         * modules/gc-md5-tests (License): Likewise.
81949
81950         * modules/gc-md4-tests (License): Likewise.
81951
81952         * modules/gc-md2-tests (License): Likewise.
81953
81954         * modules/gc-tests (License): Likewise.
81955
81956         * modules/des-tests (License): Likewise.
81957
81958         * modules/md4-tests (License): Likewise.
81959
81960         * modules/md2-tests (License): Likewise.
81961
81962 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81963
81964         Sync from coreutils:
81965
81966         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81967         * modules/lib-ignore: New file.
81968         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81969         chdir-safer.m4, lchmod.m4.
81970         * modules/openat: Add mkdirat.c, openat-priv.h.
81971
81972 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         Sync from coreutils.
81975         * m4/lib-ignore.m4: New file.
81976         * m4/lchmod.m4: New file.
81977
81978 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81979
81980         Sync from coreutils.
81981         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81982         for write access: POSIX says that must fail.
81983         * lib/fts.c (diropen): Likewise.
81984         * lib/save-cwd.c (save_cwd): Likewise.
81985         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81986         well, for minor improvements on hosts that lack O_DIRECTORY.
81987         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81988         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81989         Fall back on chown if open failed with EACCES.
81990
81991         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81992         Report an error at compile-time if only a 1-second nominal clock
81993         resolution is found.
81994
81995         * lib/lchmod.h: New file.
81996         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81997         (make_dir_parents): Use lchown rather than chown, and
81998         lchmod rather than chmod.
81999
82000         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82001         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82002         "proc" reported by n0dalus.
82003
82004         * lib/mountlist.c: Include <limits.h>.
82005         (dev_from_mount_options)
82006         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82007         New function.  It no longer assumes "dev=" has the System V meaning
82008         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82009         (read_file_system_list)
82010         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82011         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82012         dev= in that case.
82013
82014         * lib/posixtm.h (PDS_PRE_2000): New macro.
82015         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82016         allow_century.  All usages changed.  Reject dates outside the range
82017         1969-1999 if PDS_PRE_2000 is used.
82018
82019 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         Sync from coreutils.
82022         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82023         (Time of day items): Mention the possibility of leap seconds.
82024         Problem reported by Dr. David Alan Gilbert.
82025
82026 2006-01-09  Jim Meyering  <jim@meyering.net>
82027
82028         Sync from coreutils.
82029
82030         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82031
82032         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82033
82034         * lib/modechange.c (mode_compile): Reject an invalid mode string
82035         that starts with an octal digit.  From Andreas Gruenbacher.
82036
82037         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82038         and dup to open_safer and dup_safer, respectively.
82039         (openat_permissive): Fix typo in comment.
82040
82041         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82042         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82043         (_): Remove; no longer needed.
82044         (openat): Renamed from rpl_openat; no need for rpl_openat
82045         since openat.h renames openat for us.
82046         Replace most of the body with a call to openat_permissive,
82047         to avoid duplicate code.
82048         Port to (probably hypothetical) environments were mode_t is
82049         wider than int.
82050         (openat_permissive): Require mode arg, so that we can check
82051         types better.  Put it just after flags.  Change cwd failure
82052         indicator from pointer-to-bool to pointer-to-errno-value.
82053         All callers changed.
82054         Invoke openat_save_fail and/or openat_restore_fail if
82055         cwd_errno is null, so that openat can call us.
82056         (openat_permissive, fdopendir, fstatat, unlinkat):
82057         Simplify errno handling to avoid some duplicate code,
82058         as it's OK to set errno on success.
82059         * lib/openat.h: Revamp code so that function macros depend on
82060         __OPENAT_PREFIX only, not also on AT_FDCWD.
82061         (openat_ro): Remove.  Caller changed to use openat_permissive.
82062         (openat_permissive): Now a macro, if not a function.
82063         (openat_restore_fail, openat_save_fail): Now always functions,
82064         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82065
82066         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82067         and openat.c.
82068         * lib/mkdirat.c: Include openat-priv.h.
82069         Remove definitions of macros defined therein.
82070         * lib/openat.c: Likewise.
82071
82072         * lib/mkdirat.c (mkdirat): New file and function.
82073         * lib/openat.h (mkdirat): Declare.
82074
82075         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82076
82077         * lib/openat.h (openat_permissive): Declare.
82078         (openat_ro): Define.
82079
82080         * lib/openat.c (EXPECTED_ERRNO): New macro.
82081         (openat_permissive): New function -- used in remove.c rewrite.
82082         (all functions): Set errno just before returning, only if there
82083         was an actual failure.
82084         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82085
82086         Emulate openat-family functions using Linux's procfs, if possible.
82087         Idea and some code based on Ulrich Drepper's glibc changes.
82088
82089         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82090         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82091         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82092         before falling back on save_cwd and restore_cwd.
82093         (fdopendir, fstatat, unlinkat): Likewise.
82094
82095         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82096         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82097
82098         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82099         as second argument to va_arg.  Otherwise, some versions of gcc
82100         warn that `if this code is reached, the program will abort'.
82101
82102 2006-01-09  Jim Meyering  <jim@meyering.net>
82103
82104         Sync from coreutils.
82105         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82106         Require openat-priv.h.
82107
82108 2006-01-09  Bruno Haible  <bruno@clisp.org>
82109
82110         * modules/strnlen (Include): Use strnlen.h.
82111
82112 2006-01-09  Bruno Haible  <bruno@clisp.org>
82113
82114         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82115
82116 2006-01-09  Bruno Haible  <bruno@clisp.org>
82117
82118         * lib/sysexit_.h (EX_OK): New macro.
82119         Suggested by Martin Lambers <marlam@marlam.de>.
82120
82121 2006-01-09  Bruno Haible  <bruno@clisp.org>
82122
82123         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82124         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82125
82126 2006-01-09  Bruno Haible  <bruno@clisp.org>
82127
82128         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82129         numbers.
82130
82131 2006-01-09  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82134         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82135         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82136         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82137
82138 2006-01-09  Bruno Haible  <bruno@clisp.org>
82139
82140         * build-aux/javacomp.sh.in: New file, moved from lib/.
82141         * modules/javacomp-script (Files): Update.
82142         (configure.ac): Add AC_CONFIG_FILES invocation.
82143         (EXTRA_DIST): Remove variable.
82144
82145         * build-aux/javaexec.sh.in: New file, moved from lib/.
82146         * modules/javaexec (Files): Update.
82147         (configure.ac): Add AC_CONFIG_FILES invocation.
82148         (EXTRA_DIST): Remove javaexec.sh.in.
82149
82150         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82151         * modules/csharpcomp-script (Files): Update.
82152         (configure.ac): Add AC_CONFIG_FILES invocation.
82153         (EXTRA_DIST): Remove variable.
82154
82155         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82156         * modules/csharpexec (Files): Update.
82157         (configure.ac): Add AC_CONFIG_FILES invocation.
82158         (EXTRA_DIST): Remove csharpexec.sh.in.
82159
82160 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82161
82162         Sync from coreutils.
82163
82164         Add POSIX ACL support
82165         * lib/acl.h (copy_acl, set_acl): Add declarations.
82166         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82167         systems other than Linux.
82168         (chmod_or_fchmod): New function: use fchmod when possible,
82169         and chmod otherwise.
82170         (file_has_acl): Add a POSIX ACL implementation, with a
82171         Linux-specific subcase.
82172         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82173         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82174         acls are unsupported.
82175         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82176         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82177         are unsupported.
82178
82179 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82180
82181         Sync from coreutils.
82182         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82183
82184 2006-01-07  Bruno Haible  <bruno@clisp.org>
82185
82186         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82187         gl_EARLY.
82188
82189 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82192         Problem reported for Mingw by Mark Junker.
82193
82194 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * README: Gnulib normally doesn't generate a tarball.
82197
82198 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82201         long int, not int, for nanosecond counts, so that people who are
82202         used to POSIX struct timespec won't be surprised.  Reported by Jim
82203         Meyering.
82204
82205 2005-12-28  Bruno Haible  <bruno@clisp.org>
82206
82207         * build-aux/config.rpath: Update from GNU gettext.
82208
82209 2005-12-16  Jim Meyering  <jim@meyering.net>
82210
82211         * modules/fprintftime: New module.
82212         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82213
82214 2005-12-16  Jim Meyering  <jim@meyering.net>
82215
82216         * m4/fprintftime.m4: New file.
82217
82218 2005-12-16  Jim Meyering  <jim@meyering.net>
82219
82220         * lib/fprintftime.c, lib/fprintftime.h: New files.
82221
82222 2005-12-15  Simon Josefsson  <jas@extundo.com>
82223
82224         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82225         new m4/socklen.m4.
82226
82227 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82228
82229         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82230         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82231
82232 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82233
82234         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82235         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82236         struct uparams is valid. Fall back to the default values if it is
82237         not.
82238
82239 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82240
82241         * modules/argp (Files): Add argp-pin.c
82242         (Depends-on): dirname
82243         (lib_SOURCES): Add argp-pin.c
82244
82245 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82246
82247         * m4/argp.m4:  Check if program_invocation_name and
82248         program_invocation_short_name are declared and define appropriate
82249         macros if they are not.
82250
82251 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82252
82253         * lib/argp-help.c (__argp_base_name): New function
82254         (__argp_short_program_name): Rewrite using __argp_base_name
82255         * lib/argp-namefrob.h: Define program_invocation_name and
82256         program_invocation_short_name if requested
82257         (__argp_base_name): Add prototype
82258         * lib/argp-parse.c (argp_def): Use gettext wrappers
82259         (argp_default_parser): Use __argp_base_name
82260         * lib/argp-pin.c: New file. Defines program_invocation_name and
82261         program_invocation_short_name on systems that lack them.
82262
82263 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82264
82265         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82266         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82267         porting problem reported by Georg Schwarz in
82268         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82269
82270 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82271
82272         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82273         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82274         porting problem reported by Georg Schwarz in
82275         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82276
82277 2005-12-05  Bruno Haible  <bruno@clisp.org>
82278
82279         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82280         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82281         Reported by Mark Junker <mjscod@gmx.de>.
82282
82283 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82286         Use implementation from Albert Chin, with some
82287         comments/corrections by Stepan Kasal and myself.
82288
82289 2005-12-02  Bruno Haible  <bruno@clisp.org>
82290
82291         * gnulib-tool (func_import): Accept GPLed build tool modules when
82292         --lgpl is given.
82293         * modules/csharpcomp-script: New file.
82294         * modules/csharpcomp: Depend on it.
82295         * modules/javacomp-script: New file.
82296         * modules/javacomp: Depend on it.
82297         Suggested by Simon Josefsson.
82298
82299 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82302         statement, to work around an HP-UX 10.20 compiler bug reported by
82303         Peter O'Gorman.
82304
82305 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * modules/savedir (Depends-on): Add openat.
82308
82309 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82310
82311         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82312         (uintmax_t) [defined uintmax_t]: Do not declare.
82313         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82314         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82315         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82316         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82317         sake of portability to weird hosts that C allows (though we don't
82318         know of any practical examples).
82319
82320         * lib/savedir.h (fdsavedir): New decl.
82321         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82322         contains most of the former guts of savedir.
82323         (savedir): Use savedirstream.
82324         Include "openat.h".
82325
82326 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82327
82328         * modules/obstack (Files): Add m4/ulonglong.m4.
82329         Problem reported by Davide Angelocola.
82330
82331 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82332
82333         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82334         coreutils no longer futzes with rounding modes.
82335
82336 2005-11-14  Jim Meyering  <jim@meyering.net>
82337
82338         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82339         replacement of mkstemp.
82340
82341 2005-11-10  Simon Josefsson  <jas@extundo.com>
82342
82343         * lib/readline.c: Remove EOL.
82344
82345 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82346
82347         * modules/gethrxtime (Depends-on): Add gettime.
82348
82349 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82352         or gettimeofday; no longer needed.
82353
82354 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82355
82356         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82357         time business.
82358         (gethrxtime) [! (HAVE_NANOUPTIME
82359         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82360         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82361         our own approximation.
82362
82363 2005-11-08  Eric Blake  <ebb9@byu.net>
82364
82365         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82366
82367 2005-11-08  Eric Blake  <ebb9@byu.net>
82368
82369         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82370
82371 2005-11-04  Bruno Haible  <bruno@clisp.org>
82372
82373         * gnulib-tool: Implement --update mode.
82374
82375 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         Fix porting problem reported by Theodoros V. Kalamatianos.
82378         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82379         Don't assume that futimes failing means we must fail.
82380
82381 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82384         variables to suggest the intended function of the PATH_MAX check.
82385
82386 2005-10-30  Kean Johnston  <jkj@sco.com>
82387
82388         Trivial changes to support SCO systems.
82389         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82390         as PATH_MAX.
82391         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82392         where __ptr is null when no I/O is pending.
82393
82394 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82397         leave errno alone.  Problem reported by Dmitry V. Levin.
82398
82399 2005-10-28  Simon Josefsson  <jas@extundo.com>
82400
82401         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82402         Test more.
82403
82404         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82405
82406         * modules/md2, modules/md2-tests: New files.
82407
82408 2005-10-28  Simon Josefsson  <jas@extundo.com>
82409
82410         * m4/inet_ntop.m4: More tests.
82411
82412         * m4/gc-md2.m4, md2.m4: New file.
82413
82414 2005-10-28  Simon Josefsson  <jas@extundo.com>
82415
82416         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82417         "restrict" keywords, as per POSIX.  Protect the function
82418         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82419         Don't use K&R prototypes.  Check the sprintf return values.
82420         Re-define EAFNOSUPPORT if not present.  Indent.
82421
82422         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82423         suggested by Bruno Haible <bruno@clisp.org>.
82424
82425         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82426
82427         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82428
82429         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82430         libgcrypt).
82431
82432         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82433
82434         * lib/md2.h, lib/md2.c: New files.
82435
82436 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82437
82438         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82439         errno alone.  Problem reported by Frederic Jolliton.
82440
82441 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82442
82443         * modules/verify (License): Change from GPL to LGPL.  This is a
82444         tiny module and there are apparently near-equivalents that are
82445         under the BSD license.
82446
82447 2005-10-24  Simon Josefsson  <jas@extundo.com>
82448
82449         * modules/sha1: Relicense to LGPL.
82450
82451 2005-10-24  Simon Josefsson  <jas@extundo.com>
82452
82453         * lib/md4.h: Shrink buffer size, now that we changed the type.
82454
82455 2005-10-23  Simon Josefsson  <jas@extundo.com>
82456
82457         * gnulib-tool (func_import): Fix --tests-base.
82458
82459 2005-10-22  Simon Josefsson  <jas@extundo.com>
82460
82461         * modules/arcfour (Depends-on): Need stdint.
82462
82463 2005-10-22  Simon Josefsson  <jas@extundo.com>
82464
82465         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82466         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82467
82468 2005-10-22  Simon Josefsson  <jas@extundo.com>
82469
82470         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82471         suggested by Bruno Haible <bruno@clisp.org>.
82472
82473 2005-10-22  Simon Josefsson  <jas@extundo.com>
82474
82475         * lib/crc.h: Include stddef.h, for size_t.
82476
82477 2005-10-22  Simon Josefsson  <jas@extundo.com>
82478
82479         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82480         arcfour_context struct (simplify test vector testing in GNU
82481         Shishi).
82482
82483 2005-10-21  Simon Josefsson  <jas@extundo.com>
82484
82485         * modules/des, modules/des-tests: New files.
82486
82487         * modules/gc-des, modules/gc-des-tests: New files.
82488
82489         * tests/test-des.c, tests/test-gc-des.c: New file.
82490
82491 2005-10-21  Simon Josefsson  <jas@extundo.com>
82492
82493         * modules/arctwo, modules/arctwo-tests: New files.
82494
82495         * tests/test-arctwo.c: New file.
82496
82497         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82498
82499         * tests/test-gc-arctwo.c: New file.
82500
82501 2005-10-21  Simon Josefsson  <jas@extundo.com>
82502
82503         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82504         Bruno Haible <bruno@clisp.org>.
82505
82506         * m4/gc-des.m4: New file.
82507
82508 2005-10-21  Simon Josefsson  <jas@extundo.com>
82509
82510         * m4/arctwo.m4: New file.
82511
82512         * m4/gc-arctwo.m4: New file.
82513
82514 2005-10-21  Simon Josefsson  <jas@extundo.com>
82515
82516         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82517         block.
82518
82519 2005-10-21  Simon Josefsson  <jas@extundo.com>
82520
82521         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82522         <bruno@clisp.org>.
82523
82524         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82525
82526         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82527         Bruno Haible <bruno@clisp.org>.
82528
82529         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82530         <bruno@clisp.org>.
82531
82532 2005-10-21  Simon Josefsson  <jas@extundo.com>
82533
82534         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82535
82536 2005-10-21  Simon Josefsson  <jas@extundo.com>
82537
82538         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82539
82540 2005-10-21  Simon Josefsson  <jas@extundo.com>
82541
82542         * lib/des.h, lib/des.c: New files.
82543
82544         * lib/gc-gnulib.c: Support DES.c
82545
82546 2005-10-21  Simon Josefsson  <jas@extundo.com>
82547
82548         * lib/arctwo.h, lib/arctwo.c: New files.
82549
82550         * lib/gc-gnulib.c: Support ARCTWO.
82551
82552 2005-10-21  Simon Josefsson  <jas@extundo.com>
82553
82554         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82555         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82556
82557 2005-10-21  Simon Josefsson  <jas@extundo.com>
82558
82559         * gnulib-tool (func_import, func_create_testdir): Define automake
82560         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82561         Makefile.am snippet),
82562         suggested by Bruno Haible <bruno@clisp.org>.
82563
82564         * modules/gc (Makefile.am): Use it.
82565
82566 2005-10-21  Bruno Haible  <bruno@clisp.org>
82567
82568         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82569         patch.
82570
82571 2005-10-19  Simon Josefsson  <jas@extundo.com>
82572
82573         * tests/test-gc-rijndael.c: New file.
82574
82575         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82576
82577 2005-10-19  Simon Josefsson  <jas@extundo.com>
82578
82579         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82580         interface too.
82581
82582 2005-10-19  Simon Josefsson  <jas@extundo.com>
82583
82584         * tests/test-gc-arcfour.c: New file.
82585
82586         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82587
82588 2005-10-19  Simon Josefsson  <jas@extundo.com>
82589
82590         * modules/gc-md4, modules/gc-md4-tests: New file.
82591
82592         * tests/test-gc-md4.c: New file.
82593
82594 2005-10-19  Simon Josefsson  <jas@extundo.com>
82595
82596         * m4/gc-md4.m4: New file.
82597
82598 2005-10-19  Simon Josefsson  <jas@extundo.com>
82599
82600         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82601         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82602         <kasal@ucw.cz>.
82603
82604 2005-10-19  Simon Josefsson  <jas@extundo.com>
82605
82606         * m4/gc-arcfour.m4: New file.
82607
82608         * m4/gc-rijndael.m4: New file.
82609
82610 2005-10-19  Simon Josefsson  <jas@extundo.com>
82611
82612         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82613
82614 2005-10-19  Simon Josefsson  <jas@extundo.com>
82615
82616         * lib/gc-gnulib.c: Support ARCFOUR.
82617
82618 2005-10-19  Simon Josefsson  <jas@extundo.com>
82619
82620         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82621         support.
82622
82623         * lib/gc.h: Add ECB enum type.
82624
82625         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82626
82627 2005-10-18  Simon Josefsson  <jas@extundo.com>
82628
82629         * tests/test-md5.c: New file.
82630
82631         * modules/md5-tests: New file.
82632
82633 2005-10-18  Simon Josefsson  <jas@extundo.com>
82634
82635         * tests/test-md4.c: New file.
82636
82637         * modules/md4, modules/md4-tests: New files.
82638
82639 2005-10-18  Simon Josefsson  <jas@extundo.com>
82640
82641         * m4/md4.m4: New file.
82642
82643 2005-10-18  Simon Josefsson  <jas@extundo.com>
82644
82645         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82646
82647 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82648
82649         * gnulib-tool (func_create_testdir): Omit the second check whether
82650         BUILT_SOURCES in nonempty.
82651
82652 2005-10-17  Simon Josefsson  <jas@extundo.com>
82653
82654         * tests/test-rijndael.c: New file.
82655
82656 2005-10-17  Simon Josefsson  <jas@extundo.com>
82657
82658         * modules/sha1: Depend on stdint instead of md5.
82659
82660         * modules/md5: Depend on stdint, remove uint32_t.
82661
82662 2005-10-17  Simon Josefsson  <jas@extundo.com>
82663
82664         * modules/gc-sha1-tests: New file.
82665
82666         * tests/test-gc-sha1.c: New file.
82667
82668 2005-10-17  Simon Josefsson  <jas@extundo.com>
82669
82670         * m4/md5.m4: Remove call to uint32_t.m4.
82671
82672 2005-10-17  Simon Josefsson  <jas@extundo.com>
82673
82674         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82675
82676         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82677         md5.h.
82678
82679         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82680
82681         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82682
82683 2005-10-17  Simon Josefsson  <jas@extundo.com>
82684
82685         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82686
82687 2005-10-17  Simon Josefsson  <jas@extundo.com>
82688
82689         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82690
82691 2005-10-17  Simon Josefsson  <jas@extundo.com>
82692
82693         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82694
82695         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82696
82697 2005-10-17  Bruno Haible  <bruno@clisp.org>
82698
82699         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82700         that it can also be used in a test.
82701
82702 2005-10-16  Bruno Haible  <bruno@clisp.org>
82703
82704         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82705         TESTS_ENVIRONMENT, so that individual tests can augment it.
82706
82707         * gnulib-tool (func_create_testdir): Use an intermediate target for
82708         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82709         macros, like $(ALLOCA_H), which cannot be passed through the command
82710         line.
82711
82712 2005-10-15  Simon Josefsson  <jas@extundo.com>
82713
82714         * modules/rijndael-tests: New file.
82715
82716         * modules/rijndael: New file.
82717
82718 2005-10-15  Simon Josefsson  <jas@extundo.com>
82719
82720         * m4/rijndael.m4: New file.
82721
82722 2005-10-15  Simon Josefsson  <jas@extundo.com>
82723
82724         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82725
82726         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82727
82728 2005-10-14  Simon Josefsson  <jas@extundo.com>
82729
82730         * tests/test-arcfour.c: New file.
82731
82732         * modules/arcfour, modules/arcfour-tests: New files.
82733
82734 2005-10-14  Simon Josefsson  <jas@extundo.com>
82735
82736         * m4/arcfour.m4: New file.
82737
82738 2005-10-14  Simon Josefsson  <jas@extundo.com>
82739
82740         * lib/arcfour.h, lib/arcfour.c: New files.
82741
82742 2005-10-14  Roland McGrath  <roland@redhat.com>
82743
82744         Import from libc.  [BZ #1331]
82745         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82746         macro argument.
82747         Reported by Matej Vela <vela@debian.org>.
82748
82749 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82750
82751         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82752         include <wchar.h>; no longer needed.
82753
82754 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82755
82756         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82757
82758 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82759         and  Ulrich Drepper  <drepper@redhat.com>
82760
82761         Import from libc.
82762         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82763         instead of inline stream orientation test and two separate
82764         function calls.  Pay no attention to USE_IN_LIBIO.
82765
82766 2005-10-13  Simon Josefsson  <jas@extundo.com>
82767
82768         * modules/gc-hmac-md5-tests: New file.
82769
82770         * tests/test-gc-hmac-sha1.c: New file.
82771
82772         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82773
82774         * modules/gc-hmac-md5-tests: New file.
82775
82776         * tests/test-gc-md5.c: New file.
82777
82778         * modules/gc-md5-tests: New file.
82779
82780 2005-10-13  Simon Josefsson  <jas@extundo.com>
82781
82782         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82783         Move memory allocation outside of loop.
82784
82785 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82786
82787         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82788         intermediate directory is in a read-only file system.  Problem
82789         reported by Eric Blake.
82790
82791 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82792
82793         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82794
82795 2005-10-12  Simon Josefsson  <jas@extundo.com>
82796
82797         * tests/test-hmac-sha1.c: New file.
82798
82799         * modules/hmac-sha1-tests: New file.
82800
82801         * modules/hmac-sha1: New file.
82802
82803 2005-10-12  Simon Josefsson  <jas@extundo.com>
82804
82805         * modules/gc-sha1: New file.
82806
82807 2005-10-12  Simon Josefsson  <jas@extundo.com>
82808
82809         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82810
82811         * tests/test-gc-pbkdf2-sha1.c: New file.
82812
82813 2005-10-12  Simon Josefsson  <jas@extundo.com>
82814
82815         * modules/gc-md5, modules/gc-hmac-md5: New files.
82816
82817         * modules/gc (Files): Remove md5, memxor and hmac files.
82818
82819 2005-10-12  Simon Josefsson  <jas@extundo.com>
82820
82821         * m4/gc-pbkdf2-sha1.m4: New file.
82822
82823         * m4/gc-hmac-sha1.m4: New file.
82824
82825         * m4/gc-sha1: New file.
82826
82827         * m4/hmac-sha1.m4: New file.
82828
82829 2005-10-12  Simon Josefsson  <jas@extundo.com>
82830
82831         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82832
82833         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82834
82835 2005-10-12  Simon Josefsson  <jas@extundo.com>
82836
82837         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82838         suggested by Bruno Haible <bruno@clisp.org>.
82839
82840 2005-10-12  Simon Josefsson  <jas@extundo.com>
82841
82842         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82843
82844 2005-10-12  Simon Josefsson  <jas@extundo.com>
82845
82846         * lib/gc-pbkdf2-sha1.c: New file.
82847
82848         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82849
82850 2005-10-12  Simon Josefsson  <jas@extundo.com>
82851
82852         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82853
82854         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82855
82856 2005-10-12  Simon Josefsson  <jas@extundo.com>
82857
82858         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82859         GC_USE_HMAC_MD5, respectively.
82860
82861         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82862         (gc_md5): Fix typo.
82863
82864         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82865
82866         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82867
82868         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82869
82870 2005-10-12  Bruno Haible  <bruno@clisp.org>
82871
82872         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82873         Reported by Stepan Kasal <kasal@ucw.cz>.
82874
82875 2005-10-11  Simon Josefsson  <jas@extundo.com>
82876
82877         * tests/test-crc.c: New file.
82878
82879         * modules/crc, modules/crc-tests: New files.
82880
82881 2005-10-11  Simon Josefsson  <jas@extundo.com>
82882
82883         * m4/crc.m4: New file.
82884
82885 2005-10-11  Simon Josefsson  <jas@extundo.com>
82886
82887         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82888
82889         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82890
82891         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82892
82893 2005-10-11  Simon Josefsson  <jas@extundo.com>
82894
82895         * lib/crc.h, lib/crc.c: New files.
82896
82897         * lib/gc.h (gc_hash_buffer): Add doc.
82898
82899 2005-10-11  Bruno Haible  <bruno@clisp.org>
82900
82901         * modules/c-strcasestr: New file.
82902         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82903
82904 2005-10-11  Bruno Haible  <bruno@clisp.org>
82905
82906         * modules/c-strcase: New file.
82907         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82908
82909 2005-10-11  Bruno Haible  <bruno@clisp.org>
82910
82911         * lib/strcasecmp.c: Include limits.h.
82912         (strcasecmp): Avoid integer overflow on exotic platforms.
82913         * lib/strncasecmp.c: Include limits.h.
82914         (strncasecmp): Avoid integer overflow on exotic platforms.
82915         Reported by Paul Eggert.
82916
82917 2005-10-11  Bruno Haible  <bruno@clisp.org>
82918
82919         * lib/c-strcasestr.h: New file, from GNU gettext.
82920         * lib/c-strcasestr.c: New file, from GNU gettext.
82921
82922 2005-10-11  Bruno Haible  <bruno@clisp.org>
82923
82924         * lib/c-strcase.h: New file, from GNU gettext.
82925         * lib/c-strcasecmp.c: New file, from GNU gettext.
82926         * lib/c-strncasecmp.c: New file, from GNU gettext.
82927
82928 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         * modules/mempcpy (License): GPL -> LGPL.
82931         * modules/strchrnul (License): Likewise.
82932         * modules/sysexits (License): Likewise.
82933
82934 2005-10-08  Simon Josefsson  <jas@extundo.com>
82935
82936         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82937
82938 2005-10-07  Simon Josefsson  <jas@extundo.com>
82939
82940         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82941
82942 2005-10-06  Simon Josefsson  <jas@extundo.com>
82943
82944         * tests/test-hmac-md5.c: New file.
82945
82946         * modules/hmac-md5-tests: New file.
82947
82948         * modules/hmac-md5: New file.
82949
82950 2005-10-06  Simon Josefsson  <jas@extundo.com>
82951
82952         * m4/hmac-md5.m4: New file.
82953
82954         * m4/memxor.m4: Require gl_C_RESTRICT.
82955
82956 2005-10-06  Simon Josefsson  <jas@extundo.com>
82957
82958         * lib/memxor.c (memxor): Avoid casts and warnings.
82959
82960 2005-10-06  Simon Josefsson  <jas@extundo.com>
82961
82962         * lib/hmac-md5.c: New file.
82963
82964         * lib/hmac.h: New file.
82965
82966 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82967
82968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82969         promotes to int, not unsigned int, to catch the AIX 5.3
82970         compiler bug.
82971
82972 2005-10-05  Simon Josefsson  <jas@extundo.com>
82973
82974         * modules/memxor: New file.
82975
82976         * modules/iconv (Files): Move config.rpath to havelib, it is used
82977         there.
82978
82979         * modules/havelib (Files): Add config.rpath.
82980
82981 2005-10-05  Simon Josefsson  <jas@extundo.com>
82982
82983         * m4/memxor.m4: New file.
82984
82985 2005-10-05  Simon Josefsson  <jas@extundo.com>
82986
82987         * lib/memxor.c (memxor): Fix compiler error.
82988
82989         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82990         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82991
82992         * lib/memxor.h, lib/memxor.c: New files.
82993
82994         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82995         we assume all systems have it, suggested by Jim Meyering
82996         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82997         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82998         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82999         same reasons.
83000
83001 2005-10-05  Simon Josefsson  <jas@extundo.com>
83002
83003         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83004
83005 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83006
83007         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83008         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83009         needed, since the source code now assumes these .h files.
83010
83011 2005-10-05  Derek Price  <derek@ximbiot.com>
83012
83013         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83014
83015 2005-10-05  Bruno Haible  <bruno@clisp.org>
83016
83017         * modules/stdint (License): Change to LGPL.
83018
83019 2005-10-04  Simon Josefsson  <jas@extundo.com>
83020
83021         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83022         D. Baushke" <mdb@gnu.org>.
83023
83024 2005-10-04  Bruno Haible  <bruno@clisp.org>
83025
83026         * lib/verify.h (verify_true): Provide alternative definition for C++.
83027
83028 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83029
83030         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83031         (SSIZE_MAX): New macro, if not already defined.
83032         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83033         than 2 GiB.
83034
83035 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         Sync from coreutils.
83038         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83039         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83040         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83041         ULLONG_MAX doesn't work with 2.7.2.1.
83042
83043 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83046         From Ben Pfaff.
83047
83048         * modules/exclude (Depends-on): Depend on verify.
83049         * modules/strtoimax (Depends-on): Likewise.
83050         * modules/utimecmp (Depends-on): Likewise.
83051
83052 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83053
83054         * lib/exclude.c: Include verify.h.
83055         (verify): Remove.  All callers changed to use verify.h's version.
83056         * lib/strtoimax.c: Likewise.
83057         * lib/utimecmp.c: Likewis.e
83058
83059         Sync from coreutils.
83060         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83061         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83062         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83063         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83064         bother returning ENOSYS if settimeofday or stime fails; just let
83065         them return whatever errno they want to return.
83066         * lib/utimens.c: Include unistd.h, for dup2.
83067         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83068         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83069
83070 2005-10-02  Jim Meyering  <jim@meyering.net>
83071
83072         Sync from coreutils.
83073         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83074         from glibc-2.2.5 that fails for read-only files.
83075
83076 2005-10-02  Jim Meyering  <jim@meyering.net>
83077
83078         Sync from coreutils.
83079         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83080         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83081         `#if HAVE_CONFIG_H'.
83082         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83083         Remove AT_FDCWD test.
83084         Do not consume the fd unless successful.
83085         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83086         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83087         block, so that we don't even try to compile it if settimeofday is
83088         available.  This works around a compilation failure on OSF1 V5.1,
83089         due to stime requiring a `long int*' while tv_sec is `int'.
83090
83091 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83092
83093         Sync from coreutils.
83094         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83095         against `yes', rather than just testing for nonempty.
83096
83097 2005-10-01  Simon Josefsson  <jas@extundo.com>
83098
83099         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83100         and Darwin.
83101
83102         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83103         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83104         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83105         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83106         Check if struct addrinfo is declared.
83107
83108 2005-10-01  Simon Josefsson  <jas@extundo.com>
83109
83110         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83111         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83112         AI_* and EAI_* definitions.  Protect function declarations.
83113
83114 2005-10-01  Jim Meyering  <jim@meyering.net>
83115
83116         Sync from coreutils.
83117
83118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83119         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83120         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83122         in the inet and nsl libraries.  Required on Solaris 5.7.
83123
83124 2005-10-01  Jim Meyering  <jim@meyering.net>
83125
83126         Sync from coreutils.
83127         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83128         in the inet and nsl libraries.  Required on Solaris 5.7.
83129
83130 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83131
83132         * lib/getdelim.c (getdelim): Remove unused variables.
83133
83134 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83137         so that the code works even with ancient cpp.  Portability problem
83138         with GCC 2.7.2.1 reported by Thomas M.Ott.
83139
83140 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * modules/regex (Depends-on): Add strcase.
83143
83144         * modules/gethostname (Licence): Change from GPL to LGPL, since
83145         gethostname.c is a trivial implementation of a standard library
83146         function.
83147         * modules/poll (License): Change from GPL to LGPL, since it's
83148         derived from LGPL code.
83149
83150 2005-09-27  Jim Meyering  <jim@meyering.net>
83151
83152         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83153         HAVE_CONFIG_H.
83154
83155         * lib/intprops.h (signed_type_or_expr__): Define.
83156         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83157         for unsigned types.
83158
83159 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83160
83161         * lib/verify.h (verify_expr): Remove, replacing with:
83162         (verify_true): New macro that returns true instead of void.
83163         (verify_type__): Remove.
83164         (verify): Use verify_true rather than verify_type__.
83165
83166 2005-09-26  Bruno Haible  <bruno@clisp.org>
83167
83168         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83169         is necessary.
83170         (lib_SOURCES): Remove mbchar.c.
83171         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83172         (Files): Add m4/mbrtowc.m4.
83173         * modules/mbiter: Likewise.
83174         * modules/mbuiter: Likewise.
83175
83176 2005-09-26  Bruno Haible  <bruno@clisp.org>
83177
83178         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83179         compile mbchar.c if they are not both present.
83180         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83181         * m4/mbiter.m4 (gl_MBITER): Likewise.
83182         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83183         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83184         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83185
83186 2005-09-25  Jim Meyering  <jim@meyering.net>
83187
83188         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83189         also uses socklen_t.
83190
83191 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         * lib/utimens.c (ENOSYS): Define if not already defined.
83194         (futimens): Support having a null PATH if the file descriptor
83195         is nonnegative.
83196
83197         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83198         Remove.
83199         (__attribute): Define to empty unless GCC 3.1 or later.
83200         This works around a core dump on OpenBSD 3.4, which has GCC
83201         2.95.3, which dumps core when given __attribute__(()).  It also
83202         simplifies other tests, since we really don't want to bother with
83203         worrying about which ancient version of GCC supported what.
83204         Original problem reported by Yoann Vandoorselaere, with part of
83205         the fix suggested by Derek Price.
83206
83207 2005-09-24  Jim Meyering  <jim@meyering.net>
83208
83209         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83210         so we can once again use a positive bitfield width of 1 -- now we
83211         don't have to explain why we were using a bitfield width of 2.
83212
83213 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83214
83215         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83216         and similarly for the other external symbols.  Problem reported
83217         by James Gallager.
83218
83219         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83220         bug reported by Jim Meyering.
83221
83222         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83224         not needed, since socklen is a prerequisite module.
83225
83226 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83229         Problem reported by Eric Blake.
83230         (getaddrinfo): Initialize se so that it's not garbage.
83231         Redo internal storage allocation so that it doesn't make unportable
83232         assumptions about alignment.
83233         Fix a memory leak.
83234
83235         * lib/utimens.c (futimens): Use futimesat if available.
83236         Prefer it to futimes since it doesn't have the futimes bug.
83237
83238         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83239         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83240         Instead, declare a function that returns a pointer to an array,
83241         and use verify_type__ to declare the size of the array.
83242         Problem and germ of a solution reported by Bruno Haible.
83243         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83244         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83245
83246 2005-09-23  Jim Meyering  <jim@meyering.net>
83247
83248         Sync from coreutils.
83249         Correct build failure (socklen_t not defined) on at least
83250         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83251         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83252
83253 2005-09-23  Jim Meyering  <jim@meyering.net>
83254
83255         * modules/getaddrinfo (Depends-on): Add socklen.
83256
83257 2005-09-23  Bruno Haible  <bruno@clisp.org>
83258
83259         * tests/test-verify.c: New file.
83260
83261 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83262
83263         Sync from coreutils.
83264
83265         * modules/argmatch (Depends-on): Add verify.
83266         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83267         unistd-safer.
83268         * modules/save-cwd (Depends-on): Likewise.
83269
83270         * modules/openat (Files): Add lib/openat-die.c.
83271         (Depends-on): Remove error, exitfail.
83272         Add dirname.
83273
83274         * modules/verify: New file.
83275         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83276         with "verify" module.
83277
83278 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83279
83280         Sync from coreutils.
83281
83282         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83283         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83284         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83285         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83286         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83287         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83288         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83289         Don't bother checking for string.h, stdlib.h, unistd.h.
83290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83291         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83292         module's job.
83293         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83294         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83295
83296         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83297         (gl_GETDATE): Use it.
83298
83299         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83300
83301 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83302
83303         Sync from coreutils.
83304
83305         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83306         stat-time.h.
83307         * lib/argmatch.h: Include verify.h
83308         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83309         (ARGMATCH_ASSERT): Remove; unused.
83310         * lib/canonicalize.c: Assume STDC_HEADERS.
83311         * lib/exclude.c: Include "strcase.h".
83312         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83313         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83314         and stdio-safer.h.
83315         (getusershell): Call fopen, not fopen_safer.
83316         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83317         Do not include unistd-safer.h.
83318         (save_cwd): Don't call fd_safer; no longer needed
83319         now that we include fcntl--.h.
83320
83321         * lib/getdate.y (relative_time): New type.
83322         (RELATIVE_TIME_0): New constant.
83323         (parser_control): Use relative_time instead of doing it ourselves.
83324         (%union): Add new relative_time rel member.
83325         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83326         Now typeless.
83327         (relunit, relunit_snumber): Now of type rel.
83328         (zone, rel, relunit, get_date): Adjust to above changes.
83329
83330         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83331         Do not include unistd-safer.h.
83332         (getloadavg): Don't call fd_safer; no longer needed
83333         now that we include fcntl--.h.
83334
83335         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83336         (make_dir_parents): Treat ENOSYS like EEXIST.
83337
83338         Improve quality of diagnostics on restore_cwd failure.
83339         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83340         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83341         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83342         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83343         each time through the loop.  Do not diagnose restore_cwd failure;
83344         that is the caller's job (and perhaps the caller does not care).
83345
83346         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83347         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83348         If the file already exists but is not a directory, don't bother
83349         to try to make its parents.
83350         Close potential file descriptor leak if we can't chdir("/") (!).
83351         Don't always return true if chdir($PWD) fails; return true only
83352         if the requested action was done successfully (except for the
83353         chdir($PWD)).
83354         Don't log final directory unless we actually made it.
83355         Refactor to avoid duplicate code to fix up permissions.
83356         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83357
83358         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83359         to make it a bit faster and (I hope) clearer.
83360         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83361         Fix bug in formats like %2N.
83362
83363         * lib/verify.h: New file.
83364
83365 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83366
83367         Sync from coreutils.
83368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83369
83370 2005-09-22  Jim Meyering  <jim@meyering.net>
83371
83372         Sync from coreutils.
83373
83374         * m4/lstat.m4 (gl_FUNC_LSTAT):
83375         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83376         Remove obsolete comment.
83377         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83378         * m4/xstrtod.m4: Likewise.
83379
83380         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83381
83382 2005-09-22  Jim Meyering  <jim@meyering.net>
83383
83384         Sync from coreutils.
83385
83386         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83387
83388         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83389         the .tm_year member, since otherwise gcc-4.0 would now warn about
83390         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83391
83392         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83393         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83394
83395         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83396         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83397         when run in a time zone for which daylight savings time is in effect
83398         for the starting date.
83399
83400         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83401         stop us from restricting permissions of just-created absolute-named
83402         directories.
83403         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83404         to restore initial working directory.
83405         * lib/mkdir-p.c (make_dir_parents): New parameter:
83406         different_working_dir, to tell caller if/when we change the working
83407         directory and are unable to return to the initial one.
83408         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83409         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83410         `return false'.  This fixes a bug introduced on 2004-07-30.
83411
83412         * lib/openat.c (fdopendir): Be sure to close the supplied
83413         file descriptor before returning.  This makes our replacement
83414         implementation a little closer to Solaris's, where fdopendir
83415         ties the file descriptor to the returned DIR* pointer.
83416         * lib/openat.c (unlinkat): New function.
83417         * lib/openat.h (unlinkat): Add prototype.
83418         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83419         (openat_restore_fail): Rename from openat_restore_die.
83420         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83421
83422         Provide an alternative to exiting immediately upon save_cwd or
83423         restore_cwd failure.  Now, an application can arrange e.g.,
83424         to perform a longjump in that case.
83425         * lib/openat.c: Include dirname.h.
83426         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83427         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83428         and openat_restore_die rather than calling error directly.
83429         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83430
83431         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83432         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83433         define.
83434
83435         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83436         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83437                             int utc, int nanoseconds);
83438         Background:
83439         date should not have to allocate a megabyte of virtual memory to
83440         handle a format argument like +%1048575T.  When implemented with
83441         strftime, it must allocate such a buffer, use strftime to fill it
83442         in, print it, then free it.
83443         With fprintftime, it simply prints everything and exits.
83444         With no need for memory allocation, that's one fewer way to fail.
83445         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83446         optional field width, not before, so we accept %9:z, not %:9z.
83447         (my_strftime): Be sure to use L_('x') for literals.
83448
83449         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83450         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83451         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83452         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83453         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83454         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83455         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83456         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83457         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83458         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83459         * lib/xgethostname.c, lib/xreadlink.c:
83460         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83461
83462         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83463         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83464         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83465         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83466         and don't include <sys/file.h>).
83467
83468 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83469
83470         Sync from coreutils.
83471
83472         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83473         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83474         [!LDAV_DONE]: Avoid unused variable warning.
83475
83476 2005-09-21  Bruno Haible  <bruno@clisp.org>
83477
83478         * lib/unicodeio.h (unicode_to_mb): New declaration.
83479
83480 2005-09-20  Derek Price  <derek@ximbiot.com>
83481
83482         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83483         getaddrinfo.h.
83484
83485 2005-09-20  Bruno Haible  <bruno@clisp.org>
83486
83487         * gnulib-tool: Remove trailing slashes from the values specified for
83488         --source-base, --m4-base, --tests-base, --aux-dir.
83489         Suggested by Simon Josefsson <jas@extundo.com>.
83490
83491 2005-09-20  Bruno Haible  <bruno@clisp.org>
83492
83493         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83494         func_modules_to_filelist, func_import, func_create_testdir): Make all
83495         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83496         change when gnulib-tool is invoked in a different locale.
83497
83498 2005-09-19  Simon Josefsson  <jas@extundo.com>
83499
83500         * m4/socklen.m4: Fix typo.
83501
83502 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83503
83504         Use a consistent style for including <config.h>.
83505         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83506         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83507         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83508         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83509         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83510         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83511         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83512         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83513         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83514         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83515         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83516         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83517         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83518         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83519         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83520         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83521         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83522         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83523         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83524         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83525         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83526         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83527         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83528         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83529         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83530         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83531         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83532         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83533         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83534         lib/xstrtoumax.c, lib/yesno.c:
83535         Standardize inclusion of config.h.
83536         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83537         lib/inttostr.h:  Removed inclusion of config.h from header files.
83538         * lib/inttostr.c:  Adjusted in-tree users.
83539         * lib/timespec.h: Remove superfluous warning to include config.h.
83540         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83541         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83542         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83543         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83544         config.h with HAVE_CONFIG_H.
83545
83546 2005-09-19  Jim Meyering  <jim@meyering.net>
83547
83548         * modules/pathmax (License): Change to LGPL.
83549
83550 2005-09-19  Derek Price  <derek@ximbiot.com>
83551
83552         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83553
83554 2005-09-19  Bruno Haible  <bruno@clisp.org>
83555
83556         * gnulib-tool (import): Provide default for --tests-base.
83557
83558 2005-09-19  Bruno Haible  <bruno@clisp.org>
83559
83560         * doc/quote.texi: New file, extracted from gnulib.texi.
83561         * doc/ctime.texi: New file, extracted from gnulib.texi.
83562         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83563         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83564         * doc/gnulib.texi: Include them.
83565
83566 2005-09-18  Bruno Haible  <bruno@clisp.org>
83567
83568         Portability fix.
83569         * gnulib-tool (func_readlink): New function.
83570         (func_ln_if_changed): Use it.
83571
83572 2005-09-18  Bruno Haible  <bruno@clisp.org>
83573
83574         * gnulib-tool: Support --with-tests also with --import.
83575         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83576         (func_import): Use variables $testsbase and $inctests. Emit a
83577         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83578         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83579         SUBDIRS += $testsdir.
83580         (func_create_testdir): Update.
83581
83582 2005-09-18  Bruno Haible  <bruno@clisp.org>
83583
83584         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83585         instead of $dry_run.
83586         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83587         (func_ln_if_changed): Don't handle dry-run here.
83588         (func_import): In dry-run mode, detect more precisely which actions
83589         would be performed, and don't use "...ing" verbs.
83590
83591 2005-09-18  Bruno Haible  <bruno@clisp.org>
83592
83593         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83594         (func_import): Use join on two temporary files instead of three nested
83595         loops, in order to determine which files are new or old.
83596
83597 2005-09-18  Bruno Haible  <bruno@clisp.org>
83598
83599         * gnulib-tool (func_import): Comment out code that spits out the
83600         new files with --dry-run.
83601
83602 2005-09-18  Bruno Haible  <bruno@clisp.org>
83603
83604         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83605
83606 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83607
83608         * lib/stat-time.h: New file.
83609         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83610         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83611         in a different way.
83612         (timespec_cmp): New function.
83613         * lib/utimecmp.c: Include stat-time.h.
83614         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83615         members exist, not on the obsolescent ST_MTIM_NSEC.
83616         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83617
83618 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83619
83620         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83621
83622 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83623
83624         * MODULES.html.sh (File system functions): Add stat-time.
83625         * modules/stat-time: New file.
83626         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83627         is now done in a different way, by the stat-time module.
83628         * modules/utimecmp (Depends-on): Add stat-time.
83629
83630 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83631
83632         * m4/st_mtim.m4: Remove.  Superseded by...
83633         * m4/stat-time.m4: New file.
83634         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83635         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83636
83637 2005-09-15  Derek Price  <derek@ximbiot.com>
83638
83639         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83640
83641 2005-09-15  Derek Price  <derek@ximbiot.com>
83642
83643         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83644         * lib/regex_internal.c: Ditto, using this...
83645         (__GNUC_PREREQ): ...new macro.
83646         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83647         using...
83648         (__GNUC_PREREQ): ...this new macro.
83649
83650         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83651
83652 2005-09-15  Derek Price  <derek@ximbiot.com>
83653             Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83656         changes, consolidating in...
83657         * lib/regex_internal.h: ...this file.
83658
83659 2005-09-13  Jim Meyering  <jim@meyering.net>
83660
83661         * lib/canon-host.c: Filter through gnu indent and reword comments
83662         slightly.
83663         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83664
83665 2005-09-13  Derek Price  <derek@ximbiot.com>
83666
83667         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83668         failure.
83669         Reported by Jim Meyering  <jim@meyering.net>.
83670
83671 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83672
83673         * lib/base64.c: Typo.
83674         (base64_encode): Put b64str in initialized data section.
83675
83676 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83677
83678         Merge glibc and coreutils changes into gnulib, plus a few
83679         extra fixes.
83680         * lib/md5.c: Use #error rather than a string.
83681         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83682         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83683         (__attribute__): Define to empty for non recent-GCC.
83684         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83685         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83686         Renamed from their non-__ counterparts, with new macros replacing
83687         them if not _LIBC.  Add __THROW attribute.
83688         (rol): Remove.
83689         (struct md5_ctx): Align buffer if using GCC.
83690         * lib/sha1.h (struct sha1_ctx): Likewise.
83691         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83692         The old name was backwards.
83693         (NOTSWAP): Remove; not used.
83694         (rol): New macro, moved here from md5.h.
83695         (sha1_process_block): Remove a FIXME that doesn't make sense.
83696
83697 2005-09-12  Derek Price  <derek@ximbiot.com>
83698
83699         Return usable errors from canon-host.
83700         * lib/canon-host.h: New file.
83701         * lib/canon-host.c (canon_host): Wrap...
83702         (canon_host_r): ...this new function, which now relies exclusively on
83703         getaddrinfo.
83704         (ch_strerror): New function.
83705         (last_cherror): New global.
83706         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83707         interface.
83708         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83709         void *.
83710         (freeaddrinfo): Free ai->ai_canonname when set.
83711
83712 2005-09-12  Derek Price  <derek@ximbiot.com>
83713
83714         Make canon-host require getaddrinfo.
83715         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83716         AC_LIBSOURCE canon-host.h.  Call...
83717         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83718         gl_GETADDRINFO.
83719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83720
83721 2005-09-12  Derek Price  <derek@ximbiot.com>
83722
83723         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83724         LGPL.
83725         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83726
83727 2005-09-12  Derek Price  <derek@ximbiot.com>
83728
83729         * lib/gai_strerror.c: Include config.h when available.  Include
83730         getaddrinfo.h before other headers to test interface.
83731         Reported by Larry Jones <lawrence.jones@ugs.com>.
83732
83733 2005-09-12  Derek Price  <derek@ximbiot.com>
83734             Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * modules/glob (Files): Add glob-libc.h.
83737
83738 2005-09-12  Derek Price  <derek@ximbiot.com>
83739             Paul Eggert  <eggert@cs.ucla.edu>
83740
83741         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83742         glob_.h, glob-libc.h.
83743         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83744
83745 2005-09-12  Derek Price  <derek@ximbiot.com>
83746             Paul Eggert  <eggert@cs.ucla.edu>
83747
83748         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83749         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83750         protecting things that should be done only in gnulib contexts.
83751         * lib/glob_.h: New file, containing only the glob things needed for
83752         gnulib.
83753         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83754         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83755         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83756         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83757         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83758         and to respect the namespace rules better.
83759
83760 2005-09-08  Simon Josefsson  <jas@extundo.com>
83761
83762         * modules/socklen: New file.
83763
83764 2005-09-08  Simon Josefsson  <jas@extundo.com>
83765
83766         * m4/socklen.m4: New file.
83767
83768 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83769
83770         * modules/utimens (Files): Add m4/utimbuf.m4, since
83771         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83772         Reported by Sergey Poznyakoff.
83773
83774 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83777         definitions, since that's the preferred style in glibc.
83778         Fix a minor spacing issue, and update copyright notice to match
83779         glibc's.
83780
83781 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83784
83785 2005-09-06  Simon Josefsson  <jas@extundo.com>
83786
83787         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83788         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83789
83790 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83791
83792         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83793         warning.
83794
83795 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83796
83797         * config/srclist.txt: Add glibc bug 1302.
83798
83799 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83800
83801         Change bitset word type from unsigned int to unsigned long int,
83802         as this has better performance on typical 64-bit hosts.
83803         Port bitset code to hosts with unusual word sizes.
83804         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83805         (build_collating_symbol):
83806         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83807         argument is a bitset.  This is merely a style issue, but it makes
83808         it clearer that an entire array is expected.
83809         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83810         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83811         Port to the case where bitset_word is not the same as unsigned int.
83812         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83813         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83814         Likewise.
83815         * lib/regexec.c (check_dst_limits_calc_pos_1,
83816         check_subexp_matching_top):
83817         (build_trtable, group_nodes_into_DFAstates):
83818         Likewise.
83819         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83820         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83821         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83822         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83823         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83824         * lib/regcomp.c (optimize_subexps, lower_subexp):
83825         Work even if bitset_word has holes in its bitwise representation.
83826         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83827         * lib/regexec.c (check_dst_limits_calc_pos_1,
83828         check_subexp_matching_top):
83829         Likewise.
83830         * lib/regex_internal.c (re_string_reconstruct):
83831         Don't assume UCHAR_MAX == 255.
83832         * lib/regex_internal.h (bitset_set_all): Likewise.
83833         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83834         All uses changed.
83835         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83836         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83837         All uses changed.
83838         (BITSET_WORD_MAX): New macro.
83839         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83840         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83841         (bitset_empty, bitset_copy):
83842         Prefer sizeof (bitset) to multiplying it out ourselves.
83843         (bitset_not_merge): Remove; unused.
83844         (bitset_contain): Return bool, not unsigned int with one bit on.
83845         All callers changed.
83846         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83847         alignment than re_node_set; do this by defining a new internal
83848         type struct dests_alloc and using it to allocate memory.
83849
83850 2005-09-05  Bruno Haible  <bruno@clisp.org>
83851
83852         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83853         links.
83854
83855 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83856
83857         * modules/size_max (Makefile.am): Add size_max.h
83858
83859 2005-09-04  Derek Price  <derek@ximbiot.com>
83860
83861         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83862
83863 2005-09-03  Simon Josefsson  <jas@extundo.com>
83864
83865         * gnulib-tool: Fix typo.
83866
83867 2005-09-03  Simon Josefsson  <jas@extundo.com>
83868
83869         * config/srclist.txt: Add glibc bug 1293.
83870
83871 2005-09-03  Derek Price  <derek@ximbiot.com>
83872
83873         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83874         From Larry Jones <lawrence.jones@ugs.com>.
83875
83876 2005-09-02  Simon Josefsson  <jas@extundo.com>
83877
83878         * modules/socklen: New file.
83879
83880 2005-09-02  Simon Josefsson  <jas@extundo.com>
83881
83882         * modules/havelib: New module.
83883
83884         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83885         Use havelib.
83886
83887 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         Check for arithmetic overflow when calculating sizes, to prevent
83890         some buffer-overflow issues.  These patches are conservative, in the
83891         sense that when I couldn't determine whether an overflow was possible,
83892         I inserted a run-time check.
83893         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83894         macros.
83895         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83896         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83897         (re_xnrealloc, re_x2nrealloc): New inline functions.
83898         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83899         parse_bracket_exp):
83900         (build_equiv_class, build_charclass): Check for arithmetic overflow
83901         in size expression calculations.
83902         * lib/regex_internal.c (re_string_realloc_buffers):
83903         (build_wcs_upper_buffer, re_node_set_add_intersect):
83904         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83905         (re_dfa_add_node, register_state): Likewise.
83906         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83907         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83908         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83909         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83910
83911 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83914         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83915
83916 2005-09-02  Bruno Haible  <bruno@clisp.org>
83917
83918         Support for lib vs. lib64 distinction on biarch platforms.
83919         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83920         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83922
83923 2005-09-02  Bruno Haible  <bruno@clisp.org>
83924
83925         * gnulib-tool (import): In the other first-use case, provide defaults
83926         as well.
83927
83928 2005-09-02  Bruno Haible  <bruno@clisp.org>
83929
83930         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83931         patches not yet found in the latest gettext release.
83932
83933 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83934
83935         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83936         to avoid a collision with bits/local_lim.h in glibc.
83937         All uses changed.  Problem reported by Dmitry V. Levin in
83938         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83939
83940         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83941         bugs in int versus size_t comparisons.
83942         (re_string_context_at): Fix bug where the code assumed that
83943         Idx is signed.
83944
83945         Use bool where appropriate.
83946         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83947         All callers changed.
83948         (calc_eclosure_iter): Likewise, for ROOT arg.
83949         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83950         (build_charclass_op): Likewise, for NON_MATCH arg.
83951         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83952         (re_string_construct_common): Likewise, for ICASE arg.
83953         * lib/regexec.c (re_search_2_stub, re_search_stub):
83954         Likewise, for RET_LEN arg.
83955         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83956         (set_regs): Likewise, for FL_BACKTRACK arg.
83957         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83958         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83959         (calc_eclosure_iter, parse_bracket_exp):
83960         Use bool for internal variables that are booleans.
83961         * lib/regexec.c (re_search_internal, check_matching,
83962         proceed_next_node):
83963         (set_regs, build_sifted_states, sift_states_bkref):
83964         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83965         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83966         (find_collation_sequence_value):
83967         Likewise.
83968         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83969         (re_node_set_compare):
83970         Return bool, not int. All callers changed.
83971         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83972         (build_trtable, check_node_accept): Likewise.
83973         * lib/regex_internal.h: Include stdbool.h.
83974
83975         Fix bugs uncovered when converting to bool.
83976         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83977         failure instead of charging ahead blindly.
83978         * lib/regex_internal.c (register_state): Likewise.
83979         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83980         for freeing internal storage.
83981         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83982         bitset pieces used as boolean, to avoid undefined behavior
83983         on hosts that do int overflow checking.
83984
83985 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83986
83987         * config/srclist.txt: Add glibc bugs 1285-1287.
83988
83989 2005-09-01  Jim Meyering  <jim@meyering.net>
83990
83991         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83992         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83993         Require gl_STAT_MACROS, too.
83994
83995 2005-09-01  Bruno Haible  <bruno@clisp.org>
83996
83997         * gnulib-tool (import): In the first-use case, provide defaults.
83998
83999 2005-09-01  Bruno Haible  <bruno@clisp.org>
84000
84001         * gnulib-tool (func_import): Remove the .tmp files.
84002
84003 2005-09-01  Bruno Haible  <bruno@clisp.org>
84004
84005         * gnulib-tool (func_import): Fix handling of symbolic links.
84006
84007 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84008
84009         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84010         old glibc regex code mishandles strings longer than 2**31 bytes.
84011         This patch fixes this when the regex code is used in gnulib
84012         (i.e., outside glibc).
84013
84014         This patch should not affect the use of the regex code inside
84015         glibc.  No doubt this problem also needs to be handled for glibc
84016         as well, but the result will be an incompatible change to the
84017         glibc ABI, and the old ABI will have to be supported too.  That
84018         can be the the subject for another patch.
84019
84020         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84021         governing whether the rest of this patch is active.  By default,
84022         the macro is disabled and the patch has no effect.
84023         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84024         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84025         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84026         (re_match_2, re_set_registers): Use the new types.
84027         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84028         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84029         New macros.
84030         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84031         (re_string_context_at, bin_tree_t, re_dfastate_t):
84032         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84033         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84034         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84035         (re_string_char_size_at, re_string_wchar_at):
84036         (re_string_elem_size_at):
84037         Use the new types and macros to port to 64-bit hosts.
84038         Use unsigned types for internal values, so that the code
84039         mostly works even for arrays larger than SSIZE_MAX.
84040         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84041         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84042         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84043         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84044         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84045         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84046         (calc_inveclosure, parse_dup_op, build_range_exp):
84047         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84048         (fetch_number, create_token_tree, mark_opt_subexp):
84049         Likewise.
84050         * lib/regex_internal.c (re_string_construct_common,
84051         create_ci_newstate):
84052         (create_cd_newstate, re_string_allocate, re_string_construct):
84053         (re_string_realloc_buffers, build_wcs_upper_buffer):
84054         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84055         (re_string_reconstruct, re_string_peek_byte_case):
84056         (re_string_fetch_byte_case, re_string_context_at):
84057         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84058         (re_node_set_init_copy, re_node_set_add_intersect):
84059         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84060         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84061         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84062         (re_acquire_state, re_acquire_state_context, register_state):
84063         Likewise.
84064         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84065         search_cur_bkref_entry):
84066         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84067         (re_search_internal, re_search_2_stub, re_search_stub)
84068         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84069         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84070         (update_cur_sifted_state, check_dst_limits):
84071         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84072         (check_subexp_limits, sift_states_bkref, merge_state_array):
84073         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84074         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84075         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84076         (expand_bkref_cache, check_node_accept_bytes):
84077         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84078         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84079         (acquire_init_state_context, check_halt_node_context):
84080         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84081         (sift_states_backward, clean_state_log_if_needed):
84082         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84083         (find_recover_state, transit_state_sb, transit_state_mb):
84084         (transit_state_bkref, build_trtable, match_ctx_clean):
84085         Likewise.
84086         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84087         to work around an assumption that REG_MISSING is negative.
84088
84089         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84090         (seek_collating_symbol_entry) [defined _LIBC]:
84091         (lookup_collation_sequence_value) [defined _LIBC]:
84092         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84093         Use prototypes rather than old-style function definitions.
84094         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84095         (transit_state_sb) [0]:
84096         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84097
84098         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84099         rm_eo.
84100
84101         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84102         (optimize_subexps, lower_subexp):
84103         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84104         since the signed shift might overflow.  Use 1u<<31 instead.
84105         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84106         Likewise.
84107         * lib/regexec.c (check_dst_limits_calc_pos_1,
84108         check_subexp_matching_top): Likewise.
84109
84110         * lib/regcomp.c (optimize_subexps, lower_subexp):
84111         Use CHAR_BIT rather than 8, for clarity.
84112         * lib/regexec.c (check_dst_limits_calc_pos_1):
84113         (check_subexp_matching_top): Likewise.
84114         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84115         have to worry about portability issues when shifting it left.
84116         Remove no-longer-needed test for table_size > 0.
84117         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84118         in a word, as the resulting behavior is undefined.
84119         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84120         in one case, a <= should have been an <, and in another case the
84121         whole test was missing.
84122         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84123         the standard name CHAR_BIT.
84124         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84125         this is not true on one's complement and signed-magnitude hosts.
84126
84127         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84128         next_last_offset.
84129         (struct re_dfa_t): Remove unused member states_alloc.
84130         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84131
84132 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84133
84134         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84135         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84136         and large-file glibc and in 32-bit large-file Solaris.
84137
84138 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84139
84140         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84141         lengths fit in regoff_t; this isn't true if regoff_t is the same
84142         width as size_t.
84143         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84144         (= START + RANGE) instead of RANGE.  This avoids overflow
84145         problems when regoff_t is the same width as size_t.
84146         All callers changed.
84147         (re_search_2_stub): Check for overflow when adding the
84148         sizes of the two strings.
84149         (re_search_stub): Check for overflow when adding START
84150         to RANGE; if it occurs, substitute the extreme value.
84151
84152 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84153
84154         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84155
84156 2005-08-31  Jim Meyering  <jim@meyering.net>
84157
84158         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84159         a pointer-to-const.
84160         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84161         (register_state): Likewise.
84162         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84163         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84164         (group_nodes_into_DFAstates): Likewise.
84165
84166 2005-08-31  Jim Meyering  <jim@meyering.net>
84167
84168         * check-module: Add a FIXME comment.
84169
84170 2005-08-31  Eric Blake  <ebb9@byu.net>
84171
84172         * modules/unistd-safer (Files): Add unistd--.h.
84173         * modules/stdio-safer (Files): Add stdio--.h.
84174
84175 2005-08-31  Derek Price  <derek@ximbiot.com>
84176
84177         * lib/getdelim.c (getdelim): Return EOF on EOF.
84178         Reported by Larry Jones <lawrence.jones@ugs.com>.
84179
84180 2005-08-31  Bruno Haible  <bruno@clisp.org>
84181
84182         Avoid unnecessary diffs in the generated lib/Makefile.am.
84183         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84184         the generated files.
84185         (func_import): Don't set cmd.
84186
84187 2005-08-31  Bruno Haible  <bruno@clisp.org>
84188
84189         * lib/strstr.c: Include <stddef.h>, for NULL.
84190         * lib/strcasestr.c: Likewise.
84191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84192
84193 2005-08-31  Bruno Haible  <bruno@clisp.org>
84194
84195         * gnulib-tool: New option --macro-prefix.
84196         (func_import): Use macro_prefix.
84197         (import): Handle option --macro-prefix.
84198
84199 2005-08-31  Bruno Haible  <bruno@clisp.org>
84200
84201         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84202         Also use new variables cached_lgpl, cached_libtool.
84203
84204 2005-08-31  Bruno Haible  <bruno@clisp.org>
84205
84206         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84207         always instantiating them.
84208
84209 2005-08-31  Bruno Haible  <bruno@clisp.org>
84210
84211         * gnulib-tool (func_import): Read the previous cached settings
84212         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84213         earlier added by gnulib but are now dropped. Warn when a gnulib file
84214         overwrites a non-gnulib file.
84215
84216 2005-08-31  Bruno Haible  <bruno@clisp.org>
84217
84218         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84219         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84220         projects that don't keep autogenerated files in CVS. Put into
84221         actioncmd only the specified modules, not the transitive closure.
84222
84223 2005-08-31  Bruno Haible  <bruno@clisp.org>
84224
84225         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84226         Create directories that shall be filled.
84227         (import): Don't look for gl_* macros in configure.ac. Recurse across
84228         all directories containing a gnulib-cache.m4 files, if meaningful.
84229
84230 2005-08-31  Bruno Haible  <bruno@clisp.org>
84231
84232         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84233         (import): Set seen_libtool when we see gl_LIBTOOL.
84234
84235 2005-08-31  Bruno Haible  <bruno@clisp.org>
84236
84237         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84238         declaration macro definitions from generated gnulib.m4.
84239
84240 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84241
84242         * lib/iconvme.h: Add prototype for iconv_alloc.
84243
84244 2005-08-29  Simon Josefsson  <jas@extundo.com>
84245
84246         * lib/iconvme.c: Fix errno.
84247
84248 2005-08-29  Bruno Haible  <bruno@clisp.org>
84249
84250         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84251         that it works when the directory contains spaces.
84252
84253 2005-08-29  Bruno Haible  <bruno@clisp.org>
84254
84255         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84256
84257 2005-08-29  Bruno Haible  <bruno@clisp.org>
84258
84259         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84260         Emit more advice.
84261
84262 2005-08-29  Bruno Haible  <bruno@clisp.org>
84263         and Stepan Kasal  <kasal@ucw.cz>
84264
84265         * check-module: If more parameters are given, check each of them
84266         separately; add more exceptions, as noted by Jim Meyering.
84267         (check_module): New procedure.
84268         (%exempt_header): Now contains all exceptions.
84269
84270 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84271
84272         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84273
84274 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84275
84276         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84277
84278 2005-08-28  Bruno Haible  <bruno@clisp.org>
84279
84280         * m4/gnulib-tool.m4: New file.
84281
84282 2005-08-27  Jim Meyering  <jim@meyering.net>
84283
84284         * modules/unistd-safer (Files): Add pipe-safer.c.
84285         * modules/fcntl-safer (Files): Add creat-safer.c.
84286
84287 2005-08-27  Jim Meyering  <jim@meyering.net>
84288
84289         * m4/stdlib-safer.m4: New file.  From coreutils.
84290         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84291         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84292         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84293         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84294         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84295
84296 2005-08-27  Jim Meyering  <jim@meyering.net>
84297
84298         * lib/fopen-safer.c: Merge minor changes from coreutils.
84299         * lib/dup-safer.c: Likewise.
84300         * lib/fd-safer.c: Likewise.
84301
84302         Merge from coreutils.
84303         * lib/stdio--.h: New file.
84304         * lib/stdlib--.h: New file.
84305         * lib/mkstemp-safer.c: New file.
84306
84307         GNU tar needs these.
84308         * lib/pipe-safer.c: New file.
84309         * lib/creat-safer.c: New file.
84310         * lib/fcntl--.h (creat): Define to creat_safer.
84311         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84312         * lib/unistd--.h (pipe): Define to pipe_safer.
84313         * lib/unistd-safer.h: Declare pipe_safer.
84314
84315 2005-08-26  Simon Josefsson  <jas@extundo.com>
84316
84317         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84318         Haible <bruno@clisp.org>.
84319
84320 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * lib/regex_internal.h: Remove all references to
84323         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84324         or better.
84325         (bitset_not, bitset_merge, bitset_not_merge):
84326         (bitset_mask, re_string_allocate, re_string_construct):
84327         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84328         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84329         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84330         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84331         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84332         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84333         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84334         (re_acquire_state_context):
84335         Remove unnecessary forward decls.
84336         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84337         Put __attribute at function definition,
84338         now that the function decl has been removed.
84339         * lib/regex_internal.c (re_string_peek_byte_case):
84340         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84341         Likewise.
84342
84343 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84344
84345         * m4/regex.m4: Add AC_PREREQ(2.50).
84346         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84347
84348 2005-08-25  Simon Josefsson  <jas@extundo.com>
84349
84350         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84351         __fsetlocking.
84352
84353 2005-08-25  Simon Josefsson  <jas@extundo.com>
84354
84355         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84356         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84357         GLIBC specific code.
84358
84359 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84360
84361         Make regex safe for g++.  This fixes one real bug (an "err"
84362         that should have been "*err").  g++ problem reported by
84363         Sam Steingold.
84364         * lib/regex_internal.h (re_calloc): New macro, consistent with
84365         re_malloc etc.  All callers of calloc changed to use re_calloc.
84366         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84367         not int.  All callers changed.
84368         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84369         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84370         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84371         (find_recover_state): Change "err" to "*err"; this fixes what
84372         appears to be a real bug.
84373         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84374         versus int.
84375
84376 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         * modules/regex (Depends-on): Add malloc, since the code
84379         assumes that !malloc(0) means failure.
84380
84381 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84382
84383         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84384
84385         alloca modernization/simplification for regex.
84386         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84387         needs to be at the start of the file, and can be moved into
84388         regex_internal.h and simplified.
84389         * lib/regex_internal.h: Include <alloca.h>.
84390         (__libc_use_alloca) [!defined _LIBC]: New macro.
84391         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84392         now works outside glibc.
84393
84394 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * config/srclist.txt: Add glibc bugs 1241, 1245.
84397
84398 2005-08-25  Jim Meyering  <jim@meyering.net>
84399
84400         * lib/open-safer.c: Include <config.h>.
84401         Otherwise, we'd lose LARGEFILE support in any file using
84402         e.g. "fcntl--.h"
84403
84404 2005-08-25  Bruno Haible  <bruno@clisp.org>
84405
84406         * m4/minmax.m4: Require autoconf 2.52.
84407         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84408         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84409         alternatives of translit over the alphabet.
84410         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84411
84412 2005-08-24  Simon Josefsson  <jas@extundo.com>
84413
84414         * tests/test-getpass.c: New file.
84415
84416 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84419         for GNU regex features.
84420
84421 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84424         * lib/regex.h (regerror): Likewise.
84425
84426         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84427         requires this.  (The code never needed it.)
84428
84429         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84430         All uses of recently-renamed identifiers changed to use the new,
84431         POSIX-compliant names.  The code will build and run just fine
84432         without these changes, but it's better to eat our own dog food
84433         and use the standard-conforming names.
84434
84435         * lib/regex.h: Fix a multitude of POSIX name space violations.
84436         These changes have an effect only for programs that define
84437         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84438         do not change anything for programs compiled in the normal way.
84439         Also, there is no effect on the ABI.
84440
84441         (_REGEX_SOURCE): New macro.
84442         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84443         defined and _GNU_SOURCE is not; this fixes a name space violation.
84444
84445         Rename the following macros to obey POSIX requirements.
84446         The old names are still visible as macros if _REGEX_SOURCE is defined.
84447         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84448         RE_BACKSLASH_ESCAPE_IN_LISTS.
84449         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84450         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84451         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84452         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84453         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84454         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84455         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84456         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84457         (REG_INTERVALS): renamed from RE_INTERVALS.
84458         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84459         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84460         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84461         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84462         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84463         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84464         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84465         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84466         RE_UNMATCHED_RIGHT_PAREN_ORD.
84467         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84468         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84469         (REG_DEBUG): renamed from RE_DEBUG.
84470         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84471         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84472         unusual, since we can't clash with the POSIX REG_ICASE.
84473         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84474         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84475         (REG_NO_SUB): renamed from RE_NO_SUB.
84476         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84477         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84478         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84479         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84480         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84481         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84482         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84483         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84484         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84485         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84486         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84487         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84488         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84489         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84490         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84491         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84492         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84493         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84494         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84495         (REG_FIXED): Renamed from REGS_FIXED.
84496         (REG_NREGS): Renamed from RE_NREGS.
84497
84498         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84499         of other REG_* macros, since POSIX says the user is allowed to
84500         #undef these macros selectively.
84501
84502         (reg_errcode_t): Update comment stating what other tables need
84503         to be consistent.
84504
84505         Rename the following enum values to obey POSIX requirements.
84506         The old names are still visible as macros.
84507         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84508         is not defined, since GNU is supposed to be a superset of POSIX as
84509         much as possible, and since we want reg_errcode_t to be a signed
84510         type for implementation consistency.
84511         (_REG_NOERROR): Renamed from REG_NOERROR.
84512         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84513         (_REG_BADPAT): Renamed from REG_BADPAT.
84514         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84515         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84516         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84517         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84518         (_REG_EBRACK): Renamed from REG_EBRACK.
84519         (_REG_EPAREN): Renamed from REG_EPAREN.
84520         (_REG_EBRACE): Renamed from REG_EBRACE.
84521         (_REG_BADBR): Renamed from REG_BADBR.
84522         (_REG_ERANGE): Renamed from REG_ERANGE.
84523         (_REG_ESPACE): Renamed from REG_ESPACE.
84524         (_REG_BADRPT): Renamed from REG_BADRPT.
84525         (_REG_EEND): Renamed from REG_EEND.
84526         (_REG_ESIZE): Renamed from REG_ESIZE.
84527         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84528         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84529         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84530         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84531         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84532
84533         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84534         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84535         changed.  But support the old name if the new one is not defined
84536         and if _REGEX_SOURCE.
84537
84538         Change the following member names in struct re_pattern_buffer.
84539         The old names are still supported if !_REGEX_SOURCE.
84540         The new names are always supported, regardless of _REGEX_SOURCE.
84541         (re_buffer): Renamed from buffer.
84542         (re_allocated): Renamed from allocated.
84543         (re_used): Renamed from used.
84544         (re_syntax): Renamed from syntax.
84545         (re_fastmap): Renamed from fastmap.
84546         (re_translate): Renamed from translate.
84547         (re_can_be_null): Renamed from can_be_null.
84548         (re_regs_allocated): Renamed from regs_allocated.
84549         (re_fastmap_accurate): Renamed from fastmap_accurate.
84550         (re_no_sub): Renamed from no_sub.
84551         (re_not_bol): Renamed from not_bol.
84552         (re_not_eol): Renamed from not_eol.
84553         (re_newline_anchor): Renamed from newline_anchor.
84554
84555         Change the following member names in struct re_registers.
84556         The old names are still supported if !_REGEX_SOURCE.
84557         The new names are always supported, regardless of _REGEX_SOURCE.
84558         (rm_num_regs): Renamed from num_regs.
84559         (rm_start): Renamed from start.
84560         (rm_end): Renamed from end.
84561
84562         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84563         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84564         Prepend __ to parameter names.
84565
84566         Undo yesterday's changes.
84567
84568 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84571         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84572         lib/regex.c.
84573
84574 2005-08-24  Jim Meyering  <jim@meyering.net>
84575
84576         Sync from coreutils.
84577         * m4/fcntl-safer.m4: New file.
84578
84579         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84580         and object files for this module.
84581
84582 2005-08-24  Jim Meyering  <jim@meyering.net>
84583
84584         Sync from coreutils.
84585         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84586
84587 2005-08-24  Jim Meyering  <jim@meyering.net>
84588
84589         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84590         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84591
84592 2005-08-24  Jim Meyering  <jim@meyering.net>
84593
84594         * modules/fcntl-safer: New module.
84595         * modules/fts (Depends-on): Add fcntl-safer.
84596         * MODULES.html.sh (File descriptor based Input/Output):
84597         Add fcntl-safer.
84598
84599 2005-08-24  Bruno Haible  <bruno@clisp.org>
84600
84601         Support for unit test modules.
84602         * modules/README: Mention tests modules.
84603         * modules/TEMPLATE-TESTS: New file.
84604         * gnulib-tool: New options --extract-tests-module, --with-tests and
84605         --tests-base (unused for the moment).
84606         (testsbase, inctests): New variables.
84607         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84608         (func_verify_module): Exclude TEMPLATE-TESTS.
84609         (func_verify_nontests_module, func_verify_tests_module): New functions.
84610         (func_get_dependencies): Add implicit dependency for tests modules.
84611         (func_get_tests_module): New function.
84612         (func_modules_transitive_closure): When --with-tests was specified,
84613         include the unit tests as well, unless explicitly avoided.
84614         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84615         (func_emit_tests_Makefile_am): New function.
84616         (func_create_testdir): When --with-tests was specified, emit a
84617         tests/ directory.
84618         * MODULES.html.sh (Future developments): Update.
84619
84620 2005-08-24  Bruno Haible  <bruno@clisp.org>
84621
84622         * modules/tls-tests: New file.
84623         * tests/test-tls.c: New file, from GNU gettext.
84624
84625 2005-08-24  Bruno Haible  <bruno@clisp.org>
84626
84627         * modules/lock-tests: New file.
84628         * tests/test-lock.c: New file, from GNU gettext.
84629
84630 2005-08-24  Bruno Haible  <bruno@clisp.org>
84631
84632         * lib/lock.h: Add multiple inclusion guard.
84633         * lib/tls.h: Add multiple inclusion guard.
84634
84635 2005-08-24  Bruno Haible  <bruno@clisp.org>
84636
84637         * gnulib-tool: Add support for the --aux-dir option to
84638         --create-testdir, --create-megatestdir, --test, --megatest.
84639         (func_create_testdir, func_create_megatestdir): Optionally emit a
84640         AC_CONFIG_AUX_DIR directive.
84641         (create-testdir, create-megatestdir, test, megatest): Provide a
84642         default value for $auxdir.
84643
84644 2005-08-24  Bruno Haible  <bruno@clisp.org>
84645
84646         * gnulib-tool (import): Use compound statement instead of subshell
84647         where possible.
84648
84649 2005-08-24  Bruno Haible  <bruno@clisp.org>
84650
84651         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84652
84653 2005-08-24  Bruno Haible  <bruno@clisp.org>
84654
84655         * gnulib-tool (func_version): Update.
84656
84657 2005-08-24  Bruno Haible  <bruno@clisp.org>
84658
84659         * gnulib-tool (func_import, func_create_testdir,
84660         func_create_megatestdir): Quote all autoconf macro arguments.
84661
84662 2005-08-24  Bruno Haible  <bruno@clisp.org>
84663
84664         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84665         option --force, because --force causes the aclocal.m4 of each
84666         subdirectory to be newer than the corresponding config.h.in.
84667
84668 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84669
84670         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84671         All contents moved to gl_REGEX.
84672         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84673         assume that it does.
84674
84675 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * lib/regex.h (REG_NOSYS)
84678         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84679         Define, since POSIX requires it as of 2001.
84680         (_REG_ENOSYS)
84681         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84682         New private symbol, used to keep the enum signed in all cases.
84683         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84684         Youngman in
84685         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84686
84687         * lib/regex_internal.c (re_string_skip_chars, register_state):
84688         (calc_state_hash):
84689         Remove forward decls; no longer needed now that we use prototypes.
84690         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84691         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84692         (clean_state_log_if_needed): Likewise.
84693
84694 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84695
84696         * config/srclist.txt: Add glibc bugs 1231-1233.
84697
84698 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84699
84700         Fix problems reported by Sam Steingold in
84701         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84702         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84703         assumed that reg_errcode_t is a signed type, which is not
84704         necessarily true if _XOPEN_SOURCE is not defined.
84705         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84706         since some compilers warn about it otherwise.
84707
84708 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84711         (init_word_char, create_initial_state, duplicate_node_closure):
84712         (fetch_token, peek_token_bracket, build_range_exp):
84713         (build_collating_symbol): Remove forward decls; no longer needed
84714         now that we use prototypes.
84715
84716         * lib/regcomp.c:
84717         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84718         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84719         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84720         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84721         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84722         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84723         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84724         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84725         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84726         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84727         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84728         (build_charclass, build_charclass_op, fetch_number, create_tree):
84729         (create_token_tree, mark_opt_subexp, duplicate_tree):
84730         Use prototypes rather than old-style definitions.
84731
84732         * lib/regex_internal.c:
84733         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84734         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84735         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84736         (re_string_reconstruct, re_string_peek_byte_case):
84737         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84738         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84739         (re_node_set_init_copy, re_node_set_add_intersect):
84740         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84741         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84742         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84743         (re_acquire_state, re_acquire_state_context, register_state):
84744         (create_ci_newstate, create_cd_newstate, free_state):
84745         Likewise.
84746         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84747         re_search_2):
84748         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84749         (re_search_internal, prune_impossible_nodes):
84750         (acquire_init_state_context, check_matching, static):
84751         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84752         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84753         (update_regs, sift_states_backward, build_sifted_states):
84754         (clean_state_log_if_needed, merge_state_array):
84755         (update_cur_sifted_state, add_epsilon_src_nodes):
84756         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84757         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84758         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84759         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84760         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84761         (check_arrival, check_arrival_add_next_nodes):
84762         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84763         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84764         (check_node_accept_bytes, check_node_accept, extend_buffers):
84765         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84766         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84767         (sift_ctx_init):
84768         Likewise.
84769
84770         * lib/regex_internal.h:
84771         (re_string_allocate, re_string_construct, re_string_reconstruct):
84772         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84773         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84774         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84775         (re_string_context_at, re_string_peek_byte_case):
84776         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84777         is defined, since we now use prototypes always.
84778
84779         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84780         C89 or better.  All uses removed.
84781
84782 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * config/srclist.txt: Add glibc bugs 1220-1227.
84785
84786 2005-08-20  Jim Meyering  <jim@meyering.net>
84787
84788         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84789         of unused local, dfa.
84790
84791 2005-08-20  Bruno Haible  <bruno@clisp.org>
84792
84793         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84794
84795 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84796
84797         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84798         (re_node_set_insert_last, re_dfa_add_node):
84799         Rename local variables to avoid GCC shadowing warnings.
84800
84801 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84804         [defined lint]: Suppress bogus uninitialized-variable warnings.
84805
84806         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84807         and let the caller return REG_ESPACE if out of space.  This
84808         removes an uninitialied-variable warning with GCC 4.0.1, and also
84809         avoids taking the address of a local variable.  All callers
84810         changed.
84811
84812 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84815         $LIBCSRC/posix/regexec.c.
84816         Add glibc bug 1217 for regcomp.c.
84817
84818 2005-08-19  Jim Meyering  <jim@meyering.net>
84819
84820         * lib/regexec.c (proceed_next_node): Redo local variables to
84821         avoid GCC shadowing warnings.
84822
84823 2005-08-18  Bruno Haible  <bruno@clisp.org>
84824
84825         * lib/strstr.c (strstr): Fix return value in multibyte case.
84826         * lib/strcasestr.c (strcasestr): Likewise.
84827
84828 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84831
84832 2005-08-17  Jim Meyering  <jim@meyering.net>
84833
84834         Make the %s format (seconds since the epoch) work for a negative
84835         number and when used with a zero-padded field width, e.g. %015s.
84836
84837         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84838         label so that it precedes the code to set `digits'.  Otherwise,
84839         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84840         print `00-22'.  Now, it prints `-0022', as it should.
84841
84842 2005-08-17  Bruno Haible  <bruno@clisp.org>
84843
84844         * modules/strstr (Files): Add m4/mbrtowc.m4.
84845         (Depends-on): Add mbuiter.
84846
84847 2005-08-17  Bruno Haible  <bruno@clisp.org>
84848
84849         * modules/strcasestr: New file.
84850         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84851         strcasestr.
84852
84853 2005-08-17  Bruno Haible  <bruno@clisp.org>
84854
84855         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84856
84857 2005-08-17  Bruno Haible  <bruno@clisp.org>
84858
84859         * modules/mbuiter: New file.
84860         * MODULES.html.sh (Extended multibyte and wide character utilities):
84861         Add mbuiter.
84862
84863 2005-08-17  Bruno Haible  <bruno@clisp.org>
84864
84865         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84866         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84867
84868 2005-08-17  Bruno Haible  <bruno@clisp.org>
84869
84870         * m4/strcasestr.m4: New file.
84871
84872 2005-08-17  Bruno Haible  <bruno@clisp.org>
84873
84874         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84875         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84876
84877 2005-08-17  Bruno Haible  <bruno@clisp.org>
84878
84879         * lib/strcasestr.h: New file.
84880         * lib/strcasestr.c: New file.
84881
84882 2005-08-17  Bruno Haible  <bruno@clisp.org>
84883
84884         * lib/strcasecmp.c: Use mbuiter.h.
84885
84886 2005-08-17  Bruno Haible  <bruno@clisp.org>
84887
84888         * lib/mbuiter.h: New file.
84889
84890 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84891
84892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84893         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84894         and gl_GETOPT are both invoked via different paths (as happens
84895         with GNU tar CVS because it uses both argp and getopt), the former
84896         wins.
84897
84898 2005-08-16  Bruno Haible  <bruno@clisp.org>
84899
84900         * modules/tls: New file.
84901         * MODULES.html.sh (Multithreading): Add tls.
84902
84903 2005-08-16  Bruno Haible  <bruno@clisp.org>
84904
84905         * modules/strnlen1: New file.
84906         * MODULES.html.sh (String handling): Add strnlen1.
84907
84908 2005-08-16  Bruno Haible  <bruno@clisp.org>
84909
84910         * modules/strcase (Files): Add m4/mbrtowc.m4.
84911         (Depends-on): Add strnlen1, mbchar.
84912
84913 2005-08-16  Bruno Haible  <bruno@clisp.org>
84914
84915         * modules/mbiter: New file.
84916         * MODULES.html.sh (Extended multibyte and wide character utilities):
84917         Add mbiter.
84918
84919 2005-08-16  Bruno Haible  <bruno@clisp.org>
84920
84921         * modules/mbfile: New file.
84922         * MODULES.html.sh (Extended multibyte and wide character utilities):
84923         Add mbfile.
84924
84925 2005-08-16  Bruno Haible  <bruno@clisp.org>
84926
84927         * modules/mbchar: New file.
84928         * MODULES.html.sh (Extended multibyte and wide character utilities):
84929         New section.
84930
84931 2005-08-16  Bruno Haible  <bruno@clisp.org>
84932
84933         * m4/tls.m4: New file, from GNU gettext.
84934
84935 2005-08-16  Bruno Haible  <bruno@clisp.org>
84936
84937         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84938         always.
84939         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84940
84941 2005-08-16  Bruno Haible  <bruno@clisp.org>
84942
84943         * m4/mbiter.m4: New file.
84944
84945 2005-08-16  Bruno Haible  <bruno@clisp.org>
84946
84947         * m4/mbfile.m4: New file.
84948
84949 2005-08-16  Bruno Haible  <bruno@clisp.org>
84950
84951         * m4/mbchar.m4: New file.
84952
84953 2005-08-16  Bruno Haible  <bruno@clisp.org>
84954
84955         * lib/tls.h: New file, from GNU gettext.
84956         * lib/tls.c: New file, from GNU gettext.
84957
84958 2005-08-16  Bruno Haible  <bruno@clisp.org>
84959
84960         * lib/strnlen1.h: New file.
84961         * lib/strnlen1.c: New file.
84962
84963 2005-08-16  Bruno Haible  <bruno@clisp.org>
84964
84965         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84966         (mbi_init): Update.
84967         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84968         NUL byte, not after it.
84969
84970 2005-08-16  Bruno Haible  <bruno@clisp.org>
84971
84972         * lib/strcase.h (strcasecmp): Add note in comments.
84973         * lib/strncasecmp.c: Use code from strcasecmp.c.
84974         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84975         (strcasecmp): Work correctly in multibyte locales.
84976
84977 2005-08-16  Bruno Haible  <bruno@clisp.org>
84978
84979         * lib/mbiter.h: New file.
84980
84981 2005-08-16  Bruno Haible  <bruno@clisp.org>
84982
84983         * lib/mbfile.h: New file.
84984
84985 2005-08-16  Bruno Haible  <bruno@clisp.org>
84986
84987         * lib/mbchar.h: New file.
84988         * lib/mbchar.c: New file.
84989
84990 2005-08-16  Bruno Haible  <bruno@clisp.org>
84991
84992         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84993         the valid ones. Makes the comparison operations transitive:
84994         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84995         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84996
84997 2005-08-15  Simon Josefsson  <jas@extundo.com>
84998
84999         * modules/ssize_t (License): Change to 'unlimited'.
85000
85001         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85002
85003 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85004
85005         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85006         Add comments for each pending glibc patch.
85007
85008 2005-08-15  Bruno Haible  <bruno@clisp.org>
85009
85010         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85011         __cplusplus is defined.
85012
85013 2005-08-14  Jim Meyering  <jim@meyering.net>
85014
85015         Sync from coreutils.
85016
85017         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85018         Use the hash-table-based cycle-detection code not just when
85019         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85020         Reported by James Youngman in
85021         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85022         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85023         FTS_TIGHT_CYCLE_CHECK.
85024         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85025         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85026         once again.
85027         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85028         * lib/fts.c (fd_safer): Remove decl.
85029         Include fcntl--.h rather than unistd-safer.h
85030         (fts_safe_changedir): Don't call fd_safer; no longer needed
85031         now that we include fcntl--.h.
85032
85033 2005-08-12  Simon Josefsson  <jas@extundo.com>
85034
85035         * modules/getndelim2: Use ssize_t module.
85036         * modules/getnline: Likewise.
85037         * modules/safe-read: Likewise.
85038         * modules/xreadlink: Likewise.
85039
85040         * modules/ssize_t: New file.
85041
85042 2005-08-12  Simon Josefsson  <jas@extundo.com>
85043
85044         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85045
85046 2005-08-12  Simon Josefsson  <jas@extundo.com>
85047
85048         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85049         ssize_t.
85050
85051 2005-08-12  Simon Josefsson  <jas@extundo.com>
85052
85053         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85054         readline, getdelim and check_version.
85055         (Support for systems lacking ISO C 99: Sizes of integer types):
85056         Add size_max.
85057
85058 2005-08-12  Bruno Haible  <bruno@clisp.org>
85059
85060         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85061
85062 2005-08-11  Simon Josefsson  <jas@extundo.com>
85063
85064         * modules/readline: New file.
85065
85066         * modules/strnlen (Files): Add strnlen.h.
85067
85068 2005-08-11  Simon Josefsson  <jas@extundo.com>
85069
85070         * m4/readline.m4: New file.
85071
85072 2005-08-11  Simon Josefsson  <jas@extundo.com>
85073
85074         * lib/readline.h, readline.c: New file.
85075
85076 2005-08-11  Simon Josefsson  <jas@extundo.com>
85077
85078         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85079         gl_AVOID.
85080
85081 2005-08-11  Bruno Haible  <bruno@clisp.org>
85082
85083         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85084
85085 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85086
85087         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85088
85089 2005-08-10  Simon Josefsson  <jas@extundo.com>
85090
85091         * tests/test-iconvme.c: New file.
85092
85093 2005-08-10  Simon Josefsson  <jas@extundo.com>
85094
85095         * m4/strnlen.m4: New file.
85096
85097         * m4/strndup.m4: Don't check for strnlen declaration, done in
85098         strnlen.m4.
85099
85100 2005-08-10  Simon Josefsson  <jas@extundo.com>
85101
85102         * lib/strndup.c: Use strnlen.h.
85103
85104         * lib/strnlen.h: New file.
85105
85106 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85107
85108         * README: Typos.
85109
85110 2005-08-02  Simon Josefsson  <jas@extundo.com>
85111
85112         * modules/readline: New file.
85113
85114 2005-08-02  Simon Josefsson  <jas@extundo.com>
85115
85116         * modules/getdelim: New file.
85117
85118         * modules/getline: Rewrite, don't use getndelim2.
85119
85120 2005-08-02  Simon Josefsson  <jas@extundo.com>
85121
85122         * m4/getline.m4: Separate out getdelim stuff into separate module.
85123
85124         * m4/getdelim.m4: New file.
85125
85126 2005-08-02  Simon Josefsson  <jas@extundo.com>
85127
85128         * lib/getline.h, getline.c: Rewrite.
85129
85130         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85131
85132 2005-07-31  Bruno Haible  <bruno@clisp.org>
85133
85134         * lib/lock.h (gl_lock_initializer): New macro.
85135         (gl_lock_define_initialized): Use it.
85136         (gl_rwlock_initializer): New macro.
85137         (gl_rwlock_define_initialized): Use it.
85138         (gl_recursive_lock_initializer): New macro.
85139         (gl_recursive_lock_define_initialized): Use it.
85140
85141 2005-07-30  Karl Berry  <karl@gnu.org>
85142
85143         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85144         Report from Ben Pfaff, regarding getopt.
85145
85146 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85149         normal way.
85150         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85151         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85152         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85153         (gl_GETOPT): Use the new macros.  Most of the implementation
85154         is moved to the new macros.  This is for programs like Emacs
85155         that don't want all the functionality of gl_GETOPT.
85156
85157 2005-07-26  Bruno Haible  <bruno@clisp.org>
85158
85159         * m4/lock.m4: Update from GNU gettext.
85160
85161 2005-07-26  Bruno Haible  <bruno@clisp.org>
85162
85163         * lib/lock.h: Update from GNU gettext.
85164         * lib/lock.c: Update from GNU gettext.
85165
85166 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85169         obsolescent AC_TRY_RUN.  Include the default includes files, for
85170         'exit'.
85171
85172 2005-07-24  Bruno Haible  <bruno@clisp.org>
85173
85174         * modules/visibility: New file.
85175         * MODULES.html.sh (Misc): Add visibility.
85176
85177 2005-07-24  Bruno Haible  <bruno@clisp.org>
85178
85179         * m4/visibility.m4: New file.
85180
85181 2005-07-24  Bruno Haible  <bruno@clisp.org>
85182
85183         * doc/visibility.texi: New file.
85184
85185 2005-07-22  Bruno Haible  <bruno@clisp.org>
85186
85187         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85188         $(ALLOCA_H), redundant through BUILT_SOURCES.
85189         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85190         redundant through BUILT_SOURCES.
85191         * modules/byteswap (Makefile.am): Remove explicit dependency on
85192         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85193         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85194         $(FNMATCH_H), redundant through BUILT_SOURCES.
85195         * modules/getopt (Makefile.am): Remove explicit dependency on
85196         $(GETOPT_H), redundant through BUILT_SOURCES.
85197         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85198         redundant through BUILT_SOURCES.
85199         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85200         redundant through BUILT_SOURCES.
85201         * modules/stdbool (Makefile.am): Remove explicit dependency on
85202         $(STDBOOL_H), redundant through BUILT_SOURCES.
85203         * modules/stdint (Makefile.am): Remove explicit dependency on
85204         $(STDINT_H), redundant through BUILT_SOURCES.
85205         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85206         Remove explicit dependency on $(SYSEXITS_H).
85207         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85208
85209 2005-07-18  Simon Josefsson  <jas@extundo.com>
85210
85211         * lib/check-version.c (check_version): Accept identical versions too.
85212
85213 2005-07-18  Bruno Haible  <bruno@clisp.org>
85214
85215         * modules/lock: New file.
85216         * MODULES.html.sh (Multithreading): New section.
85217
85218 2005-07-18  Bruno Haible  <bruno@clisp.org>
85219
85220         * m4/lock.m4: New file, from GNU gettext.
85221
85222 2005-07-18  Bruno Haible  <bruno@clisp.org>
85223
85224         * lib/lock.h: New file, from GNU gettext.
85225         * lib/lock.c: New file, from GNU gettext.
85226
85227 2005-07-18  Bruno Haible  <bruno@clisp.org>
85228
85229         * lib/lock.h (gl_once_t): New type.
85230         (gl_once_define, gl_once): New macros.
85231         * lib/lock.c (fresh_once): New variable.
85232         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85233         functions.
85234
85235 2005-07-16  Simon Josefsson  <jas@extundo.com>
85236
85237         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85238         workaround, suggested by Bruno.
85239
85240 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85241
85242         * modules/xalloc (Depends-on): Add xalloc-die.
85243         * modules/xvasprintf (Depends-on): Add xalloc-die.
85244
85245 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85246
85247         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85248         with a minor change.
85249
85250 2005-07-15  Bruno Haible  <bruno@clisp.org>
85251
85252         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85253         When using lib/poll.c, define poll as rpl_poll.
85254
85255 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85256
85257         * modules/argp (Depends-on): Remove unlocked-io.
85258
85259 2005-07-14  Derek Price  <derek@ximbiot.com>
85260
85261         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85262         for glob symlink bug.
85263
85264 2005-07-14  Bruno Haible  <bruno@clisp.org>
85265
85266         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85267         Instead, test for *_unlocked function declarations directly.
85268
85269 2005-07-11  Simon Josefsson  <jas@extundo.com>
85270
85271         * modules/size_max: New file.
85272
85273         * modules/xsize: Depend on size_max module for size_max.m4.
85274
85275 2005-07-11  Simon Josefsson  <jas@extundo.com>
85276
85277         * lib/size_max.h: New file.
85278
85279 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85280
85281         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85282         copyright symbol and the year.
85283         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85284         (version_etc_va): Use parameterized copyright notice.
85285         Reword to conform to the current GNU coding standards.
85286
85287 2005-07-11  Karl Berry  <karl@gnu.org>
85288
85289         * doc/gnulib.texi (Quoting): new node.
85290         (Initial import): more info, from Patrice.
85291
85292 2005-07-11  Bruno Haible  <bruno@clisp.org>
85293
85294         * gnulib-tool (func_usage): Document option --avoid.
85295         (Command line options): Handle --avoid.
85296         (func_acceptable): New function.
85297         (func_modules_transitive_closure): Use it.
85298
85299 2005-07-11  Bruno Haible  <bruno@clisp.org>
85300
85301         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85302         Reported by Jim Meyering.
85303
85304 2005-07-10  Bruno Haible  <bruno@clisp.org>
85305
85306         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85307         Needed when size_t is smaller than 'unsigned int'.
85308         Reported by Paul Eggert.
85309
85310 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85311
85312         * modules/argp (Depends-on): Add unlocked-io
85313
85314 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85315
85316         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85317         block of defines.
85318
85319 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85322         fix now.
85323
85324 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85325         and Paul Eggert  <eggert@cs.ucla.edu>
85326
85327         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85328         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85329
85330 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * modules/regex (Files): Add lib/regex_internal.c,
85333         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85334         (Depends-on): Add extensions.
85335         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85336
85337 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85338
85339         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85340         pathconf.
85341         * m4/same.m4 (gl_SAME): Likewise.
85342         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85343
85344         * m4/regex.m4: Adjust to new libc regex implementation.
85345         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85346         all the .c and .h parts of (the new) regex.
85347         Quote the m4 stuff better.
85348         Check for RE_ICASE bug of old gnulib.
85349         Check for REG_STARTEND of recent libc.
85350         Rename local variables from jm_* to gl_*.
85351         Quote operand of "test -f".
85352         Say "recent enough" version of libc, not "version 2".
85353         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85354         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85355         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85356         Remove check for btowc, isascii.
85357         Require AM_LANGINFO_CODESET.
85358
85359 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85360
85361         * lib/regex.c, regex.h: Sync from libc.
85362         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85363         * lib/regexec.c:
85364         New files, synced from libc, except that regex_internal.h
85365         currently has a small porting fix.
85366
85367 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85370         regex_internal.c, regexec.c.
85371         Add regex_internal.h too, but as a comment, since the libc version
85372         is currently broken in gnulib mode.
85373
85374 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         Support programs like Emacs that use gnulib but not gettext.
85377         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85378         * modules/gettext-h: New file.
85379         * modules/gettext (Files): Remove lib/gettext.h.
85380         (Depends-on): Add gettext-h.
85381         (Makefile.am): Remove lib_SOURCES.
85382         * modules/argmatch, modules/c-stack, modules/closeout:
85383         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85384         * modules/execute, modules/file-type, modules/getaddrinfo:
85385         * modules/getopt, modules/human, modules/javacomp:
85386         * modules/javaexec, modules/mkdir-p, modules/obstack:
85387         * modules/openat, modules/pagealign_alloc, modules/pipe:
85388         * modules/quotearg, modules/regex, modules/rpmatch:
85389         * modules/unicodeio, modules/userspec, modules/version-etc:
85390         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85391         * modules/xsetenv:
85392         Depend on gettext-h, not gettext.
85393
85394 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * gnulib-tool (func_import): Add support for 'public domain' license.
85397         * modules/alloca, modules/atexit, modules/memmove:
85398         Now public domain, not GPL.
85399         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85400         * modules/realloc, modules/strerror, modules/strtod:
85401         Now LGPL, not GPL.
85402
85403 2005-07-05  Bruno Haible  <bruno@clisp.org>
85404
85405         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85406         autoconf CVS. Needed for mingw.
85407
85408 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         Remove the dependency of the strftime module on the tzset module.
85411         * modules/strftime (Depends-on): Remove dependency on tzset.
85412
85413 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85414
85415         Remove the dependency of the strftime module on the tzset module.
85416         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85417         gl_FUNC_TZSET_CLOBBER.
85418
85419 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         Remove the dependency of the strftime module on the tzset module.
85422         * lib/strftime.c (my_strftime)
85423         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85424         Copy the input structure, to work around some of the bug with
85425         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85426         Solaris releases, you should also use the tzset module, but we won't
85427         require it as a dependency any more since we don't want LGPLed code
85428         to depend on GPLed code.
85429
85430 2005-07-02  Jim Meyering  <jim@meyering.net>
85431
85432         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85433         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85434         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85435         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85436
85437 2005-07-02  Jim Meyering  <jim@meyering.net>
85438
85439         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85440
85441 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85444         declares only 'struct timespec;' (!).
85445
85446 2005-07-01  Jim Meyering  <jim@meyering.net>
85447
85448         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85449         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85450         * lib/save-cwd.c, tempname.c:
85451         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85452         and don't include <sys/file.h>).
85453
85454 2005-06-29  Jim Meyering  <jim@meyering.net>
85455
85456         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85457         type name.  Use the variable name instead.
85458         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85459         Likewise.
85460
85461 2005-06-28  Simon Josefsson  <jas@extundo.com>
85462
85463         * modules/check-version (Files): Add check-version.m4.
85464
85465 2005-06-28  Simon Josefsson  <jas@extundo.com>
85466
85467         * m4/check-version.m4: New file, suggested by Jim Meyering
85468         <jim@meyering.net>.
85469
85470 2005-06-28  Simon Josefsson  <jas@extundo.com>
85471
85472         * lib/check-version.h, lib/check-version.c: New files.
85473
85474 2005-06-28  Simon Josefsson  <jas@extundo.com>
85475
85476         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85477         collision with global variable.  Better indentation.  Don't
85478         increment buffer pointer beyond buffer end.  Based on comments
85479         from Paul Eggert <eggert@cs.ucla.edu>.
85480
85481         * lib/base64.h: Indent.
85482
85483 2005-06-28  Simon Josefsson  <jas@extundo.com>
85484
85485         * doc/gnulib.texi (Library version handling): New section.
85486
85487 2005-06-28  Jim Meyering  <jim@meyering.net>
85488
85489         * check-module (find_included_lib_files): Hard-code another
85490         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85491         but modules/fts-lgpl (correctly) does not list those files.
85492
85493         * modules/canonicalize (Files): Add lib/pathmax.h.
85494
85495 2005-06-25  Simon Josefsson  <jas@extundo.com>
85496
85497         * modules/check-version: New file.
85498
85499 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85500
85501         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85502         initializer of struct addrinfo, as an indication that we don't
85503         care how many members the structure has.
85504
85505 2005-06-24  Derek Price  <derek@ximbiot.com>
85506         and Bruno Haible  <bruno@clisp.org>
85507
85508         Remove stat module & update lstat.
85509         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85510         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85511         * m4/stat.m4: Remove this file.
85512
85513 2005-06-24  Derek Price  <derek@ximbiot.com>
85514         and Bruno Haible  <bruno@clisp.org>
85515
85516         Remove stat module & update lstat.
85517         * lib/stat.c: Remove this file...
85518         (slash_aware_lstat): ...moving this content and its support...
85519         * lib/lstat.c (rpl_lstat): ...into here.
85520         * lib/lstat.h: New file.
85521
85522 2005-06-24  Derek Price  <derek@ximbiot.com>
85523         and Bruno Haible  <bruno@clisp.org>
85524
85525         Remove stat module & update lstat.
85526         * config/srclist.txt (libc sources): Remove stat.
85527
85528 2005-06-24  Derek Price  <derek@ximbiot.com>
85529         and Bruno Haible  <bruno@clisp.org>
85530
85531         Remove stat module & update lstat.
85532         * MODULES.html.sh (stat): Remove.
85533         * MODULES.html: Regenerated.
85534         * modules/lstat (Description): Correct function name.
85535         (Files): Add "lstat.h".
85536         (Depends-on): Remove stat, add xalloc, stat-macros.
85537         * modules/stat: Remove this file.
85538         (Include): Add "lstat.h", remove <sys/stat.h>.
85539
85540 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85541
85542         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85543         (ranged_convert): Don't save conversion in a temporary struct.
85544         This causes a warning with GCC 4.0.0, and anyway in the typical
85545         case it's not worth the extra 100 bytes or so of code.
85546         (ranged_convert, __mktime_internal): When calling a function via a
85547         pointer P, use P () rather than (*P) (), as we now assume C89 or
85548         better.
85549
85550 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85551
85552         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85553         "who -r" failed to give output.  Problem reported by Tim Waugh.
85554
85555         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85556         (xcalloc): Use it to avoid needless tests.
85557         Problem reported by Jim Meyering.
85558
85559 2005-06-20  Derek Price  <derek@ximbiot.com>
85560
85561         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85562         unnecessary for Autoconfs > 2.59c.
85563
85564 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85565
85566         * lib/argp.h (__option_is_short): Check upper limit of
85567         __key. Isprint() requires its argument to have the value
85568         of an unsigned char or EOF.
85569
85570 2005-06-16  Jim Meyering  <jim@meyering.net>
85571
85572         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85573         when either N or S is zero.
85574
85575 2005-06-16  Derek Price  <derek@ximbiot.com>
85576
85577         * m4/bison.m4: Declare YACC & YFLAGS precious.
85578
85579 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85582         multibyte string or pattern, fall back on unibyte matching.
85583         Problem reported by James Youngman.
85584
85585 2005-06-08  Bruno Haible  <bruno@clisp.org>
85586
85587         * modules/csharpcomp: New file.
85588         * MODULES.html.sh (C#): Add csharpcomp.
85589
85590 2005-06-08  Bruno Haible  <bruno@clisp.org>
85591
85592         * m4/csharpcomp.m4: New file, from GNU gettext.
85593
85594 2005-06-08  Bruno Haible  <bruno@clisp.org>
85595
85596         * lib/csharpcomp.h: New file, from GNU gettext.
85597         * lib/csharpcomp.c: New file, from GNU gettext.
85598         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85599
85600 2005-06-08  Bruno Haible  <bruno@clisp.org>
85601
85602         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85603         warning on mingw.
85604
85605 2005-06-07  Derek Price  <derek@ximbiot.com>
85606
85607         Sync from CVS.
85608         * lib/glob_.h: Indent nested #ifdef.
85609
85610 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85611
85612         Sync from coreutils.
85613         Use "file name" when talking about file names, instead of "filename"
85614         or "path", as per the GNU coding standards.
85615         * lib/mkdir-p.c: Renamed from makepath.c.
85616         (make_dir_parents): Renamed from make_path.  All callers changed.
85617         * lib/mkdir-p.h: Likewise.  All includers changed.
85618         * lib/filenamecat.c: Renamed from path-concat.c.
85619         (file_name_concat): Renamed from path_concat.  All callers changed.
85620         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85621         * lib/filenamecat.h: Likewise.  All includers changed.
85622         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85623         in comments or local variable names.
85624         * lib/basename.c: Likewise.
85625         * lib/canonicalize.c, canonicalize.h: Likewise.
85626         * lib/dirname.c, dirname.h: Likewise.
85627         * lib/euidaccess.c: Likewise.
85628         * lib/exclude.c: Likewise
85629         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85630         * lib/fsusage.c, fsuage.h: Likewise.
85631         * lib/fts.c, fts_.h: Likewise.
85632         * lib/getcwd.c: Likewise.
85633         * lib/getloadavg.c: Likewise.
85634         * lib/mkstemp.c: Likewise.
85635         * lib/mountlist.c, mountlist.h: Likewise.
85636         * lib/openat.c, openat.h: Likewise.
85637         * lib/readlink-stub.c: Likewise.
85638         * lib/readutmp.c, readutmp.h: Likewise.
85639         * lib/rename.c: Likewise.
85640         * lib/rmdir.c: Likewise.
85641         * lib/same.c: Likewise.
85642         * lib/savedir.c: Likewise.
85643         * lib/stripslash.c: Likewise.
85644         * lib/tempname.c: Likewise.
85645         * lib/xreadlink.c: Likewise.
85646         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85647         All uses changed.
85648         * lib/exclude.h: Likewise.
85649
85650         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85651         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85652         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85653         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85654         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85655         files have been getting away with it for years (MORE/BSD 4.3
85656         is extinct now).
85657         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85658         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85659
85660         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85661         Define to 256, not 255, as per modern POSIX.
85662
85663 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85664
85665         Sync from coreutils.
85666         Use "file name" when talking about file names, instead of "filename"
85667         or "path", as per the GNU coding standards.
85668         * MODULES.html.sh: mkdir-p renamed from makepath.
85669         filenamecat renamed from path-concat.
85670         * modules/filenamecat: Renamed from modules/path-concat.
85671         (Files): filenamecat.h and filenamecat.c renamed from
85672         path-concat.h and path-concat.c.
85673         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85674         (Include): filenamecat.h, not path-concat.h.
85675         * modules/mkdir-p: Renamed from modules/makepath.
85676         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85677         makepath.c.
85678         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85679         (Include): mkdir-p.h, not makepath.h.
85680
85681 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85682
85683         Sync from coreutils.
85684         * m4/mkdir-p.m4: Renamed from makepath.m4.
85685         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85686         Rename files from makepath.c to mkdir-p.c, and from
85687         makepath.h to mkdir-p.h.
85688         * m4/filenamecat.m4: Renamed from path-concat.m4.
85689         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85690         Rename files from path-concat.c to filenamecat.c,
85691         and from path-concat.h to filenamecat.h.
85692         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85693         "file name" in local variables or comments.
85694         * m4/rename.m4: Likewise.
85695
85696 2005-06-01  Bruno Haible  <bruno@clisp.org>
85697
85698         * modules/csharpexec: New file.
85699         * MODULES.html.sh (C#): New section.
85700
85701 2005-06-01  Bruno Haible  <bruno@clisp.org>
85702
85703         * m4/csharp.m4: New file, from GNU gettext.
85704         * m4/csharpexec.m4: New file, from GNU gettext.
85705
85706 2005-06-01  Bruno Haible  <bruno@clisp.org>
85707
85708         * lib/csharpexec.h: New file, from GNU gettext.
85709         * lib/csharpexec.c: New file, from GNU gettext.
85710         * lib/csharpexec.sh.in: New file, from GNU gettext.
85711
85712 2005-05-31  Derek Price  <derek@ximbiot.com>
85713             Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         Sync from cvs.
85716         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85717
85718 2005-05-31  Derek Price  <derek@ximbiot.com>
85719             Paul Eggert  <eggert@cs.ucla.edu>
85720
85721         Sync from cvs.
85722         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85723
85724 2005-05-29  Derek Price  <derek@ximbiot.com>
85725
85726         * config/srclist.txt (glob_.h, glob.c): Add these files.
85727
85728 2005-05-29  Derek Price  <derek@ximbiot.com>
85729
85730         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85731         * modules/glob: New file.
85732         * modules/getlogin_r: Add link to POSIX spec in description.
85733
85734 2005-05-29  Derek Price  <derek@ximbiot.com>
85735             Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         * m4/glob.m4: New file.
85738
85739 2005-05-29  Derek Price  <derek@ximbiot.com>
85740             Paul Eggert  <eggert@cs.ucla.edu>
85741
85742         * lib/glob_.h, lib/glob.c: New files.
85743
85744 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85745
85746         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85747         * modules/fts-lgpl (Depends-on): Remove gettext.
85748
85749 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85752         and don't require gt_INTTYPES_PRI.
85753
85754 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85755
85756         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85757
85758         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85759         the configuration hassle isn't worth it.
85760         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85761         (LONGEST_MODIFIER, PRIuMAX): Remove.
85762
85763 2005-05-27  Bruno Haible  <bruno@clisp.org>
85764
85765         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85766
85767 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85768
85769         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85770         _POSIX_PTHREAD_SEMANTICS for Solaris.
85771
85772 2005-05-25  Derek Price  <derek@ximbiot.com>
85773
85774         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85775
85776 2005-05-25  Derek Price  <derek@ximbiot.com>
85777             Paul Eggert  <eggert@cs.ucla.edu>
85778
85779         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85780         * lib/getlogin_r.c, getlogin_r.h: New files.
85781
85782 2005-05-25  Bruno Haible  <bruno@clisp.org>
85783             Derek Price  <derek@ximbiot.com>
85784
85785         * lib/getlogin_r.h: Simplify API documentation.
85786
85787 2005-05-23  Derek Price  <derek@ximbiot.com>
85788
85789         * modules/minmax (Files): Add m4/minmax.m4.
85790         (configure.ac): Add gl_MINMAX.
85791
85792 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85793
85794         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85795         so that unistd-safer.h (GPL'ed code) need not be included.
85796
85797 2005-05-22  Bruno Haible  <bruno@clisp.org>
85798
85799         * m4/minmax.m4: New file.
85800         Based on a patch by Derek Price <derek@ximbiot.com>.
85801
85802 2005-05-22  Bruno Haible  <bruno@clisp.org>
85803
85804         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85805         (INT64_MIN): Fix definition.
85806         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85807
85808         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85809         NEED_SIGNED_INT_TYPES.
85810
85811         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85812         HAVE_SYSTEM_INTTYPES.
85813
85814 2005-05-22  Bruno Haible  <bruno@clisp.org>
85815
85816         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85817         Also include <sys/param.h> if it defines MIN, MAX.
85818         Based on a patch by Derek Price <derek@ximbiot.com>.
85819
85820 2005-05-21  Jim Meyering  <jim@meyering.net>
85821
85822         * modules/fts (Files): Add m4/inttypes-pri.m4.
85823         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85824
85825 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85826
85827         New fts module.
85828         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85829         (setup_dir, free_dir): New functions.
85830         (enter_dir, leave_dir): Define trivial
85831         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85832         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85833         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85834         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85835         Move to fts-cycle.c.
85836         (fts_open): Use setup_dir.
85837         (fts_close): Use free_dir.
85838         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85839         This adds a label and some gotos, but the alternatives were messier.
85840         Check for memory allocation failure when entering a dir.
85841         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85842         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85843         (FTS): New member fts_cycle, that is a union that contains the
85844         old active_dir_ht and cycle_state.  All uses changed to mention
85845         fts_cycle.ht and fts_cycle.state.
85846         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85847         fts.c, with the following changes:
85848         (setup_dir, free_dir): New functions.
85849         (enter_dir): Now returns bool.  Return true if successful, false
85850         if memory exhausted.  All callers changed.
85851         Do not bother partly cleaning up on
85852         memory allocation failure; that is free_dir's job.
85853         However, free ad if hash_insert fails, to avoid memory leak.
85854         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85855         fts->fts_options to see which union member to use.
85856
85857 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85860         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85861
85862 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85863
85864         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85865
85866 2005-05-20  Jim Meyering  <jim@meyering.net>
85867
85868         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85869         Now a macro, to pacify GCC.
85870
85871 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85872
85873         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85874         of -1.
85875
85876 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85877
85878         * lib/chown.c (rpl_chown): Return -1 on failure.
85879
85880 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85883         Don't check for stddef.h.
85884         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85885         don't use its results.
85886         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85887         since we include them unconditionally.  Don't require
85888         AM_STDBOOL_H, since stdbool is a prerequisite.
85889         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85890         since we assume C89 or better.
85891         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85892         as we don't use their results.
85893         Don't check for fchdir, memmove, memset, strrchr, as we use
85894         them unconditionally.
85895         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85896         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85897
85898 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85901         Include <stddef.h> unconditionally, since we assume C89 now.
85902         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85903         * lib/fts.c: Include fts_.h first, to check interface.
85904         Do not include intprops.h; no longer needed.
85905         Include cycle-check.h and hash.h, since fts_.h no longer does.
85906         Remove unnecessary casts of closedir to void.
85907         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85908         decide whether to decrement nlinks.
85909         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85910         (FTS): Use struct hash_table * instead of Hash_table, so that
85911         we no longer need to include hash.h here.
85912
85913 2005-05-18  Jim Meyering  <jim@meyering.net>
85914
85915         * modules/dirfd (License): Change to LGPL.  Most of the code
85916         is already in the public domain.
85917
85918 2005-05-18  Jim Meyering  <jim@meyering.net>
85919
85920         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85921         Reported by Yoann Vandoorselaere.
85922
85923 2005-05-17  Jim Meyering  <jim@meyering.net>
85924
85925         * m4/fts.m4: New file, from coreutils.
85926
85927 2005-05-17  Jim Meyering  <jim@meyering.net>
85928
85929         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85930
85931 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85932
85933         Sync from coreutils.
85934         * m4/unlinkdir.m4: New file.
85935
85936 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85937
85938         Sync from coreutils.
85939         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85940         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85941         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85942         White space changes only.
85943         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85944         special.
85945         * lib/yesno.c: Include getline.h, not ctype.h.
85946         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85947         Use getline to remove arbitrary restriction on response length.
85948
85949 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * config/srclist-update: Spell out "Street" in FSF postal
85952         mail address; this is the style the FSF seems to prefer.
85953
85954         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85955         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85956         this updates FSF postal mail address.
85957
85958         Sync from coreutils.
85959         * modules/unlinkdir: New file.
85960         * modules/yesno (Depends-on): Add getline.
85961         * MODULES.html.sh (File system functions): Add unlinkdir.
85962
85963 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85966         lib/strsep.h:
85967         Change the initial comment to refer to GPL, not LGPL.
85968         gnulib-tool will change it to LGPL as needed.
85969
85970         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85971         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85972         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85973         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85974         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85975         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85976         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85977         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85978         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85979         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85980         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85981         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85982         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85983         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85984         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85985         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85986         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85987         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85988         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85989         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85990         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85991         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85992         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85993         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85994         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85995         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85996         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85997         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85998         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85999         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86000         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86001         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86002         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86003         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86004         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86005         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86006         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86007         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86008         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86009         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86010         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86011         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86012         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86013         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86014         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86015         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86016         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86017         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86018         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86019         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86020         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86021         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86022         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86023         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86024         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86025         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86026         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86027         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86028         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86029         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86030         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86031         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86032         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86033         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86034         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86035         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86036         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86037         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86038         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86039         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86040         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86041         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86042         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86043         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86044         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86045         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86046         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86047         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86048         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86049         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86050         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86051         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86052         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86053         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86054         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86055         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86056         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86057         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86058         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86059         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86060         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86061         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86062         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86063         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86064         lib/yesno.c, lib/yesno.h:
86065         Update FSF postal mail address.
86066
86067 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86068
86069         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86070         tests/test-memmem.c, tests/test-stpncpy.c:
86071         Update FSF postal mail address.
86072
86073 2005-05-13  Bruno Haible  <bruno@clisp.org>
86074
86075         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86076         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86077         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86078         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86079         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86080         Add support for 64-bit integers in the MSVC compiler.
86081
86082 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86083
86084         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86085
86086 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86087
86088         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86089
86090 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * doc/getdate.texi (General date syntax): Don't say that date
86093         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86094         Problem reported by Nic Ferrier.
86095
86096 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86097
86098         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86099         specified in ai_socktype. Fix invalid ai_protocol
86100         check. ai_protocol is usually set to 0 or depending on
86101         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86102         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86103         ai_socktype / ai_protocol in the returned addrinfo structure.
86104
86105 2005-05-10  Simon Josefsson  <jas@extundo.com>
86106
86107         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86108         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86109
86110 2005-05-10  Karl Berry  <karl@gnu.org>
86111
86112         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86113         (from http://www.gnu.org/licenses).
86114         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86115         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86116         fdl.texi suffices.
86117
86118 2005-05-10  Karl Berry  <karl@gnu.org>
86119
86120         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86121         (COPYING.DOC): remove.
86122
86123         * config/srclist-update: new FSF address.
86124
86125 2005-05-10  Derek Price  <derek@ximbiot.com>
86126
86127         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86128         possible.
86129
86130 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86131             Bruno Haible  <bruno@clisp.org>
86132
86133         * modules/inet_ntop: New file.
86134         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86135         inet_ntop.
86136
86137 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86138             Bruno Haible  <bruno@clisp.org>
86139
86140         * m4/inet_ntop.m4: New file.
86141
86142 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86143             Bruno Haible  <bruno@clisp.org>
86144
86145         * lib/inet_ntop.h: New file.
86146         * lib/inet_ntop.c: New file, from glibc with modifications.
86147
86148 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86149
86150         * modules/time_r (License): Change to LGPL.
86151         * modules/extensions (License): Change to LGPL.  Actually,
86152         the license is more permissive than that, but currently gnulib-tool
86153         doesn't know how to handle more-permissive licenses.
86154
86155         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86156         Problem reported by Dave Love.
86157
86158 2005-05-08  Jim Meyering  <jim@meyering.net>
86159
86160         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86161         blank.
86162
86163 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86164
86165         * modules/argmatch (Depends-on): Add stdbool.
86166         * modules/backupfile (Depends-on): Likewise.
86167         * modules/chdir-long (Depends-on): Likewise.
86168         * modules/closeout (Depends-on): Likewise.
86169         * modules/cycle-check (Depends-on): Likewise.
86170         * modules/dirname (Depends-on): Likewise.
86171         * modules/fnmatch (Depends-on): Likewise.
86172         * modules/fsusage (Depends-on): Likewise.
86173         * modules/fwriteerror (Depends-on): Likewise.
86174         * modules/getcwd (Depends-on): Likewise.
86175         * modules/getloadavg (Depends-on): Likewise.
86176         * modules/hard-locale (Depends-on): Likewise.
86177         * modules/makepath (Depends-on): Likewise.
86178         * modules/mountlist (Depends-on): Likewise.
86179         * modules/nanosleep (Depends-on): Likewise.
86180         * modules/posixtm (Depends-on): Likewise.
86181         * modules/quotearg (Depends-on): Likewise.
86182         * modules/readtokens (Depends-on): Likewise.
86183         * modules/readtokens0 (Depends-on): Likewise.
86184         * modules/readutmp (Depends-on): Likewise.
86185         * modules/save-cwd (Depends-on): Likewise.
86186         * modules/strftime (Depends-on): Likewise.
86187         * modules/userspec (Depends-on): Likewise.
86188         * modules/utimecmp (Depends-on): Likewise.
86189         * modules/xgetcwd (Depends-on): Likewise.
86190         * modules/xnanosleep (Depends-on): Likewise.
86191         * modules/xstrtod (Depends-on): Likewise.
86192         * modules/yesno (Depends-on): Likewise.
86193
86194 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86195
86196         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86197         needless checks.
86198
86199 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86200
86201         Merge from coreutils.  Among other things,
86202         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86203         * lib/fd-safer.c: New file.
86204         * lib/fcntl-safer.h, open-safer.c: Remove.
86205         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86206         * lib/dup-safer.c: Include unistd-safer.h first.
86207         Don't include errno.h.
86208         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86209         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86210         * lib/file-type.c: Rely on file-type.h change.
86211         * lib/getloadavg.c: Include unistd-safer.h.
86212         (getloadavg): Use safer open.
86213         * lib/getusershell.c: Include "stdio-safer.h".
86214         (getusershell): Use safer fopen.
86215         * lib/long-options.c (long_options): Use NULL rather than 0.
86216         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86217         'free'.
86218         * lib/modechange.c: Likewise.
86219         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86220         (MODE_DONE): New constant.
86221         (struct mode_change): Remove 'next' member.
86222         (make_node_op_equals): New function; like the old one of the
86223         same name, except it allocates an array.
86224         (mode_compile, mode_create_from_ref): Use it.
86225         (mode_compile): Allocate result as an array, not a linked list.
86226         Parse octal string ourself, so that we catch mistakes like "+0".
86227         (mode_adjust): Arg is an array, not a linked list.
86228         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86229         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86230         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86231         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86232         Remove.  This is now stat-macros.h's job.
86233         (talloc): Remove.  All callers replaced by xalloc, so that
86234         our invokers don't have to worry about reporting memory failures.
86235         (make_node_op_equals): Remove.
86236         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86237         New constants.
86238         (struct mode_change): Moved here from modechange.h.
86239         (mode_append_entry): Remove.
86240         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86241         apps to have incorrect behavior.  Use simpler algorithm for head
86242         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86243         Detect more invalid usages rather than having somewhat-random behavior.
86244         Don't insert an "a=" action, as that leads to incorrect behavior.
86245         (mode_compile, mode_create_from_ref): Return NULL on error instead
86246         of an enum, since now there's only one way to have an error.  All
86247         callers changed.
86248         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86249         at the correct time.  Simplify calculation of "+u" and its ilk.
86250         Don't mishandle "+X".
86251         (mode_free): Remove "register" and localize decls.
86252         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86253         (struct mode_change): Move to modechange.c; callers don't
86254         need to see this stuff.
86255         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86256         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86257         (mode_change, mode_adjust): Reflect the new signatures noted above.
86258         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86259         that might redefine system include files.
86260         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86261         (my_usleep): Use NULL rather than (void *) 0.
86262         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86263         Use siginterrupt to specify that system calls should be interrupted.
86264         (rpl_nanosleep): Move initialization of suspended closer to call of
86265         my_usleep.
86266         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86267         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86268         (desirable_utmp_entry): New function.
86269         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86270         using x2nrealloc, to simplify logic.
86271         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86272         size calculation.  Do not assume utmp file is a regular file.
86273         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86274         (READ_UTMP_CHECK_PIDS): New constant.
86275         * lib/save-cwd.c: Include unistd-safer.h.
86276         (save_cwd): Use fd_safer.
86277         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86278         [!_LIBC] Include "stat-macros.h" instead.
86279         * lib/unistd-safer.h (fd_safer): New decl.
86280
86281 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86282
86283         * modules/getloadavg (Depends-on): Add unistd-safer.
86284         * modules/getusershell (Depends-on): Add stdio-safer.
86285         * modules/lstat (Depends-on): Remove xalloc.
86286         * modules/mkstemp (Depends-on): Add stat-macros.
86287         * modules/modechange (Depends-on): Remove xstrtol.
86288         Add stat-macros, xalloc.
86289         * modules/save-cwd (Depends-on): Add unistd-safer.
86290         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86291         * modules/unistd-safer (Files): Add lib/fd-safer.c
86292         (Makefile.am): Remove lib_SOURCES.
86293
86294         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86295         Remove fcntl-safer; unistd-safer supersedes it.
86296
86297 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86298
86299         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86300         AC_HEADER_STAT.
86301         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86302         (gl_PREREQ_CHOWN): Remove.
86303         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86304         it.  Don't require AC_HEADER_STAT.
86305         (gl_PREREQ_LSTAT): Remove.
86306         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86307         Don't require AC_HEADER_STAT.
86308         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86309         (gl_PREREQ_RMDIR): Remove.
86310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86311         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86312         the stat-macros module a prerequisite.
86313         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86314         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86315         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86316         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86317         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86318         variable names.
86319         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86320         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86321         variable prefixes.
86322         * m4/fcntl-safer.m4: Remove.
86323         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86324         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86325         Invoke gl_PREREQ_FD_SAFER.
86326         (gl_PREREQ_FD_SAFER): New macro.
86327         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86328         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86329         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86330         Remove duplicate call to AC_LIBOBJ(readutmp).
86331         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86332
86333         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86334         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86335
86336 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86337
86338         * MODULES.html.sh (Misc): Add byteswap.
86339
86340 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86341
86342         * modules/getcwd (Depends-on): Add extensions.
86343         * modules/openat (Depends-on): Likewise.
86344
86345 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86346
86347         * modules/byteswap: New file.
86348
86349 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86350
86351         * m4/byteswap.m4: New file.
86352
86353 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86354
86355         * lib/byteswap_.h: New file.
86356
86357 2005-04-25  Karl Berry  <karl@gnu.org>
86358
86359         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86360
86361 2005-04-25  Albert Chin  <china@thewrittenword.com>
86362
86363         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86364         Toolkit C bug.
86365
86366 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86367
86368         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86369         (func_ln_if_changed): Remove forcibly for no error message
86370         in case file does not exist.
86371
86372 2005-04-19  Simon Josefsson  <jas@extundo.com>
86373
86374         * gnulib-tool (Options): Make --symlink mean --symbolic.
86375
86376 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86377
86378         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86379
86380 2005-04-16  Simon Josefsson  <jas@extundo.com>
86381
86382         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86383
86384 2005-04-15  Simon Josefsson  <jas@extundo.com>
86385
86386         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86387
86388 2005-04-15  Simon Josefsson  <jas@extundo.com>
86389
86390         * gnulib-tool: Rename --symlink to --symbolic.
86391
86392 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86393
86394         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86395         symbolic links to files instead of copying/moving.  Add --aux-dir,
86396         specifying directory relative --dir where auxiliary build tools
86397         are placed.
86398
86399 2005-04-14  Bruno Haible  <bruno@clisp.org>
86400
86401         * modules/allocsa (License): Change to LGPL.
86402         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86403
86404 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86405
86406         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86407         that "UTC +1 second" continues to work.  Problem reported
86408         by Dmitry V. Levin.
86409         (relunit_snumber): New rule.
86410         (relunit): Use it.
86411
86412 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86413
86414         * lib/getdate.y (universal_time_zone_table): New constant.
86415         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86416         universal_time_zone_table.
86417         (lookup_zone): Prefer universal_time_zone_table to
86418         local_time_zone_table, so that "GMT" time stamps are allowed in
86419         London during the summer.  Problem reported by Ian Abbott.
86420
86421 2005-04-12  Jim Meyering  <jim@meyering.net>
86422
86423         * lib/human.c (humblock): Set *options even when returning due to
86424         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86425         warning from gcc-4.
86426
86427 2005-04-09  Jim Meyering  <jim@meyering.net>
86428
86429         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86430         -Wuninitialized: initialize tm0.tm_year.
86431
86432 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86433
86434         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86435         count, since there's no maximum.  All uses changed.
86436         Add member dsts_seen.
86437         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86438         not being INT_MAX.
86439         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86440         Use pc_rels_seen to decide whether a date is absolute.
86441
86442         * lib/getdate.y (number): Don't overwrite year.
86443         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86444         check.
86445
86446 2005-04-02  Simon Josefsson  <jas@extundo.com>
86447
86448         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86449         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86450
86451 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86452
86453         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86454         where no absolute path name can be longer than PATH_MAX.
86455
86456 2005-03-27  Jim Meyering  <jim@meyering.net>
86457
86458         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86459
86460 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86461
86462         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86463         "one's complement" -> "ones' complement" in comment, as per Knuth.
86464         "value of type" -> "type or expression" in comment.
86465         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86466
86467 2005-03-26  Jim Meyering  <jim@meyering.net>
86468
86469         Comment nits.
86470         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86471         Correct typos: s/or/of/.
86472
86473 2005-03-26  Jim Meyering  <jim@meyering.net>
86474
86475         * modules/check-include-files: Move to ../ and rename to...
86476         * check-module: ...this.
86477
86478 2005-03-25  Jim Meyering  <jim@meyering.net>
86479
86480         * modules/xvasprintf (Files): Add xalloc.h.
86481
86482 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86483
86484         * modules/gettext (Files): config/config.rpath ->
86485         build-aux/config.rpath
86486         * modules/iconv (Files): Likewise.
86487         Problem reported by Oskar Liljeblad.
86488
86489 2005-03-23  Jim Meyering  <jim@meyering.net>
86490
86491         * modules/check-include-files: New script to check for
86492         missing dependencies, multiple includes, etc.
86493
86494         * modules/c-strtold (Depends-on): Add xalloc.
86495         * modules/c-strtod (Depends-on): Add xalloc.
86496         * modules/hash (Depends-on): Add xalloc.
86497         (Files): Remove lib/xalloc.h.
86498
86499         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86500         * modules/userspec (Files): Add lib/inttostr.h.
86501
86502 2005-03-23  Jim Meyering  <jim@meyering.net>
86503
86504         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86505
86506 2005-03-22  Jim Meyering  <jim@meyering.net>
86507
86508         * modules/stat-macros: New module.
86509         * modules/canonicalize, modules/euidaccess, modules/file-type,
86510         * modules/filemode, modules/lchown, modules/makepath,
86511         * modules/rmdir, modules/stat: Depend on new stat-macros module
86512         rather than listing lib/stat-macros.h manually.
86513         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86514
86515 2005-03-22  Jim Meyering  <jim@meyering.net>
86516
86517         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86518
86519 2005-03-22  Bruno Haible  <bruno@clisp.org>
86520
86521         * config/srclist.txt: Replace target directory 'config' with
86522         'build-aux'.
86523         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86524         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86525         ../build-aux/.
86526
86527 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86528
86529         * modules/chdir-long (Depends-on): Add mempcpy.
86530
86531         * modules/acl, modules/backupfile, modules/c-strtod,
86532         modules/c-strtold, modules/canon-host, modules/canonicalize,
86533         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86534         modules/exclude, modules/exitfail, modules/file-type,
86535         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86536         modules/getdate, modules/getline, modules/getpagesize,
86537         modules/getpass, modules/getugroups, modules/group-member,
86538         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86539         modules/inttostr, modules/long-options, modules/makepath,
86540         modules/md5, modules/memcasecmp, modules/memcoll,
86541         modules/modechange, modules/mountlist, modules/path-concat,
86542         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86543         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86544         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86545         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86546         modules/strftime, modules/strndup, modules/strverscmp,
86547         modules/timespec, modules/unlocked-io, modules/userspec,
86548         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86549         modules/yesno:
86550         Remove lib_SOURCES line from Makefile.am section, as this is now
86551         done automatically by the corresponding Autoconf macro.
86552
86553 2005-03-21  Jim Meyering  <jim@meyering.net>
86554
86555         Changes imported from coreutils.
86556
86557         * lib/cycle-check.c: Don't include xalloc.h.
86558
86559         * lib/path-concat.c: Don't include assert.h.
86560         (path_concat): Remove assertion that would have triggered
86561         for ABASE starting with more than one slash.
86562         Reported by Andreas Schwab.
86563
86564         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86565         properly when ABASE is an absolute file name.
86566         Correct the description of this function.
86567         Include <assert.h>.
86568         Add an assertion and a test driver.
86569         This fixes a bug introduced on 2004-07-02.
86570         Andreas Schwab reported the resulting failure of cp --parents:
86571         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86572
86573 2005-03-21  Jim Meyering  <jim@meyering.net>
86574
86575         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86576         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86577
86578 2005-03-21  Jim Meyering  <jim@meyering.net>
86579         and  Paul Eggert  <eggert@cs.ucla.edu>
86580
86581         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86582         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86583         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86584         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86585         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86586         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86587         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86588         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86589         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86590         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86591         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86592         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86593         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86594         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86595         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86596         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86597         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86598         for these modules.
86599
86600 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86601
86602         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86603         (which shouldn't happen), generate nothing instead of returning 0
86604         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86605
86606 2005-03-16  Bruno Haible  <bruno@clisp.org>
86607
86608         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86609         HAVE_LONGLONG_64BIT.
86610
86611 2005-03-16  Bruno Haible  <bruno@clisp.org>
86612
86613         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86614         HAVE_LONGLONG_64BIT.
86615
86616 2005-03-16  Bruno Haible  <bruno@clisp.org>
86617
86618         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86619         HAVE_LONGLONG_64BIT.
86620
86621 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86624         reliably distinguish strftime failure from empty output on POSIX
86625         hosts.
86626
86627 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86628
86629         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86630         (iconv_string): Don't guess a size-zero buffer, as that might cause
86631         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86632         result would be 'too large', where 'too large' is (heuristically)
86633         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86634         overflow concerns.  This will prevent some unwanted malloc failures
86635         when the inputs are very large.
86636
86637 2005-03-15  Karl Berry  <karl@gnu.org>
86638
86639         * config/srclist.txt (config.rpath): from gettext.
86640         * config/config.rpath: update.
86641
86642 2005-03-15  Bruno Haible  <bruno@clisp.org>
86643
86644         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86645         to 'negate'.
86646
86647         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86648         variable.
86649
86650         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86651         results.
86652
86653 2005-03-14  Simon Josefsson  <jas@extundo.com>
86654
86655         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86656         <fx@gnu.org>.
86657
86658 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86659
86660         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86661         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86662         intprops.h.
86663         * lib/strtol.c: Likewise.
86664
86665 2005-03-14  Jim Meyering  <jim@meyering.net>
86666
86667         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86668         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86669         to be nonzero so that we (and caller) can detect the difference
86670         between a valid zero-length expansion and an error return, even
86671         when the underlying strftime fails before writing anything into
86672         that location.
86673
86674 2005-03-14  Bruno Haible  <bruno@clisp.org>
86675
86676         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86677         Update from GNU gettext 0.14.3.
86678
86679 2005-03-10  Jim Meyering  <jim@meyering.net>
86680
86681         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86682
86683 2005-03-10  Jim Meyering  <jim@meyering.net>
86684
86685         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86686         so that this module works on systems without fchdir.
86687
86688 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86689
86690         Factor int-properties macros into a single file, except for
86691         glibc-related files.
86692         * lib/intprops.h: New file.
86693         * lib/getloadavg.c: Include it instead of limits.h.
86694         (INT_STRLEN_BOUND): Remove.
86695         * lib/human.c: Include intprops.h.
86696         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86697         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86698         302/1000.
86699         * lib/inttostr.h: Include intprops.h instead of limits.h.
86700         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86701         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86702         for consistency with intprops.h.
86703         (time_t_is_integer, twos_complement_arithmetic): Use them.
86704         * lib/sig2str.h: Include <signal.h>, intprops.h.
86705         (INT_STRLEN_BOUND): Remove.
86706         * lib/strftime.c (TYPE_SIGNED): Remove.
86707         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86708         * lib/strtol.c: Adjust comments to match intprops.h.
86709         * lib/userspec.c: Include intprops.h.
86710         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86711         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86712         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86713         instead of rolling our own expressions.
86714         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86715
86716         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86717         instead of int.
86718         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86719         the right thing even if adding 1900 would overflow.  Similarly
86720         for tm_mon + 1 and tm_yday + 1.
86721         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86722         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86723         (DO_SIGNED_NUMBER): New macro.
86724         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86725
86726 2005-03-07  Bruno Haible  <bruno@clisp.org>
86727
86728         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86729
86730 2005-03-07  Bruno Haible  <bruno@clisp.org>
86731
86732         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86733
86734 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86735
86736         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86737         (func_import): Only replace files via --import when they have actually
86738         changed.
86739
86740 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86741
86742         * m4/mmap-anon.m4: New file.
86743         * m4/pagealign_alloc.m4: New file.
86744
86745 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86746             Bruno Haible  <bruno@clisp.org>
86747
86748         * modules/pagealign_alloc: New file.
86749         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86750
86751 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86752             Bruno Haible  <bruno@clisp.org>
86753
86754         * lib/pagealign_alloc.h: New file.
86755         * lib/pagealign_alloc.c: New file.
86756
86757 2005-03-03  Bruno Haible  <bruno@clisp.org>
86758
86759         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86760         Use an all-permissive copyright notice, recommended by RMS.
86761
86762 2005-03-02  Bruno Haible  <bruno@clisp.org>
86763
86764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86765         of AIX, the replacement has to be done only after <string.h> is
86766         included, therefore not in config.h. stpncpy.h does the replacement,
86767         and stpncpy.c uses it.
86768
86769 2005-03-02  Bruno Haible  <bruno@clisp.org>
86770
86771         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86772         stpncpy.c uses it.
86773
86774 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86775
86776         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86777         The workaround isn't strictly needed for POSIX conformance, and
86778         it's too much of a pain to configure and maintain.  We'll ask
86779         people to fix their kernels instead.
86780         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86781         (NANOSLEEP_BUG_WORKAROUND): Remove.
86782         (xnanosleep): Remove the workaround.
86783
86784 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86785
86786         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86787         Reported by Derek Price.
86788         (Include): Add "timespec.h".
86789
86790         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86791
86792 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86793
86794         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86795         to detect nanosleep bug.
86796
86797 2005-03-01  Bruno Haible  <bruno@clisp.org>
86798
86799         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86800
86801 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86802
86803         * modules/gethrxtime: New file.
86804         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86805         (Depends-on): Add gethrxtime.
86806         (configure.ac): Add gl_XNANOSLEEP.
86807         (Makefile.am): Remove lib_SOURCES line.
86808
86809 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86810
86811         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86812         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86813
86814 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86815
86816         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86817         * lib/timespec.h (gettime): Return void, since it always
86818         succeeds now.  All uses changed.
86819         * lib/gettime.c (gettime): Likewise.
86820         [HAVE_NANOTIME]: Prefer nanotime.
86821         Assume gettimeofday succeeds, as POSIX requires.
86822         Assime time () succeeds, since other code already does.
86823         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86824         (timespec_subtract): Remove.
86825         (NANOSLEEP_BUG_WORKAROUND): New constant.
86826         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86827         things considerably.  Use it only on GNU/Linux hosts, since the
86828         workaround shouldn't be needed elsewhere.
86829
86830 2005-02-24  Bruno Haible  <bruno@clisp.org>
86831
86832         * modules/gettext (Files): Add m4/glibc2.m4.
86833
86834 2005-02-24  Bruno Haible  <bruno@clisp.org>
86835
86836         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86837         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86838         * m4/progtest.m4:
86839         Update from GNU gettext 0.14.2.
86840         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86841
86842 2005-02-24  Bruno Haible  <bruno@clisp.org>
86843
86844         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86845         * lib/config.charset: Update from GNU gettext 0.14.2.
86846
86847 2005-02-24  Bruno Haible  <bruno@clisp.org>
86848
86849         * lib/gettext.h: Update from GNU gettext 0.14.2.
86850
86851 2005-02-23  Simon Josefsson  <jas@extundo.com>
86852
86853         * m4/iconvme.m4: New file.
86854
86855 2005-02-23  Jim Meyering  <jim@meyering.net>
86856
86857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86858         change.
86859         Thanks to Bruno Haible for catching it.
86860
86861 2005-02-22  Simon Josefsson  <jas@extundo.com>
86862
86863         * modules/iconvme: New file.
86864
86865         * MODULES.html.sh: Add iconvme.
86866
86867 2005-02-22  Simon Josefsson  <jas@extundo.com>
86868
86869         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86870
86871 2005-02-22  Simon Josefsson  <jas@extundo.com>
86872
86873         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86874
86875 2005-02-22  Jim Meyering  <jim@meyering.net>
86876
86877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86878         s/ifndef/ifdef/.
86879
86880 2005-02-20  Neil Conway  <neilc@samurai.com>
86881
86882         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86883         returned by OSX/Darwin if the specified buffer is not large
86884         enough for the hostname.
86885
86886 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86887
86888         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86889         pass it to _help, otherwise the latter coredumps trying to
86890         dereference state.root_argp.
86891
86892 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86893
86894         * modules/chdir-long (Depends-on): Add memrchr.
86895         * modules/memrchr (Files): Add lib/memrchr.h.
86896         (Include): "memrchr.h".
86897
86898 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86899
86900         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86901
86902 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86903
86904         * lib/memrchr.h: New file.
86905         * lib/chdir-long.c: Include it.
86906         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86907         Don't bother including stddef.h.
86908
86909 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86912         inclusion.
86913         Include <sys/types.h>, for dev_t.
86914         (ME_DUMMY, ME_REMOTE): Move from here....
86915         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86916         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86917         Dmitry V. Levin.
86918         Include mountlist.h first, to test the interface.
86919
86920 2005-01-29  Bruno Haible  <bruno@clisp.org>
86921
86922         * lib/progname.c (program_name): Initialize.
86923         Needed when linking statically on MacOS X.
86924
86925 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86926
86927         Sync from coreutils.
86928         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86929         (Depends-on): Add c-strtod.
86930         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86931
86932 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86933
86934         Sync from coreutils.
86935         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86936
86937         Remove files that are specific to coreutils.
86938         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86939
86940 2005-01-28  Bruno Haible  <bruno@clisp.org>
86941
86942         * modules/javacomp: New file.
86943         * MODULES.html.sh (Java): Add javacomp.
86944
86945 2005-01-28  Bruno Haible  <bruno@clisp.org>
86946
86947         * m4/javacomp.m4: New file, from GNU gettext.
86948
86949 2005-01-28  Bruno Haible  <bruno@clisp.org>
86950
86951         * lib/javacomp.sh.in: New file, from GNU gettext.
86952         * lib/javacomp.h: New file, from GNU gettext.
86953         * lib/javacomp.c: New file, from GNU gettext.
86954
86955 2005-01-26  Simon Josefsson  <jas@extundo.com>
86956
86957         * lib/gai_strerror.c: Use GPL in header.
86958
86959 2005-01-26  Bruno Haible  <bruno@clisp.org>
86960
86961         * modules/javaexec: New file.
86962         * MODULES.html.sh (Java): Add javaexec.
86963
86964 2005-01-26  Bruno Haible  <bruno@clisp.org>
86965
86966         * m4/javaexec.m4: New file, from GNU gettext.
86967
86968 2005-01-26  Bruno Haible  <bruno@clisp.org>
86969
86970         * lib/javaexec.sh.in: New file, from GNU gettext.
86971         * lib/javaexec.h: New file, from GNU gettext.
86972         * lib/javaexec.c: New file, from GNU gettext.
86973
86974 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86975
86976         * modules/lchown (Depends-on): Remove lchown.h
86977
86978 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86979
86980         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86981         must be defined if the header file was not found, in order
86982         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86983
86984 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86985
86986         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86987         initializers for struct pentry_state.
86988         (__argp_error): Check return value of __asprintf
86989         (__argp_failure): Translate error message
86990
86991         * lib/argp-parse.c: Removed braces around the expansion of N_()
86992
86993 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86994
86995         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86996         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86997         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86998         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86999         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87000         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87001         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87002         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87003         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87004         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87005         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87006         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87007         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87008         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87009         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87010         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87011         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87012         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87013         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87014         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87015         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87016         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87017         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87018         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87019         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87020         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87021         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87022         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87023         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87024         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87025         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87026         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87027         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87028         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87029         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87030         Use an all-permissive copyright notice, recommended by RMS.
87031
87032 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87033
87034         * modules/chdir-long (Depends-on): Remove mempcpy.
87035
87036 2005-01-21  Jim Meyering  <jim@meyering.net>
87037
87038         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87039         same value as for Solaris 9.
87040
87041         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87042         component length.  This included changing the parameter to be
87043         of type `char *' rather than `char const *'.
87044         * lib/chdir-long.h (chdir_long): Update prototype.
87045
87046         * lib/openat.c (fdopendir, fstatat): New functions.
87047         * lib/openat.h: Include headers required for use of DIR and struct
87048         stat.
87049         [AT_SYMLINK_NOFOLLOW]: Define.
87050         (fdopendir, fstatat): Add prototypes.
87051
87052 2005-01-21  Bruno Haible  <bruno@clisp.org>
87053
87054         * modules/classpath: New file.
87055         * MODULES.html.sh (Java): Add classpath.
87056
87057 2005-01-21  Bruno Haible  <bruno@clisp.org>
87058
87059         * lib/classpath.h: New file, from GNU gettext.
87060         * lib/classpath.c: New file, from GNU gettext.
87061
87062 2005-01-20  Simon Josefsson  <jas@extundo.com>
87063
87064         * modules/version-etc-fsf: New file.
87065
87066 2005-01-20  Simon Josefsson  <jas@extundo.com>
87067
87068         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87069         * lib/version-etc.c: Remove version_etc_copyright.
87070         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87071         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87072
87073 2005-01-20  Simon Josefsson  <jas@extundo.com>
87074
87075         * lib/base64.h (isbase64): Add.
87076
87077         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87078         using a unsigned prototype, don't inline.
87079         (base64_decode): Use it.
87080
87081 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87082
87083         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87084         it.
87085
87086 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87087
87088         * lib/save-cwd.c (save_cwd): Remove code to support the case
87089         where fchdir is missing or flaky.
87090
87091 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87092
87093         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87094
87095 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87096
87097         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87098         AC_LIBSOURCES now does this.
87099         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87100         with new ullong_max module.
87101
87102 2005-01-19  Bruno Haible  <bruno@clisp.org>
87103
87104         * modules/sh-quote: New file.
87105         * MODULES.html.sh (Executing programs): Add sh-quote.
87106
87107 2005-01-19  Bruno Haible  <bruno@clisp.org>
87108
87109         * lib/sh-quote.h: New file, from GNU gettext.
87110         * lib/sh-quote.c: New file, from GNU gettext.
87111
87112 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87113
87114         Merge from coreutils.
87115         * m4/ullong_max.m4: New file.
87116         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87117         (gl_MACROS): Assume localeconv exists.
87118
87119 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87120
87121         Merge changes from coreutils, as described below in several
87122         changelogs dated today.
87123
87124         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87125         (O_DIRECTORY): Remove; not needed here, since "." must be
87126         a directory.  All uses removed.
87127         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87128         universal on Suns, and we also need to test for IRIX.
87129         Revamp code to use 'if' rather than '#if'.
87130         Avoid unnecessary comparison of cwd->desc to 0.
87131
87132         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87133         for known valid error numbers rather than observed invalid ones.
87134
87135 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87136
87137         * modules/ullong_max: New file.
87138
87139         * modules/chdir-long, modules/openat: New files.
87140         * modules/save-cwd (Depends-on): Depend on chdir-long.
87141         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87142
87143 2005-01-18  Jim Meyering  <jim@meyering.net>
87144
87145         Merge from coreutils.
87146         * m4/chdir-long.m4, m4/openat.m4: New files.
87147         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87148         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87149         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87150         is sane and DOES follow symlinks.  Besides, testing 20 different
87151         systems found no broken chown implementations.
87152         Prompted by a change in rsync's copy of this macro.
87153         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87154
87155         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87156
87157         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87158         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87159         NULL-means-set-to-current-time semantics.
87160         Remove temporary file immediately, rather than waiting
87161         for configure's at-exit trap code to do it.
87162
87163 2005-01-18  Jim Meyering  <jim@meyering.net>
87164
87165         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87166
87167         * lib/utimens.c (futimens): Account for the fact that futimes
87168         can also fail with errno == ENOSYS or errno == ENOENT.
87169         Patch from Dmitry V. Levin.
87170
87171         Change the name of the robust chdir function from chdir to chdir_long.
87172         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87173         (restore_cwd): Use chdir_long, not chdir.
87174         * lib/chdir-long.c: Renamed from chdir.c.
87175         * lib/chdir-long.h: Renamed from chdir.h.
87176         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87177         Hurd.
87178
87179 2005-01-18  Bruno Haible  <bruno@clisp.org>
87180
87181         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87182         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87183         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87184         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87185         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87186         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87187         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87188         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87189         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87190         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87191         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87192         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87193         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87194         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87195         Use an all-permissive copyright notice, recommended by RMS.
87196
87197 2005-01-18  Bob Proulx  <bob@proulx.com>
87198
87199         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87200         simplify offsetof() macro construct to avoid compile failure with
87201         native HP-UX 11.0 ANSI C compiler.
87202
87203 2005-01-17  Bruno Haible  <bruno@clisp.org>
87204
87205         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87206         redundant because stpncpy.m4 takes care of it.
87207
87208 2005-01-17  Bruno Haible  <bruno@clisp.org>
87209
87210         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87211
87212 2005-01-17  Bruno Haible  <bruno@clisp.org>
87213
87214         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87215         used.
87216
87217 2005-01-17  Bruno Haible  <bruno@clisp.org>
87218
87219         * lib/fwriteerror.h (fwriteerror): Change specification to include
87220         fclose.
87221         * lib/fwriteerror.c: Include <stdbool.h>.
87222         (fwriteerror): At the end, close the file stream. Record whether
87223         stdout was already closed.
87224
87225 2005-01-17  Bruno Haible  <bruno@clisp.org>
87226
87227         * lib/execute.c (environ): Declare if needed.
87228         * lib/pipe.c (environ): Likewise.
87229         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87230
87231 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87232
87233         * modules/argp: Depend on vsnprintf
87234
87235 2005-01-10  Jim Meyering  <jim@meyering.net>
87236
87237         * modules/closeout (Depends-on): Add atexit.
87238
87239 2005-01-06  Bruno Haible  <bruno@clisp.org>
87240
87241         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87242
87243 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87244
87245         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87246         definitions to be after all include files, to avoid collisions.
87247         Problem reported by Bob Proulx.
87248
87249 2005-01-04  Jim Meyering  <jim@meyering.net>
87250
87251         Changes imported from coreutils.
87252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87253         as the mkstemp template, use a temporary directory and an
87254         8.3-friendly template to avoid trouble on systems like DJGPP.
87255         Reported by Juan M. Guerrero via Stepan Kasal.
87256         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87257         close. Remove the temporary directory right away, rather than waiting
87258         for configure's at-exit trap code to do it.
87259         Suggestion from Stepan Kasal.
87260
87261 2005-01-01  Simon Josefsson  <jas@extundo.com>
87262
87263         * gnulib-tool: Print #include directives when --import'ing.
87264
87265 2004-12-28  Simon Josefsson  <jas@extundo.com>
87266
87267         * tests/test-base64.c: Include required header files.  Remove
87268         unused variables.
87269
87270 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87271
87272         * modules/error (Depends-on): Remove gettext.
87273
87274 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87277         not needed.  This removes a dependency on the gettext module.
87278         [defined _LIBC]: Do not include <libintl.h>; not needed.
87279
87280 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87281
87282         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87283         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87284
87285 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87286
87287         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87288         HAVE_DECL_STRTOLD.
87289
87290 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87291
87292         * modules/getdate (Depends-on): Remove alloca-opt.
87293
87294 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87295
87296         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87297
87298 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87299
87300         * lib/argp-parse.c: Include <stddef.h>.
87301         (alignof, alignto): New macros.
87302         (parser_init): Don't assume that void * is aligned sufficiently
87303         for struct option.
87304
87305         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87306         need to extend the stack.
87307         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87308         large.
87309
87310 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87311
87312         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87313
87314 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87317         (2004-10-24) change.  Apparently this was a false alarm.
87318
87319         * modules/getdate: Depend on alloca-opt, not alloca.
87320
87321 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87322
87323         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87324         Remove now-obsolete comment about AIX.
87325         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87326         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87327         (YYMAXDEPTH): New macro.
87328
87329 2004-12-18  Simon Josefsson  <jas@extundo.com>
87330
87331         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87332
87333 2004-12-18  Bruno Haible  <bruno@clisp.org>
87334
87335         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87336
87337 2004-12-18  Bruno Haible  <bruno@clisp.org>
87338
87339         * lib/fatal-signal.c (fatal_signals): Make non-const.
87340         (init_fatal_signals): New function.
87341         (uninstall_handlers, install_handlers): Ignore signals that were set to
87342         SIG_IGN.
87343         (at_fatal_signal): Call init_fatal_signals.
87344         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87345         SIG_IGN.
87346         Reported by Paul Eggert.
87347
87348 2004-12-18  Bruno Haible  <bruno@clisp.org>
87349
87350         * doc/alloca.texi: New file.
87351         * doc/alloca-opt.texi: New file.
87352
87353 2004-12-17  Jim Meyering  <jim@meyering.net>
87354
87355         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87356         Otherwise, install-sh could exit with improper exit status when
87357         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87358
87359 2004-12-16  Simon Josefsson  <jas@extundo.com>
87360
87361         * tests/test-base64.c: Add license.
87362
87363 2004-12-15  Stepan Kasal  <address@hidden>
87364
87365         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87366
87367 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87368
87369         * modules/getcwd (Files): Add m4/d-ino.m4.
87370         Suggested by Mark D. Baushke.
87371
87372 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87373
87374         * lib/getdate.y (textint): New member "negative".
87375         (time_zone_hhmm): New function.
87376         Expect 14 shift-reduce conflicts, not 13.
87377         (o_colon_minutes): New rule.
87378         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87379         (yylex): Set the "negative" member of signed numbers.
87380
87381 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87382
87383         * doc/getdate.texi (Time of day items, Time zone items):
87384         Describe new formats +00:00, UTC+00:00.
87385
87386 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87387
87388         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87389         spurious "-l"s.  Problem reported by Stepan Kasal.
87390
87391 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87392
87393         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87394         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87395
87396 2004-12-04  Simon Josefsson  <jas@extundo.com>
87397
87398         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87399         Vandoorselaere <yoann@prelude-ids.org>.
87400
87401 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87402
87403         Changes imported from coreutils.
87404         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87405         exist.
87406         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87407
87408 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87409
87410         Changes imported from coreutils.
87411         * lib/hard-locale.c: Assume <locale.h> exists.
87412         Include "strdup.h".
87413         (GLIBC_VERSION): New macro.
87414         (hard_locale): Assume setlocale exists.
87415         Rewrite to avoid #ifdef.
87416         Use strdup rather than malloc + strcpy.
87417         * lib/human.c: Assume <locale.h> exists.
87418         (human_readable): Assume localeconv exists.
87419
87420 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87421
87422         * modules/hard-locale (Depends-on): Add strdup.
87423
87424 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87425
87426         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87427         convert T2, not T.  (Imported from libc.)
87428
87429 2004-11-30  Simon Josefsson  <jas@extundo.com>
87430
87431         * modules/restrict (License): Change to LGPL.
87432
87433 2004-11-30  Simon Josefsson  <jas@extundo.com>
87434
87435         * m4/restrict.m4: Add copyright and copying conditions.
87436
87437 2004-11-30  Simon Josefsson  <jas@extundo.com>
87438
87439         * m4/base64.m4: New file.
87440
87441 2004-11-30  Simon Josefsson  <jas@extundo.com>
87442
87443         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87444         base64.
87445
87446         * tests/test-base64.c: New file.
87447
87448         * modules/base64: New file.
87449
87450 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87451
87452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87453         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87454
87455         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87456
87457 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87458
87459         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87460         (__getcwd.c): Don't restore errno; glibc doesn't.
87461         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87462         first, falling back to our code only if its results look suspicious.
87463         Ensure that the resulting buffer is only as large as necessary.
87464
87465         * lib/readutmp.c: Include readutmp.h first.
87466         Include <errno.h>, since readutmp.h no longer does that.
87467         * lib/readutmp.h: Don't include <errno.h>,
87468         <sys/param.h>, <time.h>; not needed to establish interface.
87469         (errno): Remove decl.
87470         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87471         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87472         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87473
87474 2004-11-28  Simon Josefsson  <jas@extundo.com>
87475
87476         * lib/base64.h, base64.c: New file.
87477
87478 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87479
87480         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87481
87482 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87485         (Depends-on): Remove pathmax, same.  Add mempcpy.
87486         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87487         (Makefile.am): Append getcwd.h to lib_SOURCES.
87488         (Include): Add getcwd.h.
87489         (Maintainer): Change from Jim Meyering to "all, glibc",
87490         since getdate now uses intended-for-glibc code.
87491         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87492         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87493
87494 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87497         HP's ANSI C compiler.
87498         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87499         Declaring int functions causes warnings on some modern systems and
87500         shouldn't be needed to compile on ancient ones.
87501         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87502         defined.
87503
87504         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87505         with the following changes.
87506         (__set_errno): Parenthesize properly.
87507         Include <stdbool.h>.
87508         (MIN, MAX, MATCHING_INO): New macros.
87509         (__getcwd): Define with prototype, not K&R form.
87510         Use heuristics to allocate default buffer on stack if possible.
87511         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87512         behavior, and to avoid the PATH_MAX limit when computing
87513         ../../../../...
87514         Use MATCHING_INO to compare inode number to file.
87515         Check for arithmetic overflow in size calculations.
87516         Fix bug in reallocation of dot array that caused getcwd to fail
87517         on directories nested deeper than 75.
87518         Be more careful about saving errno on error.
87519         Do not use realloc; use only free+malloc, as this is a bit
87520         more flexible and avoids a needless copy operation.
87521         Do not inspect st_dev and st_ino for symbolic links; POSIX
87522         doesn't specify the latter.
87523         Check for closedir errors.
87524         Avoid needless casts.
87525         Use "#ifdef weak_alias" around weak_alias, to be like other
87526         glibc code.
87527         The following changes to getcwd.c have effect only when used in
87528         gnulib; they have no effect inside glibc proper.
87529         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87530         as alloca isn't used.
87531         (alloca, __alloca): Likewise.
87532         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87533         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87534         unconditionally, as gnulib assumes C89 or better.
87535         Do not include <sys/param.h>.
87536         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87537         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87538         better.
87539         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87540         Include <dirent.h> in a way that is compatible with modern Autoconf.
87541         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87542         New macros, if not already defined.
87543         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87544         Use "_LIBC", not "defined _LIBC", for consistency.
87545         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87546         a mempcpy module.
87547         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87548         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87549         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87550         credit only to Jim Meyering and adjust the copyright dates.
87551         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87552         <stdlib.h>, <unistd.h>, "pathmax.h".
87553         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87554         (INITIAL_BUFFER_SIZE): Remove.
87555         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87556
87557 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87558
87559         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87560         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87561         Use the _ONCE methods, for efficiency.
87562         Check for fcntl.h.  In test program, include <errno.h>
87563         and <fcntl.h> if available.  Remove old K&R cruft from
87564         test program.  Check for common errors in GNU/Linux,
87565         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87566         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87567         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87568         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87569         name accordingly.
87570         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87571         accommodate new getcwd.c.
87572         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87573         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87574         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87575         that's all we need now.
87576
87577 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87578
87579         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87580         argp-parse.c depends on getopt internals, that means we should
87581         always use our getopt, to be on the safe side.
87582         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87583         order not to spoil the result of an eventual previous invocation
87584         of gl_GETOPT_SUBSTITUTE.
87585
87586 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87587
87588         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87589         redefinition warnings. To avoid them, include the defines
87590         in `#if !defined __need_getopt ... #endif'. The only place
87591         where __getopt_argv_const is used is in definitions
87592         of getopt_long and getopt_long_only below, which are as well
87593         protected by `#ifndef __need_getopt'.
87594         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87595         __need_getopt after including <stdio.h> and <unistd.h> These
87596         headers might have defined it.
87597
87598 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87599
87600         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87601
87602 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87605         (futimens): New function, which uses futimes if available.
87606         (futimens, utimens): Support timespec==NULL, with same semantics
87607         as utime and utimens.
87608         * lib/utimens.h (futimens): New decl.
87609
87610 2004-11-23  Jim Meyering  <jim@meyering.net>
87611
87612         * lib/getopt_.h: Remove trailing blanks.
87613
87614 2004-11-23  Jim Meyering  <jim@meyering.net>
87615
87616         * lib/__fpending.c: Add comment.
87617
87618 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87619
87620         * modules/canonicalize (Depends-on): Add xreadlink.
87621         Problem reported by James Youngman.
87622
87623 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87626         New macros.
87627         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87628         optopt): Use them instead of invoking ## directly; otherwise, the
87629         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87630
87631 2004-11-19  Bruno Haible  <bruno@clisp.org>
87632
87633         * lib/strtok_r.c: Move comments from here...
87634         * lib/strtok_r.h: ... to here.
87635
87636 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87637
87638         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87639         implementations that mishandle size_t overflow.
87640
87641 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87642
87643         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87644         might fail.  Problem reported by Yoann Vandoorselaere.
87645         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87646         implementations that mishandle size_t overflow.
87647
87648 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * modules/canon-host (Depends-on): Add strdup.
87651
87652 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87653
87654         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87655
87656 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87657
87658         * lib/canon-host.c: Include "strdup.h".
87659         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87660         Use strdup instead of malloc/strcpy to duplicate strings.
87661
87662         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87663         (human_space_before_unit): New constant.
87664         * lib/human.c (human_readable): Support it.
87665
87666         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87667         (xgetcwd): Set errno correctly when failing.
87668         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87669         the failure is actually due to a PATH_MAX problem.
87670
87671         Further getopt changes to make it more likely that glibc will
87672         buy the changes back.
87673         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87674         (getopt): Use it, so to preserve glibc semantic
87675         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87676         when compiling for libc.
87677         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87678         (getopt_long, getopt_long_only): Use it.
87679
87680         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87681         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87682         (getopt): Argv is now char * const *, as per standard.
87683         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87684         not char *__getopt_argv_const *.
87685         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87686         _getopt_long_only_r): Likewise.
87687         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87688         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87689         _getopt_long_r, _getopt_long_only_r): Likewise.
87690         * lib/getopt_.h (__getopt_argv_const): Remove.
87691         (getopt): Argv is now char * const *, as per standard.
87692
87693         * lib/getdate.y (tORDINAL): New token.
87694         (day, relunit): Allow it for relative times.
87695         (relative_time_table): Use tORDINAL for ordinals.
87696
87697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87698
87699         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87700         Document that "second" isn't allowed as an ordinal number.
87701
87702 2004-11-16  Jim Meyering  <jim@meyering.net>
87703
87704         * modules/closeout (Depends-on): Add fpending.
87705
87706 2004-11-15  Jim Meyering  <jim@meyering.net>
87707
87708         * lib/closeout.c: Include "__fpending.h" once again.
87709         Include <stdbool.h>.
87710         (close_stdout): Don't fail just because stdout was closed initially,
87711         since some programs don't write to stdout in the normal course of
87712         operation (other than --version and --help), and we don't want this
87713         function to make e.g. `touch file >&-' fail.
87714         But do fail if it was closed and someone has tried to write to it.
87715         E.g., `printf foo >&-' must fail.
87716
87717 2004-11-13  Jim Meyering  <jim@meyering.net>
87718
87719         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87720
87721 2004-11-12  Simon Josefsson  <jas@extundo.com>
87722
87723         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87724         small doc fix is still pending.
87725
87726 2004-11-11  Simon Josefsson  <jas@extundo.com>
87727
87728         * modules/strtok_r: New file.
87729
87730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87731         strtok_r.
87732
87733 2004-11-11  Simon Josefsson  <jas@extundo.com>
87734
87735         * m4/strtok_r.m4: New file.
87736
87737         * m4/getopt.m4: Replace opterr.
87738
87739 2004-11-11  Simon Josefsson  <jas@extundo.com>
87740
87741         * lib/strtok_r.h, strtok_r.c: New file.
87742
87743 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87744
87745         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87746         of replacing opterr, getopt, etc.  This should handle the
87747         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87748
87749 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87750
87751         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87752         we can stop lying to compilers about the constness of argv when we
87753         are compiled outside glibc.
87754         (getopt, getopt_long, getopt_long_only): Use it.
87755         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87756         _getopt_internal, getopt): Likewise.
87757         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87758         _getopt_long_only_r): Likewise.
87759         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87760         _getopt_long_r, _getopt_long_only_r): Likewise.
87761
87762         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87763         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87764         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87765         the other external symbols.
87766         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87767         declaration, since the above renaming now works around collisions.
87768
87769 2004-11-11  Jim Meyering  <jim@meyering.net>
87770
87771         * lib/linebreak.c: Remove trailing blanks.
87772         * lib/alloca_.h: Likewise.
87773         * lib/acosl.c: Likewise.
87774         * lib/euidaccess.c: Likewise.
87775         * lib/allocsa.h: Likewise.
87776
87777 2004-11-10  Simon Josefsson  <jas@extundo.com>
87778
87779         * m4/getaddrinfo.m4: New file.
87780
87781 2004-11-10  Simon Josefsson  <jas@extundo.com>
87782
87783         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87784
87785 2004-11-10  Simon Josefsson  <jas@extundo.com>
87786
87787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87788         getaddrinfo.
87789
87790         * modules/getaddrinfo: New file.
87791
87792 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87793
87794         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87795
87796 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         * lib/mktime.c (SHR): New macro, which is a portable
87799         substitute for >> that should work even on Crays.
87800         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87801         Problem reported by Mark D. Baushke in
87802         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87803         * lib/getdate.y (SHR): Likewise.
87804         (tm_diff): Use it.
87805         * lib/strftime.c (SHR): Likewise.
87806         (tm_diff): Use it.
87807         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87808         quote_these_too, so that right shifts are well defined.  All uses
87809         changed.
87810
87811 2004-11-10  Jim Meyering  <jim@meyering.net>
87812
87813         Ensure that no close failure goes unreported.
87814         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87815         return early when it seems there's nothing to flush.
87816         Don't include __fpending.h.
87817
87818 2004-11-10  Jim Meyering  <jim@meyering.net>
87819
87820         * modules/closeout (Depends-on): Remove fpending.
87821
87822 2004-11-10  Jim Meyering  <jim@meyering.net>
87823
87824         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87825
87826 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87827
87828         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87829         gl_FUNC_STRFTIME.
87830         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87831         and AC_REQUIRE when possible, to avoid duplicate checks.
87832         Check for <wchar.h>.
87833
87834 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87835
87836         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87837
87838 2004-11-09  Bruno Haible  <bruno@clisp.org>
87839
87840         * m4/sockpfaf.m4: New file.
87841
87842 2004-11-05  Bruno Haible  <bruno@clisp.org>
87843
87844         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87845         Reported by Mark D. Baushke <mdb@cvshome.org>.
87846
87847 2004-11-04  Bruno Haible  <bruno@clisp.org>
87848
87849         2004-09-11  Bruno Haible  <bruno@clisp.org>
87850                 * allocsa.valgrind: New file.
87851         2004-02-06  Bruno Haible  <bruno@clisp.org>
87852                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87853                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87854                 Reported by Christopher Seip <chris.seip@hp.com>.
87855
87856 2004-11-04  Bruno Haible  <bruno@clisp.org>
87857
87858         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87859         (Makefile.am): Distribute it.
87860
87861 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87862
87863         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87864         with errno == ERANGE if the buffer is too small.
87865         Problem reported by Mark D. Baushke.
87866
87867 2004-11-03  Albert Chin  <china@thewrittenword.com>
87868             Paul Eggert  <eggert@cs.ucla.edu>
87869
87870         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87871         equivalent, substitute $ac_type for equivalent type rather than
87872         blindly using uint32_t *always* which won't work if uint32_t is not
87873         available.  Define _UINT32_T to work around typedef of uint32_t if
87874         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87875         2.5.1.
87876
87877 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87878
87879         * m4/jm-macros.m4: Sync from coreutils.
87880         (gl_MACROS): Check for mbrlen, for pathchk.
87881         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87882
87883 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87884
87885         * lib/xreadlink.c (MAXSIZE): New macro.
87886         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87887         size does not exceed MAXSIZE.  Avoid cast.
87888         As suggested by Mark D. Baushke in
87889         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87890         if readlink fails with buffer size just under MAXSIZE, try again
87891         with MAXSIZE.
87892
87893 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87894
87895         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87896
87897 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87898         and  Paul Eggert  <eggert@cs.ucla.edu>
87899
87900         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87901         (get_date): Overparenthesize to avoid GCC warning.
87902
87903 2004-11-02  Bruno Haible  <bruno@clisp.org>
87904
87905         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87906         returns void.
87907
87908 2004-11-02  Bruno Haible  <bruno@clisp.org>
87909
87910         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87911         function returns void.
87912
87913 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87914
87915         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87916         fflush_unlocked, flockfile, funlockfile, funlockfile,
87917         fputs_unlocked, putc_unlocked.
87918
87919 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87920
87921         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87922         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87923         already declared.
87924
87925 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87926
87927         * modules/getdate (Files): Add doc/getdate.texi.
87928         (Depends-on): Add setenv, xalloc.
87929
87930 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87931
87932         * lib/getdate.y: Add support for TZ="foo" within a date string.
87933         Fix some bugs near time_t boundaries.  Reject dates with
87934         out-of-range components, e.g., "Sept 31".
87935         Include <stdlib.h>, "setenv.h", "xalloc.h".
87936         (ISDIGIT_LOCALE): Remove; unused.
87937         Note that the TZ and time functions used here are not reentrant.
87938         (mktime_ok, get_tz): New functions.
87939         (TZBUFSIZE): New constant.
87940         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87941         This requires that we sometimes generate our own TZ="XXX..." setting.
87942
87943 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87944
87945         * doc/getdate.texi: New file, from coreutils with modifications for
87946         the new TZ parsing.
87947
87948 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87949
87950         * lib/mktime.c (not_equal_tm): Remove redundant check.
87951
87952 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87953
87954         * modules/regex (lib_SOURCES): Add regex.c.
87955         Reported by James Youngman in
87956         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87957
87958 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * lib/getdate.y: Use Bison 1.875 features, and some minor
87961         code cleanups.  This change does not affect semantics.
87962         Don't include <stdlib.h>; no longer needed.
87963         Don't include unlocked-io.h; only the "#if TEST" code uses
87964         stdio, and performance isn't crucial there.
87965         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87966         Bison 1.875 features as described below.
87967         All uses of "PC." replaced by "pc->".
87968         (YYSTYPE): Add a forward declaration.
87969         (yylex, yyerror): Use full prototypes in forward decls.
87970         Use "%pure-parser" rather than obsolescent "%pure_parser".
87971         Use %parse-param and %lex-param instead of obsolescent
87972         YYPARSE_PARAM and YYLEX_PARAM.
87973         (meridian_table, month_and_day_table, time_units_table,
87974         relative_time_table, time_zone_table, military_table,
87975         lookup_zone, lookup_word, get_date):
87976         Use NULL instead of 0 where appropriate.
87977         (to_hour): Avoid abort (), to avoid a dependency on
87978         stdlib.h.
87979         (yyerror, yylex): Now accepts parser_control * arg.
87980         (main) [TEST]: Use '\0' rather than 0 for char.
87981
87982 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87983
87984         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87985
87986 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87987
87988         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87989         It's now the caller's responsibility to handle the case where
87990         !HAVE_GETPAGESIZE && !defined getpagesize.
87991
87992         * lib/mktime.c (leapyear): Arg is long int, not int.
87993
87994 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87995
87996         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87997
87998 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87999
88000         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88001         missing.  Problem reported by James Youngman.
88002
88003 2004-10-16  Simon Josefsson  <jas@extundo.com>
88004
88005         * gnulib-tool: Fix comments.  Fix parse problem.
88006         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88007
88008 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88009
88010         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88011         implementation of getopt_long.  Problem reported by Alexander Taler in:
88012         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88013
88014 2004-10-15  Bruno Haible  <bruno@clisp.org>
88015
88016         * gnulib-tool: Untabify. Initialize supplied_libname.
88017         (func_usage): More homogenous output.
88018         (func_modules_transitive_closure, func_modules_to_filelist,
88019         func_emit_lib_Makefile_am): New functions.
88020         (func_import): New function, extracted from big case statement. Use
88021         func_get_license, func_modules_transitive_closure,
88022         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88023         opt_lgpl. Don't use test -a, as it's not portable.
88024         (func_create_testdir): Use func_modules_transitive_closure,
88025         func_modules_to_filelist, func_emit_lib_Makefile_am.
88026
88027 2004-10-15  Bruno Haible  <bruno@clisp.org>
88028
88029         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88030
88031 2004-10-15  Bruno Haible  <bruno@clisp.org>
88032
88033         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88034         the portions belonging to each module.
88035         Suggested by Derek Robert Price <derek@ximbiot.com>.
88036
88037 2004-10-12  Simon Josefsson  <jas@extundo.com>
88038
88039         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88040         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88041         to real functions.
88042
88043 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88044
88045         * modules/vsnprintf: New file.
88046
88047 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88048
88049         * m4/vsnprintf.m4: New file.
88050
88051 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88052
88053         * lib/vsnprintf.h: New file.
88054         * lib/vsnprintf.c: New file.
88055
88056 2004-10-11  Bruno Haible  <bruno@clisp.org>
88057
88058         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88059         vsnprintf.
88060
88061 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88062
88063         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88064
88065 2004-10-07  Bruno Haible  <bruno@clisp.org>
88066
88067         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88068         fits into the provided buffer.
88069
88070 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88071
88072         * lib/diacrit.c, diacrit.h: Add GPL notice.
88073
88074         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88075         notice.
88076         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88077         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88078         This avoids a potential constant-folding bug.
88079
88080 2004-10-05  Bruno Haible  <bruno@clisp.org>
88081
88082         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88083         for the declaration of strsep.
88084
88085 2004-10-05  Bruno Haible  <bruno@clisp.org>
88086
88087         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88088
88089 2004-10-04  Simon Josefsson  <jas@extundo.com>
88090
88091         * modules/memmem: New file.
88092         * tests/test-memmem.c: New file.
88093         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88094
88095 2004-10-04  Simon Josefsson  <jas@extundo.com>
88096
88097         * m4/memmem.m4: New file.
88098
88099 2004-10-04  Simon Josefsson  <jas@extundo.com>
88100
88101         * lib/memmem.h: New file.
88102         * lib/memmem.c: New file, taken from glibc.
88103
88104 2004-10-04  Simon Josefsson  <jas@extundo.com>
88105
88106         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88107         '#ifdef USE_UNLOCKED_IO'.
88108
88109 2004-10-04  Simon Josefsson  <jas@extundo.com>
88110
88111         * config/srclist.txt: Add memmem from glibc.
88112
88113 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88114
88115         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88116
88117         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88118         modules/exclude, modules/getdate, modules/getline,
88119         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88120         modules/getusershell, modules/linebuffer, modules/md5,
88121         modules/mountlist, modules/posixtm, modules/readtokens,
88122         modules/readutmp, modules/regex, modules/sha1,
88123         modules/version-etc, modules/yesno:
88124         Remove dependency on unlocked-io.
88125
88126 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88127
88128         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88129
88130         * m4/unlocked-io.m4: Add copyright notice.
88131         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88132
88133 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88134
88135         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88136         * lib/xmalloc.c (xmemdup): Likewise.
88137         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88138         XFREE): Remove these long-obsolescent macros.
88139         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88140         * lib/xstrdup.c: Remove.
88141
88142         * lib/regex.c (re_comp): Cast gettext return value to char *,
88143         Problem reported by Martin Neitzel via Mark D. Baushke.
88144
88145 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88146
88147         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88148         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88149         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88150         regex.c, sha1.c, version-etc.c, yesno.c:
88151         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88152         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88153         the includer's responsibility.
88154
88155         Sync from coreutils.
88156
88157         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88158         points to the start of a string, as the C Standard says the
88159         resulting behavior is undefined.
88160
88161         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88162         simple -> simple_backups, numbered_existing ->
88163         numbered_existing_backups, numbered -> numbered_backups
88164         to avoid shadowing problems.  All uses changed.
88165         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88166         * lib/backupfile.c (check_extension, numbered_backup):
88167         Rename locals to avoid shadowing 'basename'.
88168         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88169         once.
88170
88171         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88172         * lib/.cvsignore: Add getopt.h.
88173
88174 2004-10-04  Bruno Haible  <bruno@clisp.org>
88175
88176         * modules/README: New file.
88177         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88178         not a module.
88179
88180 2004-10-02  Jim Meyering  <jim@meyering.net>
88181
88182         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88183
88184 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88185
88186         * modules/strsep: New file.
88187
88188 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88189
88190         * m4/strsep.m4: New file.
88191
88192 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88193
88194         * lib/strsep.h: New file.
88195         * lib/strsep.c: New file.
88196
88197 2004-10-01  Simon Josefsson  <jas@extundo.com>
88198
88199         * lib/snprintf.c (snprintf): Handle size==0.
88200
88201 2004-10-01  Simon Josefsson  <jas@extundo.com>
88202             Bruno Haible  <bruno@clisp.org>
88203
88204         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88205         (snprintf): Declare 'args'.
88206
88207 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88208
88209         * lib/snprintf.c: Remove comments as to why each header is needed.
88210
88211 2004-10-01  Bruno Haible  <bruno@clisp.org>
88212
88213         * MODULES.html.sh: Add strsep.
88214
88215 2004-09-30  Simon Josefsson  <jas@extundo.com>
88216
88217         * modules/snprintf: New file.
88218
88219 2004-09-30  Simon Josefsson  <jas@extundo.com>
88220
88221         * m4/snprintf.m4: New file.
88222
88223 2004-09-30  Simon Josefsson  <jas@extundo.com>
88224
88225         * lib/snprintf.h, lib/snprintf.c: New files.
88226
88227 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88228
88229         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88230         (hol_entry_help): Never translate an empty string.
88231         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88232         * lib/argp.h (OPTION_NO_TRANS): New option.
88233
88234 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88235
88236         * modules/argp (Maintainer): Replace Simon Josefsson
88237         by Sergey Poznyakoff.
88238
88239 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88240
88241         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88242         changes merged back into glibc.
88243
88244 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88247
88248 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88249
88250         * lib/xvasprintf.c: Include xalloc.h.
88251         (xvasprintf): Use xalloc_die, not xmalloc_die.
88252
88253 2004-09-29  Bruno Haible  <bruno@clisp.org>
88254
88255         * modules/alloca-opt: New file, derived from modules/alloca.
88256         * modules/allocsa: Depend on alloca-opt instead of alloca.
88257         * modules/setenv: Likewise.
88258         * modules/vasnprintf: Likewise.
88259         * MODULES.html.sh: Add alloca-opt.
88260
88261 2004-09-28  Simon Josefsson  <jas@extundo.com>
88262
88263         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88264         LGPL, and to replace license template from GPL to LGPL.
88265
88266 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88267
88268         * modules/dummy: Change license to LGPL.
88269
88270 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88271
88272         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88273
88274 2004-09-24  Simon Josefsson  <jas@extundo.com>
88275
88276         * modules/minmax (License): Change from GPL to LGPL.
88277
88278 2004-09-23  Simon Josefsson  <jas@extundo.com>
88279
88280         * gnulib-tool (--import): Typo.
88281
88282 2004-09-23  Simon Josefsson  <jas@extundo.com>
88283
88284         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88285
88286 2004-09-22  Bruno Haible  <bruno@clisp.org>
88287
88288         * modules/*: Add 'License' field.
88289         * gnulib-tool: Accept --extract-license option.
88290         (func_get_license): New function.
88291
88292 2004-09-21  Bruno Haible  <bruno@clisp.org>
88293
88294         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88295         Reported by Simon Josefsson.
88296
88297 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88298
88299         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88300         gl_AC_TYPE_LONG_LONG.
88301
88302 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88303
88304         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88305
88306 2004-09-18  Simon Josefsson  <jas@extundo.com>
88307         and  Paul Eggert  <eggert@cs.ucla.edu>
88308
88309         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88310         calls with autoreconf.  Define GL_LIB.
88311
88312 2004-09-14  Karl Berry  <karl@gnu.org>
88313
88314         * config/srclist.txt: unsync setenv.c, sigh.
88315
88316 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88317
88318         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88319         Problem reported by Bruno Haible in:
88320         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88321
88322 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88323
88324         * config/srclist.txt: Comment out argp-pvh.c.
88325
88326 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88327
88328         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88329         in case some system header has #define'd it.  Problem reported by
88330         Soeren D. Schulze in
88331         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88332
88333 2004-09-09  Karl Berry  <karl@gnu.org>
88334
88335         * regex.[ch]: delete from the root.  These were supposed to be
88336                 synced with emacs cvs, but this has not happened for about
88337                 a year, and anyway nothing else uses emacs regex.[ch].
88338                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88339                 lib/regex[.ch] is untouched.
88340
88341 2004-09-09  Bruno Haible  <bruno@clisp.org>
88342
88343         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88344
88345 2004-09-09  Bruno Haible  <bruno@clisp.org>
88346
88347         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88348         modifications.
88349         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88350
88351 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88352
88353         * modules/xvasprintf: New file.
88354         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88355
88356 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88357
88358         * lib/xvasprintf.h: New file.
88359         * lib/xvasprintf.c: New file.
88360         * lib/xasprintf.c: New file.
88361
88362 2004-09-08  Bruno Haible  <bruno@clisp.org>
88363
88364         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88365
88366 2004-09-08  Bruno Haible  <bruno@clisp.org>
88367
88368         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88369         length is > INT_MAX.
88370         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88371         more.
88372
88373 2004-09-08  Bruno Haible  <bruno@clisp.org>
88374
88375         * lib/stdint_.h: New file, taken from GNU clisp.
88376
88377 2004-09-08  Bruno Haible  <bruno@clisp.org>
88378             Oskar Liljeblad  <oskar@osk.mine.nu>
88379
88380         * modules/stdint: New file.
88381         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88382
88383 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88384
88385         Import from coreutils.
88386         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88387         strings on unbounded length.  alloca's performance benefits aren't
88388         that important here.
88389         (V_STRDUP): Remove.
88390         (parse_with_separator): New function, with most of the internals
88391         of the old parse_user_spec.  Allow user to omit both user and group,
88392         for compatibility with FreeBSD.
88393         Clone only the user name, not the entire spec.
88394         Do not set *uid, *gid unless entirely successful.
88395         Avoid memory leak in some failing cases.
88396         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88397         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88398         (parse_user_spec): Rewrite to use parse_with_separator.
88399
88400 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88401
88402         * modules/userspec: Don't depend on alloca.
88403
88404 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88405
88406         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88407
88408 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88411         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88412         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88413
88414 2004-08-16  Simon Josefsson  <jas@extundo.com>
88415
88416         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88417         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88418         Add --dry-run for --import.
88419         Let user provided command line parameters override configure.ac
88420         settings.
88421
88422 2004-08-12  Simon Josefsson  <jas@extundo.com>
88423
88424         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88425         as discussed with Paul Eggert in threads rooted at
88426         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88427         and
88428         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88429         Before, the test was empty, and relied on ELIDE_CODE in source
88430         code.)
88431         (gl_PREREQ_GETOPT): New macro.
88432         (gl_GETOPT): Use them.
88433
88434 2004-08-12  Simon Josefsson  <jas@extundo.com>
88435
88436         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88437         * lib/getopt_.h: Renamed from getopt.h.
88438
88439 2004-08-12  Simon Josefsson  <jas@extundo.com>
88440
88441         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88442         Change default library name from libfoo to libgnu.
88443         Now, if you have a configure.ac that says:
88444                 gl_SOURCE_BASE(gl)
88445                 gl_M4_BASE(gl/m4)
88446                 gl_MODULES(error getopt etcetera)
88447                 gl_INIT
88448         you can import all you need by running:
88449                 ../gnulib/gnulib-tool --import
88450
88451         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88452         (Makefile.am): Rewrite, use logic from argz.
88453         (Include): Use <getopt.h> instead of "getopt.h".
88454
88455 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88456
88457         * modules/argp (Files): Add m4/unlocked-io.m4.
88458         (Depends-on): Add extensions.
88459
88460 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88461
88462         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88463         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88464         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88465         Check for program_invocation_name, program_invocation_short_name,
88466         flockfile, funlockfile, features.h, _getopt_long_only_r.
88467
88468 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88469
88470         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88471         its complicated substitute.
88472         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88473         and program_invocation_name.
88474         (__argp_basename) [!_LIBC]: Remove; the only use was
88475         replaced by its body.
88476         (__argp_short_program_name): Change condition from
88477         !defined __argp_short_program_name to
88478         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88479         to match argp-namefrob.h.
88480         (__argp_failure): Don't assume strerror_r returns char *.
88481         * lib/argp-parse.c (N_): Define unconditionally.
88482         (argp_default_options): Fill out initializers with 0 to avoid
88483         gcc warnings.
88484
88485 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88486
88487         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88488         getopt1.c.
88489
88490 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88491
88492         Merge from coreutils.
88493
88494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88495
88496         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88497         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88498
88499 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88500
88501         Merge from coreutils.
88502
88503         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88504         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88505         for Reliant Unix 5.43.
88506
88507         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88508         (union fooround): Use uintmax_t, not long int.
88509         The rest is a merge from libc:
88510         [defined _LIBC]: Include <shlib-compat.h>.
88511         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88512
88513         * lib/settime.c (settime): Recode to avoid warning with
88514         Sun Forte C 6U2.
88515
88516         * lib/strverscmp.c: Convert to UTF-8.
88517
88518 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88519
88520         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88521         m4/uintmax_t.m4.
88522
88523 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88524
88525         * modules/xalloc-die: New file.
88526         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88527
88528         * modules/md5 (Files): Add m4/uint32_t.m4.
88529         * modules/sha1: Renamed from modules/sha.
88530         (Files):
88531         Rename lib/sha.h to lib/sha1.h.
88532         Rename lib/sha.c to lib/sha1.c.
88533         Rename m4/sha.m4 to m4/sha1.m4.
88534         (lib_SOURCES): Likewise.
88535         (configure.ac): Rename gl_SHA to gl_SHA1.
88536         (Include): sha.h -> sha1.h.
88537
88538 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88539
88540         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88541         * m4/sha1.m4: Renamed from sha.m4.
88542         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88543
88544 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88545
88546         * lib/obstack.h (obstack_empty_p):
88547         Don't assume that chunk->contents is suitably aligned.
88548         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88549         Likewise. Problem reported by Benno in
88550         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88551
88552         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88553         readable.  This could be improved further but it'd take some work.
88554
88555 2004-08-08  Simon Josefsson  <jas@extundo.com>
88556
88557         * modules/xgethostname (Depends-on): Remove exit and error (not
88558         used).
88559
88560         * modules/getpass-gnu: Add getpass.h.
88561         (Depends-on): Add stdbool.
88562         * modules/getpass: Add getpass.h.
88563
88564 2004-08-08  Simon Josefsson  <jas@extundo.com>
88565
88566         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88567         Check getpass declaration.
88568
88569 2004-08-08  Simon Josefsson  <jas@extundo.com>
88570
88571         * lib/xgethostname.c: Don't include error.h (not used).
88572
88573         * lib/getpass.h: Add.
88574         * lib/getpass.c: Include getpass.h first.
88575
88576 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88577
88578         * lib/xalloc-die.c: New file.
88579         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88580         All uses removed.
88581         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88582         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88583         xalloc-die.c.
88584         (_, N_, xalloc_die): Move to xalloc-die.c.
88585         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88586         so that we needn't mess with xalloc_msg_memory_exhausted.
88587
88588         * lib/sha1.h: Renamed from sha.h.
88589         (SHA1_H): Renamed from _SHA_H.
88590         (sha1_ctx): Renamed from sha_ctx.
88591         (sha1_init_ctx): Renamed from sha_init_ctx.
88592         (sha1_process_block): Renamed from sha_process_block.
88593         (sha1_process_bytes): Renamed from sha_process_bytes.
88594         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88595         (sha1_read_ctx): Renamed from sha_read_ctx.
88596         (sha1_stream): Renamed from sha_stream.
88597         (sha1_buffer): Renamed from sha_buffer.
88598         * lib/sha1.c: Likewise; renamed from sha.c.
88599         Do not include <sys/types.h>.
88600         Include <stddef.h> rather than <stdlib.h>.
88601
88602 2004-08-08  Bruno Haible  <bruno@clisp.org>
88603
88604         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88605         FILESYSTEM_PREFIX_LEN.
88606         * lib/progreloc.c: Likewise.
88607         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88608
88609 2004-08-06  Simon Josefsson  <jas@extundo.com>
88610
88611         * modules/progname (Depends-on): Don't depend on stdbool.
88612
88613 2004-08-06  Simon Josefsson  <jas@extundo.com>
88614
88615         * modules/getsubopt: New file.
88616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88617         getsubopt.
88618
88619 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88620
88621         More merge from coreutils.
88622
88623         * m4/utimens.m4, m4/utimecmp.m4: New files.
88624         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88625         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88626         prereq.m4, sha.m4: Import changes from coreutils.
88627
88628 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88629
88630         More merge from coreutils.
88631         * modules/raise, modules/readtokens0, modules/utimens:
88632         * modules/utimecmp, module/xnanosleep: New files.
88633         * modules/strftime: Add lib/strftime.h.
88634         Change include from <time.h> to "strftime.h".
88635         * modules/yesno: Add lib/yesno.h.
88636         * modules/backupfile: Remove lib/addext.c.
88637         * modules/euidaccess: Add stat-macros.h.
88638         * modules/canonicalize, modules/euidaccess,
88639         modules/filemode, modules/lchown, modules/makepath,
88640         modules/rmdir, modules/stat: Likewise.
88641
88642 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88643
88644         Merge from tar.
88645         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88646         SIZE_MAX is a valid preprocessor constant.
88647         (__argp_basename): Change from "#ifndef _LIBC"
88648         to "#ifndef __argp_short_program_name", so that
88649         we don't compile these functions for tar.
88650
88651         More merges from coreutils.
88652         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88653         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88654         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88655         * lib/addext.c: Remove; no longer needed.
88656         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88657         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88658         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88659         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88660         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88661         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88662         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88663         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88664         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88665         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88666         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88667         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88668         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88669         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88670         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88671         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88672         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88673         Import changes from coreutils.
88674
88675 2004-08-05  Simon Josefsson  <jas@extundo.com>
88676
88677         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88678
88679 2004-08-05  Simon Josefsson  <jas@extundo.com>
88680
88681         * m4/getsubopt.m4: New file.
88682
88683 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88684
88685         Merge from coreutils.
88686
88687         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88688         * m4/getcwd-path-max.m4: New files.
88689
88690         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88691         FILESYSTEM_PREFIX_LEN ->
88692         FILE_SYSTEM_PREFIX_LEN.
88693         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88694         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88695         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88696         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88697
88698         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88699         prerequisite modules now handle the DOS stuff.
88700         Don't check for unistd.h.
88701
88702 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88703
88704         Merge from coreutils.
88705
88706         * lib/.gdb-history: Remove; this doesn't belong here.
88707
88708         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88709         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88710         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88711         * lib/getcwd.c: New files.
88712
88713         * lib/dirname.h: Include <stdbool.h>.
88714         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88715         for consistency with POSIX terminology.  All uses changed.
88716         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88717         (strip_trailing_slashes): Use bool for booleans.
88718         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88719
88720         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88721         sometimes returns a positive errno value even when it succeeds.
88722         (print_errno_message) [!LIBC]: Fall back on strerror if
88723         __strerror_r fails.
88724
88725         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88726         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88727         (longest_relative_suffix): New function.
88728         (path_concat): Use it.  Assume first argument is not NULL.
88729         Port to DOS.  Omit redundant separators.
88730         Report an error instead of returning NULL.
88731         Use mempcpy instead of memcpy.
88732         (xpath_concat): Remove: not declared or used.
88733
88734         * lib/same.h: Include <stdbool.h>
88735         (same_name): Return bool, not int.
88736         * lib/same.c (same_name): Likewise.
88737         (errno): Don't declare; we assume C89 or better now.
88738
88739         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88740         if not already defined.
88741
88742         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88743         * lib/dup-safer.c (errno): Likewise.
88744
88745 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88746
88747         Merge from coreutils.
88748         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88749         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88750         * modules/path-concat: Don't depend on strdup.
88751
88752 2004-08-03  Simon Josefsson  <jas@extundo.com>
88753
88754         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88755         * lib/progname.h: Don't include stdbool.h.
88756
88757 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88758
88759         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88760         * MODULES.html.sh (func_all_modules): Remove fatal.
88761
88762 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88763
88764         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88765
88766 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88767
88768         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88769         working.
88770
88771 2004-08-02  Simon Josefsson  <jas@extundo.com>
88772
88773         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88774         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88775         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88776
88777 2004-08-01  Simon Josefsson  <jas@extundo.com>
88778
88779         * lib/xgetdomainname.c: Include stdlib.h, for free().
88780
88781 2004-07-19  Bruno Haible  <bruno@clisp.org>
88782
88783         * MODULES.html.sh (func_all_modules): Add dummy.
88784
88785 2004-07-16  Simon Josefsson  <jas@extundo.com>
88786
88787         * modules/dummy: New file.
88788
88789 2004-07-16  Simon Josefsson  <jas@extundo.com>
88790
88791         * lib/dummy.c: New file.
88792
88793 2004-07-16  Bruno Haible  <bruno@clisp.org>
88794
88795         * lib/backupfile.h: Add extern "C" for C++.
88796         * lib/closeout.h: Likewise.
88797         * lib/copy-file.h: Likewise.
88798         * lib/findprog.h: Likewise.
88799         * lib/full-write.h: Likewise.
88800         * lib/pathname.h: Likewise.
88801         * lib/progname.h: Likewise.
88802         * lib/stpcpy.h: Likewise.
88803         * lib/stpncpy.h: Likewise.
88804         * lib/strcase.h: Likewise.
88805         * lib/strstr.h: Likewise.
88806         * lib/xalloc.h: Likewise.
88807
88808         * lib/mbswidth.h: Add extern "C" for C++.
88809         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88810
88811 2004-07-13  Robert Millan  <robertmh@gnu.org>
88812
88813         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88814
88815 2004-07-09  Simon Josefsson  <jas@extundo.com>
88816
88817         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88818         failed without this.)
88819
88820 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88821
88822         * modules/chown (Files): Add lib/fchown-stub.c, since
88823         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88824
88825 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88826
88827         * lib/fchown-stub.c: New file.
88828
88829 2004-06-24  Jim Meyering  <jim@meyering.net>
88830
88831         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88832
88833 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88834
88835         * modules/argz: Omit "#include".
88836
88837         * MODULES.html.sh (func_all_modules): Add calloc, to match
88838         2004-06-01 addition of calloc module.
88839
88840 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88841
88842         * m4/argz.m4: New file, which is autoupdated from libtool.
88843
88844 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88845
88846         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88847         libtool.
88848
88849 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88850
88851         * config/srclist-update: Don't insist on "USA." before the
88852         close-comment, as libtool omits the period and puts the */ on a
88853         separate line.
88854         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88855         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88856
88857 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88858
88859         * modules/argz: New file.
88860         * MODULES.html.sh (func_all_modules): Add argz.
88861
88862 2004-06-12  Jim Meyering  <jim@meyering.net>
88863         and  Paul Eggert  <eggert@cs.ucla.edu>
88864
88865         * modules/hash (Files): Add lib/xalloc.h.
88866         * modules/pipe (Depends-on): Add wait-process.
88867         * modules/stat (Depends-on): Add xalloc.
88868         * modules/userspec (Files): Add lib/userspec.h.
88869         * modules/xstrto
88870
88871         Upgrade from gettext-0.13.
88872         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88873         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88874         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88875
88876 2004-06-10  Jim Meyering  <jim@meyering.net>
88877
88878         * lib/calloc.c: New file.
88879
88880 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88881
88882         * lib/getdate.y (yylex): Allow space between sign and number.
88883         Problem reported by Dan Jacobson.
88884
88885 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88886
88887         Merge from coreutils CVS.
88888
88889         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88890         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88891         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88892         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88893         xstrtol.m4: Fix copyright date and/or serial number.
88894
88895         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88896         See if we need an fchown replacement.
88897         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88898         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88899         and use the replacement function if we detect either defect.
88900
88901         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88902         gl_UTIMECMP.
88903
88904 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88905         and  Jim Meyering  <jim@meyering.net>
88906
88907         Merge from coreutils CVS.
88908
88909         * lib/stat-macros.h: New file, with contents from file-type.h
88910         and coreutils' system.h.
88911         * lib/file-type.c: Include "stat-macros.h".
88912         * lib/file-type.h (file_type): Move all macro definitions to new file,
88913         stat-macros.h.
88914
88915         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88916         Wrap old code with this conditional.
88917         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88918         function that does not dereference symlinks.
88919         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88920
88921         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88922         dependency problems.
88923         (xreadlink): Accept new arg SIZE, for efficiency.
88924         All decls and uses changed.
88925         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88926
88927         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88928         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88929
88930         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88931         sysexits.h.
88932
88933 2004-06-01  Jim Meyering  <jim@meyering.net>
88934
88935         * m4/calloc.m4: New file.
88936
88937 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88938
88939         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88940         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88941         Also, fix a typo in a diagnostic.
88942
88943 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88944
88945         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88946         or AC_FUNC_REALLOC.
88947
88948 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88949
88950         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88951         macros to be defined.
88952         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88953         the allocator returns NULL because the requested size is zero.
88954
88955 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88956
88957         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88958         var.  Add comment explaining why libc still defines it.  This
88959         merges the following patch from glibc:
88960         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88961
88962 2004-05-20  Andreas Schwab  <schwab@suse.de>
88963
88964         * m4/free.m4: Replace free if it not known to work, not the other
88965         way round.
88966
88967 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88968
88969         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88970         present in glibc since revision 1.1 of this file.
88971         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88972         obstack_alignment_mask, obstack_alloc, obstack_base,
88973         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88974         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88975         obstack_grow0, obstack_init, obstack_int_grow,
88976         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88977         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88978         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88979         nonexistent functions.
88980
88981 2004-05-18  Karl Berry  <karl@gnu.org>
88982
88983         * config/srclist.txt: break link for vasnprintf.c.
88984
88985 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88986
88987         Port obstack to the AS/400, where pointers are 16 bytes wide and
88988         you cannot cast an integer to a valid pointer.  This patch is
88989         currently waiting to be integrated into glibc; see
88990         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88991
88992         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88993         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88994         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88995         (struct obstack): temp member is now a union of a pointer and
88996         an integer, instead of an integer.  All integer uses changed.
88997         This does not affect the physical layout of struct obstack,
88998         except on hosts (like the AS/400) where the size or alignment of
88999         void * is greater than that of ptrdiff_t.
89000         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89001         __STDC__)]: Store temporary in pointer member of union, not
89002         integer member.
89003         * lib/obstack.c: Include <stddef.h>, for offsetof.
89004         (struct fooalign): Remove; it doesn't need a name.
89005         (union fooround): Change double to long double, and add void *.
89006         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89007         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89008         not a macro.  Hence the values are always int; so remove all
89009         casts-to-int in uses.
89010
89011 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89012
89013         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89014         we can get this patch merged into glibc.
89015
89016 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89017             Paul Eggert  <eggert@cs.ucla.edu>
89018
89019         * m4/argp: Depend on alloca.
89020
89021 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89022             Paul Eggert  <eggert@cs.ucla.edu>
89023
89024         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89025         freecoding.
89026
89027 2004-05-17  Bruno Haible  <bruno@clisp.org>
89028
89029         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89030         precision that consists of a '.' followed by an empty digit string.
89031         Patch by Tor Lillqvist <tml@iki.fi>.
89032
89033 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89034
89035         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89036         for backward compatibility with older code.  We need our own
89037         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89038         it under some other name, and our alloca.h will define it.
89039
89040 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89041             Derek Price  <derek@ximbiot.com>
89042
89043         * lib/alloca.c: Include <alloca.h>, to get our interface.
89044         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89045         include <alloca.h> first.  Use C89 prototype for alloca; this
89046         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89047         Use #elif for simplicity, since we can assume C89 now.
89048         Don't try to source the system alloca.h since it will not be found
89049         and to prevent recursively including its replacement.
89050         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89051         * lib/regex.c: Likewise.
89052
89053 2004-05-16  Derek Price  <derek@ximbiot.com>
89054             Paul Eggert  <eggert@cs.ucla.edu>
89055
89056         getline cleanup.  This changes the getndelim2 API: both order of
89057         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89058         no delimiter).
89059
89060         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89061         interface does that.
89062         (getline): Always use getdelim, so that we don't have two
89063         copies of this code.
89064         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89065         if available.
89066         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89067         (GETNDELIM2_MAXIMUM): New macro.
89068         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89069         instead of the old practice of delim2==0.  All callers changed.
89070         Return -1 on overflow, instead of returning junk.
89071         Do not set *linesize unless allocation succeeds.
89072         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89073         that we include sys/types.h.
89074         * lib/getnline.h: Likewise.
89075         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89076         (getndelim2): Reorder arguments.
89077         * lib/getnline.c (getnline, getndelim):
89078         Don't discard the NMAX argument.
89079         (getnline): Invoke getndelim, to avoid code duplication.
89080         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89081         of (size_t) -1 by callers of the getnline family.
89082
89083 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89084
89085         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89086         Check for gettimeofday.
89087         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89088         Check for settimeofday, stime.
89089
89090 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89091
89092         * lib/nanosleep.c (suspended): Change its type from int to
89093         sig_atomic_t volatile.
89094         (first_call): Make it private to rpl_nanosleep, and have it
89095         be zero initially as that's a bit faster.
89096         (my_usleep): Round up fractional times instead of truncating them,
89097         as this is the usual meaning for 'sleep'.
89098
89099         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89100         doesn't work.
89101         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89102         (ENOSYS): Define if not defined.
89103         (settime): Fall back on stime if it exists and settimeofday fails.
89104         But don't bother with fallbacks if a method fails with errno == EPERM.
89105
89106 2004-05-11  Jim Meyering  <jim@meyering.net>
89107
89108         Prior to this change, the save_cwd caller required read access to the
89109         current directory on most systems (ones with the fchdir function).
89110
89111         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89112         fails, try write-only, and finally, resort to using xgetcwd.
89113
89114 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89115
89116         * lib/obstack.c, obstack.h: Import changes from libc.
89117
89118 2004-04-28  Bruno Haible  <bruno@clisp.org>
89119
89120         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89121         also implicitly appends .exe to executables.
89122         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89123         accepts Windows pathnames.
89124         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89125         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89126         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89127         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89128         Reported by Derek Robert Price <derek@ximbiot.com>.
89129
89130 2004-04-21  Karl Berry  <karl@gnu.org>
89131
89132         * config/srclist.txt (localcharset.c): break sync.
89133
89134 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89135
89136         * m4/host-os.m4: Add a copyright notice.
89137
89138 2004-04-20  Jim Meyering  <jim@meyering.net>
89139
89140         Change UTILS_ to gl_ in AC_DEFINE'd names.
89141         Change utils_- and jm_-prefixed variables, too.
89142         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89143         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89144         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89145
89146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89147         Don't emit trailing blanks.
89148         Also rename jm_-prefixed variables to have gl_ prefix.
89149
89150         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89151         Also rename jm_-prefixed variables to have gl_ prefix.
89152
89153         * m4/jm-macros.m4: Reflect the renamings.
89154         * m4/prereq.m4: Likewise.
89155
89156 2004-04-20  Jim Meyering  <jim@meyering.net>
89157
89158         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89159         memory.
89160
89161 2004-04-20  Jim Meyering  <jim@meyering.net>
89162             Bruno Haible  <bruno@clisp.org>
89163
89164         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89165         memory when realloc fails.
89166
89167 2004-04-19  Jim Meyering  <jim@meyering.net>
89168
89169         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89170         now that readutmp.c may call `free (0)'.
89171
89172 2004-04-19  Bruno Haible  <bruno@clisp.org>
89173
89174         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89175         * m4/inttypes_h.m4: Likewise.
89176         * m4/stdint_h.m4: Likewise.
89177         * m4/intmax_t.m4: Likewise.
89178         * m4/uintmax_t.m4: Likewise.
89179
89180 2004-04-18  Jim Meyering  <jim@meyering.net>
89181
89182         * m4/prereq.m4: Don't forbid jm_ prefix.
89183
89184         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89185         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89186         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89187         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89188         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89189         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89190         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89191         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89192         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89193         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89194         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89195         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89196         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89197         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89198         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89199         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89200         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89201         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89202         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89203
89204 2004-04-18  Jim Meyering  <jim@meyering.net>
89205
89206         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89207         failure, don't leak memory and do call END_UTMP_ENT.
89208
89209 2004-04-16  Jim Meyering  <jim@meyering.net>
89210
89211         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89212         coreutils' stat program.
89213         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89214
89215 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89216
89217         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89218         C89.
89219         (CHAR_BIT): Remove, since we assume C89.
89220         Include <stdint.h> if available, as per current Autoconf CVS advice.
89221
89222 2004-03-31  Jim Meyering  <jim@meyering.net>
89223
89224         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89225         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89226         * m4/xalloc.m4: Likewise.
89227
89228 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89229
89230         Merge from coreutils.
89231
89232         * m4/inttostr.m4: New file.
89233         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89234         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89235         Require gl_CLOCK_TIME.
89236         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89237
89238 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89239
89240         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89241         not bool, to be more consistent with Unix conventions.
89242         Suggested by Bruno Haible.
89243
89244         Merge from coreutils.
89245
89246         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89247         * lib/umaxtostr.c: New files.
89248
89249         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89250         the usual <time.h> dance.
89251         (get_date): Change signature to support fractional time stamps.
89252         All callers changed.
89253         * lib/getdate.y: Include "getdate.h" first, as we can now
89254         assume C89 and don't need to worry about 'const'.
89255         Similarly, include "unlocked-io.h" near start, not in middle.
89256         Include <limits.h>.
89257         (textint.value): Use long int rather than int.
89258         (textint.digits): Use size_t rather than int.
89259         (BILLION, LOG10_BILLION): New constants.
89260         (parser_control): New member rel_ns.  Members day_ordinal,
89261         time_zone, month, day, hour, minutes, rel_year, rel_month,
89262         rel_day, rel_hour, rel_minutes, rel_seconds
89263         are now long int, not int.  Member seconds is now struct timespec,
89264         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89265         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89266         not int.
89267         (%union.intval): Now long int, not int.
89268         New member timespec.
89269         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89270         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89271         (spec): Now is a timespec or an item list.
89272         (timespec, items): New nonterminals.
89273         (time, rel, relunit, number, get_date):
89274         Add support for fractional seconds.
89275         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89276         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89277         (to_hour): First arg is now long int, not int.
89278         (to_year): Returns long int, not int.
89279         Don't treat year -70 like 70.
89280         (tm_diff): Returns long int, not int.
89281         (lookup_word): Use bool instead of int when appropriate.
89282         (yylex): Use size_t for count, not int.
89283         Detect overflow when parsing large integer constants.
89284         Add support for fractions.
89285         (get_date): Make pointers 'const' if possible.
89286         Use more-portable code to detect integer overflow.
89287         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89288         Don't use ctime; it's not reliable if the year has >4 digits.
89289
89290         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89291         This is for compatibility with BSD.
89292
89293         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89294         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89295         From coreutils' system.h.
89296
89297         * lib/userspec.c: Don't include "posixver.h".
89298         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89299         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89300         compatible extension.  Simplify code by removing a boolean int
89301         that was always nonzero if a string was nonnull.
89302
89303 2004-03-30  Jim Meyering  <jim@meyering.net>
89304
89305         Merge from coreutils.
89306
89307         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89308         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89309         on some systems one must include <grp.h> before it.
89310         Reported by Christian Krackowizer.
89311
89312 2004-03-30  Jim Meyering  <jim@meyering.net>
89313
89314         Merge from coreutils.
89315
89316         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89317
89318         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89319         an empty input stream.
89320
89321         * lib/readtokens.c: Include <stdbool.h>.
89322         (readtoken): Use `size_t' rather than int/long.
89323         All callers adjusted.
89324         Use `bool' rather than `int' where appropriate.
89325         Use memset rather than an explicit loop.
89326         Use x2nrealloc rather than xrealloc.
89327         Allow the use of `\0' as a delimiter.
89328         (readtokens): Likewise.
89329         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89330
89331 2004-03-30  Jim Meyering  <jim@meyering.net>
89332
89333         * m4/realloc.m4: Remove file, since now it does no more than
89334         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89335         the `configure.ac' section of module/realloc.
89336         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89337
89338 2004-03-30  Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89341         nonnull.
89342
89343 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89344
89345         Merge changes to getloadavg.c from coreutils and Emacs.
89346
89347         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89348         Define to an expression, not to the empty string.
89349         Include cloexec.h and xalloc.h.
89350         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89351         Use set_cloexec_flag rather than rolling our own.
89352         * lib/cloexec.c, lib/cloexec.h: New files.
89353
89354 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89355
89356         * m4/cloexec.m4: New file.
89357
89358 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89359
89360         * lib/getopt.h: Sync with libc CVS.
89361
89362 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89363             Bruno Haible  <bruno@clisp.org>
89364
89365         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89366         mbswidth.
89367
89368 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89369             Bruno Haible  <bruno@clisp.org>
89370
89371         * lib/mbswidth.h: Include <wchar.h> only if
89372         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89373         <wchar.h>.
89374         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89375
89376 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89379         Sync with libc CVS.
89380         * lib/getopt_int.h: New file, also synced from libc.
89381
89382 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89383
89384         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89385         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89386         Bring back getopt.c, getopt.h, getopt1.c.
89387
89388 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89389
89390         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89391         All uses changed.  Check for sa_sigaction member; this fixes
89392         a bug first reported by Jason Andrade in
89393         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89394
89395 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89396
89397         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89398         '#if' expressions.  Unlike the code it replaces, it does not
89399         depend on (defined _SC_PAGESIZE).  However, it does depend on
89400         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89401         first reported by Jason Andrade in
89402         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89403
89404 2004-02-25  Simon Josefsson  <jas@extundo.com>
89405
89406         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89407
89408 2004-02-25  Simon Josefsson  <jas@extundo.com>
89409
89410         * lib/strdup.h: New file.
89411         * lib/strdup.c: Include it.
89412         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89413         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89414
89415 2004-02-23  Karl Berry  <karl@gnu.org>
89416
89417         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89418         (from fencepost.gnu.org:/gd/gnuorg).
89419
89420 2004-02-23  Karl Berry  <karl@gnu.org>
89421
89422         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89423         * config/srclist.txt: add maintain/standards documents.
89424
89425 2004-02-18  Bruno Haible  <bruno@clisp.org>
89426
89427         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89428         Reported by Derek Robert Price <derek@ximbiot.com>.
89429
89430 2004-02-16  Karl Berry  <karl@gnu.org>
89431
89432         * config/mkinstalldirs, install-sh: update from automake.
89433
89434 2004-02-06  Karl Berry  <karl@gnu.org>
89435
89436         * m4/po.m4: update from gettext 0.14.1.
89437
89438 2004-02-06  Karl Berry  <karl@gnu.org>
89439
89440         * lib/config.charset: update from gettext 0.14.1.
89441
89442 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89443
89444         Add comments and code, prompted by suggestions from Bruno Haible
89445         for sh-quote.
89446         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89447         describing the enum quoting_style values.
89448         * lib/quotearg.c (quotearg_alloc): New function.
89449         (quotearg_buffer_restyled): Treat lone { and } as special.
89450         Treat = as special.  Work around bug with older shells
89451         that "see" a '\' that is really the 2nd byte of a multibyte char.
89452         Quote empty string with shell_quoting_style.
89453
89454 2004-02-03  Bruno Haible  <bruno@clisp.org>
89455
89456         * m4/pipe.m4: New file, from GNU gettext.
89457
89458 2004-02-03  Bruno Haible  <bruno@clisp.org>
89459
89460         * lib/pipe.h: New file, from GNU gettext.
89461         * lib/pipe.c: New file, from GNU gettext.
89462
89463 2004-01-27  Bruno Haible  <bruno@clisp.org>
89464
89465         * m4/execute.m4: New file, from GNU gettext.
89466
89467 2004-01-27  Bruno Haible  <bruno@clisp.org>
89468
89469         * lib/execute.h: New file, from GNU gettext.
89470         * lib/execute.c: New file, from GNU gettext.
89471         * lib/w32spawn.h: New file, from GNU gettext.
89472
89473 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89474
89475         Merge from diffutils.
89476
89477         * lib/file-type.c (file_type): Add typed memory objects.
89478         * lib/file-type.h (S_TYPEISTMO): New macro.
89479
89480         * lib/c-stack.h (c_stack_action): Remove argv argument.
89481         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89482         (die): Don't calculate message unless segv_action returns.
89483         (get_stack_location, min_address_from_argv, max_address_from_argv,
89484         volatile stack_base, volatile_stack_size): Remove.
89485         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89486         that every segmentation violation is a stack overflow.  (Ouch!)
89487         See Debian bug 136249 (still outstanding) for more info about why
89488         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89489
89490 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89491
89492         Exit-status fix from coreutils.
89493
89494         Use exit_failure consistently in place of EXIT_FAILURE,
89495         so that program exit statuses are consistent on failure.
89496
89497         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89498         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89499         * lib/argmatch.h: Comment fix to match the above.
89500         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89501         Now a macro referring to exit_failure, instead of a separate
89502         variable.  Include "exitfail.h" to get it.
89503         * lib/xstrtol.h: Include "exitfail.h".
89504         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89505
89506         * lib/long-options.c (parse_long_options): Use prototype
89507         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89508         for clarity.
89509
89510 2004-01-21  Jim Meyering  <jim@meyering.net>
89511
89512         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89513         so as not to conflict with a different-sized __mktime_internal
89514         function in GNU libc.
89515         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89516         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89517
89518 2004-01-20  Karl Berry  <karl@gnu.org>
89519
89520         * config/config.guess: update from config.
89521
89522         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89523
89524 2004-01-20  Bruno Haible  <bruno@clisp.org>
89525
89526         Safer stack allocation.
89527         * lib/setenv.c: Include allocsa.h.
89528         (alloca): Remove fallback definition.
89529         (freea): Remove macro.
89530         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89531         instead of freea.
89532
89533 2004-01-20  Bruno Haible  <bruno@clisp.org>
89534
89535         * m4/eealloc.m4: New file, from GNU gettext.
89536
89537 2004-01-20  Bruno Haible  <bruno@clisp.org>
89538
89539         * m4/allocsa.m4: New file, from GNU gettext.
89540
89541 2004-01-20  Bruno Haible  <bruno@clisp.org>
89542
89543         * lib/xallocsa.h: New file, from GNU gettext.
89544         * lib/xallocsa.c: New file, from GNU gettext.
89545
89546 2004-01-20  Bruno Haible  <bruno@clisp.org>
89547
89548         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89549
89550 2004-01-20  Bruno Haible  <bruno@clisp.org>
89551
89552         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89553         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89554         specially.
89555
89556 2004-01-20  Bruno Haible  <bruno@clisp.org>
89557
89558         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89559         patch.
89560
89561 2004-01-20  Bruno Haible  <bruno@clisp.org>
89562
89563         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89564
89565 2004-01-20  Bruno Haible  <bruno@clisp.org>
89566
89567         * lib/eealloc.h: New file.
89568
89569 2004-01-20  Bruno Haible  <bruno@clisp.org>
89570
89571         * lib/binary-io.h: Avoid warnings on Cygwin.
89572
89573 2004-01-20  Bruno Haible  <bruno@clisp.org>
89574
89575         * lib/allocsa.h: New file, from GNU gettext.
89576         * lib/allocsa.c: New file, from GNU gettext.
89577
89578 2004-01-18  Karl Berry  <karl@gnu.org>
89579
89580         * doc/gpl.texi, doc/lgpl.texi: new files.
89581
89582 2004-01-18  Karl Berry  <karl@gnu.org>
89583
89584         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89585         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89586
89587 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89588
89589         Merge from coreutils.
89590
89591         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89592         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89593         (gl_DEFAULT_POSIX2_VERSION): Move
89594         the documentation from 'configure' into 'config.hin',
89595         so that 'configure --help' isn't burdened by it and
89596         we don't have to worry about its formatting there.
89597         Reword the documentation so that it's more succinct
89598         and can be run together into a single paragraph.
89599         * m4/same.m4 (gl_SAME): Check for pathconf.
89600
89601 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89602
89603         Merge from coreutils.
89604
89605         * lib/posixver.c: Include posixver.h.
89606
89607         * lib/same.c: Include <stdbool.h>, <limits.h>.
89608         (_POSIX_NAME_MAX): Define if not defined.
89609         (MIN): New macro.
89610         (same_name): If file names are silently truncated, report
89611         that the file names are the same if they are the same after
89612         the silent truncation.
89613
89614         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89615         conversion function.
89616         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89617         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89618         longer needed.
89619
89620 2004-01-15  Jim Meyering  <jim@meyering.net>
89621
89622         Merge from coreutils.
89623
89624         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89625         if no library is required.
89626         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89627         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89628         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89629         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89630         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89631         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89632         value, $ac_cv_search_crypt, if it's "none required".
89633         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89634         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89635         not gl_FUNC_GETLOADAVG.
89636         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89637         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89638
89639 2004-01-15  Jim Meyering  <jim@meyering.net>
89640
89641         Merge from coreutils.
89642
89643         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89644         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89645         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89646
89647         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89648         optional configure-time default.
89649
89650         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89651
89652         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89653
89654 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89655
89656         Merge from coreutils.
89657
89658         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89659         value, $ac_cv_search_nanosleep, if it's "none required".
89660
89661 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89662
89663         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89664         with like-named macro in fnmatch.c.
89665         (EXT): Use an internal constant instead.
89666
89667         Merge fnmatch patches from glibc.
89668         * lib/fnmatch.c (mbsinit): Remove define.
89669         Add libc_hidden_ver (__fnmatch, fnmatch).
89670         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89671         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89672
89673 2004-01-14  Karl Berry  <karl@gnu.org>
89674
89675         * config/install-sh: update from automake.
89676
89677 2004-01-13  Karl Berry  <karl@gnu.org>
89678
89679         * config/install-sh: update from automake.
89680
89681 2004-01-09  Karl Berry  <karl@gnu.org>
89682
89683         * config/install-sh: update from automake.
89684
89685 2004-01-05  Karl Berry  <karl@gnu.org>
89686
89687         * config/config.{sub,guess}: update from config.
89688
89689 2003-12-31  Karl Berry  <karl@gnu.org>
89690
89691         * config/depcomp: update from automake.
89692
89693 2003-12-14  Karl Berry  <karl@gnu.org>
89694
89695         * lib/config.charset: update from gettext-runtime.
89696
89697 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89698
89699         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89700         Bug reported by Alfred M. Szmidt.
89701
89702 2003-12-03  Bruno Haible  <bruno@clisp.org>
89703
89704         * m4/gettext.m4: Upgrade from gettext-0.13.
89705         * m4/po.m4: Upgrade from gettext-0.13.
89706         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89707         * m4/intmax.m4: New file, from gettext-0.13.
89708         * m4/printf-posix.m4: New file, from gettext-0.13.
89709
89710 2003-11-29  Karl Berry  <karl@gnu.org>
89711
89712         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89713
89714 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89715             Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/printf-parse.h: Don't include sys/types.h.
89718         (ARG_NONE): New macro.
89719         (char_directive): Change type of *arg_index fields to size_t.
89720         * lib/printf-parse.c: Don't include sys/types.h.
89721         (SSIZE_MAX): Remove macro.
89722         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89723         Remove unnecessary overflow check.
89724         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89725         fields.
89726
89727 2003-11-25  Bruno Haible  <bruno@clisp.org>
89728
89729         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89730
89731 2003-11-25  Bruno Haible  <bruno@clisp.org>
89732
89733         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89734         gt_TYPE_SSIZE_T.
89735
89736 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89737
89738         * modules/alloca: Remove dependency on xalloc.
89739
89740 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89741
89742         * lib/alloca.c: Remove dependency on xalloc module.
89743         (xalloc_die): Remove.
89744         (memory_full) [!defined emacs]: New macro.
89745         [!defined emacs]: Don't include xalloc.h.
89746         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89747         address arithmetic overflows.  Change datatypes a bit to avoid
89748         unnecessary casts.
89749
89750 2003-11-22  Jim Meyering  <jim@meyering.net>
89751
89752         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89753         s/size/size_t/.
89754
89755 2003-11-21  Karl Berry  <karl@gnu.org>
89756
89757         * config/config.{sub,guess}: update from config.
89758
89759 2003-11-18  Karl Berry  <karl@gnu.org>
89760
89761         * config/config.{sub,guess}: update from config.
89762
89763         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89764
89765 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89766
89767         * README: Mention that S+T cannot overflow if S is the size of
89768         an existing object and T is sufficiently small.
89769
89770 2003-11-17  Jim Meyering  <jim@meyering.net>
89771
89772         On systems without utime and without a utimes function capable of
89773         dealing with a NULL struct utimbuf* argument, this utime replacement
89774         could -- in unusual circumstances -- leak a file descriptor.
89775         * lib/utime.c: Include <unistd.h> and <errno.h>.
89776         (utime_null): Be sure to close `fd' and to preserve errno.
89777         Reported by Geoff Collyer via Arnold Robbins.
89778
89779 2003-11-17  Bruno Haible  <bruno@clisp.org>
89780
89781         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89782         (Depends-on): Add xsize.
89783
89784 2003-11-17  Bruno Haible  <bruno@clisp.org>
89785
89786         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89787
89788 2003-11-17  Bruno Haible  <bruno@clisp.org>
89789
89790         * lib/vasnprintf.c (alloca): Remove fallback definition.
89791         (freea): Remove definition.
89792         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89793         Reported by Paul Eggert.
89794
89795 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89796             Bruno Haible  <bruno@clisp.org>
89797
89798         Protect against address arithmetic overflow.
89799         * lib/printf-args.h: Include stddef.h.
89800         (arguments): Change type of field 'count' to size_t.
89801         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89802         'unsigned int' where appropriate.
89803         * lib/printf-parse.h: Include sys/types.h.
89804         (char_directive): Change type of *arg_index fields to ssize_t.
89805         (char_directives): Change type of fields 'count', max_*_length to
89806         size_t.
89807         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89808         (SSIZE_MAX): Define fallback value.
89809         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89810         instead of 'int' where appropriate. Check a_allocated, d_allocated
89811         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89812         * lib/vasnprintf.c: Include xsize.h.
89813         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89814         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89815         overflow. Avoid wraparound when converting a width or precision from
89816         decimal to binary.
89817
89818 2003-11-16  Bruno Haible  <bruno@clisp.org>
89819
89820         Update from GNU gettext.
89821         * lib/printf-parse.c: Generalize to it can be compiled for wide
89822         strings.
89823         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89824         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89825         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89826         SNPRINTF): New macros.
89827         Don't include <alloca.h> if the file is used inside libintl.
89828         (local_wcslen): New function, for Solaris 2.5.1.
89829         (VASNPRINTF): Use it instead of wcslen.
89830
89831 2003-11-16  Bruno Haible  <bruno@clisp.org>
89832
89833         * lib/xsize.h (xmax): New function.
89834         (xsum, xsum3, xsum4): Declare as "pure" functions.
89835
89836 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89837
89838         * modules/xalloc (Files): Undo latest change, since xalloc.h
89839         no longer needs SIZE_MAX or PTRDIFF_MAX.
89840
89841 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89842
89843         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89844         gl_PTRDIFF_MAX.
89845
89846 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89847
89848         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89849         "return", to pacify some unknown compiler.  Problem reported
89850         by Joerg Schilling.
89851
89852 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89853
89854         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89855         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89856         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89857         heuristic is just as accurate as far as we know, and it removes a
89858         dependency on size_max.m4 and ptrdiff_max.m4.
89859
89860 2003-11-11  Bruno Haible  <bruno@clisp.org>
89861
89862         * modules/xsize (Files): Add m4/size_max.m4.
89863         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89864
89865 2003-11-11  Bruno Haible  <bruno@clisp.org>
89866
89867         * m4/size_max.m4: New file.
89868         * m4/ptrdiff_max.m4: New file.
89869         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89870         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89871         (gl_XALLOC): Invoke it.
89872
89873 2003-11-11  Bruno Haible  <bruno@clisp.org>
89874
89875         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89876         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89877         defined.
89878
89879 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89880
89881         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89882         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89883         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89884         From Bruno Haible.
89885         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89886         not (size_t) -1, since it's defined here.
89887
89888 2003-11-09  Karl Berry  <karl@gnu.org>
89889
89890         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89891
89892 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89893
89894         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89895         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89896         Reject sizes of exactly SIZE_MAX bytes.
89897         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89898         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89899
89900 2003-11-05  Bruno Haible  <bruno@clisp.org>
89901
89902         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89903         SIZE_MAX defined in <limits.h> on Solaris.
89904
89905 2003-11-04  Jim Meyering  <jim@meyering.net>
89906
89907         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89908         variable names, rather than @VAR@.
89909         * modules/poll: Likewise.
89910
89911 2003-11-04  Bruno Haible  <bruno@clisp.org>
89912
89913         * modules/xsize: New file.
89914         * modules/linebreak: Depend on xsize.
89915         * MODULES.html.sh (func_all_modules): Add xsize.
89916
89917 2003-11-04  Bruno Haible  <bruno@clisp.org>
89918
89919         * m4/xsize.m4: New file.
89920
89921 2003-11-04  Bruno Haible  <bruno@clisp.org>
89922
89923         * lib/xsize.h: New file.
89924         * lib/linebreak.c: Include xsize.h.
89925         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89926         argument for overflow.
89927         Suggested by Paul Eggert.
89928
89929 2003-11-03  Karl Berry  <karl@gnu.org>
89930
89931         * config/config.{guess,sub}: update from config.
89932
89933 2003-11-03  Jim Meyering  <jim@meyering.net>
89934
89935         * modules/userspec (lib_SOURCES): Add userspec.h.
89936         (Include): Add "userspec.h".
89937         Improve description.
89938
89939 2003-11-03  Jim Meyering  <jim@meyering.net>
89940
89941         * lib/userspec.c: Include "userspec.h".
89942         * lib/userspec.h: New file.
89943
89944 2003-11-03  Bruno Haible  <bruno@clisp.org>
89945
89946         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89947
89948 2003-11-03  Bruno Haible  <bruno@clisp.org>
89949
89950         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89951         available, to avoid (extremely rare) race condition.
89952         Suggested by Paul Eggert.
89953
89954 2003-11-02  Karl Berry  <karl@gnu.org>
89955
89956         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89957
89958 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89959
89960         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89961         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89962         (read_filesystem_list): Set and use me_type_malloced.
89963         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89964         whatever the type happens to be), for brevity and consistency.
89965         Check for size calculation overflow on Alphas running OSF/1.
89966
89967 2003-10-31  Jim Meyering  <jim@meyering.net>
89968
89969         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89970
89971         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89972
89973 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89974             Bruno Haible  <bruno@clisp.org>
89975
89976         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89977         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89978
89979 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89980
89981         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89982         netbsd*-gnu*.  Suggested by Robert Millan.
89983
89984 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89985
89986         * modules/group-member: Depend on stdbool.
89987
89988 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89989
89990         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89991
89992 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89993
89994         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89995         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89996         after the 'gnu' in these cases.  This fixes some bugs in the
89997         previous change, and is based on suggestions by Robert Millan.
89998
89999 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90000
90001         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90002         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90003         no longer needed.
90004         * lib/quotearg.c (quotearg_n_options): Use it.
90005         * lib/group-member.c: Include <stdbool.h>.
90006         (free_group_info): Arg is now const *; don't free arg.
90007         (get_group_info): Now returns bool and accepts struct group_info *,
90008         rather than returning a malloc'ed struct group_info *.
90009         All uses changed.  Check for overflow in internal size calculation.
90010
90011         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90012         rather than xmalloc/xrealloc.
90013         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90014         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90015         conformance bug: the old code used a pointer after freeing the
90016         storage that it addressed.
90017         * lib/hash.c (hash_initialize): Simplify the code by using
90018         xalloc_oversized rather than doing it by hand.
90019         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90020         the buffer preserved.  Use free and xmalloc instead.
90021         * lib/quotearg.c (quotearg_n_options): Likewise.
90022         Use a simpler test for size overflow.  Don't use xalloc_oversized
90023         because unsigned int might be wider than size_t (!); this suggests
90024         that we should switch from unsigned int to size_t for slot numbers.
90025
90026 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90027
90028         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90029         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90030         NetBSD kernels.  Requested by Richard Stallman.
90031
90032 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90033
90034         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90035         to allocate the returned structure.  Do not allocate a subarray,
90036         as x2nrealloc will do that.
90037         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90038         instead of xnrealloc.
90039         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90040
90041 2003-10-27  Bruno Haible  <bruno@clisp.org>
90042
90043         * lib/stdbool_.h: Better support for BeOS.
90044
90045 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90046
90047         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90048         now uses inline.
90049
90050 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90051
90052         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90053         callers that want to do their own size-overflow checking.  Include
90054         <stdbool.h>, since xalloc_oversized returns bool.
90055         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90056         to use xalloc_oversized.
90057
90058         Add two functions x2realloc, x2nrealloc, for programs that grow
90059         arrays dynamically by doubling their sizes.
90060         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90061         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90062         New functions.
90063
90064         Port to C99 semantics for 'inline' of external functions.
90065         Bug reported by Bruno Haible.
90066         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90067         with the old contents of xnmalloc.
90068         (xnmalloc, xmalloc): Use it.
90069         (xnrealloc_inline): New static inline function,
90070         with the old contents of xnrealloc.
90071         (xnrealloc, xrealloc): Use it.
90072
90073         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90074         that.
90075
90076 2003-10-26  Karl Berry  <karl@gnu.org>
90077
90078         * config/srclist.txt (COPYING.DOC): no longer available from
90079         /gd/gnuorg; don't know where the ultimate source is.
90080
90081 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90082
90083         Fix several address-calculation bugs in the hash modules,
90084         plus some minor code cleanup.
90085
90086         * lib/hash.h: Include <stdbool.h>, for bool.
90087         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90088         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90089         hash_get_n_entries, hash_get_max_bucket_length,
90090         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90091         hash_rehash): Use size_t rather than unsigned.
90092         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90093         hash_get_n_buckets_used, hash_get_n_entries,
90094         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90095         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90096         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90097         Likewise.
90098         (SIZE_MAX): Define if not defined.
90099         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90100         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90101         hash_print):
90102         Use const * when possible.
90103         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90104         (check_tuning): Fix bug: if tuning parameters were very close to
90105         0 or 1, rounding errors could have caused subscript violations.
90106         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90107         (hash_initialize): Add 'fail:' label
90108         to free table and return NULL, and use it to simplify code.
90109         Use calloc rather than clearing the storage ourself.
90110         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90111         buffer size calculations.
90112         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90113         Include <stddef.h>, for size_t.
90114         * lib/hash-pjw.c (hash_pjw): Likewise.
90115         Switch to method described by Bruno Haible.
90116         Include <limits.h>, for CHAR_BIT.
90117         (SIZE_BITS): New macro.
90118
90119 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90120
90121         * m4/getline.m4 (AM_FUNC_GETLINE):
90122         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90123         hosts.  Problem reported by Derek Robert Price in
90124         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90125         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90126         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90127
90128 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90129
90130         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90131         ceiling the allocation at NMAX bytes rather than silently
90132         discarding input bytes before NMAX is reached.  This makes
90133         a difference only if NMAX exceeds SIZE_MAX / 2.
90134
90135         * lib/obstack.c: Merge from glibc.
90136         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90137         Add libc_hidden_def (_obstack_newchunk).
90138         (_obstack_free) [! defined _LIBC]: Remove.
90139         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90140         a clone of the function body.
90141         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90142         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90143
90144         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90145         glibc.
90146         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90147         arg to memcpy.
90148
90149         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90150         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90151         Don't use lvalue casts, as GCC plans to remove support for them
90152         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90153         was also present in the non-GCC version, indicating that this
90154         code had always been buggy and had never been widely used.
90155         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90156         Use the fast variant of each macro, rather than copying the
90157         definiens of the fast variant; that way, we'll be more likely to
90158         catch future bugs in the fast variants.
90159
90160 2003-10-20  Bruno Haible  <bruno@clisp.org>
90161
90162         * modules/wait-process: New file.
90163         * MODULES.html.sh (func_all_modules): Add wait-process.
90164
90165 2003-10-20  Bruno Haible  <bruno@clisp.org>
90166
90167         * m4/wait-process.m4: New file.
90168
90169 2003-10-20  Bruno Haible  <bruno@clisp.org>
90170
90171         * lib/wait-process.h: New file, from GNU gettext.
90172         * lib/wait-process.c: New file, from GNU gettext.
90173
90174 2003-10-19  Jim Meyering  <jim@meyering.net>
90175
90176         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90177         HPUX 10.20.
90178
90179 2003-10-18  Karl Berry  <karl@gnu.org>
90180
90181         * config/config.guess: update from config.
90182
90183 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90184
90185         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90186         (getgroups): First arg is int, not size_t.
90187         Don't let 'free' mangle errno.
90188
90189 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90190
90191         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90192
90193 2003-10-16  Karl Berry  <karl@gnu.org>
90194
90195         * config/config.{guess,sub}: update from config.
90196
90197 2003-10-16  Jim Meyering  <jim@meyering.net>
90198
90199         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90200         memcpy.
90201
90202 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90203
90204         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90205         (SIZE_MAX): Remove.
90206         (new_exclude, add_exclude_file): Initial size no longer needs to
90207         be a power of 2.
90208         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90209         our own address arithmetic overflow checking.
90210
90211         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90212         (fnmatch): Do not alloca more than 2000 wide characters;
90213         instead, use malloc for large buffers.
90214         Check for address arithmetic overflow, and return -1
90215         with errno set to ENOMEM in that case.
90216         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90217         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90218         instead, return -1.  Check for address arithmetic overflow.
90219
90220 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90221
90222         Handle invalid suffixes and overflow independently, so that
90223         callers can treat them independently as needed.  Fix some bugs in
90224         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90225         suffix for a human-readable blocksize.  The major caller-visible
90226         change is the addition of a new
90227         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90228         that both overflow and suffix chars were found.
90229
90230         * lib/human.c (humblock): Don't check separately for invalid suffix
90231         char; that is xstrtoumax's job (now that its bug is fixed).
90232         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90233         INTMAX_MAX]: New macros.
90234         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90235         TYPE_MAXIMUM): New macros.
90236         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90237         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90238         if overflow occurs, as it's what __strtol does and it's more useful
90239         in practice.
90240         (__xstrtol): If __strtol reports some error other than ERANGE,
90241         reflect it to the caller as LONGINT_INVALID.  If it reports
90242         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90243         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90244         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90245         value.
90246         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90247         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90248         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90249         [defined UINTMAX_MAX]: New macros.
90250
90251 2003-10-14  Bruno Haible  <bruno@clisp.org>
90252
90253         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90254
90255 2003-10-14  Bruno Haible  <bruno@clisp.org>
90256
90257         * m4/sig_atomic_t: New file, from GNU gettext.
90258         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90259
90260 2003-10-14  Bruno Haible  <bruno@clisp.org>
90261
90262         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90263         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90264         Also use volatile where needed.
90265
90266 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90267
90268         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90269         Change maintainer from Bruno Haible to 'all'.
90270
90271 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90272
90273         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90274
90275 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90276
90277         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90278         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90279         and define in terms of the other primitives.
90280         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90281         (SIZE_MAX): Define if not already defined.
90282         (array_size_overflow): New function.
90283         (xalloc_die): Abort instead of exiting if 'error' returns.
90284         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90285         (xmalloc, xrealloc): Use them.
90286         (xcalloc): Check for address arithmetic overflow.
90287         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90288         a bit faster than strcpy.
90289
90290 2003-10-10  Simon Josefsson  <jas@extundo.com>
90291
90292         * modules/argp (Depends-on): Add restrict and strcase.
90293
90294 2003-10-10  Simon Josefsson  <jas@extundo.com>
90295
90296         * m4/argp.m4: Add AC_C_INLINE.
90297
90298 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90299
90300         Merge getpass from libc, plus a few fixes.
90301
90302         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90303         Include <stdbool.h>.
90304         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90305         __fsetlocking to empty.
90306         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90307         do include <bits/libc-lock.h>.
90308         Do not include <fcntl.h>; not needed.
90309         [_LIBC]: Include <wchar.h>.
90310         (NOTCANCEL_MODE): New macro.
90311         (flockfile, funlockfile) [_LIBC]: New macros.
90312         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90313         [!_LIBC]: New macros.
90314         (call_fclose): New function.
90315         (getpass): Use it.  Save tty stream separately; this simplifies the
90316         code and makes it more reliable if stdin happens to equal stdout.
90317         Invoke __fsetlocking on tty.
90318         Handle thread cancellation if needed.
90319         Namespace cleanup (use __tcgetattr, __getline).
90320         Use bool for Booleans.
90321         [USE_IN_LIBIO]: Handle wide streams.
90322         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90323         stream might go where.
90324
90325         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90326         doesn't have to include <stdio.h> before us.
90327         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90328         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90329         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90330         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90331         if not declared, so that we can use getpass.c code from libc without
90332         rewriting it.
90333         (flockfile, ftrylockfile, funlockfile): New macros.
90334
90335 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90336
90337         * modules/getpass: Depend on stdbool.
90338
90339 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90340
90341         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90342
90343 2003-10-07  Karl Berry  <karl@gnu.org>
90344
90345         * config/config.{guess,sub}: update from config.
90346
90347 2003-10-06  Jim Meyering  <jim@meyering.net>
90348             Bruno Haible  <bruno@clisp.org>
90349
90350         This lets translators provide better translations for the
90351         "Written by ..." part of --version output.
90352         * lib/version-etc.h: Include stdarg.h.
90353         (version_etc_copyright): Declare as readonly.
90354         (version_etc): Make this function variadic with a NULL-terminated list
90355         of author name strings.
90356         (version_etc_va): New declaration.
90357         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90358         (version_etc_copyright): Declare as readonly.
90359         (version_etc_va): New function. Provide a different translatable string
90360         for each possible number of authors < 10. Abbreviate when there are 10
90361         authors or more.
90362         (version_etc): Make this function variadic. Call version_etc_va.
90363         Suggestion from Gary V. Vaughan.
90364
90365         * lib/long-options.h (parse_long_options): Change prototype: the
90366         authors string is moved to the end and becomes variadic.
90367         * lib/long-options.c: Include stdarg.h.
90368         (parse_long_options): Make this function variadic, too.
90369         Call version_etc_va, not version_etc.
90370
90371 2003-10-06  Bruno Haible  <bruno@clisp.org>
90372
90373         * modules/version-etc-2: Remove file.
90374         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90375
90376 2003-10-06  Bruno Haible  <bruno@clisp.org>
90377
90378         * modules/fatal-signal: New file.
90379         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90380
90381 2003-10-06  Bruno Haible  <bruno@clisp.org>
90382
90383         * m4/fatal-signal.m4: New file.
90384         * m4/signalblocking.m4: New file, from GNU gettext.
90385
90386 2003-10-06  Bruno Haible  <bruno@clisp.org>
90387
90388         * lib/version-etc-2.h: Remove file.
90389         * lib/version-etc-2.c: Remove file.
90390
90391 2003-10-06  Bruno Haible  <bruno@clisp.org>
90392
90393         * lib/fatal-signal.h: New file, from GNU gettext.
90394         * lib/fatal-signal.c: New file, from GNU gettext.
90395
90396 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90397
90398         * README: Rework advice for preventing empty .o files.
90399         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90400         not <sys/types.h>.
90401
90402 2003-10-04  Karl Berry  <karl@gnu.org>
90403
90404         * lib/argp*: update from libc.
90405
90406 2003-10-04  Karl Berry  <karl@gnu.org>
90407
90408         * config/config.{guess,sub}: update from config.
90409
90410 2003-10-02  Bruno Haible  <bruno@clisp.org>
90411
90412         * modules/lchown (Include): Add lchown.h.
90413         * modules/time_r (Include): Use "..." syntax.
90414         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90415
90416 2003-10-01  Simon Josefsson  <jas@extundo.com>
90417
90418         * MODULES.html.sh (func_all_modules): Move gethostname from section
90419         'based on' to section 'lacking' POSIX:2001.
90420
90421 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90422
90423         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90424         to output mode on the same stream.
90425
90426 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90427
90428         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90429         Fix arg typo in previous patch.
90430
90431 2003-09-28  Jim Meyering  <jim@meyering.net>
90432
90433         * lib/error.c: Correct cpp indentation.
90434
90435 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90436
90437         * modules/free: New file.
90438
90439 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90440
90441         * m4/free.m4: New file.
90442
90443 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90444
90445         * lib/minmax.h (MIN, MAX)
90446         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90447         Omit the special code that used __typeof__, since we worry that
90448         it could be more trouble than it's worth.  See:
90449         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90450         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90451
90452         * lib/free.c: New file.
90453
90454 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90455
90456         Trivial fixes to Makefile.am parts of module listings.
90457         * modules/strstr: Append strstr.h to lib_SOURCES.
90458         * modules/strcase: Likewise, for strcase.h.
90459
90460 2003-09-27  Karl Berry  <karl@gnu.org>
90461
90462         * config/mkinstalldirs: update from automake.
90463
90464 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90465
90466         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90467         (error_tail): Do not loop, reallocating temporary buffer, since
90468         the output cannot contain more wide characters than the input
90469         contains bytes, the size must be big enough already.  This avoids
90470         one potential size overflow calculation.  Check for size overflow
90471         when calculating temporary buffer size.  Free temporary buffer
90472         when done, if it was allocated with malloc; this plugs a memory
90473         leak.  Remove casts from void * to pointers, that are no longer
90474         needed now that we're assuming C89 or better.
90475
90476         Merge error changes from glibc.
90477
90478         * lib/error.c, error.h: Update copyright notice header to match glibc.
90479         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90480         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90481         Disable cancellation while printing error.
90482         * lib/error.h: Prepend __ to parameter names.
90483
90484 2003-09-26  Jim Meyering  <jim@meyering.net>
90485
90486         * lib/error.c (error_tail): Move some declarations
90487         into inner scope where the local variables are used.
90488
90489 2003-09-26  Bruno Haible  <bruno@clisp.org>
90490
90491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90492         stpncpy().
90493         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90494
90495 2003-09-26  Bruno Haible  <bruno@clisp.org>
90496
90497         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90498         (stpncpy): Define as alias for gnu_stpncpy.
90499         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90500
90501 2003-09-25  Simon Josefsson  <jas@extundo.com>
90502
90503         * lib/xgetdomainname.h: New file.
90504         * lib/xgetdomainname.c: New file.
90505
90506 2003-09-25  Simon Josefsson  <jas@extundo.com>
90507             Bruno Haible  <bruno@clisp.org>
90508
90509         * modules/getdomainname: New file.
90510         * modules/xgetdomainname: New file.
90511         * MODULES.html.sh (func_all_modules): Add getdomainname,
90512         xgetdomainname.
90513
90514 2003-09-25  Simon Josefsson  <jas@extundo.com>
90515             Bruno Haible  <bruno@clisp.org>
90516
90517         * m4/getdomainname.m4: New file.
90518
90519 2003-09-25  Simon Josefsson  <jas@extundo.com>
90520             Bruno Haible  <bruno@clisp.org>
90521
90522         * lib/getdomainname.h: New file.
90523         * lib/getdomainname.c: New file.
90524
90525 2003-09-25  Karl Berry  <karl@gnu.org>
90526
90527         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90528
90529 2003-09-25  Karl Berry  <karl@gnu.org>
90530
90531         * config/install-sh: update from automake.
90532
90533 2003-09-25  Bruno Haible  <bruno@clisp.org>
90534
90535         * modules/version-etc-2: New file, from modules/version-etc with
90536         modifications.
90537         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90538
90539 2003-09-25  Bruno Haible  <bruno@clisp.org>
90540
90541         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90542         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90543
90544 2003-09-24  Simon Josefsson  <jas@extundo.com>
90545
90546         * modules/xgethostname: Add xgethostname.h.
90547
90548 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90549
90550         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90551         the buffer associated with the argument.  Bug reported by
90552         Simon Josefsson.
90553
90554 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90555
90556         * README: Document assumptions that 'int' is at least 32 bits
90557         wide, that integer arithmetic is 2's complement without overflow,
90558         that there are no holes in integer values, that adding sizes of
90559         two nonoverlapping objects can't overflow, and that all-bits-zero
90560         yields scalar zero.  Fix spelling and capitalization typos.
90561
90562 2003-09-19  Karl Berry  <karl@gnu.org>
90563
90564         * lib/argp.h: update from libc.
90565
90566 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90567
90568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90569         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90570         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90571
90572 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90573
90574         * gnulib-tool: Use "test -h", not "test -L", for portability
90575         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90576         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90577         (sed_extract_prog): Issue s commands one-by-one, rather than
90578         using \| in one s command.
90579
90580 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90581
90582         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90583         input error, instead of returning NULL the next time we are called
90584         (and therefore losing track of errno).
90585
90586 2003-09-16  Bruno Haible  <bruno@clisp.org>
90587
90588         * gnulib-tool (func_create_testdir): Warn about duplicated
90589         dependencies.
90590
90591 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90592
90593         * modules/argmatch, modules/fatal, modules/obstack,
90594         modules/xalloc, modules/xgethostname: Sort dependencies by
90595         importance, not alphabetically.
90596
90597 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90598
90599         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90600         fails, so that the caller gets the proper errno.
90601
90602         * lib/readutmp.c (read_utmp): Likewise.
90603         Check for fstat error.  Close stream and free storage
90604         when failing.
90605
90606 2003-09-14  Karl Berry  <karl@gnu.org>
90607
90608         * config/srclist.txt (strdup.c): disable for c89 changes.
90609
90610 2003-09-14  Jim Meyering  <jim@meyering.net>
90611
90612         * lib/getloadavg.c: Correct cpp indentation.
90613         * lib/strdup.c: Likewise.
90614         * lib/vasnprintf.c: Likewise.
90615
90616 2003-09-14  Bruno Haible  <bruno@clisp.org>
90617
90618         * modules/fwriteerror: New file.
90619         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90620
90621 2003-09-14  Bruno Haible  <bruno@clisp.org>
90622
90623         * lib/fwriteerror.h: New file.
90624         * lib/fwriteerror.c: New file.
90625
90626 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90627
90628         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90629         modules/xgethostname, modules/xalloc: Depend on exit.
90630
90631 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90632
90633         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90634
90635         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90636         and AC_MINIX, too, so that their extensions are available.
90637
90638         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90639         This macro has been superseded by gl_BACKUPFILE.
90640
90641         More patches to assume C89 or better.
90642
90643         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90644
90645         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90646         unconditionally.
90647         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90648         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90649         Include <string.h>, <stdlib.h> unconditionally.
90650         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90651         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90652         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90653         headers or for string.h.
90654         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90655         or strtoul.
90656
90657         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90658         headers.
90659         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90660         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90661         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90662         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90663         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90664         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90665         memcpy, memset.
90666         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90667         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90668         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90669         strtol.
90670         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90671         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90672         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90673         strtoul.
90674
90675 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90676
90677         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90678         * lib/obstack.c [!defined _LIBC]: Likewise.
90679         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90680         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90681         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90682
90683         More changes to assume C89 or better.
90684
90685         * lib/error.c (error_tail): Assume vprintf.
90686
90687         * lib/argmatch.c (getenv): Remove decl.
90688         * lib/progreloc.c (get_full_program_name): Define via prototype.
90689         * lib/setenv.c (clearenv): Likewise.
90690         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90691         needed.
90692         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90693         (malloc, memcpy): Remove decls.
90694         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90695         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90696         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90697         (memcpy): Remove macro.
90698         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90699         (__P): Remove.  All uses removed.
90700         (PTR): Remove.  All uses changed to void *.
90701         (CHAR_BIT, NULL): Remove.
90702         (spaces, zeros, memset_space, memset_zero)
90703         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90704         Remove.
90705         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90706         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90707         Define with prototype.
90708         Remove now-unnecessary prototype decl.
90709         (extra_args_spec): Assume ANSI C.  All uses changed.
90710         (extra_args_spec_iso): Remove.
90711         (my_strftime, emacs_strftimeu): Define via prototype.
90712         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90713         unconditionally.
90714         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90715         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90716         (strtoul, strtol): Remove decls.
90717         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90718         LONG_MAX): Remove.
90719         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90720         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90721         (LOCALE_PARAM_PROTO): New macro.
90722         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90723         (INTERNAL (strtol), strtol): Define with a prototype.
90724         (PARAMS): Remove.  All uses removed.
90725         * lib/tempname.c: Include <string.h> unconditionally.
90726         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90727         * lib/xgethostname.c (main): Define with a prototype.
90728         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90729         Include <stdlib.h> unconditionally.
90730         (calloc, malloc, realloc, free): Remove decls.
90731         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90732         Include <stdlib.h> unconditionally.  Sort include file names.
90733         (strtod): Remove.
90734         (xstrtod): Define with a prototype.
90735         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90736         (strtol, strtoul): Remove decls.
90737
90738 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90739
90740         More patches to assume C89 or better.
90741         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90742         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90743         string.h, memchr, STDC_HEADERS.
90744
90745 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90746
90747         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90748         Include <stdlib.h>, <string.h> unconditionally.
90749         Remove now-unnecessary cast to char *.
90750         * lib/strnlen.c: Include <string.h> unconditionally.
90751         * lib/yesno.c (yesno): Define with a prototype.
90752
90753 2003-09-11  Bruno Haible  <bruno@clisp.org>
90754
90755         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90756
90757 2003-09-10  Jim Meyering  <jim@meyering.net>
90758
90759         * lib/error.c: Correct indentation of cpp directives.
90760
90761 2003-09-10  Bruno Haible  <bruno@clisp.org>
90762
90763         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90764         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90765         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90766         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90767         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90768         <stdlib.h> and <string.h> checks.
90769         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90770         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90771
90772 2003-09-10  Bruno Haible  <bruno@clisp.org>
90773
90774         * lib/strcspn.c: Include <string.h> unconditionally.
90775         * lib/strpbrk.c: Include <string.h> unconditionally.
90776         * lib/strstr.c: Include <string.h> unconditionally.
90777         * lib/unicodeio.c: Include <string.h> unconditionally.
90778         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90779         * lib/unsetenv.c: Likewise.
90780         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90781         * lib/yesno.c: Include <stdlib.h> unconditionally.
90782         (rpmatch): Add prototype.
90783
90784 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90785
90786         More patches to assume C89 or better.
90787         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90788         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90789         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90790         or for string.h.
90791         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90792         stdlib.h.
90793         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90794         C headers.
90795         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90796         string.h.
90797         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90798         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90799         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90800         or for string.h.
90801         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90802         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90803         C headers.
90804         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90805         memcpy.
90806         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90807         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90808         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90809         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90810         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90811         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90812         string.h, free.
90813         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90814         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90815         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90816         C headers, or for string.h.
90817         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90818         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90819         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90820         headers, memory.h, stdlib.h, string.h, strings.h.
90821         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90822         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90823         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90824         strchr.
90825         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90826         headers, memory.h, string.h.
90827         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90828         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90829         free.
90830         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90831         headers.
90832         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90833         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90834         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90835         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90836         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90837
90838 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90839
90840         More K&R removal.
90841
90842         * lib/acosl.c (main): Use a prototype.
90843         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90844         tanl.c: Likewise.
90845
90846         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90847
90848         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90849         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90850         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90851         with a prototype.
90852         * lib/getopt.c (const): Remove macro.
90853         Include <string.h> unconditionally.
90854         (my_index): Remove; all uses changed to strchr.
90855         (strlen): Remove decl.
90856         (exchange): Remove forward decl; no longer needed.
90857         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90858         Define with prototype.
90859         * lib/getopt1.c (const): Remove macro.
90860         (getopt_long, getopt_long_only, main): Define with prototype.
90861
90862         * lib/getugroups.c: Include <string.h> unconditionally.
90863
90864         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90865         (getusershell, setusershell, endusershell, readname, main):
90866         Define with prototypes.
90867
90868         * lib/group-member.c: Include group-member.h first.
90869         Include <stdlib.h> unconditionally.
90870
90871         * lib/hard-locale.c: Include hard-locale.h first.
90872         Include <stdlib.h>, <string.h> unconditionally.
90873
90874         * lib/hash.c (free, malloc): Remove decls.
90875         Include <stdlib.h> unconditionally.
90876
90877         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90878         (getenv): Do not declare.
90879
90880         * lib/idcache.c: Include <string.h> unconditionally.
90881
90882         * lib/long-options.c: Include long-options.h first, to test interface.
90883         Include <stdlib.h> unconditionally.
90884
90885         * lib/makepath.c: Include makepath.h first, to test interface.
90886         Include <stdlib.h> and <string.h> unconditionally.
90887
90888         * lib/linebuffer.c: Include <stdlib.h>.
90889         (free): Remove decl.
90890
90891         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90892         stddef.h. rpl_malloc returns void *, not char *.
90893         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90894         prototype.
90895
90896         * lib/md5.h: Include <limits.h> unconditionally.
90897         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90898         (__P): Remove; all uses removed.
90899         * lib/md5.c: Include "md5.h" first.
90900         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90901         md5_buffer, md5_process_bytes, md5_process_block):
90902         Define with prototypes.
90903         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90904         * lib/sha.c: Include "sha.h" first.
90905         Include <stdlib.h>, <string.h> unconditionally.
90906
90907         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90908         * lib/memcmp.c (__ptr_t): Likewise.
90909         * lib/memrchr.c (__ptr_t): Likewise.
90910         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90911         Include <string.h> unconditionally.
90912         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90913         * lib/memchr.c: Include <stdlib.h> unconditionally.
90914         * lib/memchr.c (LONG_MAX): Remove.
90915         * lib/memrchr.c (LONG_MAX): Likewise.
90916         * lib/memchr.c (__memchr): Define via a prototype.
90917         * lib/memrchr.c (__memrchr): Likewise.
90918         * lib/memcmp.c (__P): Remove, and remove all uses.
90919         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90920         Remove forward decls; no longer needed.
90921         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90922         Use types required by C89 in prototype.
90923
90924         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90925         * lib/savedir.c: Likewise.
90926         * lib/mkdir.c (free): Remove decl.
90927         * lib/rmdir.c (rmdir): Define with a prototype.
90928         * lib/savedir.c: Include savedir.h first, to test interface.
90929
90930         * lib/mktime.c (STDC_HEADERS): Remove.
90931         Include <stdlib.h>, <string.h> unconditionally.
90932
90933         * lib/modechange.c: Include <stdlib.h> unconditionally.
90934         (malloc): Remove decl.
90935
90936         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90937         (free): Remove decl.
90938
90939         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90940         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90941         (This type really should be intptr_t, but that's a C99ism.)
90942         (_obstack_memcpy): Remove: all uses changed to memcpy.
90943         Include <string.h> unconditionally.
90944         (struct obstack): Assume __STDC__ for types of members
90945         chunkfun, freefun, extra_arg.
90946         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90947         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90948         obstack_begin, obstack_specify_allocation,
90949         obstack_specify_allocation_with_arg, obstack_chunkfun,
90950         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90951         Remove unprototyped decls and the macros that use them.
90952         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90953         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90954         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90955         (defined __STDC__ && __STDC__)]:
90956         Remove nonprototyped code.
90957         Include <stdlib.h> unconditionally.
90958         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90959         _obstack_allocated_p, _obstack_free, obstack_free,
90960         _obstack_memory_used, print_and_abort):
90961         Define using prototypes.
90962         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90963         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90964         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90965         obstack_next_free, obstack_object_size, obstack_room) [0]:
90966         Remove unused, unprototyped code.
90967
90968         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90969
90970         * lib/physmem.c (physmem_total, physmem_available, main): Define
90971         with prototypes.
90972
90973         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90974         (main): Define with a prototype.
90975
90976         * lib/posixver.c (getenv): Remove decl.
90977
90978         * lib/putenv.c (malloc): Returns void *, not char *.
90979         Include <string.h> unconditionally.
90980         (strchr, memcpy, NULL): Do not define.
90981
90982         * lib/readtokens.c: Include readtokens.h first, to test interface.
90983         Include <stdlib.h>, <string.h> unconditionally.
90984         (init_tokenbuffer): Define with a prototype.
90985
90986         * lib/regex.c (PARAMS): Remove.  All uses removed.
90987         All uses of _RE_ARGS removed, too.
90988         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90989         unconditionally.
90990         (bzero): Assume memset exists.
90991         (memcmp, memcpy, NULL): Remove.
90992         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90993         char, or assignments to local vars of type signed char.
90994         (init_syntax_once, PREFIX(extract_number_and_incr),
90995         PREFIX(print_partial_compiled_pattern),
90996         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90997         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90998         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90999         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91000         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91001         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91002         wcs_compile_range, byte_compile_range, truncate_wchar,
91003         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91004         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91005         count_mbs_length, wcs_re_match_2_internal,
91006         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91007         PREFIX(alt_match_null_string_p),
91008         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91009         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91010         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91011         now-unnecessary declaration, if any.
91012         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91013         regcomp, regexec):
91014         Remove now-unnecessary casts among pointer types.
91015         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91016
91017         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91018         (free): Remove decl.
91019
91020         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91021
91022         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91023         (free): Remove decl.
91024
91025         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91026         * lib/xgetcwd.c: Likewise.
91027
91028         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91029         (free): Remove decl.
91030
91031         * lib/strchrnul.c (strchrnul): Define with a prototype.
91032         Fix bug: c_in was not converted to char before searching.
91033
91034         The following changes are not K&R related:
91035
91036         * lib/group-member.h: Include <sys/types.h>, so that this file is
91037         self-contained.
91038         * lib/makepath.h: Likewise.
91039
91040         * lib/getusershell.c (readname, default_index, line_size, readname):
91041         Use size_t, not int, for sizes.
91042         (readname): If the size overflows, report an error instead of
91043         looping forever.
91044
91045 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91046
91047         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91048         libc.
91049
91050 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91051
91052         * README: New section: portability guidelines.
91053
91054 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91055
91056         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91057         C89 spec.
91058
91059 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91060
91061         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91062
91063 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91064
91065         Assume C89 or better; remove K&R cruft.
91066         A few of these changes were first proposed by Derek Robert Price
91067         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91068
91069         * lib/addext.c: Include <string.h> unconditionally.
91070         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91071         Don't declare getenv or malloc.
91072
91073         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91074         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91075         (NULL): Remove.
91076         (find_stack_direction, alloca): Use prototypes.
91077
91078         * lib/atexit.c (atexit): Define using a prototype.
91079
91080         * lib/basename.c, dirname.c, stripslash.c:
91081         Include <string.h> unconditionally.
91082
91083         * lib/bcopy.c: Include <stddef.h>.
91084         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91085
91086         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91087
91088         * lib/error.h (error, error_at_line, error_print_progname)
91089         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91090         * lib/error.c: Include error.h first, to check interface.
91091         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91092         (VA_START): Remove; all uses changeed to va_start.
91093         (exit, strerror): Remove decls.
91094         (error_print_progname): Prototype uncondionally.
91095         Don't include <errno.h>; no longer needed.
91096         (private_strerror): Remove.
91097         (error_tail): Always define.
91098         (error, error_at_line): Assume C89 or better; always use prototypes.
91099         * lib/fatal.c: Include "fatal.h" first, to test interface.
91100         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91101         (VA_START): Remove; all uses changed to va_start.
91102         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91103         this case.
91104         (exit): Remove decl.
91105         (fatal): Prototype unconditionally.  Assume va_start works.
91106         Abort at end, to pacify gcc.
91107
91108         * lib/euidaccess.c (main): Define with a prototype.
91109
91110         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91111
91112         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91113
91114         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91115         prototypes.
91116         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91117         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91118         (getenv): Remove decl.
91119         (fnmatch): Define using a prototype.
91120         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91121         (FCT): Define using a prototype.
91122
91123         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91124
91125         * lib/gethostname.c: Include <stddef.h>.
91126         (gethostname): Define with prototype.  Length is size_t, not int.
91127
91128 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91129
91130         Assume C89 or better; remove K&R cruft.
91131         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91132         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91133         string.h, getenv, malloc.
91134         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91135         headers.
91136         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91137         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91138         do not check for strerror.
91139         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91140         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91141         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91142         do not check for doprnt or vprintf.
91143         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91144         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91145
91146 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91147
91148         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91149         getversion.c should have been removed then, but was accidentally
91150         preserved.
91151
91152         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91153         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91154
91155 2003-09-08  Karl Berry  <karl@gnu.org>
91156
91157         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91158                 config, forget about prep.
91159
91160         * config/depcomp, missing: update from automake.
91161
91162 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91163
91164         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91166
91167 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91168
91169         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91170         copy_tm_result.  Bug reported by Simon Josefsson in
91171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91172
91173 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91174
91175         * m4/time_r.m4: New file.
91176         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91177         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91178         is. Check for timegm declaration.
91179         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91180         Do not check for gmtime_r.
91181         Replace mktime if __mktime_internal does not exist and if mktime
91182         hasn't been replaced already.
91183
91184 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91185
91186         * lib/time_r.c, lib/time_r.h: New files.
91187
91188         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91189         __localtime_r.
91190         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91191         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91192
91193         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91194         __gmtime_r.
91195         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91196         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91197         Include <time_r.h>.
91198
91199         * lib/timegm.c: Switch to glibc implementation, with the following
91200         changes:
91201         [defined HAVE_CONFIG_H]: Include <config.h>.
91202         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91203         (__mktime_internal) [!defined _LIBC]: New decl.
91204         (__gmtime_r) [!defined _LIBC]: New macro and function.
91205         (timegm): Use a prototype, since gnulib assumes C89.
91206         Do not bother declaring tmp to be const, as it's not really usefu.
91207         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91208         (timegm): Declare only if HAVE_DECL_TIMEGM.
91209
91210 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91211
91212         * MODULES.html.sh (func_all_modules): Add time_r.
91213         * modules/time_r: New file.
91214         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91215         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91216
91217 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91218
91219         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91220         Bug reported by Lute Kamstra in
91221         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91222
91223         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91224         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91225         course with correspondingly smaller numbers for tomorrow and
91226         yesterday.  From Tadayoshi Funaba.  Originally installed into
91227         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91228         coreutils merge?).
91229
91230 2003-08-31  Simon Josefsson  <jas@extundo.com>
91231
91232         * modules/timegm: New file.
91233         * MODULES.html.sh (func_all_modules): Add timegm.
91234
91235 2003-08-31  Simon Josefsson  <jas@extundo.com>
91236
91237         * m4/timegm.m4: New file.
91238
91239 2003-08-31  Simon Josefsson  <jas@extundo.com>
91240
91241         * lib/timegm.h: New file.
91242         * lib/timegm.c: New file.  Based on
91243         wget-1.8.2/src/http.c:mktime_from_utc.
91244
91245 2003-08-31  Karl Berry  <karl@gnu.org>
91246
91247         * lib/argp.h: update from libc.
91248
91249 2003-08-28  Bruno Haible  <bruno@clisp.org>
91250
91251         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91252         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91253         followed by '#define fnmatch fnmatch_posix' gives an error.
91254
91255 2003-08-28  Bruno Haible  <bruno@clisp.org>
91256
91257         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91258         warning on QNX, which defines O_BINARY to 000000.
91259
91260 2003-08-27  Jim Meyering  <jim@meyering.net>
91261
91262         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91263         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91264         would fail after 32.  Reported by Danny Levinson.  Details here:
91265         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91266
91267 2003-08-24  Bruno Haible  <bruno@clisp.org>
91268
91269         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91270         MSVC7 <stdio.h> is included later.
91271
91272 2003-08-22  Simon Josefsson  <jas@extundo.com>
91273
91274         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91275
91276 2003-08-20  Karl Berry  <karl@gnu.org>
91277
91278         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91279
91280 2003-08-20  Bruno Haible  <bruno@clisp.org>
91281
91282         * modules/progname: New file.
91283         * MODULES.html.sh (func_all_modules): Add progname.
91284
91285 2003-08-20  Bruno Haible  <bruno@clisp.org>
91286
91287         * lib/progname.h: New file, from GNU gettext.
91288         * lib/progname.c: New file, from GNU gettext.
91289         * lib/progreloc.c: New file, from GNU gettext.
91290
91291 2003-08-19  Jim Meyering  <jim@meyering.net>
91292
91293         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91294         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91295
91296 2003-08-19  Bruno Haible  <bruno@clisp.org>
91297
91298         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91299         more.
91300
91301 2003-08-19  Bruno Haible  <bruno@clisp.org>
91302
91303         * lib/xstrdup.c: Assume <string.h> exists.
91304
91305 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91306
91307         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91308         in makefile rules.
91309
91310 2003-08-18  Jim Meyering  <jim@meyering.net>
91311
91312         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91313         * m4/lib-ld.m4: Likewise.
91314
91315 2003-08-18  Jim Meyering  <jim@meyering.net>
91316
91317         * lib/setenv.h: Indent nested cpp directive.
91318         * lib/vasnprintf.c: Remove trailing blanks.
91319
91320 2003-08-17  Simon Josefsson  <jas@extundo.com>
91321
91322         * modules/xstrndup: New file.
91323         * MODULES.html.sh (func_all_modules): Add xstrndup.
91324
91325 2003-08-17  Simon Josefsson  <jas@extundo.com>
91326
91327         * modules/argp: Fix autoconf macro name. Add more dependencies.
91328
91329 2003-08-17  Simon Josefsson  <jas@extundo.com>
91330
91331         * m4/xstrndup.m4: New file.
91332
91333 2003-08-17  Simon Josefsson  <jas@extundo.com>
91334
91335         * m4/argp.m4: New file.
91336
91337 2003-08-17  Simon Josefsson  <jas@extundo.com>
91338             Bruno Haible  <bruno@clisp.org>
91339
91340         * lib/xstrndup.h: New file.
91341         * lib/xstrndup.c: New file.
91342
91343 2003-08-17  Bruno Haible  <bruno@clisp.org>
91344
91345         * modules/strndup (Files, Include): Add lib/strndup.h.
91346
91347 2003-08-17  Bruno Haible  <bruno@clisp.org>
91348
91349         * modules/euidaccess (Files): Add lib/euidaccess.h.
91350
91351 2003-08-17  Bruno Haible  <bruno@clisp.org>
91352
91353         * lib/strndup.h: New file.
91354
91355 2003-08-17  Bruno Haible  <bruno@clisp.org>
91356
91357         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91358         like AC_GNU_SOURCE.
91359         * modules/extensions (configure.ac): Comment out the invocation of
91360         gl_USE_SYSTEM_EXTENSIONS.
91361
91362 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91363
91364         Merges from coreutils, etc.
91365         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91366         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91367         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91368         fixing a typo.
91369         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91370         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91371
91372 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91373
91374         Document merge from coreutils.
91375         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91376         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91377         * modules/utime: Add m4/utimes-null.m4.
91378
91379 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91380
91381         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91382         space, undoing this 2003-08-12 change:
91383         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91384
91385 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91386
91387         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91388         strtoul.c from libc, undoing this 2003-08-12 change:
91389         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91390
91391 2003-08-16  Jim Meyering  <jim@meyering.net>
91392
91393         Merges from coreutils.
91394         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91395         prefix.  Adjust cache variables similarly.  Create 500 rather than
91396         just 300 files, to exercise bug on Darwin6.5, too.
91397         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91398         $missing_dir.
91399         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91400         AM_SYS_POSIX_TERMIOS.
91401         Reported by mkc@mathdogs.com.
91402         Also change use of $am_cv_sys_posix_termios
91403         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91404         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91405         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91406         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91407         in /proc/mounts until it finds one with matching device number.  This
91408         is unnecessary when the FILE argument *is* a mount point.  No stat call
91409         is necessary in that case.  So, disable the statvfs-testing code on
91410         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91411         as RedHat bug# 84846.
91412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91413         to 1MB, so as not to render systems with no stack size limit (e.g.,
91414         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91415         Include <unistd.h>.  On some systems,
91416         it is required for the definition of _SC_PAGESIZE.
91417
91418 2003-08-16  Jim Meyering  <jim@meyering.net>
91419
91420         Merge from coreutils.
91421         * lib/xstrtoimax.c: #else #if -> #elif.
91422         * lib/xstrtoumax.c: Likewise.
91423
91424 2003-08-16  Jim Meyering  <jim@meyering.net>
91425
91426         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91427         * m4/utimes.m4: Removed.
91428         * m4/utimes-null.m4: Renamed from utimes.m4.
91429
91430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91431         to 1MB, so as not to render systems with no stack size limit (e.g.,
91432         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91433         Include <unistd.h>.  On some systems,
91434         it is required for the definition of _SC_PAGESIZE.
91435
91436 2003-08-16  Jim Meyering  <jim@meyering.net>
91437         and Paul Eggert  <eggert@cs.ucla.edu>
91438
91439         Merges from coreutils, etc.
91440
91441         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91442         using the latest version from cvs.  This avoids problems with #line
91443         directives using a vendor (Sun) compiler.
91444         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91445         Don't set GETGROUPS_LIB here; now it's
91446         done via getgroups.m4's wrapper function.
91447         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91448         rather than just in sh-util/configure.in, so that the
91449         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91450         same.
91451         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91452         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91453         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91454         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91455         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91456         Remove code that is now done by the newly-required macros.
91457         Append $(EXEEXT) to DF_PROG.
91458         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91459         Do not invoke or require the following here,
91460         since prereq.m4 or some gnulib .m4 now does this for us:
91461         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91462         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91463         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91464         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91465         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91466         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91467         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91468         AC_FUNC_OBSTACK.
91469         Do not replace the following functions, as this is now the job
91470         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91471         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91472         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91473         atexit getpass, strdup, getpagesize.
91474         Replace 'raise'.
91475         Do not check for the following functions, as this is now the job
91476         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91477         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91478         setregid.
91479         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91480         Check for sys/sysctl.h.
91481         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91482         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91483         of checking for ssize_t ourselves.
91484
91485         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91486         Require every macro that gnulib/modules/* suggests for us.
91487         (jm_PREREQ_ADDEXT): New macro.
91488         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91489         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91490
91491         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91492         (gl_PHYSMEM): Use it.
91493         Also check for `table' function.
91494         Check for new headers and functions.
91495         Add check for sys/sysmp.h.
91496         With suggestions from Kaveh Ghazi.
91497         Ignore headers that are present but cannot be compiled.  This
91498         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91499         C 5.4.
91500
91501 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91502
91503         Document merge from coreutils.
91504         * modules/userspec: Depend on posixver.
91505         * modules/strftime: Depend on tzset.
91506
91507 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91510         rather than tab, after '#' in shell-script copyright notices.
91511         Suggested by Bruno Haible.
91512
91513 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91514
91515         * config/srclist-update: Use three spaces, rather than tab, after '#'
91516         in shell-script copyright notices.  Suggested by Bruno Haible.
91517         Remove unnecessary parenthesization in regular expression.
91518
91519 2003-08-15  Jim Meyering  <jim@meyering.net>
91520
91521         Merge from coreutils.
91522         * lib/xgethostname.c: Include <stdlib.h>.
91523         (xghostname): Don't exit for anything other than memory-related
91524         failure; just return NULL.
91525         * lib/userspec.c: Include "posixver.h".
91526         (parse_user_spec): Accept `.' as a separator only
91527         in pre-POSIX-200112 mode.
91528         * lib/strtoimax.c: Use #elif rather than #else #if.
91529         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91530         Remove function, now that we can rely on a working tzset function.
91531         [!_LIBC]: Ensure that the required autoconf test has been run.
91532         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91533         Use underlying_strftime for %r.
91534         * lib/sha.c: Merge in some clean-up and optimization changes from
91535         glibc.
91536         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91537         Ensure that it is a multiple of 64.
91538         Rearrange loop exit tests so as to avoid performing an
91539         additional fread after encountering an error or EOF.
91540         * lib/realloc.c: Update copyright date.
91541
91542 2003-08-15  Jim Meyering  <jim@meyering.net>
91543         and Paul Eggert  <eggert@twinsun.com>
91544
91545         Merge from coreutils.
91546         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91547         member but strut utmpx does not.  Needed for AIX 4.3.3.
91548         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91549
91550 2003-08-15  Jim Meyering  <jim@meyering.net>
91551         and Paul Eggert  <eggert@cs.ucla.edu>
91552
91553         Merges from coreutils, etc.
91554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91555         Require gl_FUNC_TZSET_CLOBBER.
91556         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91557         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91558         members.
91559
91560 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91561
91562         Help the merge from coreutils.
91563         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91564         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91565         * m4/tzset.m4: Use it too.
91566
91567 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91568
91569         * modules/tzset: New file.
91570
91571 2003-08-14  Jim Meyering  <jim@meyering.net>
91572
91573         Merges from coreutils.
91574         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91575         variable names, rather than @FNMATCH_H@.
91576         * modules/alloca: Likewise for $(ALLOCA_H).
91577
91578         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91579         the three copies of the literal target, `fnmatch.h'.
91580         * modules/alloca (alloca.h): Likewise.
91581
91582 2003-08-14  Jim Meyering  <jim@meyering.net>
91583
91584         Merge from coreutils.
91585         * m4/tzset.m4: New file.
91586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91587         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91588         otherwise, AIX 5.1 systems would end up using the latter.
91589         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91590         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91591         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91592         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91593
91594 2003-08-14  Jim Meyering  <jim@meyering.net>
91595
91596         Merge from coreutils.
91597         * lib/obstack.h: Whitespace changes.
91598         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91599         and xcalloc return values.
91600         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91601         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91602         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91603         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91604         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91605         error from mntctl.
91606         Use mntctl's return value to drive the entry-processing loop, since
91607         we can't rely on the value of the vmt_length member in the last
91608         entry.  On some systems doing so could result in exhausting
91609         virtual memory.  Based in part on a patch from Mike Jetzer.
91610
91611 2003-08-14  Jim Meyering  <jim@meyering.net>
91612         and Paul Eggert  <eggert@twinsun.com>
91613
91614         Merges from coreutils, plus other fixes.
91615         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91616         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91617         for credits and details.  Thanks to Kaveh Ghazi for helping
91618         to keep these files in sync.
91619         (ARRAY_SIZE): Define it.
91620         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91621         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91622         (memcasecmp): Don't assume size_t fits in unsigned int.
91623         Remove casts and duplicate code.
91624         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91625         (memcpy): Remove definition.
91626         Merge in some clean-up and optimization changes from glibc.
91627         [BLOCKSIZE]: Move definition to top of file.
91628         Ensure that it is a multiple of 64.
91629         Rearrange loop exit tests so as to avoid performing an
91630         additional fread after encountering an error or EOF.
91631         * lib/md5.h (md5_uintptr): Define.
91632         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91633         return to the initial working directory.  Preserve errno
91634         for caller.
91635         * lib/idcache.c: Include "xalloc.h".
91636         (xmalloc, xrealloc): Remove decls.
91637         (getuser): Remove casts no longer required in C89.
91638         * lib/human.c: Include stdio.h, for sprintf.
91639         * lib/group-member.c: Include "xalloc.h".
91640         (xmalloc, xrealloc): Remove decls.
91641         (get_group_info): Remove casts no longer required in C89.
91642         * lib/getusershell.c (readname): Remove casts no longer required in
91643         C89.
91644         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91645         * lib/getline.c: Whitespace fix, from coreutils.
91646
91647 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91648
91649         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91650         Check for isascii.
91651
91652         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91653         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91654         Undo previous (whitespace-only) change.
91655
91656 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91657
91658         * lib/exclude.c: Include <ctype.h>
91659         (IN_CTYPE_DOMAIN): New macro.
91660         (is_space): New fn.
91661         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91662         and empty lines.
91663
91664         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91665         Undo previous (whitespace-only) change.
91666
91667 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91668
91669         * config/srclist-update: Change update back to the old behavior,
91670         leaving whitespace alone.  Use one 'sed' command rather than a
91671         pipeline.
91672         (fixlicense): Now a variable, not a function.
91673         (remove_trailing_blanks): Remove.
91674         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91675         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91676         Undo previous (whitespace-only) change.
91677
91678 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91679
91680         Merge from coreutils.
91681         * modules/euidaccess: Add lib_SOURCES, include for new
91682         file euidaccess.h
91683
91684 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91685
91686         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91687         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91688         Normalize leading white space and remove trailing white space.
91689
91690         Merge from coreutils
91691         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91692
91693         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91694         0.12.1.  These files are now being upgraded automatically by
91695         ../config/srclist-update.
91696
91697 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91698
91699         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91700         Normalize leading white space and remove trailing white space.
91701         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91702         notice, as per ../config/srclist-update.
91703
91704         Merge from coreutils.
91705         * lib/euidaccess.h: New file.
91706         * lib/euidaccess.c: Include it.
91707         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91708         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91709         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91710
91711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91712
91713         * config/srclist-update: Add copyright notice.
91714         (remove_id_lines, remove_trailing_blanks): New constants.
91715         (fixfile): Use them to normalize spacing a bit in copied files.
91716         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91717         Normalize leading white space and remove trailing white space.
91718
91719         * config/texinfo.tex: Sync with texinfo.
91720
91721         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91722         strtoul.c from libc, to merge coreutils whitespace changes.
91723
91724         * config/srclist.txt: Get the following m4 files from gettext:
91725         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91726         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91727         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91728         wint_t.m4.
91729
91730 2003-08-12  Karl Berry  <karl@gnu.org>
91731
91732         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91733         been made.
91734
91735 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91736
91737         * modules/gnu-source, m4/gnu-source.m4:
91738         Remove; we're assuming Autoconf 2.54 or later now.
91739         Suggested by Bruno Haible.
91740         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91741
91742 2003-08-11  Bruno Haible  <bruno@clisp.org>
91743
91744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91745
91746 2003-08-11  Bruno Haible  <bruno@clisp.org>
91747
91748         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91749         (vasnprintf): Use it instead of wcslen.
91750
91751 2003-08-11  Bruno Haible  <bruno@clisp.org>
91752
91753         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91754         value to ensure that _Bool promotes to int. Use #define for _Bool when
91755         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91756
91757 2003-08-10  Karl Berry  <karl@gnu.org>
91758
91759         * lib/regex.h: update from libc (whitespace fix).
91760
91761 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91762
91763         Merge some files from coreutils.  These changes were
91764         originally made by Jim Meyering.
91765         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91766         many older Unixes require this.
91767         * lib/alloca.c (alloca): Remove cast to argument of free;
91768         no longer needed in C89.
91769         * lib/alloca_.h, regex.h: Fix white space to match
91770         what GNU indent does.
91771
91772 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91773
91774         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91775         apparently Emacs's Unicode mode got confused before my 2003-08-05
91776         checkin.
91777
91778 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91779
91780         * m4/extensions.m4: New file.
91781         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91782         Require gl_USE_SYSTEM_EXTENSIONS.
91783         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91784         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91785
91786 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91787
91788         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91789         * modules/extensions, modules/gnu-source: New files.
91790         * modules/timespec, modules/unlocked-io: Depend on extensions.
91791
91792 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91793
91794         * modules/restrict: New file.
91795         * MODULES.html.sh (func_all_modules): Add restrict.
91796         * modules/regex: Depend on restrict.
91797
91798 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91799
91800         * m4/restrict.m4: New file.
91801         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91802
91803 2003-08-07  Bruno Haible  <bruno@clisp.org>
91804
91805         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91806         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91807
91808 2003-08-07  Bruno Haible  <bruno@clisp.org>
91809
91810         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91811         makes the module 'getndelim2' compatible with the module 'getline'.
91812
91813 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91814
91815         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91816         byte with "\201" to avoid glitches when editing that source file
91817         with multi-gnome-terminal.
91818
91819 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91820
91821         * lib/bumpalloc.h: Remove.
91822
91823 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91824
91825         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91826         * modules/bumpalloc: Remove.
91827
91828 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91829
91830         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91831         GNU coding style.
91832
91833         Merge from coreutils.
91834         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91835         1. From glibc.
91836         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91837         from Karl Berry, implemented by Jim Meyering.
91838         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91839         from Dmitry V. Levin.
91840         Remove anachronistic cast of xrealloc.
91841         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91842         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91843         type. Otherwise, it wouldn't compile with at least /bin/cc on
91844         ymp-cray-unicos9.0.2.X.
91845         Combine two mostly-identical uses of alloca into one.
91846         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91847
91848 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91849
91850         [From Emacs.]
91851
91852         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91853         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91854         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91855         obsolete NLIST_NAME_UNION.
91856         [__GNU__]: Undef BSD and FSCALE.
91857         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91858
91859 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91860
91861         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91862         an enum type, so that it's guaranteed to promote to int.  See:
91863         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91864
91865 2003-08-03  Karl Berry  <karl@gnu.org>
91866
91867         * config/depcomp: update from automake.
91868
91869 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91870
91871         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91872         (strerror): Don't assume that a printable int fits in 14 bytes.
91873
91874 2003-07-31  Bruno Haible  <bruno@clisp.org>
91875
91876         * modules/getpass-gnu: New file.
91877         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91878
91879 2003-07-31  Bruno Haible  <bruno@clisp.org>
91880
91881         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91882
91883 2003-07-24  Karl Berry  <karl@gnu.org>
91884
91885         * config/missing: update from automake.
91886
91887 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91888             Bruno Haible  <bruno@clisp.org>
91889
91890         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91891         * lib/getline.c (getline, getdelim): Likewise.
91892         Remove _GNU_SOURCE define; now it's defined in config.h through
91893         m4/getline.m4.
91894
91895 2003-07-23  Karl Berry  <karl@gnu.org>
91896
91897         * config/config.sub: update from prep.
91898
91899 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91900
91901         * modules/xalloc (Depends-on): Add exitfail.
91902         * modules/xmemcoll: Likewise.
91903
91904 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91905
91906         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91907         over-parenthesization in macros.
91908
91909         Sync with coreutils.
91910
91911         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91912         required by C99.
91913
91914         Use `exit_failure' for xalloc and xmemcoll instead of their own
91915         private exit-failure variables.
91916         * lib/xalloc.h (xalloc_exit_failure): Remove.
91917         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91918         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91919         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91920         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91921         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91922
91923 2003-07-20  Jim Meyering  <jim@meyering.net>
91924
91925         * modules/closeout (Depends-on): Add exitfail.
91926         Suggestion from Bruno Haible.
91927
91928 2003-07-19  Karl Berry  <karl@gnu.org>
91929
91930         * config/config.sub: update from prep.
91931
91932 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91933
91934         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91935         Remove.
91936         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91937         to test that it can stand by itself.  Include "exitfail.h".
91938         Clients should set exit_failure instead.
91939         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91940
91941 2003-07-18  Bruno Haible  <bruno@clisp.org>
91942
91943         * modules/getndelim2: New file.
91944         * modules/getline: Share files with module getndelim2.
91945         * modules/getnline: Depend on getndelim2 instead of sharing files with
91946         it. Add getnline.c to lib_SOURCES.
91947         * MODULES.html.sh (func_all_modules): Add getndelim2.
91948
91949 2003-07-18  Bruno Haible  <bruno@clisp.org>
91950
91951         * m4/getndelim2.m4: New file.
91952         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91953         invoke gl_PREREQ_GETNDELIM2.
91954         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91955         gl_PREREQ_GETNDELIM2.
91956         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91957         gl_GETNDELIM2.
91958
91959 2003-07-18  Bruno Haible  <bruno@clisp.org>
91960
91961         * lib/getndelim2.h: New file.
91962         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91963         getndelim2.h.
91964         (getndelim2): Make non-static. Change return type to ssize_t.
91965         * lib/getline.h: Change argument names.
91966         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91967         * lib/getnline.c: Include getndelim2.h.
91968
91969 2003-07-18  Andreas Schwab  <schwab@suse.de>
91970
91971         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91972
91973 2003-07-17  Karl Berry  <karl@gnu.org>
91974
91975         * config/config.sub: update from prep.
91976
91977 2003-07-17  Bruno Haible  <bruno@clisp.org>
91978
91979         * modules/getnline: New file.
91980         * modules/getline: Add lib/getndelim2.c to source file list.
91981         * MODULES.html.sh (func_all_modules): Add getnline.
91982
91983 2003-07-17  Bruno Haible  <bruno@clisp.org>
91984
91985         * m4/getnline.m4: New file.
91986
91987 2003-07-17  Bruno Haible  <bruno@clisp.org>
91988
91989         * m4/Makefile.am.in: Remove file.
91990         * m4/Makefile.am: Remove file.
91991         * m4/Makefile.in: Remove file.
91992
91993 2003-07-17  Bruno Haible  <bruno@clisp.org>
91994
91995         * lib/getnline.h: New file.
91996         * lib/getnline.c: New file.
91997         * lib/getndelim2.c: New file, extracted from getline.c.
91998         (getndelim2): Renamed from getdelim2, with added nmax argument.
91999         * lib/getline.c: Include getndelim2.c.
92000         (getdelim2): Moved out to getndelim2.c.
92001         (getline, getdelim): Update.
92002
92003 2003-07-17  Bruno Haible  <bruno@clisp.org>
92004
92005         * lib/Makefile.am: Remove file.
92006         * lib/Makefile.in: Remove file.
92007
92008 2003-07-17  Bruno Haible  <bruno@clisp.org>
92009
92010         * configure.in: Remove file.
92011         * Makefile.in: Remove file.
92012
92013 2003-07-17  Bruno Haible  <bruno@clisp.org>
92014
92015         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92016
92017 2003-07-16  Karl Berry  <karl@gnu.org>
92018
92019         * config/srclist-update: was running fixlicense twice, which caused
92020                 texinfo.tex to be nullified for some reason.  Simplify,
92021                 $gplsrc is no longer needed as far as I can see?
92022
92023 2003-07-16  Jim Meyering  <jim@meyering.net>
92024
92025         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92026
92027 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92028
92029         * config/srclist.txt: Get the following files from gettext-runtime/intl
92030         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92031         ref-del.sin.  From Bruno Haible.
92032         * config/srclist-update (fixfile): Change grep pattern again, since the
92033         previous fix didn't work (there was another trailing $).  Use
92034         '[$]' to escape the $s.
92035
92036 2003-07-15  Karl Berry  <karl@gnu.org>
92037
92038         * lib/vasnprintf.c: update from gettext.
92039
92040 2003-07-15  Karl Berry  <karl@gnu.org>
92041
92042         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92043         gets expanded when surrounded by '$'.
92044
92045 2003-07-15  Jim Meyering  <jim@meyering.net>
92046
92047         * modules/save-cwd: Don't depend on error.  From Derek Price.
92048
92049 2003-07-15  Jim Meyering  <jim@meyering.net>
92050
92051         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92052
92053 2003-07-14  Simon Josefsson  <jas@extundo.com>
92054
92055         * modules/mempcpy: New file.
92056         * MODULES.html.sh (func_all_modules): Add mempcpy.
92057
92058 2003-07-14  Simon Josefsson  <jas@extundo.com>
92059
92060         * m4/mempcpy.m4: New file.
92061
92062 2003-07-14  Simon Josefsson  <jas@extundo.com>
92063
92064         * lib/mempcpy.h: New file.
92065         * lib/mempcpy.c: New file.
92066
92067 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92068
92069         * modules/getdate, modules/posixtm: Depend on mktime.
92070
92071 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92072
92073         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92074         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92075         unicodeio.c, unicodeio.h, unlocked-io.h:
92076         Switch from LGPL to GPL.
92077
92078 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92079
92080         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92081         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92082         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92083         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92084         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92085         updated automatically by ../config/srclist-update.  This changes
92086         their license from LPGL to GPL.
92087
92088 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92089
92090         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92091         assumed to refer to the root of the most recent stable gettext version.
92092         * config/srclistvars.sh: Add defaults for eggert.
92093         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92094         Match "This program" as well as "The program".  This is needed
92095         for gettext.
92096
92097 2003-07-14  Jim Meyering  <jim@meyering.net>
92098
92099         Don't emit diagnostics.  Let callers do that.
92100         * lib/save-cwd.c: Don't include "error.h".
92101         (save_cwd): Don't call error.  Ensure that errno is valid
92102         when returning nonzero.
92103
92104         * lib/save-cwd.h (restore_cwd): Update prototype.
92105         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92106         Simplify.  Don't call error upon failure.  Let callers do that.
92107         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92108         when auditing is enabled.  But don't bother updating the #if.
92109
92110 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92111
92112         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92113         it breaks C++ compilation.
92114         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92115
92116 2003-07-10  Simon Josefsson  <jas@extundo.com>
92117
92118         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92119
92120 2003-07-10  Jim Meyering  <jim@meyering.net>
92121
92122         * m4/clock_time.m4: Remove trailing blank.
92123         * m4/intmax_t.m4: Likewise.
92124
92125 2003-07-10  Jim Meyering  <jim@meyering.net>
92126
92127         * lib/vasnprintf.c: Remove trailing blanks.
92128         Make cpp indentation consistent.
92129
92130 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92131
92132         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92133         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92134         Switch from LGPL to GPL.
92135
92136 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92137
92138         * config/srclist.txt: Sort sublists.  Add
92139         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92140         that differ from gnulib for one reason or another; we'd like this list
92141         to be smaller but for now let's document what we have.
92142
92143 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92144
92145         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92146         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92147         and sweeter "eval x=$x".
92148         * config/srclist.txt: Get lib/argp* from glibc.
92149
92150 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92151
92152         * lib/mktime.c: Fix some boundary cases and remove need for floating
92153         point.
92154
92155         Issue a compile-time diagnostic if time_t is floating point, or if
92156         two's complement arithmetic is not in effect, or if arithmetic
92157         right shift does not propagate the sign.  These assumptions were
92158         all in the original code but they weren't checked.
92159
92160         (TIME_T_MIDPOINT, verify): New macros.
92161         (__isleap): Remove; it has integer overflow problems.
92162         (leapyear): New function, without those problems.
92163         (ydhms_tm_diff): Remove; splitting into two parts.
92164         (ydhms_diff): New function, containing the arithmetic part of
92165         the old ydhms_tm_diff function.  Issue a compile-time
92166         diagnostic if we are not using C99 integer division.
92167         Avoid casts when possible.
92168         (guess_time_tm): New function, containing the checking part of
92169         the old ydhms_tm_diff function.  Return the new value, rather than
92170         the difference between it and the old.  Accept a new argument T
92171         so that *T specifies the old value.  Check for overflow in the result.
92172
92173         (__mktime_internal): Use a time_t offset, not a long int offset.
92174         This undoes the 2003-06-04 change, which is no longer needed now
92175         that we have better overflow checking.
92176         (localtime_offset): Likewise.
92177
92178         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92179         and long are 64-bit but int is only 32-bit.
92180         (ydhms_diff): Use long int to store year1 and yday1.
92181         Issue a compile-time diagnostic if long int is not wide enough.
92182
92183         (__mktime_internal): Use long int to store adjusted year and yday.
92184         Use plain C rather than preprocessor commands, if that doesn't
92185         affect efficiency.
92186         Check for overflow (and try to repair) after each probe
92187         rather than checking only at the very end.  This avoids some bugs
92188         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92189         does not equal GMT offset at maximum time).
92190         Use integer to check for overflow rather than floating point; this
92191         is more portable to non-IEEE hosts, and is a tad faster.
92192         When we detect that we are oscillating between two values,
92193         don't check whether tm_isdst has the requested value, since
92194         we already know the answer.  When tm_isdst has the wrong value,
92195         use a different heuristic to find the right one, based on the
92196         extreme values actually observed in practice in tz2003a,
92197         rather than the (overly optimistic) "previous 3 calendar quarters".
92198
92199         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92200         "T const" to accommodate glibc style.
92201         (check_result): Use less-confusing report format.  "long" -> "long int.
92202         (main): Likewise.
92203         Don't loop if the iteration overflows time_t.
92204         Allow a negative step in the iteration.
92205
92206 2003-07-06  Karl Berry  <karl@gnu.org>
92207
92208         * config/depcomp: update from automake.
92209         * config/config.sub: update from prep.
92210
92211 2003-07-03  Karl Berry  <karl@gnu.org>
92212
92213         * config/config.guess: update from prep.
92214
92215 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92216
92217         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92218         xreadlink.c now includes it unconditionally.
92219
92220 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92221
92222         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92223         having it depend on HAVE_SYS_TYPES_H.
92224
92225 2003-07-01  Bruno Haible  <bruno@clisp.org>
92226
92227         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92228         <sys/types.h> should be sufficient.
92229         Reported by Paul Eggert.
92230
92231 2003-06-26  Karl Berry  <karl@gnu.org>
92232
92233         * config/depcomp: update from automake.
92234
92235 2003-06-26  Bruno Haible  <bruno@clisp.org>
92236
92237         * modules/human: Depend on module stdbool.
92238
92239 2003-06-25  Bruno Haible  <bruno@clisp.org>
92240
92241         * modules/readlink: New file.
92242         * modules/xreadlink: Depend on it.
92243         * MODULES.html.sh (func_all_modules): Add readlink.
92244
92245 2003-06-25  Bruno Haible  <bruno@clisp.org>
92246
92247         * m4/readlink.m4: New file.
92248
92249 2003-06-25  Bruno Haible  <bruno@clisp.org>
92250
92251         * lib/readlink.c: New file.
92252
92253 2003-06-22  Karl Berry  <karl@gnu.org>
92254
92255         * config/srclist.txt: update mkinstalldirs from automake.
92256         * config/mkinstalldirs: update.
92257
92258 2003-06-22  Bruno Haible  <bruno@clisp.org>
92259
92260         Portability to mingw32.
92261         * m4/ssize_t.m4: New file, from GNU gettext.
92262         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92263         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92264
92265 2003-06-22  Bruno Haible  <bruno@clisp.org>
92266
92267         * modules/safe-read: Add m4/ssize_t.m4.
92268         * modules/xreadlink: Add m4/ssize_t.m4.
92269
92270 2003-06-20  Bruno Haible  <bruno@clisp.org>
92271
92272         Assume C89, so PARAMS isn't needed.
92273         * lib/unicodeio.h (PARAMS): Remove.
92274         * lib/unicodeio.c: Don't use PARAMS.
92275
92276 2003-06-18  Karl Berry  <karl@gnu.org>
92277
92278         * config/config.{guess,sub}: update from prep.
92279
92280 2003-06-18  Jim Meyering  <jim@meyering.net>
92281
92282         Merge changes from coreutils.
92283         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92284         Remove explicit declarations of xmalloc and realloc.
92285         Include xalloc.h.
92286         (read_utmp): Remove anachronistic cast of xmalloc.
92287
92288 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92289
92290         Assume C89, so PARAMS isn't needed.
92291         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92292         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92293         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92294         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92295         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92296         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92297         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92298         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92299         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92300         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92301         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92302         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92303         no longer needed. Anyway, config.h should always be included before any
92304         other file.
92305
92306 2003-06-11  Simon Josefsson  <jas@extundo.com>
92307
92308         * modules/sysexits: New file.
92309         * MODULES.html.sh (func_all_modules): Add sysexits.
92310
92311 2003-06-11  Simon Josefsson  <jas@extundo.com>
92312
92313         * lib/sysexit_.h: New file.
92314
92315 2003-06-11  Derek Price  <derek@ximbiot.com>
92316
92317         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92318         necessary.
92319
92320 2003-06-11  Bruno Haible  <bruno@clisp.org>
92321
92322         * m4/sysexits.m4: New file.
92323
92324 2003-06-10  Simon Josefsson  <jas@extundo.com>
92325
92326         * lib/argp.h: New file, from glibc.
92327         * lib/argp-ba.c: New file, from glibc.
92328         * lib/argp-eexst.c: New file, from glibc.
92329         * lib/argp-fmtstream.c: New file, from glibc.
92330         * lib/argp-fmtstream.h: New file, from glibc.
92331         * lib/argp-fs-xinl.c: New file, from glibc.
92332         * lib/argp-help.c: New file, from glibc.
92333         * lib/argp-namefrob.h: New file, from glibc.
92334         * lib/argp-parse.c: New file, from glibc.
92335         * lib/argp-pv.c: New file, from glibc.
92336         * lib/argp-pvh.c: New file, from glibc.
92337         * lib/argp-xinl.c: New file, from glibc.
92338
92339 2003-06-10  Simon Josefsson  <jas@extundo.com>
92340
92341         * modules/strchrnul: New file.
92342
92343 2003-06-10  Simon Josefsson  <jas@extundo.com>
92344
92345         * modules/argp: New file.
92346
92347 2003-06-10  Simon Josefsson  <jas@extundo.com>
92348
92349         * m4/strchrnul.m4: New file.
92350
92351 2003-06-10  Simon Josefsson  <jas@extundo.com>
92352
92353         * lib/strchrnul.h: New file.
92354         * lib/strchrnul.c: New file.
92355
92356 2003-06-10  Bruno Haible  <bruno@clisp.org>
92357
92358         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92359
92360 2003-06-07  Karl Berry  <karl@gnu.org>
92361
92362         * config/config.{guess,sub}: update from prep.
92363
92364 2003-06-07  Jim Meyering  <jim@meyering.net>
92365
92366         * modules/strtod: Use $(...) notation, not @...@ for
92367         AC_REPLACE'd variables.
92368         * modules/localcharset: Likewise.
92369
92370 2003-06-07  Jim Meyering  <jim@meyering.net>
92371
92372         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92373         in place of my name in the copyright comment.
92374         Remove definition and uses of __P.
92375
92376         From coreutils.
92377         * lib/stat.c: Don't declare xmalloc explicitly.
92378         Instead, include "xalloc.h".
92379         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92380         xrealloc, and xcalloc return values.
92381         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92382         Improve comment.
92383         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92384
92385 2003-06-07  Bruno Haible  <bruno@clisp.org>
92386
92387         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92388         avoid AC_CONFIG_LINKS.
92389         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92390         fnmatch.h, to avoid AC_CONFIG_LINKS.
92391         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92392
92393 2003-06-07  Bruno Haible  <bruno@clisp.org>
92394
92395         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92396         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92397         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92398         directory.
92399         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92400         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92401         directory.
92402
92403 2003-06-06  Jim Meyering  <jim@meyering.net>
92404
92405         Merge from coreutils.
92406         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92407         Consolidate declarations and initializations of *_base* locals.
92408
92409         Merge from coreutils.
92410         This avoids a core dump on systems without GNU putenv,
92411         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92412         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92413         (unsetenv): New static function, from GNU libc.
92414         (rpl_putenv): Use it.
92415
92416         * lib/modechange.c: Remove trailing blanks.
92417
92418         Merge from coreutils.
92419         * lib/fsusage.c: Remove declaration of statfs.
92420         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92421
92422         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92423
92424 2003-06-06  Jim Meyering  <jim@meyering.net>
92425
92426         * lib/stdbool_.h: Renamed from stdbool.h.in.
92427
92428 2003-06-06  Jim Meyering  <jim@meyering.net>
92429             Bruno Haible  <bruno@clisp.org>
92430
92431         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92432         Adjust Makefile.am snippet not to redirect directly to target.
92433         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92434
92435 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92436
92437         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92438         mismatch, look in future quarters as well as past.  This fixes a
92439         bug when processing fall-backwards gaps immediately after a long
92440         period of daylight-saving time.
92441
92442         * lib/mktime.c: Assume freestanding C89 or better.
92443         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92444         (__P): Remove; not used.
92445         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92446         (mktime, not_equal_tm, print_tm, check_result,
92447         main): Use prototypes.  Use const * where appropriate.
92448         (main): Fix typo in testing code that uncovered by above changes.
92449         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92450
92451 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92452
92453         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92454         locale.h, localeconv.  This merges changes from coreutils.
92455
92456         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92457         It can be removed after the next Autoconf is released.
92458         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92459         needed.
92460
92461 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92462
92463         * lib/mktime.c: Fix Debian bug 177940
92464         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92465         (localtime_offset): Now long int, not time_t, because we want it
92466         to be guaranteed to be signed.  All uses changed.
92467         (__mktime_internal): If overflow would occur when adding offset,
92468         don't add it.
92469
92470         Merge 'human' changes from coreutils.  Rewrite to support
92471         locale-specific notations like thousands separators.
92472         * lib/human.c: Simplify authorship notice.
92473         Include human.h immediately after config.h.
92474         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92475         <limits.h>: Do not include, since human.h does.
92476         (SIZE_MAX, UINTMAX_MAX): New macros.
92477         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92478         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92479         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92480         (power_letter): Renamed from suffixes.
92481         (generate_suffix_backwards): Remove.
92482         (adjust_value): Now takes int style (because of human.h changes)
92483         and long double value (for greater precision on some platforms).
92484         (group_number): New function.
92485         (human_readable): Use it.  Use integer options, not enum.
92486         Put the options before the sizes in the arg list.
92487         Support all the new options.
92488         The old human_readable function has been removed;
92489         use inttostr.h instead.
92490         (human_readable, default_block_size, humblock):
92491         Use uintmax_t, not int, for block sizes.
92492         (human_readable_inexact, block_size_types): Remove.
92493         (block_size_opts): New constant.
92494         (human_options): Renamed from human_block_size, with new signature
92495         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92496         * lib/human.h: Add copyright and authorship notice.
92497         Include <limits.h> and <stdbool.h> unconditionally.
92498         (PARAMS): Remove.  All uses removed.
92499         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92500         (enum human_inexact_style): Remove tag; now a nameless enum.
92501         (human_floor, human_ceiling, human_round_to_even): Now have
92502         values 2, 0, 1 rather than -1, 1, 0.
92503         (human_group_digits, human_suppress_point_zero, human_autoscale,
92504         human_base_1024, human_SI, human_B): New constants.
92505         (human_readable_inexact, human_block_size): Remove.
92506         (human_readable): Size args are now uintmax_t, not int.
92507         (human_options): New decl.
92508
92509         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92510         unnecessary now that we assume C89 or better.  This change
92511         imported from coreutils.
92512
92513         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92514         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92515         in the 2003-05-30 sync from glibc.
92516
92517         .h files should stand alone, but we shouldn't include <sys/types.h>
92518         if we can get away with just <stddef.h>.
92519
92520         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92521         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92522         rather than <sys/types.h>, as we merely need size_t.
92523         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92524         to get size_t.
92525         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92526         Include <stdio.h>, to get FILE.
92527         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92528         memcasecmp.h has included <stddef.h> and all we need is size_t.
92529         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92530         our interface, instead of including <sys/types.h>
92531
92532 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92533
92534         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92535         now, as glibc mktime is buggy on non-glibc systems.
92536
92537 2003-06-03  Karl Berry  <karl@gnu.org>
92538
92539         * config/config.sub: update from prep.
92540
92541 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92542
92543         [from coreutils]
92544         Fix some minor time-related bugs with POSIX time arguments.
92545         Some valid time stamps were being rejected (notably -1, and
92546         time stamps before 1900 on 64-bit hosts).  And some invalid
92547         time stamps were being accepted, e.g. September 31.
92548
92549         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92550         that we can return (time_t) -1 successfully.
92551         * lib/posixtm.c: Likewise.
92552         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92553         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92554         (t): Remove static var.
92555         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92556         of static var.  All uses changed.
92557         (year): Do not reject years before 1900; they can occur with
92558         64-bit time_t.
92559         (posix_time_parse): Do not check for out-of-range components;
92560         that is now the caller's responsibility, since our checks were
92561         only approximations.
92562         (posixtime): Use mktime to check for out-of-range components,
92563         since it knows them exactly.
92564         If mktime returns (time_t) -1, check whether an error actually occurred
92565         by invoking localtime on -1.
92566         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92567         posixtime failures better.
92568         Improve the test data (in comments only).
92569
92570 2003-06-02  Karl Berry  <karl@gnu.org>
92571
92572         * config/mkinstalldirs (version): new variable.
92573         (--version): new option.
92574         (usage): improve message.
92575
92576 2003-05-30  Karl Berry  <karl@gnu.org>
92577
92578         * lib/mktime.c: update from libc.
92579
92580 2003-05-30  Bruno Haible  <bruno@clisp.org>
92581
92582         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92583         * config/config.rpath: Upgrade to gettext-0.12.1.
92584
92585 2003-05-30  Bruno Haible  <bruno@clisp.org>
92586
92587         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92588         * m4/nls.m4: New file, from gettext-0.12.1.
92589         * m4/po.m4: New file, from gettext-0.12.1.
92590         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92591
92592 2003-05-30  Bruno Haible  <bruno@clisp.org>
92593
92594         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92595         * lib/localcharset.h: Likewise.
92596         * lib/localcharset.c: Likewise.
92597
92598 2003-05-29  Karl Berry  <karl@gnu.org>
92599
92600         * config/config.rpath: update from gettext.
92601
92602 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92603
92604         Assume the headers required for C89 freestanding compilers.
92605         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92606         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92607         * m4/human.m4 (gl_HUMAN): Likewise.
92608         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92609         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92610         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92611         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92613         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92614
92615 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92616
92617         Assume the headers required for C89 freestanding compilers.
92618         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92619         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92620         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92621         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92622         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92623         define, since <limits.h> is guaranteed to do that.
92624         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92625         * lib/exclude.c: Include <stdbool.h> unconditionally.
92626         * lib/tempname.c: Include <stddef.h> unconditionally.
92627         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92628         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92629         <stddef.h> does that.
92630         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92631         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92632         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92633         needed.
92634         * lib/xstrtol.c: Likewise.
92635         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92636         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92637
92638         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92639         warnings on some platforms.
92640
92641         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92642         arbitrarily.
92643
92644 2003-05-26  Jim Meyering  <jim@meyering.net>
92645
92646         Merge in a change from coreutils:
92647         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92648         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92649         that condition, rather than `-1' which is slightly misleading.
92650         Change the name of the cache variable to have the gl_ prefix.
92651         Prompted by a patch from Richard Dawe for DJGPP.
92652
92653 2003-05-24  Karl Berry  <karl@gnu.org>
92654
92655         * config/config.guess: update from prep.
92656
92657 2003-05-22  Karl Berry  <karl@gnu.org>
92658
92659         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92660
92661 2003-05-20  Karl Berry  <karl@gnu.org>
92662
92663         * config/config.guess: update from prep.
92664
92665 2003-05-18  Karl Berry  <karl@gnu.org>
92666
92667         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92668         might actually be set by the user.
92669
92670         * config/depcomp, install-sh, mdate-sh: update from automake.
92671
92672 2003-05-17  Bruno Haible  <bruno@clisp.org>
92673
92674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92675         invalid expansion for AC_EGREP_CPP.
92676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92677         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92678         Suggested by Akim Demaille <akim@epita.fr> in
92679         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92680
92681 2003-05-12  Jim Meyering  <jim@meyering.net>
92682
92683         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92684         the space-padded-by-default conversion specifiers, %e, %k, %l.
92685
92686 2003-05-12  Bruno Haible  <bruno@clisp.org>
92687
92688         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92689         the string is longer than 4 KB.
92690
92691 2003-05-11  Karl Berry  <karl@gnu.org>
92692
92693         * config/config.{guess,sub}: update from prep.
92694
92695 2003-05-09  Bruno Haible  <bruno@clisp.org>
92696
92697         * modules/error: Add m4/strerror_r.m4 to file list.
92698
92699 2003-05-03  Bruno Haible  <bruno@clisp.org>
92700
92701         Upgrade to Unicode-4.0.
92702         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92703         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92704         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92705         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92706         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92707         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92708         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92709         Change width of U+E0100..U+E01EF from 1 to 0.
92710
92711 2003-04-25  Jim Meyering  <jim@meyering.net>
92712
92713         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92714         of type size_t, not int.
92715
92716 2003-04-25  Bruno Haible  <bruno@clisp.org>
92717
92718         * lib/copy-file.c: Include <stddef.h>, for size_t.
92719
92720 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92721
92722         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92723         code which expansion is under static control.  Patch imported from
92724         Akim Demaille's patch to Bison; see
92725         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92726
92727 2003-04-14  Bruno Haible  <bruno@clisp.org>
92728
92729         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92730
92731 2003-04-11  Jim Meyering  <jim@meyering.net>
92732
92733         Merge changes from Coreutils.
92734
92735         2003-03-22  Jim Meyering  <jim@meyering.net>
92736
92737         * lib/strftime.c (widen): Cast alloca return value to proper type.
92738
92739         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92740
92741         From GNU libc.
92742         * lib/strftime.c (my_strftime): Handle very large width
92743         specifications for numeric values correctly.  Improve checks for
92744         overflow.
92745
92746         2003-01-19  Jim Meyering  <jim@meyering.net>
92747
92748         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92749         definitions.
92750         (nl_get_alt_digit) [! defined my_strftime]: Define.
92751         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92752         _nl_get_alt_digit and _nl_get_walt_digit.
92753
92754         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92755         libc. These changes have no effect outside of _LIBC.
92756
92757 2003-04-10  Bruno Haible  <bruno@clisp.org>
92758
92759         * modules/findprog: New file.
92760         * MODULES.html.sh (func_all_modules): Add it.
92761
92762 2003-04-10  Bruno Haible  <bruno@clisp.org>
92763
92764         * m4/findprog.m4: New file.
92765         * m4/eaccess.m4: New file.
92766
92767 2003-04-10  Bruno Haible  <bruno@clisp.org>
92768
92769         * lib/findprog.h: New file, from GNU gettext.
92770         * lib/findprog.c: New file, from GNU gettext.
92771
92772 2003-04-05  Jim Meyering  <jim@meyering.net>
92773
92774         Merge changes from Coreutils.
92775
92776         * lib/exclude.h (PARAMS): Remove definition and uses.
92777         * lib/exclude.c: Remove uses of `PARAMS'.
92778
92779         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92780         Add test-cases for DOS filenames. Declare program_name.
92781         (main): Set up program_name.  Patch by Rich Dawe.
92782
92783         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92784         error from mntctl.
92785         Use mntctl's return value to drive the entry-processing loop, since
92786         we can't rely on the value of the vmt_length member in the last
92787         entry.  On some systems doing so could result in exhausting
92788         virtual memory.  Based in part on a patch from Mike Jetzer.
92789
92790 2003-04-04  Bruno Haible  <bruno@clisp.org>
92791
92792         * modules/linebreak: New file.
92793         * MODULES.html.sh (func_all_modules): Add it.
92794
92795 2003-04-04  Bruno Haible  <bruno@clisp.org>
92796
92797         * m4/linebreak.m4: New file.
92798
92799 2003-04-04  Bruno Haible  <bruno@clisp.org>
92800
92801         * lib/linebreak.h: New file, from GNU gettext.
92802         * lib/linebreak.c: New file, from GNU gettext with slight
92803         modifications.
92804         * lib/lbrkprop.h: New file, from GNU gettext.
92805
92806 2003-04-03  Bruno Haible  <bruno@clisp.org>
92807
92808         * modules/utf8-ucs4: New file.
92809         * modules/utf16-ucs4: New file.
92810         * modules/ucs4-utf8: New file.
92811         * modules/ucs4-utf16: New file.
92812         * MODULES.html.sh (func_all_modules): Add them.
92813
92814 2003-04-03  Bruno Haible  <bruno@clisp.org>
92815
92816         * m4/utf-ucs4.m4: New file.
92817         * m4/ucs4-utf.m4: New file.
92818
92819 2003-04-03  Bruno Haible  <bruno@clisp.org>
92820
92821         * lib/utf8-ucs4.h: New file, from GNU gettext.
92822         * lib/utf16-ucs4.h: New file, from GNU gettext.
92823         * lib/ucs4-utf8.h: New file, from GNU gettext.
92824         * lib/ucs4-utf16.h: New file, from GNU gettext.
92825
92826 2003-04-02  Bruno Haible  <bruno@clisp.org>
92827
92828         * modules/binary-io: New file.
92829         * MODULES.html.sh (func_all_modules): Add it.
92830
92831 2003-04-02  Bruno Haible  <bruno@clisp.org>
92832
92833         * lib/binary-io.h: New file, from GNU gettext.
92834
92835 2003-04-01  Bruno Haible  <bruno@clisp.org>
92836
92837         * modules/pathname: New file.
92838         * MODULES.html.sh (func_all_modules): Add it.
92839
92840 2003-04-01  Bruno Haible  <bruno@clisp.org>
92841
92842         * lib/pathname.h: New file, from GNU gettext.
92843         * lib/concatpath.c: New file, from GNU gettext.
92844
92845 2003-03-30  Bruno Haible  <bruno@clisp.org>
92846
92847         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92848
92849 2003-03-30  Bruno Haible  <bruno@clisp.org>
92850
92851         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92852         function chown() doesn't exist.
92853
92854 2003-03-28  Bruno Haible  <bruno@clisp.org>
92855
92856         * modules/copy-file: New file.
92857         * MODULES.html.sh (func_all_modules): Add it.
92858
92859 2003-03-28  Bruno Haible  <bruno@clisp.org>
92860
92861         * m4/copy-file.m4: New file.
92862
92863 2003-03-28  Bruno Haible  <bruno@clisp.org>
92864
92865         * lib/copy-file.h: New file, from GNU gettext.
92866         * lib/copy-file.c: New file, from GNU gettext.
92867
92868 2003-03-18  Jim Meyering  <jim@meyering.net>
92869
92870         * lib/quote.c (quote_n): Fix typo in comment.
92871
92872 2003-03-18  Bruno Haible  <bruno@clisp.org>
92873
92874         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92875         checking.
92876         * m4/onceonly_2_57.m4: Likewise.
92877
92878 2003-03-17  Bruno Haible  <bruno@clisp.org>
92879
92880         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92881         (m4_quote): Remove macro.
92882         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92883
92884 2003-03-14  Jim Meyering  <jim@meyering.net>
92885
92886         Merge changes from Coreutils.
92887         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92888         to be const, in order to avoid warnings.
92889         (obstack_room): Likewise.
92890         (obstack_empty_p): Likewise.
92891
92892 2003-03-14  Bruno Haible  <bruno@clisp.org>
92893
92894         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92895         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92896
92897 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92898
92899         Merge changes from Bison.
92900         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92901         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92902         when compiling Bison 1.875's `bitset bset = obstack_alloc
92903         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92904         * lib/hash.c: Include <stdbool.h> unconditionally.
92905
92906 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92907
92908         * m4/onceonly.m4 (m4_quote): New macro.
92909         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92910         Quote AC_FOREACH variable-expansions properly.
92911
92912 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92913
92914         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92915
92916 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92917
92918         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92919         Reported by Bruce Becker; see:
92920         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92921
92922 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92923             Bruno Haible  <bruno@clisp.org>
92924
92925         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92926         Reported by John Hughes, see
92927         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92928
92929 2003-02-20  Bruno Haible  <bruno@clisp.org>
92930
92931         * MODULES.html.sh (func_all_modules): Add poll.
92932
92933 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92934
92935         * modules/poll: New file.
92936
92937 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92938
92939         * lib/poll_.h: New file.
92940         * lib/poll.c: New file.
92941
92942 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92943
92944         * m4/poll.m4: New file.
92945
92946 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92947
92948         * modules/mathl: New file.
92949
92950 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92951
92952         * lib/mathl.h: New file.
92953         * lib/acosl.c: New file.
92954         * lib/asinl.c: New file.
92955         * lib/atanl.c: New file.
92956         * lib/ceill.c: New file.
92957         * lib/cosl.c: New file.
92958         * lib/expl.c: New file.
92959         * lib/floorl.c: New file.
92960         * lib/frexpl.c: New file.
92961         * lib/ldexpl.c: New file.
92962         * lib/logl.c: New file.
92963         * lib/sincosl.c: New file.
92964         * lib/sinl.c: New file.
92965         * lib/sqrtl.c: New file.
92966         * lib/tanl.c: New file.
92967         * lib/trigl.c: New file.
92968         * lib/trigl.h: New file.
92969
92970 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92971
92972         * m4/mathl.m4: New file.
92973
92974 2003-02-18  Bruno Haible  <bruno@clisp.org>
92975
92976         * MODULES.html.sh (func_all_modules): Add mathl.
92977
92978 2003-02-17  Bruno Haible  <bruno@clisp.org>
92979
92980         * modules/mkdtemp: New module.
92981         * MODULES.html.sh (func_all_modules): Add it.
92982
92983 2003-02-17  Bruno Haible  <bruno@clisp.org>
92984
92985         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92986
92987 2003-02-17  Bruno Haible  <bruno@clisp.org>
92988
92989         * lib/mkdtemp.h: New file, from GNU gettext.
92990         * lib/mkdtemp.c: New file, from GNU gettext.
92991
92992 2003-02-02  Jim Meyering  <jim@meyering.net>
92993
92994         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92995         e.g. glibc-2.2.93.
92996
92997 2003-01-31  Bruno Haible  <bruno@clisp.org>
92998
92999         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93000         'rpl_rename'.
93001         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93002         'rpl_strnlen'.
93003         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93004         'rpl_strtod'.
93005         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93006         'rpl_utime'.
93007
93008 2003-01-31  Bruno Haible  <bruno@clisp.org>
93009
93010         * lib/rename.c: #undef rename before defining rpl_rename.
93011         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93012
93013 2003-01-30  Bruno Haible  <bruno@clisp.org>
93014
93015         * modules/vasnprintf, modules/vasprintf: New modules.
93016         * MODULES.html.sh (func_all_modules): Add them.
93017
93018 2003-01-30  Bruno Haible  <bruno@clisp.org>
93019
93020         * m4/signed.m4: New file, from GNU gettext.
93021         * m4/longdouble.m4: New file, from GNU gettext.
93022         * m4/wchar_t.m4: New file, from GNU gettext.
93023         * m4/wint_t.m4: New file, from GNU gettext.
93024         * m4/vasnprintf.m4: New file.
93025         * m4/vasprintf.m4: New file.
93026
93027 2003-01-30  Bruno Haible  <bruno@clisp.org>
93028
93029         * lib/printf-args.h: New file, from GNU gettext.
93030         * lib/printf-args.c: New file, from GNU gettext.
93031         * lib/printf-parse.h: New file, from GNU gettext.
93032         * lib/printf-parse.c: New file, from GNU gettext.
93033         * lib/vasnprintf.h: New file, from GNU gettext.
93034         * lib/vasnprintf.c: New file, from GNU gettext.
93035         * lib/asnprintf.c: New file, from GNU gettext.
93036         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93037         * lib/vasprintf.c: New file, from GNU gettext.
93038         * lib/asprintf.c: New file, from GNU gettext.
93039
93040 2003-01-29  Bruno Haible  <bruno@clisp.org>
93041
93042         * modules/stpncpy: New module.
93043         * MODULES.html.sh (func_all_modules): Add it.
93044
93045 2003-01-29  Bruno Haible  <bruno@clisp.org>
93046
93047         * m4/stpncpy.m4: New file.
93048
93049 2003-01-29  Bruno Haible  <bruno@clisp.org>
93050
93051         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93052         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93053
93054 2003-01-28  Bruno Haible  <bruno@clisp.org>
93055
93056         * modules/c-ctype: New module.
93057         * MODULES.html.sh (func_all_modules): Add it.
93058
93059 2003-01-28  Bruno Haible  <bruno@clisp.org>
93060
93061         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93062         Paul Eggert.
93063         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93064         Paul Eggert.
93065
93066 2003-01-27  Bruno Haible  <bruno@clisp.org>
93067
93068         * modules/xsetenv: New module.
93069         * MODULES.html.sh (func_all_modules): Add it.
93070
93071 2003-01-27  Bruno Haible  <bruno@clisp.org>
93072
93073         * lib/xsetenv.h: New file, from GNU gettext.
93074         * lib/xsetenv.c: New file, from GNU gettext.
93075
93076 2003-01-23  Jim Meyering  <jim@meyering.net>
93077
93078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93079         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93080
93081 2003-01-23  Bruno Haible  <bruno@clisp.org>
93082
93083         * modules/minmax: New module.
93084         * MODULES.html.sh (func_all_modules): Add it.
93085
93086 2003-01-23  Bruno Haible  <bruno@clisp.org>
93087
93088         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93089         Eggert.
93090
93091 2003-01-22  Bruno Haible  <bruno@clisp.org>
93092
93093         * modules/exit: New module.
93094         * MODULES.html.sh (func_all_modules): Add it.
93095
93096 2003-01-22  Bruno Haible  <bruno@clisp.org>
93097
93098         * lib/exit.h: New file, from GNU gettext.
93099
93100 2003-01-19  Bruno Haible  <bruno@clisp.org>
93101
93102         * gnulib-tool: Recognize option --extract-maintainer.
93103         (func_get_maintainer): New function.
93104         * modules/*: Add Maintainer entry.
93105
93106 2003-01-16  Jim Meyering  <jim@meyering.net>
93107
93108         * m4/regex.m4: The `regex' struct is both input and output.
93109         Initialize it before each use.  Patch by Tim Waugh.
93110
93111 2003-01-16  Bruno Haible  <bruno@clisp.org>
93112
93113         * MODULES.html.sh: Add a table of contents. Add the module name as
93114         leftmost column. Add hyperlinks.
93115
93116 2003-01-15  Bruno Haible  <bruno@clisp.org>
93117
93118         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93119
93120 2003-01-15  Bruno Haible  <bruno@clisp.org>
93121
93122         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93123         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93124         suffix.
93125
93126 2003-01-15  Bruno Haible  <bruno@clisp.org>
93127
93128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93129
93130 2003-01-15  Bruno Haible  <bruno@clisp.org>
93131
93132         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93133         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93134
93135 2003-01-14  Jim Meyering  <jim@meyering.net>
93136
93137         * lib/same.c (same_name): Tweak a comment.
93138
93139 2003-01-14  Bruno Haible  <bruno@clisp.org>
93140
93141         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93142         when a string comparison is sufficient.
93143
93144 2003-01-14  Bruno Haible  <bruno@clisp.org>
93145
93146         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93147         'unsigned int'.
93148
93149 2003-01-14  Bruno Haible  <bruno@clisp.org>
93150
93151         * lib/hash-pjw.c: Add comment about low quality of this function.
93152
93153 2003-01-13  Bruno Haible  <bruno@clisp.org>
93154
93155         * modules/stpcpy: Distribute lib/stpcpy.h.
93156         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93157
93158 2003-01-13  Bruno Haible  <bruno@clisp.org>
93159
93160         * modules/*: Add a description.
93161         * modules/strpbrk: Fix Makefile.am snippet.
93162         * modules/strtoimax: Fix dependencies.
93163         * modules/strtoumax: Likewise.
93164
93165 2003-01-13  Bruno Haible  <bruno@clisp.org>
93166
93167         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93168         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93169         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93170
93171 2003-01-13  Bruno Haible  <bruno@clisp.org>
93172
93173         * gnulib-tool (func_create_testdir): Store config/* files in the main
93174         directory.
93175         * config.rpath: Move to ...
93176         * config/config.rpath: ... here.
93177         * modules/gettext: Contains config/config.rpath, not config.rpath.
93178         * modules/iconv: Likewise.
93179
93180 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93181
93182         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93183         to avoid collisions with libcurses and libreadline.
93184
93185         * m4/getstr.m4: Remove.
93186         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93187
93188 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93189
93190         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93191         to avoid collisions with libcurses and libreadline.
93192
93193         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93194         * lib/getstr.h, getstr.c: Remove.
93195         * lib/getline.c: Include "getline.h", to check interface.
93196         Move body of old getstr.c here: this defines MIN_CHUNK and
93197         declares getdelim2, which is renamed from getstr.
93198         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93199
93200         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93201         All uses changed.
93202         * lib/linebuffer.h: Likewise.
93203         (readline): Remove backward-compatibility macro.
93204
93205 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93206
93207         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93208         to avoid collisions with libcurses and libreadline.
93209         * getstr: Remove.
93210         * MODULES.html.sh: Remove getstr.
93211         * modules/getline: Depend on unlocked-io, not getstr.
93212
93213 2003-01-12  Jim Meyering  <jim@meyering.net>
93214
93215         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93216
93217 2003-01-10  Bruno Haible  <bruno@clisp.org>
93218
93219         * modules/alloca: Change Makefile.am requirements. Simplify Include
93220         requirements. Add lib/alloca_.h to file list.
93221
93222 2003-01-10  Bruno Haible  <bruno@clisp.org>
93223
93224         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93225
93226 2003-01-10  Bruno Haible  <bruno@clisp.org>
93227
93228         * lib/alloca_.h: New file.
93229         * lib/getdate.y: Unconditionally include alloca.h.
93230         * lib/makepath.c: Likewise.
93231         * lib/setenv.c: Likewise.
93232         * lib/userspec.c: Likewise.
93233
93234 2003-01-09  Karl Berry  <karl@gnu.org>
93235
93236         * MODULES.html.sh: include `dirname $0` in PATH, to find
93237         gnulib-tool.
93238
93239 2003-01-09  Bruno Haible  <bruno@clisp.org>
93240
93241         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93242         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93243
93244 2003-01-09  Bruno Haible  <bruno@clisp.org>
93245
93246         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93247
93248 2003-01-09  Bruno Haible  <bruno@clisp.org>
93249
93250         * lib/stdbool.h.in: New file.
93251
93252 2003-01-09  Bruno Haible  <bruno@clisp.org>
93253
93254         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93255         * MODULES.html.sh: Likewise.
93256
93257 2003-01-08  Jim Meyering  <jim@meyering.net>
93258
93259         * lib/full-write.c: Undefine and define-away `const' after inclusion
93260         of errno.h, not before.  Suggestion from Bruno Haible.
93261
93262 2003-01-08  Bruno Haible  <bruno@clisp.org>
93263
93264         * modules/full-read: Depend on full-write.
93265
93266 2003-01-08  Bruno Haible  <bruno@clisp.org>
93267
93268         * lib/safe-read.c: Include specification header first, to ensure its
93269         selfcontainedness.
93270         * lib/full-write.c: Likewise.
93271
93272 2003-01-07  Jim Meyering  <jim@meyering.net>
93273
93274         * lib/full-write.c: Rework so that it may serve to define full_read,
93275         too.
93276         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93277
93278 2003-01-07  Bruno Haible  <bruno@clisp.org>
93279
93280         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93281         <inttypes.h>.
93282         * lib/xstrtol.h: Likewise.
93283         * lib/xstrtoimax.c: Likewise.
93284         * lib/xstrtoumax.c: Likewise.
93285         * lib/human.h: Likewise.
93286
93287         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93288         on systems that have <inttypes.h> but not <stdint.h>.
93289
93290 2003-01-07  Bruno Haible  <bruno@clisp.org>
93291
93292         * MODULES.html.sh: Add copyright notice.
93293         (missed_files): Omit CVS directory entries.
93294         (func_module): Make it work with sed-3.02.
93295         * MODULES.txt: Remove file.
93296
93297 2003-01-06  Jim Meyering  <jim@meyering.net>
93298
93299         * lib/version-etc.c: Update year in translatable copyright string.
93300
93301 2003-01-03  Karl Berry  <karl@gnu.org>
93302
93303         * config/config.{guess,sub}: update from prep.
93304
93305 2003-01-02  Karl Berry  <karl@gnu.org>
93306
93307         * doc/COPYING.DOC: belatedly updated to 1.2.
93308
93309 2003-01-01  Karl Berry  <karl@gnu.org>
93310
93311         * gnulib-tool (func_verify_module): report module name $module in
93312         error message, not $1.
93313         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93314         be created, only if it doesn't exist.
93315         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93316
93317 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93318
93319         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93320
93321 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93322
93323         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93324         memcmp if strcoll doesn't work.
93325
93326 2002-12-31  Bruno Haible  <bruno@clisp.org>
93327
93328         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93329         nonempty.
93330
93331 2002-12-31  Bruno Haible  <bruno@clisp.org>
93332
93333         * lib/memcoll.c (STRCOLL): New macro.
93334         (memcoll): Use it.
93335
93336 2002-12-31  Bruno Haible  <bruno@clisp.org>
93337
93338         * lib/localcharset.h: New file.
93339         * lib/localcharset.c: Include it.
93340         * lib/unicodeio.c: Likewise.
93341
93342 2002-12-31  Bruno Haible  <bruno@clisp.org>
93343
93344         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93345         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93346
93347 2002-12-31  Bruno Haible  <bruno@clisp.org>
93348
93349         * lib/getline.h: Include <stddef.h>, for size_t.
93350
93351         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93352         * lib/unicodeio.c: Don't include <stddef.h>.
93353
93354 2002-12-31  Bruno Haible  <bruno@clisp.org>
93355
93356         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93357         HAVE_TM_ZONE.
93358
93359 2002-12-24  Karl Berry  <karl@gnu.org>
93360
93361         * config/config.guess: update from prep.
93362
93363 2002-12-24  Bruno Haible  <bruno@clisp.org>
93364
93365         General infrasructure.
93366         * m4/README: Rewritten.
93367         * m4/onceonly.m4: New file.
93368         * m4/onceonly_2_57.m4: New file.
93369
93370         Module atexit.
93371         * m4/atexit.m4: New file.
93372
93373         Module strtod.
93374         * m4/strtod.m4: New file.
93375
93376         Module strtol.
93377         * m4/strtol.m4: New file.
93378
93379         Module strtoul.
93380         * m4/strtoul.m4: New file.
93381
93382         Module memchr.
93383         * m4/memchr.m4: New file.
93384
93385         Module memcmp.
93386         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93387         (jm_FUNC_MEMCMP): Invoke it.
93388
93389         Module memcpy.
93390         * m4/memcpy.m4: New file.
93391
93392         Module memmove.
93393         * m4/memmove.m4: New file.
93394
93395         Module memset.
93396         * m4/memset.m4: New file.
93397
93398         Module strcspn.
93399         * m4/strcspn.m4: New file.
93400
93401         Module strpbrk.
93402         * m4/strpbrk.m4: New file.
93403
93404         Module strstr.
93405         * m4/strstr.m4: New file.
93406
93407         Module strerror.
93408         * m4/strerror.m4: New file.
93409
93410         Module mktime.
93411         * m4/mktime.m4: Renamed from jm-mktime.m4.
93412         (gl_PREREQ_MKTIME): New macro.
93413         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93414
93415         Module malloc.
93416         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93417         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93418         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93419
93420         Module realloc.
93421         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93422         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93423         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93424
93425         Module strftime.
93426         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93427         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93428         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93429         gl_TM_GMTOFF.
93430         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93431
93432         Module xalloc.
93433         * m4/xalloc.m4: New file.
93434
93435         Module alloca.
93436         * m4/alloca.m4: New file.
93437
93438         Module putenv.
93439         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93440         (jm_FUNC_PUTENV): Invoke it.
93441
93442         Module setenv.
93443         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93444         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93445         when invoked twice.
93446         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93447         gt_FUNC_SETENV.
93448
93449         Module memrchr.
93450         * m4/memrchr.m4: New file.
93451
93452         Module stpcpy.
93453         * m4/stpcpy.m4: New file.
93454
93455         Module strcase.
93456         * m4/strcase.m4: New file.
93457
93458         Module strdup.
93459         * m4/strdup.m4: New file.
93460
93461         Module strnlen.
93462         * m4/strnlen.m4: New file.
93463
93464         Module strndup.
93465         * m4/strndup.m4: New file.
93466
93467         Module xstrtod.
93468         * m4/xstrtod.m4: New file.
93469
93470         Module xstrtol.
93471         * m4/xstrtol.m4: New file.
93472
93473         Module getdate.
93474         * m4/getdate.m4: New file.
93475
93476         Module unlocked-io.
93477         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93478         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93479         * m4/jm-glibc-io.m4n: Remove file.
93480
93481         Module long-options.
93482         * m4/long-options.m4: New file.
93483
93484         Module md5.
93485         * m4/md5.m4: New file.
93486
93487         Module sha.
93488         * m4/sha.m4: New file.
93489
93490         Module getstr.
93491         * m4/getstr.m4: New file.
93492
93493         Module getline.
93494         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93495         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93496         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93497         simply getline. Infoke gl_PREREQ_GETLINE.
93498
93499         Module obstack.
93500         * m4/obstack.m4: New file.
93501
93502         Module hash.
93503         * m4/hash.m4: New file.
93504
93505         Module readtokens.
93506         * m4/readtokens.m4: New file.
93507
93508         Module strverscmp.
93509         * m4/strverscmp.m4: New file.
93510
93511         Module stdbool.
93512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93513         OSF/1.
93514
93515         Module strtoll.
93516         * m4/strtoll.m4: New file.
93517
93518         Module strtoull.
93519         * m4/strtoull.m4: New file.
93520
93521         Module strtoimax.
93522         * m4/strtoimax.m4: New file.
93523
93524         Module strtoumax.
93525         * m4/strtoumax.m4: New file.
93526
93527         Module xstrtoimax.
93528         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93529         jm_AC_PREREQ_XSTRTOIMAX.
93530         Moved the strtol prerequisites to strtol.m4.
93531         Moved the strtoll prerequisites to strtoll.m4.
93532         Moved the strtoimax prerequisites to strtoimax.m4.
93533
93534         Module xstrtoumax.
93535         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93536         jm_AC_PREREQ_XSTRTOUMAX.
93537         Moved the strtoul prerequisites to strtoul.m4.
93538         Moved the strtoull prerequisites to strtoull.m4.
93539         Moved the strtoumax prerequisites to strtoumax.m4.
93540
93541         Module chown.
93542         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93543         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93544
93545         Module dup2.
93546         * m4/dup2.m4: New file.
93547
93548         Module ftruncate.
93549         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93550         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93551
93552         Module getgroups.
93553         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93554         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93555
93556         Module gettimeofday.
93557         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93558         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93559         gl_PREREQ_GETTIMEOFDAY.
93560
93561         Module mkdir.
93562         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93563         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93564
93565         Module mkstemp.
93566         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93567         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93568         jm_AC_TYPE_UINTMAX_T.
93569         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93570
93571         Module stat.
93572         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93573         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93574
93575         Module lstat.
93576         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93577         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93578
93579         Module timespec.
93580         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93581         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93582         * m4/st_mtim.m4: Indentation.
93583
93584         Module nanosleep.
93585         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93586         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93587         gl_PREREQ_NANOSLEEP.
93588
93589         Module regex.
93590         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93591         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93592         (gl_REGEX): New macro.
93593
93594         Module rename.
93595         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93596         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93597
93598         Module rmdir.
93599         * m4/rmdir.m4: New file.
93600
93601         Module utime.
93602         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93603         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93604         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93605
93606         Module dirname.
93607         * m4/dirname.m4: New file.
93608
93609         Module getopt.
93610         * m4/getopt.m4: New file.
93611
93612         Module unistd-safer.
93613         * m4/unistd-safer.m4: New file.
93614
93615         Module fnmatch.
93616         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93617         declaration.
93618         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93619         (gl_FUNC_FNMATCH_POSIX): New macro.
93620         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93621         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93622         simply fnmatch.
93623
93624         Module exclude.
93625         * m4/exclude.m4: New file.
93626
93627         Module human.
93628         * m4/human.m4: New file.
93629
93630         Module acl.
93631         * m4/acl.m4: Nop.
93632
93633         Module backupfile.
93634         * m4/backupfile.m4: New file.
93635         * m4/d-ino.m4: Indentation.
93636
93637         Module fsusage.
93638         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93639         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93640         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93641
93642         Module dirfd.
93643         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93644         requirements.
93645
93646         Module euidaccess.
93647         * m4/euidaccess.m4: New file.
93648
93649         Module file-type.
93650         * m4/file-type.m4: New file.
93651
93652         Module fileblocks.
93653         * m4/fileblocks.m4: New file.
93654
93655         Module filemode.
93656         * m4/filemode.m4: New file.
93657
93658         Module isdir.
93659         * m4/isdir.m4: New file.
93660
93661         Module lchown.
93662         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93663         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93664
93665         Module makepath.
93666         * m4/makepath.m4: New file.
93667
93668         Module modechange.
93669         * m4/modechange.m4: New file.
93670
93671         Module mountlist.
93672         * m4/mountlist.m4: New file.
93673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93674         Indentation.
93675
93676         Module path-concat.
93677         * m4/path-concat.m4: New file.
93678
93679         Module pathmax.
93680         * m4/pathmax.m4: New file.
93681
93682         Module same.
93683         * m4/same.m4: New file.
93684
93685         Module save-cwd.
93686         * m4/save-cwd.m4: New file.
93687
93688         Module savedir.
93689         * m4/savedir.m4: New file.
93690
93691         Module xgetcwd.
93692         * m4/xgetcwd.m4: New file.
93693         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93694
93695         Module xreadlink.
93696         * m4/xreadlink.m4: New file.
93697
93698         Module safe-read.
93699         * m4/safe-read.m4: New file.
93700
93701         Module safe-write.
93702         * m4/safe-write.m4: New file.
93703
93704         Module closeout.
93705         * m4/closeout.m4: New file.
93706
93707         Module stdio-safer.
93708         * m4/stdio-safer.m4: New file.
93709
93710         Module getpass.
93711         * m4/getpass.m4: New file.
93712
93713         Module getugroups.
93714         * m4/getugroups.m4: New file.
93715
93716         Module group-member.
93717         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93718         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93719
93720         Module idcache.
93721         * m4/idcache.m4: New file.
93722
93723         Module userspec.
93724         * m4/userspec.m4: New file.
93725
93726         Module gettime.
93727         * m4/clock_time.m4: New file.
93728         * m4/gettime.m4: New file.
93729
93730         Module settime.
93731         * m4/settime.m4: New file.
93732
93733         Module posixtm.
93734         * m4/posixtm.m4: New file.
93735
93736         Module gethostname.
93737         * m4/gethostname.m4: New file.
93738
93739         Module canon-host.
93740         * m4/canon-host.m4: New file.
93741
93742         Module gettext.
93743         * m4/codeset.m4: New file, from gettext-0.11.5.
93744         * m4/gettext.m4: New file, from gettext-0.11.5.
93745         * m4/glibc21.m4: New file, from gettext-0.11.5.
93746         * m4/iconv.m4: New file, from gettext-0.11.5.
93747         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93748         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93749         * m4/inttypes.m4: New file, from gettext-0.11.5.
93750         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93751         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93752         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93753         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93754         * m4/lib-link.m4: New file, from gettext-0.11.5.
93755         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93756         * m4/progtest.m4: New file, from gettext-0.11.5.
93757         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93758         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93759         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93760
93761         Module localcharset.
93762         * m4/localcharset.m4: New file.
93763
93764         Module hard-locale.
93765         * m4/hard-locale.m4: New file.
93766
93767         Module mbswidth.
93768         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93769         onceonly macros.
93770         * m4/mbrtowc.m4: Add comment.
93771
93772         Module memcasecmp.
93773         * m4/memcasecmp.m4: New file.
93774
93775         Module memcoll.
93776         * m4/memcoll.m4: New file.
93777
93778         Module unicodeio.
93779         * m4/unicodeio.m4: New file.
93780
93781         Module rpmatch.
93782         * m4/rpmatch.m4: New file.
93783
93784         Module yesno.
93785         * m4/yesno.m4: New file.
93786
93787         Module exitfail.
93788         * m4/exitfail.m4: New file.
93789
93790         Module c-stack.
93791         * m4/c-stack.m4 (gl_C_STACK): New macro.
93792         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93793
93794         Module error.
93795         * m4/error.m4 (gl_ERROR): New macro.
93796         (jm_PREREQ_ERROR): Use onceonly macros.
93797
93798         Module fatal.
93799         * m4/fatal.m4: New file.
93800
93801         Module getloadavg.
93802         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93803         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93804
93805         Module getpagesize.
93806         * m4/getpagesize.m4: New file.
93807
93808         Module getusershell.
93809         * m4/getusershell.m4: New file.
93810
93811         Module physmem.
93812         * m4/physmem.m4: New file.
93813
93814         Module posixver.
93815         * m4/posixver.m4: New file.
93816
93817         Module quotearg.
93818         * m4/quotearg.m4: New file.
93819
93820         Module quote.
93821         * m4/quote.m4: New file.
93822
93823         Module readutmp.
93824         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93825
93826         Module sig2str.
93827         * m4/sig2str.m4: New file.
93828
93829         Other.
93830         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93831         ulonglong.m4.
93832         * m4/intmax_t.m4: New file.
93833         * m4/d-type.m4: Indentation.
93834         * m4/jm-macros.m4: Update.
93835         * m4/prereq.m4 (jm_PREREQ): Update.
93836         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93837         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93838         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93839         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93840         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93841         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93842         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93843         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93844         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93845         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93846         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93847         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93848         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93849         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93850         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93851         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93852         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93853         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93854         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93855
93856 2002-12-24  Bruno Haible  <bruno@clisp.org>
93857
93858         * MODULES.txt: Update according to m4/ changes.
93859
93860         Module gettext.
93861         * config.rpath: New file, from gettext-0.11.5.
93862
93863         * modules/*: New module descriptions.
93864         * gnulib-tool: New file.
93865         * MODULES.html.sh: New file.
93866
93867 2002-12-21  Karl Berry  <karl@gnu.org>
93868
93869         * doc/fdl.texi: update to version 1.2.
93870
93871 2002-12-19  Karl Berry  <karl@gnu.org>
93872
93873         * config/config.guess: update from prep.
93874
93875 2002-12-18  Bruno Haible  <bruno@clisp.org>
93876
93877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93878         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93879
93880 2002-12-17  Bruno Haible  <bruno@clisp.org>
93881
93882         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93883         stdlib.h, string.h.
93884
93885 2002-12-17  Bruno Haible  <bruno@clisp.org>
93886
93887         * lib/canon-host.c (strdup): Remove unused declaration.
93888
93889         * lib/fsusage.c: Include full_read.h.
93890         (get_fs_usage): Use full_read instead of safe_read.
93891
93892         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93893
93894 2002-12-12  Karl Berry  <karl@gnu.org>
93895
93896         * config/config.guess: update from prep.
93897
93898 2002-12-11  Bruno Haible  <bruno@clisp.org>
93899
93900         * m4/setenv.m4: New file, from gettext-0.11.5.
93901
93902 2002-12-11  Bruno Haible  <bruno@clisp.org>
93903
93904         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93905         not unsetenv().
93906         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93907         modifications:
93908
93909         2002-12-11  Bruno Haible  <bruno@clisp.org>
93910
93911                 * setenv.c (alloca): Fall back to malloc.
93912                 (freea): New macro.
93913                 (setenv): Use freea() to free memory allocated with alloca().
93914
93915         2002-11-13  Bruno Haible  <bruno@clisp.org>
93916
93917                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93918                 function declarations.
93919                 * unsetenv.c (unsetenv): Likewise.
93920
93921         2002-03-04  Bruno Haible  <bruno@clisp.org>
93922
93923                 Portability to AIX 4.3.3.
93924                 * unsetenv.c: New file, extracted from setenv.c.
93925                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93926
93927         2001-12-20  Bruno Haible  <bruno@clisp.org>
93928
93929                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93930                 use malloc instead. For SunOS 4.
93931
93932         2001-12-11  Bruno Haible  <bruno@clisp.org>
93933
93934                 * setenv.c: Declare alloca.
93935                 (compar_fn_t): New typedef.
93936                 (KNOWN_VALUE, STORE_VALUE): Use it.
93937
93938         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93939         setenv.h.
93940
93941 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93942
93943         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93944         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93945         Choose values that are less likely to collide with system fnmatch
93946         options.
93947         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93948         defined (e.g., a pure POSIX system).
93949         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93950         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93951
93952 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93953
93954         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93955         a pain in practice to deal with generated m4 files.  This change
93956         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93957
93958         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93959         and jm-glibc-io.m4, as they are no longer a special case.
93960         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93961         kludge and the auto-generation stuff.  Check only whether the
93962         functions are declared, not whether they exist, since older hosts
93963         that don't declare the functions can't use the optimization anyway.
93964
93965 2002-12-06  Jim Meyering  <jim@meyering.net>
93966
93967         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93968
93969         Merge in changes from libc's misc/error.c, in preparation
93970         for the merge of gnulib's changes back into libc.
93971
93972         * lib/error.c (_): Define only if not already defined.
93973         Move definition to follow all #include directives.
93974         Include unlocked-io.h only if !_LIBC.
93975         [_LIBC]: Include <libio/libioP.h>.
93976         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93977         (fflush): Tweak definition to use INTUSE.
93978         (putc): Define.
93979
93980 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93981
93982         * lib/alloca.c [defined emacs]: Include "lisp.h".
93983         (xalloc_die) [defined emacs]: New macro.
93984         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93985         [! defined emacs]: Include <xalloc.h>.
93986         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93987         (pointer): Typedef to POINTER_TYPE *.
93988         (malloc): Remove decl; we now always use xmalloc.
93989         (alloca): Use old-style definition, since Emacs needs this.
93990         Check for arithmetic overflow when computing combined size.
93991
93992 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93993
93994         Do not generate unlocked-io.h automatically, since it's easier to
93995         maintain it by hand.
93996
93997         * lib/unlocked-io.h: New file, from GNU diffutils,
93998         but with proper copyright notice and attribution.
93999         * lib/gen-uio: Remove.
94000         * lib/Makefile.am: Add copyright notice.
94001         (libfetish_a_SOURCES): Add unlocked-io.h.
94002         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94003         (DISTCLEANFILES, io_functions): Remove macros.
94004         (EXTRA_DIST): Remove gen_uio.
94005         (unlocked-io.h): Remove rule.
94006
94007 2002-12-04  Jim Meyering  <jim@meyering.net>
94008
94009         Reflect the fact that stat.c and lstat.c are no longer generated.
94010         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94011         (DISTCLEANFILES): Likewise.
94012         (EXTRA_DIST): Likewise.
94013         (all_local): Don't depend on stat.c or lstat.c.
94014         (stat.c, lstat.c): Remove rules.
94015         (EXTRA_DIST): Remove xstat.in.
94016
94017         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94018         * lib/stat.c: New file.  Contents mostly from xstat.in.
94019         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94020         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94021
94022         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94023         too.
94024         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94025
94026 2002-12-03  Jim Meyering  <jim@meyering.net>
94027
94028         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94029         but not semantics, to minimize the differences between these two files.
94030         (safe_read): Change comment to mention SAFE_READ_ERROR.
94031
94032         * lib/safe-read.c (IS_EINTR): Define.
94033         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94034
94035 2002-12-02  Jim Meyering  <jim@meyering.net>
94036
94037         * lib/safe-read.c (EINTR): Define.
94038         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94039         (INT_MAX): Provide fallback.
94040         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94041
94042         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94043
94044 2002-12-02  Bruno Haible  <bruno@clisp.org>
94045
94046         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94047         Define, taken from safe-read.c.
94048         (INT_MAX): Provide fallback.
94049         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94050         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94051
94052         * lib/safe-read.c (EINTR): Remove definition.
94053         (safe_read): Don't use EINTR if it is absent.
94054
94055 2002-12-01  Jim Meyering  <jim@meyering.net>
94056
94057         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94058         zero.
94059         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94060
94061 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94062
94063         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94064         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94065         with `if (! (value < limit)) abort ();', for readability.
94066
94067 2002-11-26  Karl Berry  <karl@gnu.org>
94068
94069         * lib/strdup.c: copy from libc again, with jim's ok.
94070         * lib/.cppi-disable: re-add strdup.c
94071
94072 2002-11-25  Karl Berry  <karl@gnu.org>
94073
94074         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94075         instead of "strtol.c".
94076
94077 2002-11-25  Karl Berry  <karl@gnu.org>
94078
94079         * config/install-sh: update from automake for variable quoting, $0 in
94080         error msgs, etc.
94081
94082         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94083         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94084         entry.
94085
94086 2002-11-25  Jim Meyering  <jim@meyering.net>
94087
94088         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94089
94090 2002-11-24  Karl Berry  <karl@gnu.org>
94091
94092         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94093         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94094
94095 2002-11-24  Jim Meyering  <jim@meyering.net>
94096
94097         Update from coreutils:
94098
94099         * lib/mktime.c: Merge in changes from libc.
94100
94101         Avoid a link-time failure on some Linux systems.
94102         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94103         (otherwise).
94104         (__mon_yday): Declare with the STATIC attribute.
94105         (__mktime_internal): Likewise.
94106         Based on a report from Greg Schafer.
94107
94108 2002-11-23  Jim Meyering  <jim@meyering.net>
94109
94110         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94111         Use `unsigned', not `int', as type of index.
94112
94113         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94114
94115         * lib/fsusage.c: Remove unneeded parentheses around operands of
94116         `defined'.
94117
94118 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94119
94120         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94121         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94122         so that we can be included first.
94123         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94124         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94125         No need to include stddef.h or sys/types.h any more.
94126         Surround local include files with "", not "<>".
94127         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94128         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94129         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94130         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94131         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94132         (ISPRINT): Remove; no longer needed now that we assume C89.
94133
94134         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94135         Preserve errno.
94136
94137         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94138         quotearg_char): Use SIZE_MAX rather than
94139         (size_t) -1 when we are talking about "infinity".
94140
94141         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94142
94143 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94144
94145         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94146         hint that one should use `if (! x) abort ();' rather than `assert
94147         (x);', and anyway it's one less thing to worry about configuring.
94148         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94149         hash_rehash, hash_insert): Use abort rather than assert.
94150
94151 2002-11-22  Bruno Haible  <bruno@clisp.org>
94152
94153         * lib/safe-read.h: Assume C89. Add comments.
94154         (safe_read): Change return type to size_t.
94155         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94156         byte counts > SSIZE_MAX correctly.
94157         * lib/safe-write.h: New file.
94158         * lib/safe-write.c: New file.
94159         * lib/full-read.h: New file.
94160         * lib/full-read.c: New file.
94161         * lib/full-write.h: Assume C89. Add comments.
94162         * lib/full-write.c: Include safe-write.h.
94163         (full_write): Rewritten to use safe_write.
94164         Suggested by Jim Meyering and Paul Eggert.
94165
94166 2002-11-21  Jim Meyering  <jim@meyering.net>
94167
94168         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94169
94170         Merge in changes from the coreutils.
94171
94172         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94173         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94174         <stdint.h>.
94175         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94176         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94177         int.  Work more efficiently if X is the same width as uintmax_t.
94178         Do not compare X to -1, to avoid bogus compiler warning.
94179         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94180         Don't assume that f_frsize and f_bsize are the same type.
94181
94182         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94183         warning on FreeBSD.
94184
94185         * lib/makepath.c (make_path): Restore umask *before* creating the final
94186         component.
94187         (make_path): Minor reformatting.
94188
94189         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94190         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94191         HAVE_MALLOC/HAVE_REALLOC.
94192
94193         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94194         dummy ones.  At least on GNU/Linux systems, `auto' means something
94195         else.
94196         From Michael Stone.
94197
94198 2002-11-21  Bruno Haible  <bruno@clisp.org>
94199
94200         Remove case insensitive option matching.
94201         * lib/argmatch.h (argcasematch): Remove declaration.
94202         (ARGCASEMATCH): Remove macro.
94203         (__xargmatch_internal): Remove case_sensitive argument.
94204         (XARGMATCH): Update.
94205         (XARGCASEMATCH): Remove macro.
94206         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94207         case_sensitive argument.
94208         (argcasematch): Remove function.
94209         (__xargmatch_internal): Remove case_sensitive argument.
94210         (main): Use XARGMATCH instead of XARGCASEMATCH.
94211
94212         * lib/xmalloc.c: Change compile-time error message. Add comment about
94213         required autoconf version.
94214
94215 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94216
94217         Merge argmatch cleanups from Bison.  Assume C89.
94218
94219         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94220         Include stdlib.h, for EXIT_FAILURE.
94221         Always include <string.h>, since we assume C89.
94222         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94223         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94224         Include <stddef.h> instead, since it's all we need for size_t.
94225         (PARAMS): Remove.  All uses removed.
94226         (ARRAY_CARDINALITY): Do not bother to #undef.
94227         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94228         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94229         Remove unnecessary parentheses.
94230         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94231         Insert necessary parentheses.
94232         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94233         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94234
94235 2002-11-19  Bruno Haible  <bruno@clisp.org>
94236
94237         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94238         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94239
94240         * lib/mbswidth.h (PARAMS): Remove macro.
94241         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94242         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94243
94244         * lib/gcd.h (PARAMS): Remove macro.
94245         (gcd): Use ANSI C function declarations.
94246         * lib/gcd.c (gcd): Likewise.
94247
94248 2002-11-15  Bruno Haible  <bruno@clisp.org>
94249
94250         * lib/strcspn.c: Include <stddef.h>.
94251         (strcspn): Use ANSI C function declaration. Change return type to
94252         size_t. Use NULL.
94253         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94254         (strpbrk): Use NULL.
94255         * lib/strpbrk.h (PARAMS): Remove macro.
94256         (strpbrk): Use ANSI C function declaration.
94257         * lib/strstr.c: Don't include <sys/types.h>.
94258         * lib/strstr.h (PARAMS): Remove macro.
94259         (strstr): Use ANSI C function declarations.
94260
94261 2002-11-14  Karl Berry  <karl@gnu.org>
94262
94263         * config/mkinstalldirs: `do' on separate line, instead of
94264         `for var; do'.
94265
94266 2002-11-06  Bruno Haible  <bruno@clisp.org>
94267
94268         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94269         * lib/gcd.c (gcd): Likewise.
94270
94271 2002-11-05  Bruno Haible  <bruno@clisp.org>
94272
94273         * lib/gcd.h: New file, from gettext-0.11.5.
94274         * lib/gcd.c: New file, from gettext-0.11.5.
94275
94276 2002-11-05  Bruno Haible  <bruno@clisp.org>
94277
94278         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94279         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94280         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94281         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94282
94283         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94284         <libintl.h>.
94285         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94286         <libintl.h>.
94287
94288         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94289         * lib/human.c: Include gettext.h instead of <libintl.h>.
94290         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94291         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94292         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94293         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94294         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94295         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94296         (textdomain): Remove definition.
94297         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94298
94299         * lib/long-options.c: Remove include of <libintl.h> and definition of
94300         _.
94301         * lib/same.c: Remove include of <libintl.h> and definition of _.
94302
94303 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94304
94305         * lib/config.charset: A few additions for Solaris.
94306
94307 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94308
94309         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94310         * lib/localcharset.c (locale_charset): Declare as extern "C".
94311
94312 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94313
94314         * lib/config.charset: msdos in uk_UA uses CP1125.
94315
94316 2002-11-04  Bruno Haible  <bruno@clisp.org>
94317
94318         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94319         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94320         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94321         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94322         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94323
94324 2002-11-04  Bruno Haible  <bruno@clisp.org>
94325
94326         * lib/localcharset.c (locale_charset): Don't return an empty string.
94327
94328 2002-11-04  Bruno Haible  <bruno@clisp.org>
94329
94330         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94331         aliases.
94332
94333 2002-11-04  Bruno Haible  <bruno@clisp.org>
94334
94335         * lib/config.charset: Update for newest glibc. Add canonical names
94336         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94337
94338 2002-11-04  Bruno Haible  <bruno@clisp.org>
94339
94340         * lib/config.charset: Add support for NetBSD.
94341
94342 2002-11-04  Bruno Haible  <bruno@clisp.org>
94343
94344         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94345
94346 2002-11-01  Bruno Haible  <bruno@clisp.org>
94347
94348         * configure.in: Add AC_CONFIG_AUX_DIR call.
94349         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94350         test/Makefile.
94351         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94352
94353 2002-09-28  Karl Berry  <karl@gnu.org>
94354
94355         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94356         installed automake until the next release, since changes have been
94357         made.
94358
94359 2002-09-25  Karl Berry  <karl@gnu.org>
94360
94361         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94362         * lib/getopt*: copy from libc/posix.
94363         * lib/gettext.h: copy from gettext.
94364         * lib/.cppi-disable: add strdup.c, gettext.h.
94365
94366 2002-09-25  Karl Berry  <karl@gnu.org>
94367
94368         * config/srclist.txt: enable gettext.h check.
94369         * config/config.{guess,sub}: update from prep.
94370         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94371                 from automake 1.6.3.
94372         See srclist*.
94373
94374 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94375
94376         * regex.c (PATFETCH): Remove the translating fetch.
94377         (PATFETCH_RAW): Rename to PATFETCH.
94378         (set_image_of_range): New fun.
94379         (SET_RANGE_TABLE_WORK_AREA): Use it.
94380         (regex_compile): Don't translate the pattern chars so eagerly.
94381         Only do it when inserting an `exactn' bytecode or when handling
94382         a char-range.
94383         (mutually_exclusive_p): Avoid empty statement.
94384
94385 2002-07-06  Jim Meyering  <meyering@lucent.com>
94386
94387         * m4/README: Don't mention Makefile.am.in.
94388         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94389
94390 2002-07-01  Jim Meyering  <meyering@lucent.com>
94391
94392         * lib/c-stack.c: Include sys/time.h.
94393         From Volker Borchert.
94394
94395 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94396
94397         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94398
94399 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94400
94401         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94402         New macro.  Use it uniformly instead of
94403         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94404         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94405         reported by Vin Shelton.
94406
94407 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94408
94409         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94410         Do not assume SA_SIGINFO behavior.
94411         Bug reported by Jim Meyering on NetBSD 1.5.2.
94412
94413 2002-06-22  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94416         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94417
94418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94419         now that configure.ac uses AC_GNU_SOURCE.
94420         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94421         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94422
94423         Update to latest tools.  Suggestions from Paul Eggert.
94424         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94425         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94426         * m4/fnmatch.m4: Likewise.
94427         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94428         to AC_HEADER_STDBOOL
94429
94430 2002-06-22  Jim Meyering  <meyering@lucent.com>
94431
94432         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94433         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94434
94435 2002-06-22  Jim Meyering  <meyering@lucent.com>
94436
94437         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94438
94439         * lib/exitfail.c, exitfail.h: Likewise.
94440         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94441
94442         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94443         of fnmatch.h.
94444         (EXTRA_DIST): Add fnmatch_loop.c.
94445         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94446
94447         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94448         * lib/fnmatch.c: Update from diffutils-2.8.2.
94449         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94450         * lib/fnmatch.h: Remove file.
94451
94452 2002-06-21  Jim Meyering  <meyering@lucent.com>
94453
94454         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94455         * m4/mbrtowc.m4: Likewise.
94456
94457         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94458         * m4/mbswidth.m4: Reflect name change:
94459         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94460         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94461
94462         * m4/lib-link.m4: Update from gettext-0.11.2.
94463         * m4/gettext.m4: Likewise.
94464
94465         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94466         From Alfred M. Szmidt.
94467
94468 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94469
94470         * lib/file-type.h: Report an error if neither S_ISREG nor
94471         S_IFREG is defined, instead of using a test specific to glibc
94472         2.2.  This should be safe, since POSIX requires S_ISREG and
94473         Unix Version 7 had S_IFREG.  We don't need to check for
94474         <sys/types.h> since we don't use any symbols that it defines.
94475
94476 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94477
94478         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94479         $@-t, so that each temporary file name is unique and valid in the first
94480         8 characters, for operation under DOS.
94481
94482 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94483
94484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94485
94486 2002-06-15  Jim Meyering  <meyering@lucent.com>
94487
94488         Work even with DJGPP 2.03, which lacks support for symlinks.
94489         From Richard Dawe.
94490         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94491         is defined.
94492         * lib/lchown.c (S_ISLNK): Likewise.
94493
94494 2002-06-15  Jim Meyering  <meyering@lucent.com>
94495
94496         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94497         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94498         have been included before this file.
94499
94500 2002-06-14  Jim Meyering  <meyering@lucent.com>
94501
94502         * lib/file-type.h: Use the version from diffutils-2.8.2.
94503         * lib/file-type.c: Likewise.
94504
94505 2002-06-07  Jim Meyering  <meyering@lucent.com>
94506
94507         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94508         They're needed at least for NetBSD 1.5.2.
94509         ($statxfs_includes): Include those same headers.
94510         ($statxfs_includes): Include sys/vfs.h if available.
94511         ($statxfs_includes): Likewise for sys/statvfs.h.
94512         Check for the following members in both structs statfs and statvfs:
94513         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94514
94515 2002-06-01  Jim Meyering  <meyering@lucent.com>
94516
94517         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94518         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94519
94520 2002-05-28  Jim Meyering  <meyering@lucent.com>
94521
94522         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94523         Reported by Volker Borchert.
94524
94525 2002-05-27  Jim Meyering  <meyering@lucent.com>
94526
94527         Fix a problem seen only on nonconforming systems whereby ls.c's
94528         use of localtime, and then of gettimeofday would cause trouble:
94529         the localtime call used to initialize rpl_gettimeofday's save
94530         mechanism would clobber ls's current local time information so
94531         that in any long listing the first file would always be listed
94532         with date 1970-01-01.  Analysis by Volker Borchert.
94533
94534         * lib/gettimeofday.c (localtime): Undefine.
94535         (rpl_localtime): New function.
94536
94537 2002-05-27  Jim Meyering  <meyering@lucent.com>
94538
94539         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94540         localtime.
94541
94542         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94543         use the replacement function; it wouldn't resolve at link time.
94544         Reported by Volker Borchert.
94545
94546 2002-05-22  Jim Meyering  <meyering@lucent.com>
94547
94548         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94549         file-type.h.
94550         * lib/file-type.h: New file.
94551         * lib/file-type.c (file_type): New file/function.  Extracted from
94552         diffutils.
94553
94554 2002-04-30  Jim Meyering  <meyering@lucent.com>
94555
94556         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94557
94558 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94559
94560         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94561
94562 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94563
94564         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94565         Do not check for alloca.h (no longer used) or stdbool.h (was never
94566         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94567
94568 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94569
94570         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94571
94572 2002-04-29  Jim Meyering  <meyering@lucent.com>
94573
94574         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94575         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94576         Use AC_FUNC_STRNLEN here instead.
94577
94578         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94579         With autoconf-2.53a, it's part of AC_PROG_CC.
94580
94581 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94582
94583         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94584         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94585
94586 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94587
94588         * lib/sig2str.h, lib/sig2str.c: New files.
94589         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94590
94591 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94592
94593         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94594         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94595         of 127, since 64 is the largest conceivable number for ancient
94596         nonstandard hosts.
94597         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94598
94599 2002-04-28  Jim Meyering  <meyering@lucent.com>
94600
94601         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94602
94603 2002-04-24  Jim Meyering  <meyering@lucent.com>
94604
94605         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94606         (jm_PREREQ): Use it.
94607
94608         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94609         mach/mach.h fcntl.h.
94610         Check for this function: setlocale.
94611
94612 2002-04-24  Jim Meyering  <meyering@lucent.com>
94613
94614         * lib/gettext.h: New file, from Gettext.
94615         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94616         (libfetish_a_SOURCES): Add gettext.h.
94617
94618 2002-04-16  Jim Meyering  <meyering@lucent.com>
94619
94620         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94621         ut_pid, ut_id, ut_exit.
94622
94623 2002-04-16  Jim Meyering  <meyering@lucent.com>
94624
94625         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94626         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94627         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94628
94629 2002-04-12  Jim Meyering  <meyering@lucent.com>
94630
94631         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94632         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94633         existence of the getmntinfo function.  Needed for Darwin 5.3.
94634
94635         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94636         This is necessary at least on Darwin 5.3.
94637
94638         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94639         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94640         strnlen.o in the library, and that makes some versions of ranlib
94641         object.
94642
94643 2002-04-12  Jim Meyering  <meyering@lucent.com>
94644
94645         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94646
94647 2002-04-09  Jim Meyering  <meyering@lucent.com>
94648
94649         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94650         to be more precise.  Rather than saying we're checking whether the
94651         function `works', say what we're testing.
94652         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94653         Reported by Bruno Haible.
94654
94655 2002-03-10  Jim Meyering  <meyering@lucent.com>
94656
94657         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94658         Suggestion from Santiago Vila.
94659
94660 2002-03-08  Jim Meyering  <meyering@lucent.com>
94661
94662         * lib/rename.c: Mention that this wrapper is needed also on
94663         mips-dec-ultrix4.4 systems.
94664
94665 2002-03-02  Jim Meyering  <meyering@lucent.com>
94666
94667         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94668         not HAVE_CLOCK_SETTIME.
94669
94670 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94671
94672         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94673         Check for clock_settime.
94674
94675 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94676
94677         * lib/nanosleep.h: Rename to....
94678         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94679
94680         * lib/gettime.c: New file.
94681         * lib/settime.c: New file.
94682         * lib/stime.c: Remove.
94683
94684         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94685         timespec.h.  Remove nanosleep.h.
94686
94687 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94688
94689         * m4/acl.m4: New file.
94690         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94691         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94692
94693 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94694
94695         * lib/acl.c, lib/acl.h: New files.
94696         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94697
94698 2002-02-24  Jim Meyering  <meyering@lucent.com>
94699
94700         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94701         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94702         cause trouble.  Reported by Nelson Beebe.
94703
94704 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94705
94706         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94707         compilers that don't know that xalloc_die never returns.
94708
94709 2002-02-20  Jim Meyering  <meyering@lucent.com>
94710
94711         * lib/getdate.c: Regenerate using bison-1.33.
94712
94713 2002-02-17  Jim Meyering  <meyering@lucent.com>
94714
94715         * config/config.guess (main): Don't use `head -1'; it's no longer
94716         portable. Use `sed 1q' instead.
94717
94718 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94719
94720         * m4/codeset.m4: Upgrade to gettext-0.11.
94721         * m4/gettext.m4: Upgrade to gettext-0.11.
94722         * m4/glibc21.m4: Upgrade to gettext-0.11.
94723         * m4/iconv.m4: Upgrade to gettext-0.11.
94724         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94725         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94726         * m4/lib-ld.m4: New file, from gettext-0.11.
94727         * m4/lib-link.m4: New file, from gettext-0.11.
94728         * m4/lib-prefix.m4: New file, from gettext-0.11.
94729         * m4/progtest.m4: Upgrade to gettext-0.11.
94730
94731 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94732
94733         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94734         (jm_PREREQ): Use it.
94735
94736 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94737
94738         * lib/posixver.c, lib/posixver.h: New files.
94739         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94740
94741 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94742             Bruno Haible  <bruno@clisp.org>
94743
94744         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94745         (fwrite_success_callback): New declaration.
94746         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94747         print_unicode_char. Call failure callback instead of error.
94748         (fwrite_success_callback): New function.
94749         (exit_failure_callback): New function.
94750         (fallback_failure_callback): New function.
94751         (print_unicode_char): Call unicode_to_mb.
94752
94753 2002-01-26  Jim Meyering  <meyering@lucent.com>
94754
94755         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94756         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94757
94758 2002-01-26  Jim Meyering  <meyering@lucent.com>
94759
94760         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94761
94762 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94763
94764         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94765
94766 2002-01-22  Jim Meyering  <meyering@lucent.com>
94767
94768         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94769         Otherwise, some versions of automake would omit the rule that makes
94770         Makefile from Makefile.in.
94771
94772 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94773
94774         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94775         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94776         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94777         (memcoll): Set errno to zero if there is no error.
94778
94779         * lib/quotearg.c (quotearg_buffer_restyled):
94780         Fix bug with quoting buffers containing NUL when backslashing escapes.
94781         This bug was exposed by the other changes in this patch.
94782         (quotearg_n_options): New arg ARGSIZE.
94783         All callers changed.
94784         (quoting_options_from_style): New function.
94785         (quotearg_n_style): Use it.
94786         (quotearg_n_style_mem): New function.
94787
94788         * lib/quotearg.h (quotearg_n_style_mem): New function.
94789
94790 2002-01-19  Jim Meyering  <meyering@lucent.com>
94791
94792         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94793         Remove useless quotes: DF_PROG="df".
94794         * m4/strnlen.m4: New file.
94795
94796 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94797
94798         * lib/backupfile.c (ISDIGIT): Comment fix.
94799         * lib/getdate.y (ISDIGIT): Likewise.
94800         * lib/posixtm.c (ISDIGIT, year): Likewise.
94801         * lib/strverscmp.c (ISDIGIT): Likewise.
94802         * lib/userspec.c (ISDIGIT): Likewise.
94803
94804 2002-01-16  Jim Meyering  <meyering@lucent.com>
94805
94806         * lib/getdate.y: Add three semicolons, each just before a closing
94807         brace. Bison (as of version 1.31) no longer papers over that mistake.
94808
94809 2002-01-05  Jim Meyering  <meyering@lucent.com>
94810
94811         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94812
94813 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94814
94815         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94816         not silently exit merely because the output buffer happens to
94817         have nothing pending.
94818
94819 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94820
94821         See the big note in ../ChangeLog.
94822         * lib/human.c (suffixes): Prefer K to k for 1024.
94823         (generate_suffix_backwards): New function.
94824         (human_readable_inexact): Use it.
94825         * lib/xstrtol.c (__xstrtol): If there is no number but there
94826         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94827         Accept 'K' as well as 'k'.
94828
94829 2001-12-15  Jim Meyering  <meyering@lucent.com>
94830
94831         * lib/regex.h (__restrict_arr): Update from libc.
94832
94833         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94834         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94835         (STREQ): Define.
94836
94837 2001-12-14  Jim Meyering  <meyering@lucent.com>
94838
94839         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94840         Suggestion from Bruno Haible.
94841
94842 2001-12-10  Jim Meyering  <meyering@lucent.com>
94843
94844         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94845         xrealloc, Instead, include "xalloc.h".
94846         (initbuffer): Don't cast xmalloc return value to char*.
94847         (readline): Reword comment.
94848         Don't cast xrealloc return value to char*
94849         Return NULL, not 0.
94850
94851 2001-12-09  Jim Meyering  <meyering@lucent.com>
94852
94853         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94854         about `signed and unsigned type in conditional expression'.
94855         * lib/posixtm.c (posix_time_parse): Likewise.
94856
94857         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94858
94859         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94860         to avoid a pedantic warning.
94861
94862         * lib/getstr.c: Don't include assert.h.
94863         (getstr): Remove warning-evoking assertions.
94864         Return -1 if offset parameter is out of bounds.
94865         Change the type of a local from int to size_t.
94866
94867         * lib/strftime.c (my_strftime_localtime_r): Include this function
94868         definition in the `#if ! HAVE_TM_GMTOFF' block.
94869
94870         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94871         Include xalloc.h instead.
94872
94873 2001-12-02  Jim Meyering  <meyering@lucent.com>
94874
94875         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94876         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94877         included.
94878
94879         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94880         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94881
94882 2001-11-30  Akim Demaille  <akim@epita.fr>
94883
94884         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94885         before being defined.
94886
94887 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94888
94889         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94890         First arg is int, not unsigned.
94891         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94892         (SIZE_MAX, UINT_MAX): New macros.
94893         (quotearg_n_options): Abort if N is negative.
94894         Avoid overflow check on hosts where size_t is 64 bits and int
94895         is 32 bits, as overflow is impossible there.
94896         Fix off-by-one typo that caused unnecessary reallocation.
94897
94898 2001-11-27  Jim Meyering  <meyering@lucent.com>
94899
94900         * lib/tempname.c: Merge with version from libc.
94901         * lib/regex.c: Likewise.
94902
94903         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94904         systems for which STDC_HEADERS is 0, it was not included, resulting in
94905         a warning about an integer-to-pointer conversion problem with getenv.
94906         Reported by Volker Borchert.
94907
94908 2001-11-26  Jim Meyering  <meyering@lucent.com>
94909
94910         * lib/gtod.h: Remove file.
94911         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94912         * lib/gettimeofday.c: Don't include gtod.h.
94913         (GTOD_init): Remove function.
94914         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94915         Suggestion from Volker Borchert.
94916
94917 2001-11-23  Jim Meyering  <meyering@lucent.com>
94918
94919         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94920         it.
94921         * lib/hash.c (struct hash_table): Define it here instead.
94922
94923 2001-11-22  Jim Meyering  <meyering@lucent.com>
94924
94925         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94926
94927 2001-11-20  Jim Meyering  <meyering@lucent.com>
94928
94929         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94930         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94931
94932 2001-11-19  Jim Meyering  <meyering@lucent.com>
94933
94934         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94935         directory.  Use "conftestXXXXXX" as the template.
94936         Suggestion from Paul Eggert.
94937
94938         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94939         immediately, so the test doesn't mistakenly hit the max-open-files
94940         limit.
94941
94942 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94943
94944         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94945         (TEMPORARIES): New macro.
94946         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94947         removes an artificial limitation (e.g. HP-UX 10.20, where
94948         TMP_MAX is 17576).
94949
94950 2001-11-18  Jim Meyering  <meyering@lucent.com>
94951
94952         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94953
94954 2001-11-18  Jim Meyering  <meyering@lucent.com>
94955
94956         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94957         on SunOS 4.
94958
94959         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94960         files will be created before anything else.
94961
94962 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94963
94964         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94965         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94966
94967 2001-11-17  Jim Meyering  <meyering@lucent.com>
94968
94969         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94970         Prompted by a report from Bob Proulx.
94971
94972         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94973         Instead, require UTILS_FUNC_MKSTEMP.
94974
94975 2001-11-17  Jim Meyering  <meyering@lucent.com>
94976
94977         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94978         Now, that's done as part of AC_FUNC_STRTOD.
94979
94980 2001-11-17  Jim Meyering  <meyering@lucent.com>
94981
94982         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94983         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94984         rather than group writable.  Patch by Juan F. Codagnone.
94985
94986         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94987         xrealloc, Instead, include "xalloc.h".
94988
94989         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94990         Remove explicit declarations of xmalloc, xrealloc,
94991         and xstrdup.  Instead, include "xalloc.h".
94992
94993         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94994         unlocked-io.h.
94995         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94996         Likewise.
94997         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94998
94999         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95000         Reported by Padraig Brady.
95001
95002         * lib/mkstemp.c: #undef mkstemp.
95003         Include config.h.
95004         (rpl_mkstemp): Rename from mkstemp.
95005         Protoize.
95006
95007 2001-11-16  Jim Meyering  <meyering@lucent.com>
95008
95009         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95010         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95011         determine the amount of total physical memory, use pstat_getstatic.
95012         HPUX-11 doesn't define _SC_PHYS_PAGES.
95013         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95014         If sysconf couldn't be used to determine the amount of available
95015         physical memory, use both pstat_getstatic and pstat_getdynamic.
95016         Based on a patch from Bob Proulx.
95017
95018 2001-11-10  Jim Meyering  <meyering@lucent.com>
95019
95020         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95021         (jm_PREREQ): Use it.
95022
95023 2001-11-09  Jim Meyering  <meyering@lucent.com>
95024
95025         * m4/jm-macros.m4: Require autoconf-2.52f.
95026         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95027         Use these AC_-prefixed names, not the AM_-prefixed ones.
95028
95029         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95030
95031 2001-11-05  Jim Meyering  <meyering@lucent.com>
95032
95033         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95034
95035 2001-11-04  Jim Meyering  <meyering@lucent.com>
95036
95037         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95038         $DEFS.
95039
95040 2001-11-03  Jim Meyering  <meyering@lucent.com>
95041
95042         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95043         of AC_DEFUN.
95044
95045         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95046         know the name of the variable in the macro definition.
95047
95048 2001-11-03  Jim Meyering  <meyering@lucent.com>
95049
95050         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95051         in argmatch_to_argument call.
95052
95053         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95054         argument.
95055
95056         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95057         e.g., a fault due to an attempt to free a NULL pointer.
95058
95059 2001-11-01  Jim Meyering  <meyering@lucent.com>
95060
95061         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95062         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95063
95064 2001-11-01  Jim Meyering  <meyering@lucent.com>
95065
95066         * lib/dirfd.c, lib/dirfd.h: New files.
95067         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95068
95069         * lib/hash.c (hash_print) [TESTING]: Clean up.
95070
95071 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95072
95073         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95074         to avoid a warning if -Wall.
95075
95076 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95077
95078         * README: New file
95079         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95080         (per RMS's instructions, this is now the canonical source)
95081         * lgpl/, gpl/: New directories.
95082
95083 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95084
95085         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95086
95087 2001-10-21  Jim Meyering  <meyering@lucent.com>
95088
95089         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95090         this code would end up calling gettext even in packages built
95091         with --disable-nls.
95092         * lib/getopt.c (_): Likewise.
95093         * lib/regex.c (_): Likewise.
95094
95095 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95096
95097         * m4/error.m4 (jm_PREREQ_ERROR):
95098         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95099         AC_FUNC_STRERROR_R does that.
95100         Check for strerror declaration.
95101
95102         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95103         are supposed to have them these days.
95104         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95105         Merge changes from latest Autoconf CVS.
95106         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95107         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95108         POSIX decided to standardize on the int flavor of strerror_r.
95109
95110 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95111
95112         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95113         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95114         Use strerror_r that is only a macro, even if it is not a function.
95115         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95116         (private_strerror): Use prototypes, not old-style function definition.
95117         (print_errno_message): New function.
95118         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95119         char*-flavored one.
95120         (error_tail, error, error_at_line): Use it.
95121
95122 2001-10-11  Jim Meyering  <meyering@lucent.com>
95123
95124         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95125         and quote_n (1, ... to avoid clobbering a buffer.
95126
95127 2001-10-05  Jim Meyering  <meyering@lucent.com>
95128
95129         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95130         hash-pjw.h.
95131         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95132         * lib/hash-pjw.h: New file.
95133
95134 2001-09-30  Jim Meyering  <meyering@lucent.com>
95135
95136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95137         `struct fsstat' has the `f_fstypename' member.
95138         Use that to define FS_TYPE, which is now used to make
95139         the getfsstat link test tighter.
95140
95141 2001-09-30  Jim Meyering  <meyering@lucent.com>
95142
95143         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95144         Include <sys/ucred.h>, for Apple Darwin.
95145         Include sys/mount.h and sys/fs_types.h only if available.
95146         (FS_TYPE): Define.
95147         (read_filesystem_list): Use FS_TYPE.
95148
95149 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95150
95151         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95152         a boolean context.
95153
95154 2001-09-29  Jim Meyering  <meyering@lucent.com>
95155
95156         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95157         [one-argument getmntent function]): Include stdio.h before mntent.h.
95158         SunOS 4.1.x needs it for the declaration of `FILE'.
95159         Patch by Volker Borchert.
95160
95161         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95162         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95163         sys/fs_types.h, and make the link-test for getfsstat guard #include
95164         directives with appropriate #if HAVE_*_H tests so that we can
95165         detect getfsstat on Apple Darwin1.3.7 systems.
95166         Reported by Nelson Beebe.
95167         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95168
95169 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95170
95171         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95172         #defines strtoimax.  Also treat the other strto* functions
95173         like strtoimax.
95174
95175         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95176         Check for strtoul and strtoumax,
95177         as those declarations are made even in the signed case.
95178         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95179         Likewise, for strtol and strtoimax.
95180
95181 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95182
95183         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95184         #defines strtoimax.  Also treat the other strto* functions
95185         like strtoimax.
95186
95187         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95188         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95189         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95190
95191 2001-09-26  Jim Meyering  <meyering@lucent.com>
95192
95193         Most macros in unlocked-io.h had the wrong number of arguments.
95194         * lib/gen-uio: New script.
95195         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95196         * lib/unlocked-io.hin: Remove file.
95197         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95198         rather than trying to embed it here.
95199         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95200         Reported by Padraig Brady.
95201
95202 2001-09-25  Volker Borchert  <bt@teknon.de>
95203
95204         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95205         `result'.
95206
95207 2001-09-24  Jim Meyering  <meyering@lucent.com>
95208
95209         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95210
95211 2001-09-23  Jim Meyering  <meyering@lucent.com>
95212
95213         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95214         instead of the mere test for existence of mntent.h.  The latter
95215         would get a false-positive on AIX 3.4 systems.
95216         In the outer getmntent if-block, don't die if neither of the getmntent
95217         tests succeeds.  Instead, just fall through and continue with the
95218         remaining tests.
95219
95220 2001-09-23  Jim Meyering  <meyering@lucent.com>
95221
95222         * lib/mountlist.c: Remove useless parentheses in #if directives.
95223         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95224         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95225
95226 2001-09-22  Jim Meyering  <meyering@lucent.com>
95227
95228         * m4/gettext.m4: New file.  From gettext.
95229         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95230         * m4/progtest.m4: Likewise
95231         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95232         * m4/glibc21.m4: Likewise.
95233
95234         * m4/libintl.m4: Remove.  No longer used.
95235
95236 2001-09-22  Jim Meyering  <meyering@lucent.com>
95237
95238         * lib/localcharset.c: Update from latest gettext.
95239         * lib/config.charset: Likewise.
95240
95241 2001-09-20  Jim Meyering  <meyering@lucent.com>
95242
95243         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95244         strtoimax.
95245         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95246         strtoumax.
95247
95248 2001-09-20  Jim Meyering  <meyering@lucent.com>
95249
95250         * lib/xstrtol.c (strtoimax): Guard declaration with
95251         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95252         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95253         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95254         (strtoumax): Likewise, for completeness (it wasn't necessary).
95255
95256 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95257
95258         * lib/strtoimax.c (HAVE_LONG_LONG):
95259         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95260         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95261         to work around bug in IBM C compiler.
95262
95263 2001-09-17  Jim Meyering  <meyering@lucent.com>
95264
95265         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95266         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95267         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95268         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95269         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95270         whenever the right hand side need not be expanded by the shell.
95271
95272 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95273
95274         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95275         library.  It's not correct, as some older glibcs are buggy.
95276         fnmatch wasn't fixed until glibc 2.2.
95277
95278         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95279         special shell magic here.
95280
95281 2001-09-16  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95284         * m4/jm-macros.m4: Require it.
95285
95286 2001-09-16  Jim Meyering  <meyering@lucent.com>
95287
95288         * lib/mkdir.c: New file.
95289
95290 2001-09-15  Jim Meyering  <meyering@lucent.com>
95291
95292         * m4/jm-macros.m4: Check for help2man.
95293
95294 2001-09-11  Jim Meyering  <meyering@lucent.com>
95295
95296         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95297         The body, by Paul Eggert, was moved here from configure.in.
95298         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95299
95300 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95301
95302         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95303         (jm_PREREQ): Use it.
95304
95305 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95306
95307         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95308         Use ssize_t, not int, to store result of readlink.
95309         Check for ssize_t overflow as well as size_t overflow,
95310         as POSIX says the result of readlink is implementation-defined
95311         when ssize_t overflows.
95312         Remove unnecessary cast to char*.
95313         Use free+malloc instead of realloc, as the storage doesn't need
95314         to be preserved and it's clearer and can be more efficient that way.
95315         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95316         * lib/xreadlink.h (xreadlink): Update prototype.
95317
95318 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95319
95320         * lib/xgetcwd.c: Revert some of the previous change; intead,
95321         fix the HAVE_GETCWD_NULL code to behave more like the
95322         !HAVE_GETCWD_NULL code used to.
95323
95324         Include "xalloc.h".
95325         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95326         invoke xalloc_die.
95327
95328 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95329
95330         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95331         sys/param.h, as pathmax.h includes them.
95332
95333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95334
95335         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95336         (jm_PREREQ_XGETCWD): New macro.
95337
95338         * m4/getcwd.m4: New file.
95339
95340 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95341
95342         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95343         like the HAVE_GETCWD_NULL code.
95344         Include pathmax.h if not HAVE_GETCWD.
95345         Do not include xalloc.h.
95346         (INITIAL_BUFFER_SIZE): New symbol.
95347         Do not use xmalloc / xrealloc, since the caller is responsible for
95348         handling errors.  Preserve errno around `free' during failure.
95349         Do not overrun buffer when using getwd.
95350
95351 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95352
95353         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95354         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95355         getcwd (NULL, 0).
95356
95357 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95358
95359         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95360         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95361         spotted by Jim Meyering.
95362
95363 2001-09-03  Jim Meyering  <meyering@lucent.com>
95364
95365         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95366         failure.
95367
95368 2001-09-02  Jim Meyering  <meyering@lucent.com>
95369
95370         * lib/error.c: Update from GNU libc.
95371
95372 2001-09-01  Jim Meyering  <meyering@lucent.com>
95373
95374         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95375         Used by df.
95376
95377 2001-09-01  Jim Meyering  <meyering@lucent.com>
95378
95379         * lib/xreadlink.c: New file.
95380         * lib/xreadlink.h: New file.
95381         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95382         xreadlink.h.
95383
95384         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95385         doesn't conflict with sparc Solaris 7's definition in
95386         /usr/include/sys/int_types.h.
95387
95388         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95389         files.
95390         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95391         and strncasecmp as r-values.  Unixware didn't have declarations.
95392
95393 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95394
95395         * lib/xstrtol.h: Add copyright notice.
95396         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95397         LONGINT_INVALID_SUFFIX_CHAR.
95398
95399 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95400
95401         * lib/xstrtol.c (strtoimax): New decl.
95402
95403 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95404
95405         * lib/xgetcwd.c: Don't include pathmax.h.
95406         Include stdlib.h and unistd.h if available.
95407         Include xalloc.h.
95408         (xmalloc, xstrdup, free): Remove decls.
95409         (xgetcwd): Don't assume sizes fit in unsigned.
95410         Check for overflow when computing sizes.
95411         Simplify reallocation code.
95412
95413 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95414
95415         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95416         a directory's st_size can have an arbitrary value, so the old
95417         usage could waste an arbitrary amount of memory.  All uses
95418         changed.
95419         * lib/savedir.h: Update prototype.
95420
95421 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95422
95423         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95424
95425         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95426         old strtoimax.c.
95427
95428         Also, make the following further changes to make this file's
95429         configuration more similar to that of strtol.c:
95430         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95431         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95432         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95433         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95434         changed to signed values.
95435
95436         And make the following changes as well:
95437         Fix copyright notice, as 1999 was missing.
95438         (verify): New macro.
95439         (strtoimax): Check sizes at compile-time, not run-time.
95440         Prefer strtol to strtoll if both work.
95441         (main): Remove; it was not that useful and was a pain to maintain.
95442
95443         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95444
95445 2001-08-31  Jim Meyering  <meyering@lucent.com>
95446
95447         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95448         Use an initial, malloc'd, buffer of length 128 rather than
95449         a statically allocated one of length 1024.
95450
95451 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95452
95453         Simplify code, partly by assuming autoconf 2.52 semantics.
95454
95455         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95456
95457         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95458         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95459         All uses removed.
95460         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95461         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95462         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95463         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95464         jm_AC_HEADER_INTTYPES_H.
95465         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95466
95467         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95468
95469         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95470         Quote first arg of AC_DEFUN.
95471         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95472         since they are needed to parse the include file even if we need
95473         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95474         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95475         but with opposite signedness.
95476
95477 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95478
95479         Merge 'exclude' changes from tar 1.13.22.
95480         This fixes one or two unlikely storage allocation overflow bugs,
95481         but doesn't change user-visible behavior otherwise.
95482
95483 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95484
95485         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95486         (jm_PREREQ_EXCLUDE): New macro.
95487
95488 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95489
95490         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95491         tm to be declared.
95492
95493 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95494
95495         * lib/hash.c: Remove '2001' from copyright notice.
95496
95497 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95498
95499         * lib/full-write.h: New file.
95500         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95501         * lib/full-write.c: Correct credits, as cccp.c no longer
95502         exists and anyway it was so heavily changed from the old cccp
95503         code as to be unrecognizable.  Include full-write.h.
95504         (full_write): Return size_t, with short writes meaning failure.
95505         All callers changed.  This fixes a bug with large buffers
95506         on 64-bit hosts.
95507         * lib/utime.c: Include full-write.h.
95508
95509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95510
95511         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95512         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95513         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95514         Include if available.
95515         (<xalloc.h>): Include
95516         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95517         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95518         collide with FNM macros.
95519         (struct patopts): New struct.
95520         (struct exclude): Use it, as exclude patterns now come with options.
95521         (new_exclude): Support above changes.
95522         (new_exclude, add_exclude_file):
95523         Initial size must now be a power of two to simplify overflow checking.
95524         (free_exclude, fnmatch_no_wildcards): New function.
95525         (excluded_filename): No longer requires options arg, as the options
95526         are determined by add_exclude.  Now returns bool, not int.
95527         (excluded_filename, add_exclude):
95528         Add support for the fancy new exclusion options.
95529         (add_exclude, add_exclude_file): Now takes int options arg.
95530         Check for arithmetic overflow when computing sizes.
95531         (add_exclude_file): xrealloc might modify errno, so don't
95532         realloc until after errno might be used.
95533
95534         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95535         New macros.
95536         (free_exclude): New decl.
95537         (add_exclude, add_exclude_file): Now takes int options arg.
95538         (excluded_filename): No longer requires options arg, as the options
95539         are determined by add_exclude.  Now returns bool, not int.
95540
95541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95542
95543         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95544
95545 2001-08-27  Jim Meyering  <meyering@lucent.com>
95546
95547         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95548
95549         * lib/version-etc.c (N_): Remove definition.
95550         Revert most of last change.
95551         Instead, simply don't mark the `Copyright...' string for translation.
95552         Based on advice from Paul Eggert.
95553
95554         * lib/strtoxmax.c: Tweak comment.
95555
95556 2001-08-26  Jim Meyering  <meyering@lucent.com>
95557
95558         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95559
95560         * m4/xstrtoimax.m4: New file.
95561         * m4/xstrtoumax.m4: Add comments explaining why we
95562         AC_REPLACE_FUNCS(strtol).
95563
95564 2001-08-26  Jim Meyering  <meyering@lucent.com>
95565
95566         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95567         of copyright with `%s' so translators don't get an untranslated
95568         message in 2002.
95569         (COPYRIGHT_YEAR): Define.
95570         (version_etc): Use fprintf rather than fputs.
95571         Suggestion from Ulrich Drepper.
95572
95573         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95574
95575         * lib/strtoll.c: New file, from GNU libc.
95576         * lib/xstrtoimax.c: New file.
95577
95578         * lib/xstrtol.h: Add xstrtoimax.
95579         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95580         * lib/strtoimax.c: New file.  Likewise, but first define
95581         STRTOUXMAX_SIGNED.
95582
95583         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95584         ...
95585         * lib/strtoxmax.c: ... then renamed to this.
95586
95587 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95588
95589         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95590         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95591         (jm_AC_TYPE_INTMAX_T): New macro.
95592         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95593
95594         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95595
95596         * m4/longlong.m4: Renamed from ulonglong.m4.
95597         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95598         * m4/uintmax_t.m4: Removed.
95599
95600 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95601
95602         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95603         Port to Solaris 8, where 'sed' requires a space after the 'r'
95604         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95605         Redirect output to $tmp just once.
95606
95607 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95608
95609         * lib/addext.c (<errno.h>): Include.
95610         (errno): Declare if not defined.
95611         (addext): Work correctly when pathconf returns -1 and leaves
95612         errno alone because there is no limit.  Also, work even if
95613         pathconf returns a value greater than SIZE_MAX.
95614
95615 2001-08-12  Jim Meyering  <meyering@lucent.com>
95616
95617         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95618         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95619         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95620         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95621         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95622         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95623         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95624         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95625         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95626         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95627         utime.m4, utimes.m4, xstrtoumax.m4:
95628         Quote the first argument in each use of AC_DEFUN.
95629
95630 2001-08-12  Jim Meyering  <meyering@lucent.com>
95631
95632         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95633         Simply `return getcwd (NULL, 0);'.
95634         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95635         Use 1300 as initial value for length, not PATH_MAX.
95636
95637         * lib/pathmax.h: Clean up cpp syntax.
95638
95639 2001-08-12  Jim Meyering  <meyering@lucent.com>
95640
95641         * lib/gettimeofday.c: New file.
95642         * lib/gtod.h: New file.
95643         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95644
95645 2001-08-05  Jim Meyering  <meyering@lucent.com>
95646
95647         * m4/jm-macros.m4: Require autoconf-2.52.
95648
95649 2001-08-04  Jim Meyering  <meyering@lucent.com>
95650
95651         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95652         stmt, to get in sync with glibc.
95653
95654 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95655
95656         The following changes are from gettext 0.10.39 as maintained by
95657         Bruno Haible.
95658
95659         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95660         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95661         with inverted sense.  All uses changed.
95662
95663         * lib/mbswidth.c: Don't include <limits.h>.
95664         Include <stdlib.h> and <string.h> unconditionally.
95665         (iswcntrl, mbsinit, ISCNTRL): New macros.
95666         (mbsnwidth): Use K&R style function declarations.
95667         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95668         can optimize it when MB_CUR_MAX == 1.
95669         The width of control characters is zero, not 1.
95670
95671 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95672
95673         The following changes are from gettext 0.10.39 as maintained by
95674         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95675
95676         * m4/codeset.m4: Upgrade to serial AM1.
95677         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95678         all uses changed.  Quote first arg of AC_DEFUN.
95679         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95680
95681         * m4/iconv.m4: Upgrade to serial AM2.
95682         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95683         Add --with-libconv-prefix.
95684         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95685         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95686         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95687         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95688         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95689
95690         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95691         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95692         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95693         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95694         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95695         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95696         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95697         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95698         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95699
95700         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95701         string.h any more.
95702
95703         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95704         not the default value.
95705
95706         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95707         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95708         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95709         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95710         Also check for iswcntrl, used for wcwidth fallback.
95711         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95712         to Autoconf 2.13.
95713
95714 2001-08-03  Jim Meyering  <meyering@lucent.com>
95715
95716         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95717         as it was in the original.  Reported by Paul Eggert.
95718
95719 2001-07-16  Jim Meyering  <meyering@lucent.com>
95720
95721         * m4/gettimeofday.m4: New file.
95722         Prompted by a report from Bernhard Baehr.
95723
95724 2001-07-15  Jim Meyering  <meyering@lucent.com>
95725
95726         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95727         stuff. Now it's in ../Makefile.cfg.
95728
95729 2001-07-15  Jim Meyering  <meyering@lucent.com>
95730
95731         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95732         (BUILT_SOURCES): Add unlocked-io.h.
95733         (io_functions): Define.
95734         (unlocked-io.h): New rule.
95735         (DISTCLEANFILES): Add unlocked-io.h.
95736         (all-local): Depend on unlocked-io.h, to ensure it is created.
95737
95738         * lib/unlocked-io.hin: New file
95739
95740         * lib/regex.c: Update from glibc.
95741
95742 2001-07-05  Jim Meyering  <meyering@lucent.com>
95743
95744         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95745         recommendation.
95746         (libfetish_a_SOURCES): Put all .h files here instead.
95747         Remove a thus-exposed (better checks in automake) duplicate and
95748         two unnecessary .h files.
95749
95750 2001-07-04  Jim Meyering  <meyering@lucent.com>
95751
95752         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95753         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95754         distcheck failure.
95755
95756 2001-07-02  Jim Meyering  <meyering@lucent.com>
95757
95758         The following changes were prompted by suggestions from Bruno Haible.
95759
95760         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95761         is now generated.
95762         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95763         definition of EXTRA_DIST.
95764         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95765         ensure that the generated file is created/updated whenever the list
95766         of $(unlocked_functions) is changed.
95767         (jm-glibc-io.m4): New rule.
95768         (unlocked-io.h): New rule -- currently unused.
95769
95770 2001-06-24  Jim Meyering  <meyering@lucent.com>
95771
95772         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95773         unmatched right bracket, rather than kludging it with an extra,
95774         falsely-matching quote in a comment.  Patch by Akim Demaille.
95775
95776 2001-06-11  Jim Meyering  <meyering@lucent.com>
95777
95778         * lib/regex.c: Update from GNU libc.
95779
95780 2001-05-27  Jim Meyering  <meyering@lucent.com>
95781
95782         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95783         Check for ut_type in struct utmp.
95784
95785 2001-05-27  Jim Meyering  <meyering@lucent.com>
95786
95787         * lib/readutmp.h (UT_TYPE): Define.
95788
95789 2001-05-24  Jim Meyering  <meyering@lucent.com>
95790
95791         * lib/argmatch.c: Include "quote.h".
95792         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95793         quote function.  Reported by Göran Uddeborg.
95794
95795 2001-05-22  Jim Meyering  <meyering@lucent.com>
95796
95797         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95798         now that we use the package-supplied version unconditionally.
95799         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95800
95801 2001-05-21  Jim Meyering  <meyering@lucent.com>
95802
95803         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95804         shell syntax errors.
95805
95806 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95807
95808         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95809
95810 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95811
95812         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95813         Don't bother to check library strftime, since
95814         we'll be using our own my_strftime function anyway.
95815         Define my_strftime instead of strftime.
95816
95817 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95818
95819         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95820         which is not yet declared.
95821
95822 2001-05-15  Jim Meyering  <meyering@lucent.com>
95823
95824         * m4/regex.m4: Use proper quoting so brackets appear in the test
95825         program.
95826         Reported by, and with help from, Bruno Haible.
95827
95828 2001-05-13  Jim Meyering  <meyering@lucent.com>
95829
95830         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95831         undefined.
95832
95833 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95834
95835         dirname code cleanup.  base_name now behaves more compatibly
95836         with POSIX basename when given file names that have trailing
95837         slashes, and similarly for dir_name.  Add new primitives
95838         base_len and dir_len.  Put the directory-name-related decls
95839         into dirname.h.
95840
95841         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95842         * lib/backupfile.c (base_name): Likewise.
95843         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95844         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95845         * lib/makepath.c (strip_trailing_slashes): Likewise.
95846         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95847         ISSLASH): Likewise.
95848         * lib/rename.c (strip_trailing_slashes): Likewise.
95849         * lib/same.c (base_name): Likewise.
95850         * lib/stripslash.c (ISSLASH): Likewise.
95851
95852         * lib/addext.c: Include <dirname.h> after size_t is defined.
95853         * lib/backupfile.c: Likewise.
95854
95855         * lib/addext.c (addext): Use base_len to trim redundant
95856         trailing slashes instead of doing it ourselves.
95857         But do not trim the last slash if it is not redundant.
95858
95859         * lib/backupfile.c (find_backup_file_name,
95860         max_backup_version): Use base_len instead of rolling it ourselves.
95861         Handle the case of "" and (on DOS) "C:" correctly.
95862
95863         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95864         needed. Include <string.h>, <dirname.h>.
95865         (base_name): Allow file names ending in slashes, other than names
95866         that are all slashes.  In this case, return the basename followed
95867         by the slashes.  This is more general, and can be used in places
95868         where the original base_name purposely had an assertion failure.
95869         (base_len): New function.
95870
95871         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95872         Do not include <assert.h>; no longer needed.
95873         Include xalloc.h.
95874         (memrchr): Remove decl.
95875         (dir_name_r): Remove.
95876         (dir_len): Renamed from dirlen.  All callers changed.
95877         Rewrite in terms of base_name, for simplicity and consistency.
95878         (dir_name): Never return NULL.  All callers changed.
95879         Do not include <stdlib.h> in test program; no longer needed.
95880         return 0; is fine for test program.
95881
95882         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95883         New macros.
95884         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95885
95886         * lib/path-concat.c (path_concat): Use base_len to compute
95887         base length, not strlen; this means we cannot rely on memcpy
95888         to null-terminate.
95889
95890         * lib/same.c (STREQ): Remove.
95891         (same_name): Handle the case where the basename ends in trailing '/'.
95892
95893         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95894         a slash was stripped.  Do not strip the last slash after a
95895         file system prefix.
95896
95897 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95898
95899         * lib/Makefile.am (libfetish_a_SOURCES):
95900         Add strftime.c, since we now compile it on all hosts.
95901
95902         * lib/strftime.c (my_strftime):
95903         Define to nstrftime if emacs, but only if my_strftime is not defined.
95904         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95905         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95906         Add one more extra argument: a nanoseconds value.
95907         All uses changed.
95908         (ns): New macro.
95909         (my_strftime function): Add %N format.
95910         (emacs_strftimeu): Renamed from emacs_strftime,
95911         with extra ut argument.
95912
95913 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95914
95915         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95916
95917 2001-04-21  Jim Meyering  <meyering@lucent.com>
95918
95919         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95920         doesn't interfere.
95921
95922 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95923
95924         * m4/ftruncate.m4: Check for chsize.
95925         Link with ftruncate.o unconditionally if ftruncate is missing.
95926         This was required when cross-compiling to i586-mingw32msvc.
95927
95928 2001-04-08  Jim Meyering  <meyering@lucent.com>
95929
95930         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95931         recomputed; that's necessary when the offset spans a DST transition.
95932         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95933
95934 2001-04-02  Jim Meyering  <meyering@lucent.com>
95935
95936         * lib/regex.h, regex.c: Update from GNU libc.
95937
95938 2001-03-24  Jim Meyering  <meyering@lucent.com>
95939
95940         * m4/jm-macros.m4: Require autoconf-2.49d.
95941
95942 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95943
95944         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95945
95946 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95947
95948         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95949
95950 2001-03-17  Jim Meyering  <meyering@lucent.com>
95951
95952         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95953         now that the version in autoconf is equivalent.
95954         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95955
95956         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95957         Suggestion from Akim Demaille.
95958
95959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95960         (jm_PREREQ_TEMPNAME): New function.
95961
95962 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95963
95964         * lib/tempname.c (uint64_t): Define to uintmax_t if
95965         not defined, and if UINT64_MAX is not defined.
95966         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95967         Reported by John David Anglin.
95968
95969 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95970
95971         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95972         resolve alias if codeset is empty.
95973         * lib/config.charset (BeOS): Use wildcard syntax.
95974
95975 2001-03-13  Jim Meyering  <meyering@lucent.com>
95976
95977         * lib/path-concat.c (path_concat)
95978         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95979         concatenating e.g., `C:' and `foo'.
95980         From Bruno Haible.
95981
95982 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95983
95984         * lib/localcharset.c (locale_charset): Don't use
95985         setlocale(LC_CTYPE,NULL). Don't return NULL.
95986         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95987
95988 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95989
95990         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95991         support for DOS/DJGPP.
95992
95993 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95994
95995         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95996         lacks mkstemp.  Compile our own tempname.c if we compile our own
95997         mkstemp.c, as mkstemp relies on tempname.
95998
95999 2001-03-01  Jim Meyering  <meyering@lucent.com>
96000
96001         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96002         AH_VERBATIM really does output its argument verbatim.
96003
96004 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96005
96006         * lib/Makefile.am (libfetish_a_SOURCES):
96007         Add dup-safer.c, fopen-safer.c.
96008         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96009
96010         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96011         * lib/unistd-safer.h: New files.
96012
96013 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96014
96015         The mkstemp replacement is taken from glibc 2.2.2, with some
96016         portability fixes for use outside glibc, as follows:
96017
96018         * lib/tempname.c (struct_stat64): New macro.
96019         (direxists, __gen_tempname): Use it.
96020         This avoids a portability problem with Solaris 8.
96021
96022         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96023         (<stddef.h>, <stdint.h>, <string.h>):
96024         Include only if STDC_HEADERS || _LIBC.
96025         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96026         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96027         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96028         (__set_errno): Define this macro if <errno.h> doesn't.
96029         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96030         Define these macros if <stdio.h> doesn't.
96031         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96032         Define these macros if <sys/stat.h>
96033         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96034         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96035         __xstat64): Define if not _LIBC.
96036         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96037         (__gen_tempname): Invoke gettimeofday only if
96038         HAVE_GETTIMEOFDAY || _LIBC;
96039         otherwise, fall back on plain "time".
96040         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96041
96042         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96043
96044         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96045
96046 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96047
96048         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96049
96050 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96051
96052         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96053         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96054         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96055         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96056
96057 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96058
96059         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96060         Remove workaround macros for hosts that have mbrtowc but not
96061         mbstate_t, as we now insist on proper declarations for both
96062         before using mbrtowc.
96063
96064 2001-02-17  Jim Meyering  <meyering@lucent.com>
96065
96066         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96067         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96068         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96069         UnixWare 7.1.1.
96070
96071         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96072         rather than AC_CACHE_VAL.
96073
96074 2001-02-17  Jim Meyering  <meyering@lucent.com>
96075
96076         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96077         around included file name.
96078
96079         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96080
96081         * lib/strftime.c: Update from GNU libc (the only changes were to
96082         comments).
96083
96084 2001-02-17  Jim Meyering  <meyering@lucent.com>
96085
96086         * lib/regex.c: Update from libc.
96087
96088 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96089
96090         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96091         clash.
96092
96093 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96094
96095         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96096         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96097         Reported by Mark Hounschell via Paul Eggert.
96098
96099 2001-02-07  Jim Meyering  <meyering@lucent.com>
96100
96101         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96102
96103 2001-02-05  Jim Meyering  <meyering@lucent.com>
96104
96105         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96106         it includes the patch required for `large file' support with at least
96107         HP-UX's 10.20 /bin/cc.
96108
96109 2001-02-03  Jim Meyering  <meyering@lucent.com>
96110
96111         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96112         AS_IF, now that it works once again (mysteriously).
96113         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96114
96115 2001-01-30  Jim Meyering  <meyering@lucent.com>
96116
96117         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96118         * m4/chown.m4: Rename conftestchown to conftest.chown.
96119         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96120         s/conftestdir2/conftest.d2/.
96121         * m4/utimes.m4: s/conftestdata/conftest.data/
96122         Inspired by Pavel Roskin's change in autoconf.
96123
96124 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96125
96126         * lib/config.charset: Update for FreeBSD 4.2.
96127
96128 2001-01-27  Jim Meyering  <meyering@lucent.com>
96129
96130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96131         a use of AS_IF.
96132         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96133
96134 2001-01-26  Jim Meyering  <meyering@lucent.com>
96135
96136         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96137         quotearg.c includes it.
96138
96139 2001-01-26  Jim Meyering  <meyering@lucent.com>
96140
96141         * lib/quotearg.c: Include stddef.h.
96142         * lib/quote.c: Include stddef.h.
96143         Reported by Axel Kittenberger.
96144
96145         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96146         line in double quotes so that it evokes a better diagnostic.
96147         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96148         Reported by Axel Kittenberger.
96149
96150 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96151
96152         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96153         as if it was a `charset'.
96154
96155 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96156
96157         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96158         has const.
96159
96160 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96161
96162         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96163         to avoid a warning.  Add back 'const' to inptr.
96164
96165 2001-01-20  Jim Meyering  <meyering@lucent.com>
96166
96167         Be sure that headers are checked before used in code compiled
96168         for the type checks.
96169         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96170         In place of that, invoke jm_CHECK_ALL_TYPES.
96171         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96172         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96173         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96174         The check for ssize_t was mistakenly run before the test for unistd.h.
96175
96176         The configure-time check for stdbool.h was missing.
96177         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96178         (jm_PREREQ_HASH): New function.
96179
96180 2001-01-17  Jim Meyering  <meyering@lucent.com>
96181
96182         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96183         for autoconf-2.49c.
96184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96185
96186 2001-01-16  Jim Meyering  <meyering@lucent.com>
96187
96188         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96189         From Bruno Haible.
96190
96191 2001-01-14  Jim Meyering  <meyering@lucent.com>
96192
96193         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96194         foo and bar.  Create conftestdir/ in the script, not in the C code.
96195         Remove directories in the script, not in the C code.
96196         Remove conftestdir{,2} before trying to create the directory.
96197         Make the entire configure script fail if the mkdir fails.
96198
96199 2001-01-14  Jim Meyering  <meyering@lucent.com>
96200
96201         * lib/rename.c: New file.  From Volker Borchert.
96202         Include stdlib.h, string.h or strings.h, and xalloc.h.
96203         Use strip_trailing_slashes rather than open-coding it.
96204
96205 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96206
96207         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96208
96209 2001-01-03  Jim Meyering  <meyering@lucent.com>
96210
96211         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96212         of local `inptr' to avoid warning with some system declarations of
96213         iconv.
96214
96215 2001-01-02  Volker Borchert  <bt@teknon.de>
96216
96217         * m4/rename.m4: New file.
96218         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96219
96220 2001-01-01  Jim Meyering  <meyering@lucent.com>
96221
96222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96223         even on systems with utmpx.h.  It's necessary for the declaration of
96224         utmp's ut_user member.  Reported by Andreas Jaeger.
96225
96226         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96227         available. They are required for the declarations of getgrgid and
96228         getpwuid resp.
96229         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96230         Reported by Andreas Jaeger.
96231
96232 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96233
96234         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96235         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96236         so `make install' also works in VPATH builds.
96237
96238 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96239
96240         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96241         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96242         can be used in subdirectories.
96243
96244 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96245
96246         * lib/modechange.c: Do not assume that mode_t uses the
96247         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96248         the other-execute bit of FOO even if S_IXOTH != 1.
96249
96250         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96251         WOTH, XOTH, ALLM): New macros.
96252         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96253          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96254         Use them.
96255         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96256         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96257         (mode_compile):
96258         No need to use uintmax_t; unsigned long is long enough.
96259         Don't bother to get suffix since we don't use it.
96260
96261 2000-12-26  Jim Meyering  <meyering@lucent.com>
96262
96263         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96264         better with autoheader.
96265
96266 2000-12-24  Jim Meyering  <meyering@lucent.com>
96267
96268         * lib/hash.c (is_prime): Return explicit boolean values.
96269         (hash_get_first): Return NULL to appease Irix5.6's 89.
96270         Reported by Nelson Beebe.
96271
96272 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96273
96274         * lib/localcharset.c (locale_charset): Add support for Win32.
96275
96276 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96277
96278         * lib/physmem.h, lib/physmem.c: New files.
96279
96280         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96281         (noinst_HEADERS): Add physmem.h.
96282
96283         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96284         't' for compatibility with Solaris 8 sort.
96285
96286 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96287
96288         * lib/config.charset: Add support for BeOS.
96289
96290 2000-12-17  Jim Meyering  <meyering@lucent.com>
96291
96292         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96293         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96294
96295 2000-12-16  Jim Meyering  <meyering@lucent.com>
96296
96297         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96298         N and M) would have treated it like `chown N:N FILE'.
96299
96300         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96301
96302 2000-12-16  Jim Meyering  <meyering@lucent.com>
96303
96304         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96305         SHELLS_FILE to a file name that's useful on djgpp systems.
96306         Include stdlib.h.
96307         (ADDITIONAL_DEFAULT_SHELLS): Define.
96308         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96309         Based mostly on a patch from Prashant TR.
96310
96311 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96312
96313         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96314         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96315         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96316
96317 2000-12-08  Andreas Schwab  <schwab@suse.de>
96318
96319         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96320         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96321
96322 2000-12-07  Jim Meyering  <meyering@lucent.com>
96323
96324         * lib/stripslash.c (ISSLASH): Define.
96325         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96326         `/'.
96327         From Prashant TR.
96328
96329         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96330         (dir_name_r): Declare this function as static.
96331         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96332         manifest itself on a name containing a mix of slashes and
96333         backslashes.
96334         Make this function work with names starting with a DOS-style
96335         drive letter and colon prefix.
96336         (dir_name): Append `.' if necessary.
96337         Based mostly on patches from Prashant TR and Eli Zaretskii.
96338
96339         * lib/dirname.h (dir_name_r): Remove prototype.
96340
96341 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96342
96343         * m4/off_t-format.m4: Remove this file.
96344         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96345
96346 2000-12-06  Jim Meyering  <meyering@lucent.com>
96347
96348         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96349         replacement strtoull, we may well need the replacement strtoul, too.
96350         Check for declarations of strtoul and strtoull.
96351         Check for strtol.  Mainly as a cue to cause automake to include
96352         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96353         Check for limits.h -- strtol.c needs it.
96354
96355 2000-12-05  Jim Meyering  <meyering@lucent.com>
96356
96357         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96358
96359 2000-12-04  Jim Meyering  <meyering@lucent.com>
96360
96361         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96362         Also include memory.h, stdlib.h, unistd.h if appropriate.
96363         Reported by Andreas Jaeger (conflicting declaration of malloc).
96364
96365 2000-12-02  Jim Meyering  <meyering@lucent.com>
96366
96367         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96368         * m4/jm-macros.m4 (jm_MACROS): require it.
96369
96370 2000-12-02  Jim Meyering  <meyering@lucent.com>
96371
96372         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96373
96374 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96375
96376         * lib/memrchr.c: Include <config.h> before any system include file.
96377
96378 2000-11-30  Jim Meyering  <meyering@lucent.com>
96379
96380         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96381
96382 2000-11-30  Jim Meyering  <meyering@lucent.com>
96383
96384         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96385
96386 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96387
96388         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96389
96390 2000-11-26  Jim Meyering  <meyering@lucent.com>
96391
96392         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96393
96394 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96395
96396         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96397         size of (size_t) -1; it's not portable.
96398
96399 2000-11-17  Jim Meyering  <meyering@lucent.com>
96400
96401         * lib/strstr.c: Update from GNU libc.
96402
96403 2000-11-17  Akim Demaille  <akim@epita.fr>
96404
96405         * lib/obstack.h: Formatting changes.
96406         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96407         prevent type checking.
96408         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96409         cast the value to (void *): assigning a `foo *' to a `void *'
96410         variable is valid.
96411         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96412
96413 2000-11-16  Jim Meyering  <meyering@lucent.com>
96414
96415         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96416
96417 2000-11-11  Jim Meyering  <meyering@lucent.com>
96418
96419         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96420
96421 2000-11-10  Jim Meyering  <meyering@lucent.com>
96422
96423         * lib/obstack.h: Update from GNU libc.
96424         * lib/obstack.c: Likewise.
96425
96426 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96427
96428         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96429
96430 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96431
96432         * lib/getusershell.c (setusershell): Use rewind rather than
96433         fseek/fseeko, to avoid configuration hassles with fseeko.
96434         Don't bother opening SHELLS_FILE if shellstream is NULL;
96435         it's not necessary.
96436
96437 2000-11-05  Jim Meyering  <meyering@lucent.com>
96438
96439         * lib/makepath.h (make_dir): Declare.
96440         * lib/makepath.c (make_dir): Remove `static' attribute.
96441         Tweak a comment.
96442
96443 2000-11-04  Jim Meyering  <meyering@lucent.com>
96444
96445         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96446
96447 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96448
96449         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96450         last one in a bucket, advance to the next bucket.
96451
96452 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96453
96454         * lib/fnmatch.c: Do not comment out all the code if we are using
96455         the GNU C library, because in some cases we are replacing buggy
96456         code in the GNU C library itself.
96457
96458 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96459
96460         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96461         (regex_compile): Catch bogus \(\1\).
96462
96463 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96464
96465         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96466         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96467         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96468
96469 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96470
96471         * lib/error.h, getline.h, modechange.h:
96472         Remove "2000" from Copyright line, as the file hasn't been
96473         changed this year other than in the copyright notice.
96474
96475         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96476         was changed this year.
96477
96478 2000-10-29  Jim Meyering  <meyering@lucent.com>
96479
96480         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96481         renaming.
96482         * m4/ls-mntd-fs.m4: Likewise
96483
96484 2000-10-29  Jim Meyering  <meyering@lucent.com>
96485
96486         * lib/xstat.in: Fix grammar in comment.
96487
96488 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96489
96490         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96491         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96492         doesn't define __restrict_arr.
96493
96494 2000-10-28  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96497         (jm_PREREQ_MEMCHR): New function.
96498
96499 2000-10-28  Jim Meyering  <meyering@lucent.com>
96500
96501         * lib/memchr.c: Update from libc.
96502         Adjust for portability:
96503         [HAVE_STDLIB_H]: Include stdlib.h.
96504         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96505         Undef __memchr, too.
96506         [!weak_alias]: Define __memchr to memchr.
96507
96508         * lib/regex.c: Update from libc.
96509         * lib/regex.h: Likewise.
96510         * lib/getopt1.c: Likewise.
96511         * lib/memcmp.c: Likewise.
96512
96513         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96514         Avoid using fseek, when possible -- it's broken by design.
96515         Patch by Ulrich Drepper.
96516
96517 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96518
96519         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96520         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96521         Giving in to popular pressure to shut up the compiler with casts.
96522
96523 2000-10-26  Jim Meyering  <meyering@lucent.com>
96524
96525         * lib/strftime.c: Update from libc.
96526
96527 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96528
96529         * regex.c: More `unsigned char' -> `re_char' changes.
96530         Also change several `int' into `re_wchar_t'.
96531         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96532         (PUSH_FAILURE_POINTER): Don't cast any more.
96533         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96534         We want GCC to complain, since this piece of code makes
96535         re_match non-reentrant, which *should* be fixed.
96536         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96537         (EXTEND_BUFFER): Use RETALLOC.
96538         (SET_LIST_BIT): Don't cast.
96539         (re_wchar_t): New type.
96540         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96541         that those two functions will always properly return.
96542         (IMMEDIATE_QUIT_CHECK): Cast to void.
96543         (analyse_first): Use recursion rather than an explicit stack.
96544         (re_compile_fastmap): Can't fail anymore.
96545         (re_search_2): Don't check re_compile_fastmap for failure.
96546         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96547         Now also sets the new value (passed in a new argument).
96548         (re_match_2_internal): Use it.
96549         Also, use a new var `reg' of type size_t when looping through regs
96550         rather than reuse the inappropriate `mcnt'.
96551
96552 2000-10-25  Jim Meyering  <meyering@lucent.com>
96553
96554         * lib/obstack.c: Update from libc.
96555
96556 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96557
96558         * regex.c (regex_compile): Change the way of handling a range from
96559         a char less than 256 to a char not less than 256.
96560
96561 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96562
96563         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96564         NT-Emacs only.
96565         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96566         so that re_search functions only quit when callers expect them to.
96567
96568 2000-10-23  Jim Meyering  <meyering@lucent.com>
96569
96570         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96571         wrong.  That set_locale call must not have any side effects.
96572         From Paul Eggert.
96573
96574 2000-10-22  Jim Meyering  <meyering@lucent.com>
96575
96576         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96577         [CYCLIC]: Remove now-unused definition.
96578
96579         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96580         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96581         Suggestion from Ulrich Drepper.
96582
96583 2000-10-21  Jim Meyering  <meyering@lucent.com>
96584
96585         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96586         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96588
96589 2000-10-21  Jim Meyering  <meyering@lucent.com>
96590
96591         * lib/dirname.c (memrchr): Declare if necessary.
96592         (dir_name): Remove the restriction that there be no
96593         trailing slashes.  Now, this code skips past them, effectively
96594         ignoring them.
96595         [TEST_DIRNAME] (main): New unit tests.
96596
96597         * lib/memrchr.c: New file from GNU libc.
96598         Undef __memrchr, too.
96599         [!weak_alias]: Define __memrchr to memrchr.
96600         Guard weak_alias use with `#ifdef weak_alias'.
96601
96602 2000-10-21  Jim Meyering  <meyering@lucent.com>
96603
96604         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96605         (dir_name): Use dir_name_r.
96606         * lib/dirname.h (dir_name_r): Declare it.
96607
96608 2000-10-17  Jim Meyering  <meyering@lucent.com>
96609
96610         * lib/quote.h (PARAMS): Define and use.
96611         Reported by Akim Demaille.
96612
96613         * lib/getopt.c: Update from libc.
96614
96615 2000-10-16  Jim Meyering  <meyering@lucent.com>
96616
96617         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96618         setlocale.
96619         From Jan Fedak.
96620
96621 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96622
96623         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96624
96625 2000-09-25  Jim Meyering  <meyering@lucent.com>
96626
96627         * lib/md5.h (rol): Define (from GnuPG).
96628
96629         * lib/sha.c: Give credit (GnuPG) where due.
96630         (M): Use rol rather than open-coding it.
96631         Add a FIXME comment.
96632
96633 2000-09-21  Jim Meyering  <meyering@lucent.com>
96634
96635         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96636         Reported by Michael Stone.
96637
96638 2000-09-20  Jim Meyering  <meyering@lucent.com>
96639
96640         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96641         (noinst_HEADERS): Add sha.h.
96642         Based on code from Scott G. Miller and from GnuPG.
96643
96644 2000-09-18  Jim Meyering  <meyering@lucent.com>
96645
96646         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96647         LIBS. Otherwise, everyone ends up linking with -lelf for some
96648         configurations.
96649         Reported by Mike Stone.
96650
96651 2000-09-15  Jim Meyering  <meyering@lucent.com>
96652
96653         * lib/regex.c: Update from libc.
96654
96655 2000-09-10  Jim Meyering  <meyering@lucent.com>
96656
96657         * lib/getopt.c (_getopt_internal): Update from glibc.
96658
96659 2000-09-09  Jim Meyering  <meyering@lucent.com>
96660
96661         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96662         think it should be used as a general replacement for isascii.
96663         * lib/fnmatch.c: Likewise.
96664         * lib/mbswidth.c: Likewise
96665         * lib/regex.c: Likewise.
96666
96667         Don't use atoi.
96668         * lib/userspec.c: Include sys/param.h and limits.h.
96669         Include xstrtol.h.
96670         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96671         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96672         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96673         UID, GID.  Check range.
96674
96675 2000-09-06  Jim Meyering  <meyering@lucent.com>
96676
96677         * lib/getopt.c (_getopt_internal): Update from glibc.
96678
96679 2000-08-30  Jim Meyering  <meyering@lucent.com>
96680
96681         * lib/strftime.c: Merge in changes from GNU libc.
96682
96683 2000-08-26  Jim Meyering  <meyering@lucent.com>
96684
96685         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96686         * m4/fpending.m4: New file.
96687
96688 2000-08-26  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/closeout.c: Include "__fpending.h".
96691         (close_stdout_status): Return right away if there's nothing to flush.
96692
96693         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96694         * lib/__fpending.c: New file.
96695         * lib/__fpending.h: New file.
96696
96697 2000-08-20  Jim Meyering  <meyering@lucent.com>
96698
96699         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96700         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96701         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96702
96703 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96704
96705         Improve fileutils installation on systems where running
96706         programs (like install) can't be unlinked.
96707         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96708         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96709
96710 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96711
96712         Standardize on "memory exhausted" instead of "Memory exhausted"
96713         or "virtual memory exhausted".
96714         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96715         "virtual memory exhausted".
96716         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96717         our own message.
96718         * lib/userspec.c (parse_user_spec): Likewise.
96719         * lib/bumpalloc.h: comment fix
96720         * lib/same.c, userspec.c: Include xalloc.h.
96721
96722         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96723         not char *const and pointing to a constant array.
96724         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96725         (xrealloc): Comment fix.
96726
96727         * lib/userspec.c (parse_user_spec):
96728         Don't translate a message until just before returning,
96729         to avoid unnecessary translation.
96730
96731 2000-08-07  Jim Meyering  <meyering@lucent.com>
96732
96733         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96734         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96735         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96736         getgroups.c, gethostname.c, getopt.h, group-member.c,
96737         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96738         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96739         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96740         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96741         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96742         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96743         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96744         yesno.c: Back out Copyright date changes for each file with no change
96745         this year.  This eases coordination with other programs using the same
96746         source code modules.  From Paul Eggert.
96747
96748 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96749
96750         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96751         not char, for compatibility with glibc 2.1.3 strftime.c.
96752
96753 2000-08-03  Greg McGary  <greg@mcgary.org>
96754
96755         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96756         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96757         (EXTEND_BUFFER): Use them.
96758
96759 2000-08-01  Jim Meyering  <meyering@lucent.com>
96760
96761         * lib/dirname.c (ISSLASH): Define.
96762         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96763         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96764         both `\' and `/' may be use as path separators.
96765         Based on a patch from Prashant TR.
96766
96767 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96768
96769         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96770         slot vector a constant, since it might get modified.
96771
96772 2000-07-31  Jim Meyering  <meyering@lucent.com>
96773
96774         * lib/xmalloc.c: Use `virtual memory exhausted', not
96775         `Memory exhausted'.
96776         * lib/obstack.c (print_and_abort): Likewise.
96777
96778 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96779
96780         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96781         buffer, so that the caller can always quote one small
96782         component of a "memory exhausted" message in slot 0.
96783         From a suggestion by Jim Meyering.
96784
96785 2000-07-30  Jim Meyering  <meyering@lucent.com>
96786
96787         * lib/makepath.c (make_path): Quote the other instance, too.
96788
96789         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96790         (STATIC_BUF_SIZE): Define.
96791         (quotearg_n_options): Use only statically allocated storage when
96792         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96793         than STATIC_BUF_SIZE.
96794
96795 2000-07-29  Jim Meyering  <meyering@lucent.com>
96796
96797         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96798         * lib/dirname.c (dir_name): Likewise.
96799
96800         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96801         `/'.
96802
96803         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96804         (dir_name): Assert that there are no trailing slashes.
96805
96806 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96807
96808         * lib/mbswidth.h (mbswidth): Add a flags argument.
96809         (mbswidth): New declaration.
96810         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96811         * lib/mbswidth.c (mbswidth): Add a flags argument.
96812         (mbsnwidth): New function.
96813
96814 2000-07-24  Jim Meyering  <meyering@lucent.com>
96815
96816         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96817
96818 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96819
96820         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96821
96822 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96823
96824         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96825         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96826         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96827         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96828         invoke multibyte primitives.
96829
96830 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96831
96832         * lib/quotearg.c:
96833         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96834         so that mbstate_t is always defined.
96835
96836         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96837         be 1 in at least one GCC installation, and this configuration
96838         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96839         performance on hosts that have mbrtowc but have only unibyte
96840         locales, but I assume these hosts are rare.
96841
96842 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96843
96844         * lib/mbswidth.c (_XOPEN_SOURCE):
96845         Don't define; this causes problems on Solaris 7.
96846         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96847
96848 2000-07-23  Jim Meyering  <meyering@lucent.com>
96849
96850         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96851         too: getgrgid, getpwuid, getuid.
96852
96853 2000-07-23  Jim Meyering  <meyering@lucent.com>
96854
96855         * lib/basename.c (base_name): Add an assertion.
96856
96857 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96858
96859         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96860         shadow its mbsinit function.
96861
96862 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96863
96864         * lib/mbswidth.h: New file.
96865         * lib/mbswidth.c: New file.
96866         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96867         (noinst_HEADERS): Add mbswidth.h.
96868
96869 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96870
96871         * lib/config.charset: Add support for FreeBSD. Improve support for
96872         HP-UX and IRIX 6.
96873
96874 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96875
96876         * m4/mbswidth.m4: New file.
96877         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96878
96879 2000-07-15  Jim Meyering  <meyering@lucent.com>
96880
96881         * lib/makepath.c: Include quote.h.
96882         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96883         corresponding argument in a `quote (...)' call.
96884         Give better diagnostics.
96885
96886         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96887         (noinst_HEADERS): Add quote.h.
96888
96889         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96890         from tar's src/misc.c.
96891         * lib/quote.h: New file.  Prototypes for same.
96892
96893 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96894
96895         From a suggestion by Bruno Haible.
96896         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96897         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96898         to decide whether to define the BeOS workaround macro;
96899         this adjusts to the change to AC_MBSTATE_T.
96900
96901 2000-07-14  Jim Meyering  <meyering@lucent.com>
96902
96903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96904         jm_AC_TYPE_UINTMAX_T.
96905
96906 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96907
96908         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96909
96910         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96911         quotearg_buffer_restyled): Add support for
96912         clocale_quoting_style.  Undo previous change to
96913         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96914         and "{RIGHT QUOTATION MARK}" msgids.
96915
96916 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96917
96918         From a suggestion by Bruno Haible.
96919         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96920         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96921         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96922         and mbstate_t, to a single-part test that simply defines mbstate_t.
96923         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96924         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96925
96926 2000-07-10  Jim Meyering  <meyering@lucent.com>
96927
96928         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96929
96930         * m4/gnu-source.m4: Output to confdefs.h directly.
96931         Suggestion from Akim Demaille.
96932
96933 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96934
96935         The old behavior of quoting `like this' doesn't look good with
96936         newer, ISO-style fonts.  See:
96937         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96938
96939         Instead, quote "like this" by default.  Let the translator
96940         tailor the locale-specific quoting behavior by providing
96941         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96942
96943         * lib/quotearg.c (N_): New macro.
96944         (gettext_default): New function.
96945         (quotearg_buffer_restyled): Use
96946         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96947         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96948
96949 2000-07-09  Jim Meyering  <meyering@lucent.com>
96950
96951         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96952         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96953
96954         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96956
96957 2000-07-09  Jim Meyering  <meyering@lucent.com>
96958
96959         * lib/Most files: Update copyright dates to include 2000.
96960
96961 2000-07-08  Jim Meyering  <meyering@lucent.com>
96962
96963         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96964         if not defined.
96965         (xgethostname): Remove now-unnecessary #ifdef.
96966         Move declaration of `err' into loop where it's used.
96967
96968 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96969         and Bruno Haible  <haible@clisp.cons.org>
96970
96971         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96972         only if the test for an object-type mbstate_t fails.  This
96973         prevents us from mistakenly reporting that mbstate_t is a
96974         system object type after we "#define mbstate_t int" to work
96975         around its lack.
96976
96977 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96978         and Bruno Haible  <haible@clisp.cons.org>
96979
96980         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96981
96982 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96983
96984         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96985         to strerror_r.
96986         Include <ctype.h> for use of isalpha.
96987
96988 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96989
96990         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96991         by allocating a larger buffer. Test the gethostname return value for
96992         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96993         returns an error and ENAMETOOLONG isn't defined.
96994
96995 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96996
96997         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96998         dimension.
96999
97000 2000-07-04  Jim Meyering  <meyering@lucent.com>
97001
97002         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97003         of the deprecated AC_CHECKING.
97004
97005 2000-07-04  Jim Meyering  <meyering@lucent.com>
97006
97007         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97008         Reported by Bruno Haible.
97009
97010 2000-07-04  Jim Meyering  <meyering@lucent.com>
97011
97012         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97013         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97014         lacks mbrtowc.
97015
97016 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97017
97018         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97019         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97020
97021 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97022         and Bruno Haible  <haible@clisp.cons.org>
97023
97024         * lib/quotearg.c (mbrtowc):
97025         Assign to *pwc, and return 1 only if result is nonzero.
97026         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97027
97028 2000-07-03  Jim Meyering  <meyering@lucent.com>
97029
97030         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97031
97032 2000-07-03  Jim Meyering  <meyering@lucent.com>
97033
97034         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97035         This is necessary to get a definition of e.g., UTMP_FILE on
97036         HP-UX 10.20.
97037         From Bob Proulx.
97038
97039 2000-07-02  Jim Meyering  <meyering@lucent.com>
97040
97041         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97042
97043         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97044         AC_LIBOBJ(function_name).
97045         * m4/chown.m4: Likewise.
97046         * m4/fnmatch.m4: Likewise.
97047         * m4/ftruncate.m4: Likewise.
97048         * m4/getgroups.m4: Likewise.
97049         * m4/getline.m4: Likewise.
97050         * m4/group-member.m4: Likewise.
97051         * m4/jm-macros.m4: Likewise.
97052         * m4/lstat.m4: Likewise.
97053         * m4/malloc.m4: Likewise.
97054         * m4/memcmp.m4: Likewise.
97055         * m4/nanosleep.m4: Likewise.
97056         * m4/putenv.m4: Likewise.
97057         * m4/realloc.m4: Likewise.
97058         * m4/regex.m4: Likewise.
97059         * m4/stat.m4: Likewise.
97060         * m4/strftime.m4: Likewise.
97061
97062 2000-07-02  Jim Meyering  <meyering@lucent.com>
97063
97064         * lib/quotearg.c (mbstate_t): Don't define here.
97065
97066 2000-07-02  Jim Meyering  <meyering@lucent.com>
97067
97068         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97069
97070 2000-07-01  Jim Meyering  <meyering@lucent.com>
97071
97072         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97073
97074 2000-07-01  Jim Meyering  <meyering@lucent.com>
97075
97076         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97077         problem.
97078
97079 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97080
97081         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97082         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97083
97084 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97085
97086         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97087         per change in ../m4/ls-mntd-fs.m4.
97088         (read_filesystem_list): Ignore symbolic links.
97089
97090 2000-06-29  Jim Meyering  <meyering@lucent.com>
97091
97092         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97093         for declaration of strcmp.
97094
97095         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97096
97097         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97098         Avoid warning by casting result to `char *' to remove `const'.
97099
97100 2000-06-28  Jim Meyering  <meyering@lucent.com>
97101
97102         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97103         included by quotearg.c, for which we perform this test.  From
97104         Bruno Haible.
97105
97106 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97107
97108         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97109         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97110         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97111
97112 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97113
97114         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97115
97116 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97117
97118         savedir now sets errno on failure and invokes xmalloc to get memory.
97119         Fix a couple of other minor bugs while we're at it.
97120
97121         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97122         (NAMLEN): Remove macro.
97123         (malloc, realloc): Remove decls.
97124         (stpcpy): Likewise.
97125         ("xalloc.h"): Include.
97126         (NAME_SIZE_DEFAULT): New macro.
97127         (savedir): Use xmalloc / xrealloc to allocate memory.
97128         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97129         Skip "" directory entries.
97130         Use strlen to calculate directory entry length, since the old method
97131         is rarely used these days and isn't worth supporting.
97132         Don't use a pointer after freeing it.
97133         Check for integer overflow when calculating allocation size.
97134         Use memcpy to copy entries, instead of stpcpy.
97135         Set errno properly when returning NULL.
97136         Check for readdir error.
97137
97138 2000-06-26  Jim Meyering  <meyering@lucent.com>
97139
97140         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97141
97142 2000-06-25  Jim Meyering  <meyering@lucent.com>
97143
97144         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97145         Linux header bug when _XOPEN_SOURCE is defined to 500.
97146
97147 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97148
97149         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97150         deficiency.
97151
97152 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97153
97154         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97155         Include xalloc.h.
97156         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97157
97158 2000-06-24  Jim Meyering  <meyering@lucent.com>
97159
97160         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97161         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97162         for which strerror does return char*, but which lacks a conveniently
97163         accessible declaration of the function.  If the compile-test says
97164         strerror_r doesn't work, then resort to a `run'-test that works on
97165         BeOS and segfaults on DEC Unix.
97166
97167 2000-06-24  Jim Meyering  <meyering@lucent.com>
97168
97169         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97170
97171 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97172
97173         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97174         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97175
97176 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97177
97178         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97179         (mbrtowc, mbstate_t): Define substitutes if
97180         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97181         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97182         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97183
97184 2000-06-23  Jim Meyering  <meyering@lucent.com>
97185
97186         * m4/afs.m4: Add missing AC_MSG_RESULT.
97187         Reported by Bruno Haible.
97188
97189         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97190         Suggestion from Bruno Haible.
97191
97192 2000-06-23  Jim Meyering  <meyering@lucent.com>
97193
97194         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97195
97196 2000-06-21  Jim Meyering  <meyering@lucent.com>
97197
97198         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97199
97200 2000-06-21  Jim Meyering  <meyering@lucent.com>
97201
97202         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97203         (noinst_HEADERS): Add getstr.h.
97204
97205         * lib/getline.c (getstr): Move into a separate file.
97206         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97207         the following changes: new parameter, delim2; both delim[12]
97208         parameters have type `int', not `char'.  The latter would lose
97209         with 8-bit delimiters.
97210         * lib/getstr.h: New file.
97211
97212 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97213
97214         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97215         than 1024, return a memory chunk of least possible size, instead
97216         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97217         Use free/xmalloc instead of xrealloc to avoid copying for very long
97218         paths.
97219
97220 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97221
97222         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97223         the empty string.
97224
97225 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97226
97227         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97228         address, not strdup.  Include <stdlib.h> and don't declare free().
97229
97230 2000-06-19  Jim Meyering  <meyering@lucent.com>
97231
97232         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97233
97234 2000-06-18  Jim Meyering  <meyering@lucent.com>
97235
97236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97237
97238         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97239         `checking whether...' message to be consistent with that of the
97240         lstat test.
97241
97242 2000-06-18  Jim Meyering  <meyering@lucent.com>
97243
97244         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97245         Besides, these days every porting target provides a mkdir function.
97246
97247         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97248         needed. (this snippet comes from src/system.h).
97249
97250 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97251
97252         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97253
97254 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97255
97256         * lib/human.c (adjust_value): New function.
97257         (human_readable_inexact): Apply rounding style even when
97258         printing approximate values.
97259
97260 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97261
97262         * lib/human.c (human_readable_inexact): Allow an input block
97263         size that is not a multiple of the output block size, and vice versa.
97264         Reported by Piergiorgio Sartor.
97265
97266 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97267
97268         * lib/getdate.y (get_date): Apply relative times after time
97269         zone indicator, not before.  Reported by Todd A. Jacobs.
97270
97271 2000-06-13  Jim Meyering  <meyering@lucent.com>
97272
97273         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97274
97275         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97276
97277 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97278
97279         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97280
97281 2000-06-12  Jim Meyering  <meyering@lucent.com>
97282
97283         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97284         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97285         optional argument.
97286         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97287         the optional argument, `lib'.
97288
97289 2000-06-08  Jim Meyering  <meyering@lucent.com>
97290
97291         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97292
97293 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97294
97295         Rewrite largefile configuration so that we don't need to run
97296         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97297         AC_CANONICAL_HOST in configure.in -- jmm]
97298
97299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97300         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97301         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97302         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97303         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97304         All uses changed.
97305         Instead of inspecting the output of getconf, try to compile the
97306         test program without and with the macro definition.
97307         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97308         for getconf.  Instead, check for the needed flags by compiling
97309         test programs.
97310
97311 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97312
97313         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97314
97315 2000-06-04  Jim Meyering  <meyering@lucent.com>
97316
97317         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97318         SunOS 4.1.4 for which gid_t is an unsigned type.
97319
97320 2000-06-03  Jim Meyering  <meyering@lucent.com>
97321
97322         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97323         now that autoconf requires that.
97324
97325         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97326         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97327         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97328
97329 2000-06-03  Jim Meyering  <meyering@lucent.com>
97330
97331         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97332
97333 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97334
97335         * m4/glibc21.m4: New file.
97336         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97337
97338 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97339
97340         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97341         newer, don't install charset.alias.
97342         * lib/config.charset: Change the Linux/glibc rules so they become empty
97343         on glibc-2.1 or newer.
97344
97345 2000-06-02  Jim Meyering  <meyering@lucent.com>
97346
97347         * lib/mountlist.c: Back out last change.  Instead, do this...
97348         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97349         me_dummy member using the same `ignore'-testing code.
97350         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97351         fs_type strings.
97352         From Mark D. Roth.
97353
97354 2000-05-29  Jim Meyering  <meyering@lucent.com>
97355
97356         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97357         mounts with the `ignore' attribute.  Based on a patch from
97358         Mark D. Roth.
97359
97360 2000-05-28  Jim Meyering  <meyering@lucent.com>
97361
97362         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97363         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97364         * m4/stat.m4: Likewise.
97365         * m4/lstat.m4: Likewise.
97366         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97367
97368         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97369         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97370
97371 2000-05-26  Jim Meyering  <meyering@lucent.com>
97372
97373         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97374
97375 2000-05-24  Jim Meyering  <meyering@lucent.com>
97376
97377         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97378         autoconf requires that.
97379         * m4/lib-check.m4: Likewise.
97380         * m4/jm-macros.m4: Likewise.
97381         * m4/strftime.m4: Likewise.
97382
97383         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97384         AC_CHECK_DECLS, now that autoconf requires that.
97385
97386 2000-05-22  Jim Meyering  <meyering@lucent.com>
97387
97388         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97389         * m4/lstat.m4: Likewise.
97390
97391 2000-05-22  Jim Meyering  <meyering@lucent.com>
97392
97393         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97394
97395 2000-05-20  Jim Meyering  <meyering@lucent.com>
97396
97397         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97398         (jm_PREREQ): Use it.
97399
97400 2000-05-18  Jim Meyering  <meyering@lucent.com>
97401
97402         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97403         back, too, since it may have been modified by allocate_entry.
97404         (hash_delete): Rewrite to use neither the assignment operator
97405         nor the comma operator in an if-expression.
97406
97407 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97408
97409         * lib/closeout.c:
97410         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97411         Remove; no longer needed.
97412         "quotearg.h": Add include.
97413         (file_name): Do not bother to explicitly initialize to NULL; it's less
97414         efficient on some hosts.
97415         (close_stdout_status): Remove test as to whether stdout was already
97416         closed; it breaks for the case "echo x | sort >&-".
97417         Quote file name colons.
97418         Do not assume that _("write error") lacks format strings.
97419
97420 2000-05-15  Jim Meyering  <meyering@lucent.com>
97421
97422         * lib/version-etc.c (version_etc_copyright): Update the copyright
97423         string used in all --version output.
97424
97425 2000-05-14  Jim Meyering  <meyering@lucent.com>
97426
97427         * lib/closeout.c (close_stdout_set_file_name): New function.
97428         (close_stdout_status): Use new file-scoped global.
97429         Return right away if fstat says the stdout file descriptor is invalid.
97430         * lib/closeout.h (close_stdout_set_file_name): Declare.
97431
97432 2000-05-10  Jim Meyering  <meyering@lucent.com>
97433
97434         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97435         (close_stdout_set_status): New function.
97436         * lib/closeout.h (close_stdout_set_status): Declare.
97437
97438 2000-05-09  Jim Meyering  <meyering@lucent.com>
97439
97440         * m4/gettext.m4: Rename this...
97441         * m4/libintl.m4: ...to this.
97442
97443 2000-05-08  Jim Meyering  <meyering@lucent.com>
97444
97445         * lib/long-options.c: Don't include closeout.h.
97446         (parse_long_options): Don't call close_stdout for --version.
97447
97448 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97449
97450         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97451         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97452         2.1.3 bug.  This avoids a clash when files like regex.c define
97453         _GNU_SOURCE.
97454
97455 2000-05-06  Jim Meyering  <meyering@lucent.com>
97456
97457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97458         (AC_REPLACE_FUNCS): Add strnlen.
97459
97460         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97461         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97462
97463         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97464         AC_SEARCH_LIBS call for nanosleep.
97465         (LIB_NANOSLEEP): Set and AC_SUBST.
97466
97467 2000-05-06  Jim Meyering  <meyering@lucent.com>
97468
97469         * lib/strnlen.c: Undefine __strnlen and strnlen.
97470         [!weak_alias]: Define __strnlen to strnlen.
97471
97472         * lib/atexit.c: New file, from libiberty.
97473
97474 2000-05-06  Jim Meyering  <meyering@lucent.com>
97475
97476         * lib/closeout.c (close_stdout_status): Also check for errors on the
97477         stderr stream.
97478
97479 2000-05-05  Jim Meyering  <meyering@lucent.com>
97480
97481         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97482         AC_SEARCH_LIBS call for clock_gettime.
97483         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97484
97485         * m4/search-libs.m4: Update from autoconf.
97486
97487         su doesn't work on Solaris 2.6.
97488         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97489         <shadow.h>.  Reported by Dragos Harabor.
97490
97491 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97492
97493         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97494         memcpy instead of xmalloc, xrealloc, path_concat.
97495         (locale_charset): Treat empty environment variables as absent.
97496         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97497
97498 2000-05-04  Jim Meyering  <meyering@lucent.com>
97499
97500         * lib/getopt.c: Update from glibc.
97501         * lib/obstack.c: Likewise.
97502         * lib/obstack.h: Likewise.
97503         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97504         file
97505
97506         * lib/regex.h: Likewise.
97507         * lib/strndup.c: Likewise.
97508         * lib/strnlen.c: New file, from glibc.
97509
97510 2000-05-03  Jim Meyering  <meyering@lucent.com>
97511
97512         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97513
97514 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97515
97516         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97517         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97518         compile-time test, rather than inspecting host and OS, to
97519         decide whether to define _LARGEFILE_SOURCE.
97520
97521 2000-05-01  Jim Meyering  <meyering@lucent.com>
97522
97523         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97524
97525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97526         Based on a patch from Bruno Haible.
97527
97528 2000-05-01  Jim Meyering  <meyering@lucent.com>
97529
97530         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97531
97532 2000-04-29  Jim Meyering  <meyering@lucent.com>
97533
97534         * lib/path-concat.c: Declare strdup only if it's not defined.
97535         * lib/canon-host.c: Likewise.
97536
97537 2000-04-28  Jim Meyering  <meyering@lucent.com>
97538
97539         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97540         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97541         is included first, then limits.h is included by locale.h by libintl.h.
97542         From John David Anglin.
97543
97544 2000-04-25  Jim Meyering  <meyering@lucent.com>
97545
97546         * lib/makepath.c (S_IRWXUGO): Define.
97547         (make_path): Always perform explicit chmod if MODE specifies any
97548         of the `special' permission bits.  Prompted by a bug report against
97549         install from Mate Wierdl and Joost van Baal.
97550
97551 2000-04-18  Jim Meyering  <meyering@lucent.com>
97552
97553         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97554         (jm_PREREQ): Use it.
97555
97556 2000-04-18  Jim Meyering  <meyering@lucent.com>
97557
97558         * lib/README: New file.
97559
97560         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97561         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97562
97563 2000-04-17  Jim Meyering  <meyering@lucent.com>
97564
97565         Get it right :-)
97566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97567         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97568         Suggestion from Akim Demaille.
97569
97570 2000-04-17  Jim Meyering  <meyering@lucent.com>
97571
97572         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97573         the definition of it to rpl_strftime also defined-away the system's
97574         declaration.
97575
97576 2000-04-15  Jim Meyering  <meyering@lucent.com>
97577
97578         Use `C' to denote so-called `contiguous' files, the same way
97579         that tar does.
97580         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97581         (ftypelet): Use S_ISCTG.
97582         From Michael Deutschmann.
97583
97584 2000-04-14  Jim Meyering  <meyering@lucent.com>
97585
97586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97587         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97588         clobbered.
97589
97590 2000-04-14  Jim Meyering  <meyering@lucent.com>
97591
97592         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97593
97594 2000-04-13  Jim Meyering  <meyering@lucent.com>
97595
97596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97597         AH_VERBATIM to insert required #ifndef into config.h.in.
97598         Suggestion from Akim Demaille.
97599
97600 2000-04-12  Jim Meyering  <meyering@lucent.com>
97601
97602         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97603         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97604         Christian Krackowizer.
97605
97606         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97607         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97608         (AC_SYS_LARGEFILE): Require.
97609         (AM_C_PROTOTYPES): Require.
97610
97611 2000-04-08  Jim Meyering  <meyering@lucent.com>
97612
97613         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97614         names don't conflict.  Reported by Eli Zaretskii.
97615
97616 2000-04-07  Jim Meyering  <meyering@lucent.com>
97617
97618         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97619         sys/types.h, to work around system header problems on AIX 3.2.5.
97620         From Bruno Haible.
97621
97622 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97623
97624         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97625         bug.  Deal with the different error behavior of Irix iconv.
97626
97627 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97628
97629         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97630         IRIX if the installer said otherwise.
97631
97632 2000-04-05  Jim Meyering  <meyering@lucent.com>
97633
97634         Portability tweaks required for ultrix4.3.
97635         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97636         (jm_CHECK_DECLS): Add getutent to the list of functions.
97637         (_jm_DECL_HEADERS): Add utmpx.h.
97638         From John David Anglin.
97639
97640         * m4/strftime.m4: Back out the 2000-04-02 change.
97641         Instead of that change, simply undefine putenv in the test program.
97642
97643 2000-04-05  Jim Meyering  <meyering@lucent.com>
97644
97645         Portability tweaks required for ultrix4.3.
97646         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97647         getutent.
97648         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97649         * lib/canon-host.c: Declare strdup.
97650         * lib/path-concat.c: Likewise.
97651         From John David Anglin.
97652
97653 2000-04-04  Jim Meyering  <meyering@lucent.com>
97654
97655         Be more DOS 8.3-friendly.
97656         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97657         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97658         * lib/Makefile.am: Reflect renaming.
97659         Reported by Eli Zaretskii.
97660
97661         Use a temporary file name that won't clash with `charset.alias'
97662         in the DOS 8.3 name space.
97663         * lib/Makefile.am (charset_tmp): Define.
97664         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97665         (uninstall-local): Likewise.
97666         Reported by Eli Zaretskii.
97667
97668 2000-04-03  Jim Meyering  <meyering@lucent.com>
97669
97670         * m4/gettext.m4: Fix typo in comment.
97671
97672         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97673         textutils/configure.in).  Suggestion from Paul Eggert.
97674         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97675
97676 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97677
97678         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97679         variable in the shell rather than using putenv, which isn't
97680         portable.  This avoids the configure-time inter-test dependency
97681         on the potentially-renamed putenv function.
97682
97683 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97684
97685         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97686         before checking struct stat.st_blksize, so that
97687         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97688
97689 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97690
97691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97692         since strftime.c uses HAVE_STRFTIME to decide whether to use
97693         the underlying strftime.
97694
97695 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97696
97697         * lib/time/strftime.c (my_strftime): Make sure we call the system
97698         strftime, not ourselves, when invoking the underlying strftime.
97699
97700 2000-03-24  Jim Meyering  <meyering@lucent.com>
97701
97702         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97703         (charset_alias): Define.
97704         (install-exec-local): Factor out common code.
97705         (uninstall-local): Split lines longer than 80.
97706         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97707         (SUFFIXES): Define.
97708         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97709         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97710
97711 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97712
97713         * lib/config.charset: Output a line containing "Packages using this
97714         file".
97715         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97716         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97717         ref-del.sed): New rules.
97718
97719 2000-03-17  Jim Meyering  <meyering@lucent.com>
97720
97721         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97722         Otherwise, include <strings.h>
97723
97724 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97725
97726         * lib/unicodeio.c (utf8_wctomb): New function.
97727         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97728         format instead of in UCS-4 with platform dependent endianness.
97729
97730 2000-03-10  Jim Meyering  <meyering@lucent.com>
97731
97732         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97733         From Marco Franzen.
97734
97735 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97736
97737         * lib/savedir.c (savedir): Work even if directory size is
97738         negative; this can happen with some screwy NFS configurations.
97739
97740 2000-03-06  Jim Meyering  <meyering@lucent.com>
97741
97742         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97743         if it's NULL (because we ran out of memory).  From Bruno Haible.
97744
97745 2000-03-05  Jim Meyering  <meyering@lucent.com>
97746
97747         * lib/localcharset.c ("path-concat.h"): Include.
97748         (get_charset_aliases): Use path_concat instead of ANSI string
97749         concatenation.
97750
97751         * lib/unicodeio.h (PARAMS): Define.
97752         Use it to guard prototype.
97753
97754 2000-03-04  Jim Meyering  <meyering@lucent.com>
97755
97756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97757         for lib/localcharset.c.
97758
97759 2000-03-04  Jim Meyering  <meyering@lucent.com>
97760
97761         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97762         installing into it.
97763         (uninstall-local): Uncomment this rule so `make distcheck' works
97764         once again.
97765
97766         * lib/unicodeio.c (<errno.h>): Include it.
97767         (errno): Declare if not defined.
97768
97769         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97770
97771         * lib/config.charset: New version, incorporating remarks from a linux
97772         i18n mailing list.  From Bruno Haible.
97773
97774 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97775
97776         * m4/codeset.m4: New file.
97777         * m4/iconv.m4: New file.
97778         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97779
97780 2000-03-03  Jim Meyering  <meyering@lucent.com>
97781
97782         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97783
97784 2000-03-02  Jim Meyering  <meyering@lucent.com>
97785
97786         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97787         the messages come out on separate lines.
97788
97789         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97790         rather than jm_CHECK_DECLARATIONS.
97791         * m4/decl.m4: Remove now-unused file.
97792
97793         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97794         geteuid.
97795
97796 2000-03-02  Jim Meyering  <meyering@lucent.com>
97797
97798         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97799
97800 2000-03-01  Jim Meyering  <meyering@lucent.com>
97801
97802         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97803         * lib/unicodeio.c: Likewise.
97804
97805 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97806
97807         * lib/config.charset: New file.
97808         * lib/localcharset.c: New file.
97809         * lib/unicodeio.h, lib/unicodeio.c: New files.
97810         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97811         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97812         (noinst_HEADERS): Add unicodeio.h.
97813         (all-local, install-exec-local, charset.alias): New targets.
97814
97815 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97816
97817         * lib/quotearg.c (ALERT_CHAR): New macro.
97818         (quotearg_buffer_restyled): Use it.
97819
97820 2000-02-27  Jim Meyering  <meyering@lucent.com>
97821
97822         * m4/check-decl.m4: Add getenv to the list.
97823
97824 2000-02-27  Jim Meyering  <meyering@lucent.com>
97825
97826         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97827         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97828
97829         * lib/backupfile.c: Guard inclusion of stdlib.h with
97830         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97831         Declare malloc if needed.
97832
97833         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97834         `#ifndef HAVE_DECL..'
97835         now that autoconf always defines the HAVE_DECL_ symbols.
97836         * lib/human.c: Likewise.
97837         * lib/same.c: Likewise.
97838         * lib/strtoumax.c: Likewise.
97839
97840         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97841         declaration check was not run.
97842         * lib/hash.c: Likewise.
97843         * lib/human.c: Likewise.
97844         * lib/same.c: Likewise.
97845         * lib/strtoumax.c: Likewise.
97846
97847         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97848         `.', then first look up the entire `.'-containing string as a login
97849         name.
97850
97851 2000-02-23  Jim Meyering  <meyering@lucent.com>
97852
97853         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97854         in place of my hack.
97855
97856 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97857
97858         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97859         (textint): New typedef.
97860         (parser_control): Member year changed from int to textint.
97861         All uses changed.
97862         (YYSTYPE): Removed; replaced by %union with int and textint members.
97863         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97864         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97865         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97866         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97867         (date, number, to_year): Use width of number in digits, not its value,
97868         to determine whether it's a 2-digit year, or a 2-digit time.
97869         (yylex): Store number of digits of numeric tokens.
97870         Reported by John Kendall.
97871
97872         (parser_control): Changed from struct parser_control to typedef (for
97873         consistency).  All uses changed.
97874
97875         (tID): Removed; not used.
97876         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97877
97878 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97879
97880         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97881         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97882
97883 2000-02-12  Jim Meyering  <meyering@lucent.com>
97884
97885         * lib/userspec.c (ISDIGIT): Define it.
97886         (isdigit): Remove definition.
97887         (is_number): Use ISDIGIT, not isdigit.
97888         <libintl.h>: Include.
97889         (_ and N_): Define.
97890         (parse_user_spec): Mark translatable strings.
97891
97892 2000-02-10  Jim Meyering  <meyering@lucent.com>
97893
97894         With these changes, nanosleep.[ch] are finally enough like the other
97895         lib/* replacement files to compile on a few more losing systems.
97896
97897         * lib/nanosleep.h: Don't include config.h.
97898         Remove prototype from declaration of nanosleep.
97899         (PARAMS): Remove now-unneeded definition.
97900         * lib/nanosleep.c: #undef nanosleep.
97901         (rpl_nanosleep): Rename from nanosleep.
97902
97903 2000-02-10  Jim Meyering  <meyering@lucent.com>
97904
97905         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97906         gnu_nanosleep to rpl_nanosleep.
97907
97908 2000-02-09  Jim Meyering  <meyering@lucent.com>
97909
97910         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97911         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97912
97913 2000-02-08  Akim Demaille  <akim@epita.fr>
97914
97915         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97916         `[' and `]' and remove uses of `changequote'.
97917         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97918         (AC_SYS_LARGEFILE): Likewise.
97919         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97920         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97921         of changequote.
97922         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97923         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97924         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97925         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97926
97927 2000-02-05  Jim Meyering  <meyering@lucent.com>
97928
97929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97930         Remove explicit use of AC_HEADER_TIME.  It is required by
97931         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97932         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97933         in autoconf whereby the expansion of the latter ended up preceding
97934         the expansion of its prerequisite, AC_HEADER_TIME.
97935         Reported by Volker Borchert.
97936
97937 2000-02-03  Jim Meyering  <meyering@lucent.com>
97938
97939         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97940
97941 2000-02-03  Jim Meyering  <meyering@lucent.com>
97942
97943         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97944         rather than with `#if HAVE_UTMPNAME'.
97945
97946 2000-02-02  Jim Meyering  <meyering@lucent.com>
97947
97948         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97949         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97950         Reported by Eli Zaretskii.
97951
97952 2000-02-01  Jim Meyering  <meyering@lucent.com>
97953
97954         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97955
97956 2000-01-31  Jim Meyering  <meyering@lucent.com>
97957
97958         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97959         functions.  Add the time.h and sys/time.h headers along with the
97960         AC_REQUIRE'ment of AC_HEADER_TIME.
97961
97962 2000-01-31  Jim Meyering  <meyering@lucent.com>
97963
97964         * lib/nanosleep.h (nanosleep): Guard declaration with
97965         `#if ! HAVE_DECL_NANOSLEEP'.
97966         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97967         the declaration in that vendor's sys/timers.h.
97968         Reported by Christian Krackowizer.
97969
97970         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97971         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97972         (ISPRINT): Likewise.
97973         Reported by Tom Tromey.
97974
97975 2000-01-30  Jim Meyering  <meyering@lucent.com>
97976
97977         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97978
97979         * m4/prereq.m4 (utmp_includes): Define.
97980         Check for ut_user and ut_name members in both struct utmpx
97981         and struct utmp.
97982
97983 2000-01-30  Jim Meyering  <meyering@lucent.com>
97984
97985         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97986         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97987         header files where only utmpx.ut_user is declared.
97988
97989         * lib/readutmp.h (UT_USER): Define.
97990
97991 2000-01-29  Jim Meyering  <meyering@lucent.com>
97992
97993         * m4/lib-check.m4: New file containing library-related checks from
97994         fileutils and sh-utils (textutils had none).
97995
97996 2000-01-28  Jim Meyering  <meyering@lucent.com>
97997
97998         * m4/perl.m4: Change format of warning message to look more like that
97999         from the missing script.  Suggestion from François Pinard.
98000
98001 2000-01-25  Jim Meyering  <meyering@lucent.com>
98002
98003         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98004         well as time.h in the compile check.
98005         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98006         Fix typo in cross-compiling case: s/yes/no/.
98007
98008 2000-01-23  Jim Meyering  <meyering@lucent.com>
98009
98010         * m4/jm-macros.m4: Move df-related tests here from
98011         fileutils/configure.in
98012
98013         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98014         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98015
98016         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98017         s/space/ac_fsusage_space/.
98018         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98019
98020         * m4/ftruncate.m4: New file (derived from part of
98021         fileutils/configure.in).
98022         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98023         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98024
98025         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98026         AC_SUBST these here, rather than just in sh-util/configure.in, so
98027         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98028         all the same.
98029         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98030         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98031         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98032         (AC_SUBST(POW_LIBM)): Likewise.
98033         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98034
98035 2000-01-23  Jim Meyering  <meyering@lucent.com>
98036
98037         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98038         obstack.c.
98039
98040 2000-01-22  Jim Meyering  <meyering@lucent.com>
98041
98042         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98043
98044         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98045
98046         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98047         configure.in
98048         (AC_CHECK_HEADERS): Likewise for sh-utils.
98049         (AC_CHECK_HEADERS): Likewise for textutils.
98050         Merge the three lists of headers.
98051
98052         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98053         from fileutils' configure.in.
98054
98055         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98056         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98057         check-decl.m4.
98058
98059         * m4/check-decl.m4: Use #if rather than #ifdef.
98060         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98061         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98062         (_jm_DECL_HEADERS): Define new function.
98063         (jm_CHECK_DECLARATIONS): Require it.
98064
98065 2000-01-22  Jim Meyering  <meyering@lucent.com>
98066
98067         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98068         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98069         Required for some AIX systems.  Reported by Christian Krackowizer.
98070         [TESTING] (main): New function.
98071
98072         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98073         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98074         letters.
98075
98076         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98077         iswprint.
98078
98079         * lib/strverscmp.c (ISDIGIT): Define.
98080         (strverscmp): Use ISDIGIT, not isdigit.
98081
98082 2000-01-19  Jim Meyering  <meyering@lucent.com>
98083
98084         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98085         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98086         defines `struct timespec' in <sys/time.h>
98087
98088         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98089         Thanks to Akim for explaining.
98090
98091 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98092
98093         * lib/nanosleep.c (nanosleep):
98094         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98095         POSIX.1 doesn't require SA_INTERRUPT and some systems
98096         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98097         it's been part of POSIX.1 since day 1 (in 1988).
98098
98099 2000-01-17  Jim Meyering  <meyering@lucent.com>
98100
98101         * lib/interlock: Remove unused file.  Reported by François Pinard.
98102
98103 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98104
98105         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98106         alert, backslash, formfeed, and vertical tab unnecessarily in
98107         shell quoting style.
98108
98109 2000-01-16  Jim Meyering  <meyering@lucent.com>
98110
98111         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98112         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98113         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98114         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98115
98116 2000-01-16  Jim Meyering  <meyering@lucent.com>
98117
98118         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98119         because the latter didn't work.
98120
98121 2000-01-15  Jim Meyering  <meyering@lucent.com>
98122
98123         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98124         (AC_REPLACE_FUNCS): Add memcpy and memset.
98125         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98126         Add strpbrk.
98127         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98128
98129 2000-01-12  Jim Meyering  <meyering@lucent.com>
98130
98131         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98132         (jm_PREREQ): Use it.
98133         (jm_PREREQ_READUTMP): New macro.
98134         (jm_PREREQ): Use it.
98135
98136 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98137
98138         Quote multibyte characters correctly.
98139         * m4/c-bs-a.m4: New file.
98140         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98141         (jm_PREREQ): Use it.
98142
98143 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98144
98145         * m4/uintmax_t.m4: Port to autoconf 2.13.
98146
98147 2000-01-08  Jim Meyering  <meyering@ascend.com>
98148
98149         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98150         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98151
98152 2000-01-04  Jim Meyering  <meyering@ascend.com>
98153
98154         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98155         jm_STRUCT_DIRENT_D_TYPE.
98156         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98157         jm_STRUCT_DIRENT_D_INO.
98158         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98159         jm_STRUCT_UTIMBUF.
98160         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98161         renamings.
98162         * m4/utime.m4: Likewise.
98163
98164         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98165         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98166
98167 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98168
98169         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98170         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98171
98172 2000-01-02  Jim Meyering  <meyering@ascend.com>
98173
98174         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98175         remember if this is necessary.
98176
98177 1999-12-26  Jim Meyering  <meyering@ascend.com>
98178
98179         * m4/jm-macros.m4: Use it here.
98180         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98181
98182 1999-12-23  Jim Meyering  <meyering@ascend.com>
98183
98184         * m4/jm-macros.m4: Check for clock_gettime (moved from
98185         fileutils/configure.in)
98186         Check for gettimeofday.
98187
98188 1999-12-20  Jim Meyering  <meyering@ascend.com>
98189
98190         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98191         autoconf-2.14a-1999-12-20.
98192
98193 1999-12-19  Jim Meyering  <meyering@ascend.com>
98194
98195         * m4/lstat-slash.m4: New file.
98196         * m4/jm-macros.m4: Use the new macro:
98197         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98198
98199 1999-12-07  Jim Meyering  <meyering@ascend.com>
98200
98201         * m4/perl.m4: Require that File::Compare be available, too.
98202         Too many systems seem to lack it.
98203
98204         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98205         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98206
98207 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98208
98209         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98210         problem with the QNX 4.25 shell, which doesn't propagate exit
98211         status of failed commands inside shell assignments.
98212
98213 1999-11-17  Jim Meyering  <meyering@ascend.com>
98214
98215         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98216
98217 1999-11-07  Jim Meyering  <meyering@ascend.com>
98218
98219         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98220
98221 1999-11-06  Jim Meyering  <meyering@ascend.com>
98222
98223         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98224         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98225
98226 1999-11-05  Jim Meyering  <meyering@ascend.com>
98227
98228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98229         configure.in of textutils, fileutils, and sh-utils into this one
98230         (shared between those packages) file.
98231         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98232         AC_STRUCT_ST_BLKSIZE.
98233
98234 1999-11-03  Jim Meyering  <meyering@ascend.com>
98235
98236         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98237         of AC_CHECK_TYPE checks includes unistd.h.
98238         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98239         Suggestion from Akim Demaille.
98240
98241 1999-10-30  Jim Meyering  <meyering@ascend.com>
98242
98243         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98244         m4-quoted string.
98245         * m4/ls-mntd-fs.m4: Likewise.
98246         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98247         * m4/jm-winsz1.m4: Likewise.
98248
98249         * m4/const.m4: Remove file, since the fix made it into the experimental
98250         version of autoconf.
98251         * m4/mktime.m4: Likewise.
98252
98253         * m4/check-type.m4: Remove file, now that the latest version of
98254         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98255
98256         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98257         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98258         AC_CHECK_TYPE.
98259
98260 1999-10-04  Jim Meyering  <meyering@ascend.com>
98261
98262         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98263
98264 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98265
98266         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98267         2.95.1 bug with HP-UX 10.20.
98268
98269 1999-09-17  Jim Meyering  <meyering@ascend.com>
98270
98271         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98272         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98273         due to missing strdup (against sh-utils-2.0).
98274
98275 1999-08-29  Jim Meyering  <meyering@ascend.com>
98276
98277         * m4/jm-macros.m4: Require jm_BISON.
98278         * m4/bison.m4: New file.
98279
98280 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98281
98282         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98283         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98284
98285 1999-08-05  Jim Meyering  <meyering@ascend.com>
98286
98287         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98288         to avoid conflicts with `conftest' on 8+3 filesystems.
98289         Suggestion from Eli Zaretskii.
98290
98291 1999-08-04  Jim Meyering  <meyering@ascend.com>
98292
98293         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98294         fileutils and sh-utils (textutils's getline test was inadequate).
98295         (AM_FUNC_GETLINE): Run this test.
98296         (AC_CHECK_FUNCS): Check for getdelim.
98297         Reported by Bob Proulx.
98298
98299 1999-08-02  Jim Meyering  <meyering@ascend.com>
98300
98301         * m4/jm-macros.m4: Add a comment.
98302
98303 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98304
98305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98306         <inttypes.h> defines strtoumax as a macro (and not as a
98307         function).
98308
98309 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98310
98311         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98312         that we can shift, multiply and divide unsigned long long
98313         values; Ultrix cc can't do it.
98314
98315 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98316
98317         * m4/mktime.m4: New file, which is a preview of what should appear
98318         in the next public autoconf release.
98319
98320 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98321
98322         * m4/lfs.m4: Remove this file.
98323         * m4/largefile.m4: New file.  It contains the old contents of
98324         lfs.m4, except that all names with prefix AC_LFS have been
98325         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98326         compatible with future autoconf versions.  Also, some minor m4
98327         quoting problems have been fixed.
98328
98329 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98330
98331         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98332         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98333         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98334         and simplify the shell code.
98335
98336 1999-08-01  Jim Meyering  <meyering@ascend.com>
98337
98338         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98339         m4.
98340
98341 1999-07-20  Jim Meyering  <meyering@ascend.com>
98342
98343         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98344
98345 1999-07-15  Jim Meyering  <meyering@ascend.com>
98346
98347         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98348
98349 1999-05-22  Jim Meyering  <meyering@ascend.com>
98350
98351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98352
98353 1999-05-20  Jim Meyering  <meyering@ascend.com>
98354
98355         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98356         Add a colon after each `then' in case $4 is empty.
98357
98358 1999-05-16  Jim Meyering  <meyering@ascend.com>
98359
98360         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98361
98362 1999-05-10  Jim Meyering  <meyering@ascend.com>
98363
98364         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98365
98366         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98367         AC_FUNC_MKTIME.
98368
98369 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98370
98371         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98372
98373 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98374
98375         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98376         not CPPFLAGS, so that linking works correctly in IRIX.
98377
98378 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98379
98380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98381
98382 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98383
98384         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98385         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98387         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98388         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98389
98390         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98391
98392 1999-04-20  Jim Meyering  <meyering@ascend.com>
98393
98394         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98395         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98396         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98397
98398 1999-04-18  Jim Meyering  <meyering@ascend.com>
98399
98400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98401         * m4/jm-macros.m4: Use it.
98402
98403 1999-04-06  Jim Meyering  <meyering@ascend.com>
98404
98405         * m4/strftime.m4: Remove test for %f.
98406
98407 1999-03-29  Jim Meyering  <meyering@ascend.com>
98408
98409         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98410         superset of the AC_TYPE_* checks in the textutils, fileutils,
98411         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98412         AC_TYPE_PID_T.
98413
98414 1999-03-28  Jim Meyering  <meyering@ascend.com>
98415
98416         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98417         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98418         replaced e.g., in the *.sh files of the sh-utils.
98419
98420 1999-03-20  Jim Meyering  <meyering@ascend.com>
98421
98422         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98423         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98424         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98425
98426 1999-03-19  Jim Meyering  <meyering@ascend.com>
98427
98428         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98429
98430 1999-03-12  Jim Meyering  <meyering@ascend.com>
98431
98432         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98433
98434 1999-03-07  Jim Meyering  <meyering@ascend.com>
98435
98436         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98437         declared.
98438
98439 1999-02-17  Jim Meyering  <meyering@ascend.com>
98440
98441         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98442         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98443
98444 1999-02-07  Jim Meyering  <meyering@ascend.com>
98445
98446         * m4/group-member.m4: New file -- extracted from sh-utils'
98447         configure.in.
98448
98449         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98450         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98451
98452 1999-02-06  Jim Meyering  <meyering@ascend.com>
98453
98454         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98455         * m4/fnmatch.m4: Likewise.
98456         * m4/getgroups.m4: Likewise.
98457         * m4/lstat.m4: Likewise.
98458         * m4/malloc.m4: Likewise.
98459         * m4/putenv.m4: Likewise.
98460         * m4/realloc.m4: Likewise.
98461         * m4/regex.m4: Likewise.
98462         * m4/stat.m4: Likewise.
98463         * m4/strftime.m4: Likewise.
98464         Suggestion from Alain Magloire.
98465
98466         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98467         * m4/fnmatch.m4: Likewise.
98468         * m4/getgroups.m4: Likewise.
98469         * m4/getline.m4: Likewise.
98470         * m4/lstat.m4: Likewise.
98471         * m4/malloc.m4: Likewise.
98472         * m4/memcmp.m4: Likewise.
98473         * m4/putenv.m4: Likewise.
98474         * m4/realloc.m4: Likewise.
98475         * m4/regex.m4: Likewise.
98476         * m4/stat.m4: Likewise.
98477         * m4/strftime.m4: Likewise.
98478         Suggestion from Alain Magloire.
98479
98480         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98481         an argument.
98482
98483         * m4/regex.m4: Add a run-time Test for proper operation of
98484         re_compile_pattern.
98485
98486 1999-01-31  Jim Meyering  <meyering@ascend.com>
98487
98488         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98489
98490 1999-01-30  Jim Meyering  <meyering@ascend.com>
98491
98492         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98493
98494         * m4/jm-mktime.m4: Make this a wrapper around the official
98495         AM_FUNC_MKTIME rather than my private copy, now that the official one
98496         is up to date.
98497         * m4/mktime.m4: Remove file.
98498
98499         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98500         * m4/uptime.m4: Likewise.
98501         * m4/uintmax_t.m4: Likewise.
98502
98503 1999-01-28  Jim Meyering  <meyering@ascend.com>
98504
98505         * m4/jm-macros.m4: Use jm_AFS.
98506         * m4/afs.m4: New file (from fileutils' configure.in).
98507
98508         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98509         * m4/chown.m4: Likewise.
98510         * m4/d-ino.m4: Likewise.
98511         * m4/d-type.m4: Likewise.
98512         * m4/fnmatch.m4: Likewise.
98513         * m4/getgroups.m4: Likewise.
98514         * m4/gettext.m4: Likewise.
98515         * m4/jm-mktime.m4: Likewise.
98516         * m4/jm-winsz2.m4: Likewise.
98517         * m4/lcmessage.m4: Likewise.
98518         * m4/ls-mntd-fs.m4: Likewise.
98519         * m4/malloc.m4: Likewise.
98520         * m4/memcmp.m4: Likewise.
98521         * m4/putenv.m4: Likewise.
98522         * m4/realloc.m4: Likewise.
98523         * m4/st_mtim.m4: Likewise.
98524         * m4/strftime.m4: Likewise.
98525
98526 1999-01-16  Jim Meyering  <meyering@ascend.com>
98527
98528         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98529         (ARGMATCH_DIE_DECL): Define.
98530
98531 1999-01-12  Jim Meyering  <meyering@ascend.com>
98532
98533         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98534         Reported by Lars Hecking.
98535
98536 1999-01-10  Jim Meyering  <meyering@ascend.com>
98537
98538         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98539         gross kludge.
98540         * m4/inttypes_h.m4: Likewise.
98541         * m4/lstat.m4: Likewise.
98542         * m4/malloc.m4: Likewise.
98543         * m4/readdir.m4: Likewise.
98544         * m4/realloc.m4: Likewise.
98545         * m4/st_dm_mode.m4: Likewise.
98546         * m4/stat.m4: Likewise.
98547         * m4/utimbuf.m4: Likewise.
98548         * m4/utimes.m4: Likewise.
98549
98550         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98551         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98552         comments in config.h.in are meaningful.
98553
98554         * m4/jm-macros.m4: Require autoconf-2.13 here.
98555
98556         * m4/regex.m4: By default, don't use the included regex.c on systems
98557         with glibc 2.  Suggestion from Uli Drepper.
98558
98559 1999-01-02  Jim Meyering  <meyering@ascend.com>
98560
98561         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98562
98563 1998-12-18  Jim Meyering  <meyering@ascend.com>
98564
98565         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98566         Based on a suggestion from Lars Hecking.
98567
98568 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98569
98570         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98571
98572 1998-11-16  Jim Meyering  <meyering@ascend.com>
98573
98574         * m4/lfs.m4: Double-quote the `uname...` expression.
98575
98576 1998-11-14  Jim Meyering  <meyering@ascend.com>
98577
98578         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98579         * m4/stat.m4: Likewise.
98580
98581 1998-11-03  Jim Meyering  <meyering@ascend.com>
98582
98583         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98584         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98585
98586 1998-10-18  Jim Meyering  <meyering@ascend.com>
98587
98588         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98589
98590 1998-10-17  Jim Meyering  <meyering@ascend.com>
98591
98592         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98593         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98594         calls for those previously hard-coded headers.  Instead, take a new
98595         parameter.
98596         (jm_CHECK_DECLARATIONS): Reflect interface change.
98597         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98598         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98599
98600         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98601
98602 1998-10-14  Jim Meyering  <meyering@ascend.com>
98603
98604         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98605         instead of "TZ=America/Vancouver".  From Paul Eggert.
98606
98607 1998-10-11  Jim Meyering  <meyering@ascend.com>
98608
98609         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98610         This adds a test for a recently added compatibility fix for mktime.c.
98611         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98612
98613 1998-09-27  Jim Meyering  <meyering@ascend.com>
98614
98615         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98616
98617         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98618         ../configure.in, including a change from Gordon Matzigkeit to allow
98619         cross-compiling for the Hurd.
98620
98621         * m4/glibc.m4: New file/macro to test for the GNU C Library
98622         versions 1 and 2.  From Gordon Matzigkeit.
98623         Indent.
98624
98625 1998-09-21  Jim Meyering  <meyering@ascend.com>
98626
98627         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98628
98629 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98630
98631         Port nanosecond-resolution times to UnixWare 2.1.2 and
98632         pedantic Solaris 2.6.
98633
98634         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98635         AC_STRUCT_ST_MTIM.
98636         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98637         Generate name of ns member, instead of just 1 or undef.
98638         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98639
98640 1998-08-15  Jim Meyering  <meyering@ascend.com>
98641
98642         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98643         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98644         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98645         instead of jm_TYPE_SSIZE_T.
98646
98647 1998-08-12  Jim Meyering  <meyering@ascend.com>
98648
98649         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98650
98651 1998-08-02  Jim Meyering  <meyering@ascend.com>
98652
98653         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98654         in acconfig.h manually.
98655
98656 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98657
98658         * m4/st_mtim.m4: New file.
98659
98660 1998-07-28  Jim Meyering  <meyering@ascend.com>
98661
98662         * m4/utimes.m4: Undef stat.
98663
98664 1998-07-25  Jim Meyering  <meyering@ascend.com>
98665
98666         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98667         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98668
98669 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98670
98671         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98672         uid and gid actually remain unchanged.
98673
98674 1998-07-07  Jim Meyering  <meyering@ascend.com>
98675
98676         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98677
98678 1998-07-04  Jim Meyering  <meyering@ascend.com>
98679
98680         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98681         to prove that this macro can be used in packages without regex.c.
98682
98683 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98684
98685         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98686         is to be used.
98687
98688 1998-07-03  Jim Meyering  <meyering@ascend.com>
98689
98690         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98691
98692         * m4/gettext.m4: New file -- from gettext-0.10.35.
98693         * m4/lcmessage.m4: Likewise.
98694         * m4/progtest.m4: Likewise.
98695
98696         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98697         * m4/jm-macros.m4: Require the new macro.
98698
98699 1998-06-29  Jim Meyering  <meyering@ascend.com>
98700
98701         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98702         for the definition of NGROUPS (used in a system header included
98703         by sys/mount.h).
98704
98705 1998-06-28  Jim Meyering  <meyering@ascend.com>
98706
98707         * m4/ls-mntd-fs.m4: New file.
98708         * m4/fstypename.m4: New file.
98709
98710         * m4/jm-macros.m4: Require the new macro.
98711         * m4/jm-glibc-io.m4: New file.
98712
98713 1998-05-19  Jim Meyering  <meyering@ascend.com>
98714
98715         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98716         * m4/lchown.m4: New file.
98717
98718         * m4/Makefile.am.in: New file.
98719         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98720
98721 1998-05-14  Jim Meyering  <meyering@ascend.com>
98722
98723         * m4/Makefile.am (EXTRA_DIST): Add them.
98724         * m4/jm-macros.m4: New file.
98725         * m4/utimbuf.m4: New file.
98726
98727 1998-05-12  Jim Meyering  <meyering@ascend.com>
98728
98729         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98730
98731 1998-05-11  Jim Meyering  <meyering@ascend.com>
98732
98733         * m4/isc-posix.m4: New file.
98734
98735 1998-05-10  Jim Meyering  <meyering@ascend.com>
98736
98737         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98738
98739 1998-05-09  Jim Meyering  <meyering@ascend.com>
98740
98741         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98742         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98743         with automake.
98744
98745         * m4/ssize_t.m4: New file.
98746         * m4/mktime.m4: Remove file -- the new automake has this now.
98747
98748 1998-04-26  Jim Meyering  <meyering@ascend.com>
98749
98750         * m4/assert.m4: New file.
98751         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98752
98753 1998-04-05  Jim Meyering  <meyering@ascend.com>
98754
98755         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98756         (jm_PREREQ): Use it here.
98757
98758 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98759
98760         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98761         in acconfig.h.
98762
98763 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98764
98765         * m4/prereq.m4: New file.
98766         * m4/error.m4: New file.
98767         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98768
98769 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98770
98771         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98772         cache-check for the same variable -- that defeated the purpose of
98773         the test; the test program was never run.  This was a problem only
98774         on systems with losing getline functions -- HP-UX 10.20 is one.
98775         Reported by Bjorn Helgaas.
98776
98777 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98778
98779         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98780
98781 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98782
98783         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98784
98785         * m4/const.m4: New file.  Use an initializer in this declaration
98786         typedef int charset[2]; const charset x;
98787         Reported by Bob Glickstein.
98788
98789 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98790
98791         * m4/chown.m4: Fix reversed types on -1 args to chown.
98792         From Kaveh Ghazi.
98793
98794 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98795
98796         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98797         Add lseek and memchr.
98798
98799         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98800         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98801         have a 20-character limit on names.
98802
98803 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98804
98805         * m4/inttypes_h.m4: New file.
98806         * m4/uintmax_t.m4: New file.
98807         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98808
98809
98810         -----
98811
98812         Local Variables:
98813         coding: utf-8
98814         End:
98815
98816         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98817
98818         Copying and distribution of this file, with or without
98819         modification, are permitted provided the copyright notice
98820         and this notice are preserved.